projects

A command that lists projects registered in Gnosys, including their directories, memory counts, and creation dates. It can also find entries whose directories no longer exist.

In plain words
What is it for?
Use it to list live projects, include unavailable projects, preview cleanup, or delete dead registry entries.
Why use it?
It helps you see which projects Gnosys knows about and clean up registry records for deleted directories.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/proticom/gnosys/projects
Clone the repo
git clone --depth 1 https://github.com/proticom/gnosys
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 542 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00542
Opus 5 $0.00000 $0.00271
Sonnet 5 $0.00000 $0.00108
Haiku 4.5 $0.00000 $0.00054

Measured yesterday against content hash 753ef3bad12e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

projects scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/projects.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gnosys projects

List registered projects from the central DB, with optional pruning of dead entries.

Usage

gnosys projects
gnosys projects --json
gnosys projects --all
gnosys projects --prune --dry-run
gnosys projects --prune --yes

Options

Option Description
--json Output as JSON
--all Include dead projects (deleted directories) and projects not on this machine
--prune Delete registry entries whose directory no longer exists
--dry-run With --prune: list what would be deleted without deleting
--yes With --prune: skip the confirmation prompt

Behavior

  1. Opens the central DB via GnosysDB.openCentral().
  2. Loads all projects with centralDb.getAllProjects().
  3. Resolves each project's path for this machine via readMachineConfig() and effectiveProjectPath().
  4. Normal listing (default): shows live projects on this machine; hides dead or absent paths unless --all.
  5. --prune: finds dead projects, shows them, optionally confirms, then calls centralDb.deleteProject(p.id).

Output modes

Human listing shows project name, ID, resolved directory, memory count, and created date.

JSON listing includes count, totalRegistered, deadCount, and projects.

Prune JSON includes deleted, remaining, and deletedProjects.

Empty registry:

No projects registered. Run 'gnosys init' in a project directory.

No live projects:

No live projects (N dead — run 'gnosys projects --all' to see them or 'gnosys projects --prune' to remove them).

Errors

Central DB unavailable:

Central DB not available (better-sqlite3 missing).

Other errors:

Error: <message>

Failure paths set process.exitCode = 1 and return through finally so the DB handle is closed.

Validation

cd gnosys-public
npm run cli -- projects --help
npx vitest run src/test/projects-command-handler.test.ts

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 81 lines · 0 tokens per session scan A 753ef3bad12e

Subscribe to this mod's changes

projects is a command published in the GitHub repository proticom/gnosys (4 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 542 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.