export-project

A command for saving one registered Gnosys project as a portable compressed .json.gz bundle. The bundle can be imported again with the matching Gnosys import command.

In plain words
What is it for?
Use it to export the current project or a named project, include archived memories, omit the audit log, and return the result as JSON.
Why use it?
It lets you move or back up a project's stored memories and audit information without exporting the entire Gnosys store.

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/export-project
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 568 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.00568
Opus 5 $0.00000 $0.00284
Sonnet 5 $0.00000 $0.00114
Haiku 4.5 $0.00000 $0.00057

Measured 2d ago against content hash 00a8791d4565, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

export-project 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 2d ago.

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/export-project.md · 79 lines

How it starts

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

gnosys export project

Export a single registered Gnosys project to a portable .json.gz bundle (round-trips with gnosys import project).

Usage

gnosys export project --to ./project.gnosys.json.gz
gnosys export project my-project --to ./project.gnosys.json.gz
gnosys export project my-project --to ./bundle.gnosys.json.gz --include-archived --no-audit --json

When projectId is omitted, the command auto-detects from the current working directory's registry entry.

Options

Option Description
--to <file> Output bundle path (required)
--include-archived Include archived and superseded memories (default: active only)
--no-audit Skip audit log in the bundle
--json Output result as JSON

Behavior

  1. Opens the central DB via GnosysDB.openCentral().
  2. Resolves projectId from argument or getProjectByDirectory(process.cwd()).
  3. Calls exportProject(centralDb, { projectId, outputPath, includeArchived, includeAudit }).
  4. Prints human summary or JSON.
  5. Closes central DB in finally.

Human output

Exported project my-project
  Memories:      142
  Archived:      3 excluded — re-run with --include-archived for a full backup
  Relationships: 28
  Audit entries: 512
  Bundle:        /path/to/project.gnosys.json.gz
  Size:          45.2 KB compressed (12.3% of 367.1 KB)

JSON output

Full exportProject result object when --json is set.

Errors

Central DB unavailable:

Central DB unavailable.

No project ID and cwd not registered:

No project ID given and current directory is not a registered project.
Usage: gnosys export project <projectId> --to <file>

Validation failures after DB open use process.exitCode = 1.

Validation

cd gnosys-public
npm run cli -- export project --help
npx vitest run src/test/export-command-handler.test.ts
node scripts/audit-commands.mjs --write

Read the full file on GitHub · 79 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. 2d ago First seen · 79 lines · 0 tokens per session scan A 00a8791d4565

Subscribe to this mod's changes

export-project is a command published in the GitHub repository proticom/gnosys (4 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 568 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.