AntiGoldfishMode

Local‑only, air‑gapped memory for codebases that cannot leave the machine. Every action is traceable. Exports are signed & checksummed. No telemetry. Verify zero egress at any moment.

agm prove-offline
GitHub Sponsor (Honor‑System) Support Development

Sponsorship is voluntary. All core features (signing, checksums, policy, receipts, export/import) are MIT‑licensed and fully functional without payment.

Implemented (v1.9.0)

Core Engine
  • SQLite-based persistent memory
  • Local-only vector embeddings (zero egress)
  • Tree-sitter AST-based code chunking
  • Hybrid search (keyword + vector)
Integrity & Export
  • Signed + checksummed .agmctx exports
  • Zipped bundle support (--zip)
  • Delta exports to reduce duplication (--delta)
  • Provenance data in export manifests
Policy & Security
  • Zero-trust policy engine (command & path rules)
  • Enforced signing (forceSignedExports)
  • Time-scoped trust tokens for temporary bypass
  • Full key lifecycle management (rotate, prune, etc.)
Transparency & Auditing
  • Trace/plan/mirror flags for all commands
  • Per-command JSON receipts with digests
  • Append-only command journal (.jsonl)
  • Verifiable zero-egress (agm prove-offline)
Diagnostics & Maintenance
  • Database doctor (db-doctor) for integrity checks
  • Health and vector status commands
  • Garbage collection for stale data (gc)
  • Robust regression test suite

Integrity: Import Exit Codes

CodeMeaning
0All verification passed
2Unsigned bundle blocked (policy requires signature)
3Invalid signature
4Checksum mismatch (tamper/corrupt)

Checksums are verified before signature to surface tamper early.

Quick Start

  1. npm i -g antigoldfishmode
  2. agm init
  3. agm index-code --path src --symbols
  4. agm search-code "auth middleware" --hybrid --preview 3
  5. agm export-context --out ./ctx.agmctx --type code --zip --sign

See docs/airgapped.md for bundle format & verification details.

Roadmap (Post-1.9.0)

These features are planned for future releases.

Upgrade to Pro (Honor-System)

Pro features are available via an honor-system sponsorship. They focus on advanced code analysis, workflow automation, and stricter security controls for professional and team environments.

Pro FeatureBenefit
AST-Powered Code Indexing Uses Tree-sitter for precise, syntax-aware chunking of code (TS/JS, Python, etc.). This provides far more accurate search results and context quality than the standard heuristic-based indexing.
Enforced Supply Chain Security Set strict, non-bypassable policies like forceSignedExports (prevent unsigned code from leaving) and requireSignedContext (block untrusted imports). Essential for corporate and team environments.
Automated Signing Workflows Enable signExports in your policy to make cryptographic signing the default behavior for all exports. Reduces friction and human error, improving security posture.

Honor‑System Funding

All core capability is MIT‑licensed. No license checks, no telemetry, no crippled paths. Sponsorship funds maintenance, performance upgrades (Tree‑sitter & ANN), and better tooling (dashboards, diff preview). If it saves you time, consider supporting.

Verification & Docs

Pull requests improving reproducibility, verification coverage, or docs are welcome.

What We Don't Do