projects-hub
Use in Hermes projects. Manage instructions, memory, RAG.
Latest: v1.1.0
Initial ClawHub release: project instructions, MEMORY.md, knowledge base, local RAG search, repo discovery, Kanban link.
Projects Hub (Claude Projects Parity + Hermes Upgrades)
When to Use
- Creating, organizing, or working inside a named Hermes Project (
projects.db+ Desktop Projects tab). - Updating a project's standing instructions (
.hermes.md), project-scopedMEMORY.md, knowledge snippets, pinned repo files, or reference links. - Running local RAG search across a project's knowledge base before answering or editing code.
Workspace Layout (Per Project)
Inside a project's primary folder (<root>), Projects Hub stores durable workspace state in standard files:
- Project Instructions:
<root>/.hermes.mdis the file this hub saves; Hermes auto-injects it into every session rooted in<root>(20,000-char cap). An existingAGENTS.md/CLAUDE.md/.cursorrulesin the folder is read for display only — the hub leaves those other tools' files untouched. - Project Memory:
<root>/.hermes-project/MEMORY.md— project-scoped decisions, requirements, and pitfalls (isolated from other projects;use_account_memorytoggle inproject.json). - Project Knowledge:
<root>/.hermes-project/knowledge/(text/markdown/code snippets) +pinned_filesin<root>/.hermes-project/project.json(live references to repo files, no duplication). - Reference Links:
linksin<root>/.hermes-project/project.json. - Kanban Link: tasks whose
project_idmatches the project's id (ortenant/workspace_pathmatches) surface in the project's Kanban tab.
Projects without a local folder store metadata under $HERMES_HOME/plugin-data/projects-hub/workspaces/<project_id>/.
Agent Rules When Working in a Project
- Check project memory on entry: If
<cwd>/.hermes-project/MEMORY.mdexists, read it before making architectural changes. - Save durable project learnings to
MEMORY.md, not global memory: requirements, architecture decisions, and repo pitfalls belong in<root>/.hermes-project/MEMORY.md. - Search knowledge before asking: When a project has
.hermes-project/knowledge/or pinned files, runscripts/project_ctl.py search <slug> "<query>"for fast local RAG retrieval. - Keep instructions tight:
.hermes.mdis injected on every turn — target 40–60 lines (commands, invariants, gotchas), never dump full docs there; put reference docs in.hermes-project/knowledge/. Hermes also reads an existingAGENTS.md/CLAUDE.mdwhen one is present, but this hub never writes those files (the save endpoint rejects them with a 400) — they belong to the other tools that own them. - Register every new project folder: Hermes's
projects.dbstarts empty and nothing auto-populates it. When you create, scaffold, or clone a repo for the user, register it in the same turn —python scripts/project_ctl.py import <dir>(orhermes project create <name> <path>) — and seed a concise.hermes.md. Otherwise the project never appears in the Projects tab and future sessions fall back to global memory /session_searchto find it. - Pin instead of copy: for repo files, pin the path (
pin <slug> <rel/path>) so edits stay in sync; store only external snippets as knowledge files.
Desktop UI & Backend
- Desktop UI:
$HERMES_HOME/desktop-plugins/projects-hub/plugin.js— registers Projects sidebar tab (/projects), statusbar active-project chip,⌘Kcommands (Open Projects Hub,New Project), andAlt+Mod+Pkeybind. - Backend API:
$HERMES_HOME/plugins/projects-hub/dashboard/plugin_api.pymounted at/api/plugins/projects-hub(enable viahermes plugins enable projects-hub). - Repo discovery:
GET /discover[?roots=a,b]lists unregistered local codebases (git repos, or folders withpyproject.toml/package.json/Cargo.toml/CMakeLists.txt/go.mod) under~/projects,~/source/repos,~/code,~/dev,~/workspace,~;POST /discover/import {"paths": [...]}registers the picks and skips anything already inprojects.db, in a project folder, or repeated in the same call. The Desktop Scan repos button is the same pair. - Write scope: the instructions endpoint accepts only
.hermes.md/HERMES.md; every other context filename is a 400 (see rule 4). - Publishing it to the plugin catalog (validation gate, entry YAML, submission PR): load the
hermes-agentskill and read itsplugin-catalog-submissionreference. - Hot reload: In Desktop app, run
⌘K → Reload desktop pluginsafter editingplugin.js.
CLI Helper (scripts/project_ctl.py)
Run via Python from this skill's directory:
python scripts/project_ctl.py list— list projects with instruction/memory/knowledge/link countspython scripts/project_ctl.py show <slug>— dump project instructions, memory, knowledge, linkspython scripts/project_ctl.py set-instructions <slug> --file .hermes.md --text "..."python scripts/project_ctl.py add-memory <slug> "<bullet>"— append a dated entry toMEMORY.mdpython scripts/project_ctl.py add-knowledge <slug> <name.md> --text "..."python scripts/project_ctl.py pin <slug> <rel/path>— pin an existing repo filepython scripts/project_ctl.py add-link <slug> <label> <url>python scripts/project_ctl.py search <slug> "<query>"— local RAG search across project contextpython scripts/project_ctl.py discover— list unregistered local git repos / codebasespython scripts/project_ctl.py import <dir> [<dir> ...]— register local folders as projects (skips dupes)
