import-project

A command that restores a compressed project bundle made by the matching project-export command into the central database.

In plain words
What is it for?
Use it to merge, replace, or assign new IDs to imported project data, optionally changing its working directory.
Why use it?
It lets you bring project memories and their related records back onto a machine or into a different setup, while choosing how conflicts are handled.

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/import-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 532 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.00532
Opus 5 $0.00000 $0.00266
Sonnet 5 $0.00000 $0.00106
Haiku 4.5 $0.00000 $0.00053

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

Security

Grade A, and why

import-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/import-project.md · 80 lines

How it starts

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

gnosys import project

Restore a portable .json.gz project bundle created by gnosys export project into the central DB.

Usage

gnosys import project ./my-project.gnosys.json.gz
gnosys import project ./bundle.gnosys.json.gz --strategy replace
gnosys import project ./bundle.gnosys.json.gz --working-directory /path/to/project --json

Options

Option Description
--strategy <strategy> Conflict handling: merge (default), replace, or new-id
--working-directory <dir> Override the bundle's working_directory (e.g. when restoring on a different machine)
--json Output the result as JSON

Behavior

  1. Validates --strategy before opening the central DB.
  2. Opens the central DB via GnosysDB.openCentral().
  3. Resolves bundlePath with path.resolve().
  4. Calls importProject(centralDb, { bundlePath, strategy, workingDirectoryOverride }).
  5. Prints human summary or JSON.
  6. Closes central DB in finally.

Human output

Imported project my-project (my-project)
  Strategy:        merge
  Memories:        42 inserted, 3 skipped, 0 replaced
  Relationships:   12
  Audit entries:   88

JSON output

Full importProject result object when --json is set.

Errors

Invalid strategy (validated before DB open):

Invalid strategy: foo. Use one of: merge, replace, new-id

Central DB unavailable:

Central DB unavailable.

Import failures (malformed bundle, unsupported version, etc.):

Import failed: <message>

Failure paths use process.exitCode = 1 and close the DB in finally.

Validation

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

Read the full file on GitHub · 80 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 · 80 lines · 0 tokens per session scan A da1268fb4027

Subscribe to this mod's changes

import-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 532 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.