Context Nest
Versioned, reviewed knowledge for your AI agents. Start solo, scale safely.
by PromptOwl | Website | Whitepaper | Specification | Discord
Context Nest turns scattered knowledge — your repos, docs, Slack threads, tribal know-how — into a structured, queryable brain your AI agents can use.
It's the same instinct as dumping your notes into Obsidian and pointing an LLM at them, with four things that pattern doesn't give you:
- Structure. Typed nodes with relationships and a selector grammar. Agents navigate a graph, not a flat folder.
- Fewer tokens per session. Pre-digested into summaries and linked hub documents, so the next session reads a short summary instead of stuffing in raw files. In our preprint, governed selection used about a third of the input tokens of keyword search (BM25).
- A sharing path. Export to a teammate, or push to a shared nest your team and its agents can query.
- Governed, not a compliance bolt-on. Every change is versioned and hash-chained. Full audit trail, approval-ready, auditable down to the byte. The same vault that onboarded one developer in ten minutes gives an auditor the full change history when that day comes.
Works the same for a solo dev's notes, a team's living onboarding doc, or an enterprise's safe shared brain — one CLI, one file format, one vault. Start solo; scale when you need to.
Quick Start
npm install -g @promptowl/contextnest-cli
ctx
The first time you run ctx it walks you through setup: a local vault, a team server, or both. After that, ctx just shows the command list. Prefer to script it? ctx init --starter developer still works.
Getting started is one question: what are you trying to capture? Point your agent at a codebase, a folder of docs, an old wiki, or just tell it what's in your head. It'll build the first usable version in ten minutes and get denser every time you come back.
See all starters: ctx init --list-starters
What the install puts on your disk
Two packages, no nesting, and no install scripts — nothing of ours executes when you install. The MCP server installs zero dependencies. For a lean install without terminal colour:
npm install -g @promptowl/contextnest-cli --omit=optional
That leaves exactly one package. The rest of the code is compiled into the published bundle rather than resolved from npm, so the install is deterministic — and every bundled package is listed with its version and licence alongside the installed ones in DEPENDENCIES.md. CI regenerates that file on every run and fails on drift, and uploads the machine-readable graph as the dependency-graph build artifact.
What leaves your machine
Nothing, unless you run a command that names a destination or opt in:
| Trigger | Destination | Sent | Default |
|---|
| Telemetry | api.promptowl.ai/v1/telemetry | Random per-vault id, CLI version, OS, Node version, event name, timestamp. Never vault content. | Off. Opt in with telemetry: true in .context/config.yaml; DO_NOT_TRACK=1 / CONTEXTNEST_TELEMETRY=0 force off. |
Opening .context/welcome.html | Google Analytics | vault_init (starter, CLI version, doc count) + GA defaults (IP, user agent) | Off — same flag. Off = the page makes no network requests. |
ctx push | The --server you name | Published documents + your API key | Only when run |
ctx query @org/pack | api.promptowl.ai | Pack name + your PromptOwl token | Only when run |
| Remote nests | The server you registered | Queries/writes + the bearer from your env var | Only for remotes you add |
ctx import pubmed / enrich pubtator | NCBI | Search terms / ids | Only when run |
ctx doctor | npm registry | Version lookup | CONTEXTNEST_DOCTOR_OFFLINE=1 skips |
Stored PromptOwl credentials live in the OS keyring (macOS Keychain, Windows Credential Manager, Linux Secret Service via secret-tool). With no keyring (headless/CI/Docker), set CONTEXTNEST_CREDENTIALS_KEY and they go to ~/.promptowl/credentials.enc.json (AES-256-GCM, scrypt-derived key, mode 0600). Never plaintext: a legacy ~/.promptowl/credentials.json is migrated on first read, then overwritten and deleted; with neither keyring nor key the CLI stops and says how to fix it. PROMPTOWL_ACCESS_TOKEN skips storage entirely.
For the solo developer
Your brain, cached for your agent.