Governed context for your agents, from a terminal in a minute.
Create, add, approve, query.
- 1
Create a vault
One command creates a vault in the current folder: plain Markdown with YAML frontmatter, versioned and hash-chained. Add --starter developer for folders for architecture decisions, standards and runbooks.
Terminal$ npm install -g @promptowl/contextnest-cliTerminal$ ctx init --starter developer - 2
Add a document
Documents live under nodes/. Each one gets a title, tags and a body.
Terminal$ ctx add nodes/architecture/auth --title "Auth design" --tags "#architecture" --body "We use OIDC with short-lived tokens." - 3
Approve it
Review is on by default, so a new document waits as pending_review and search won't return it yet. Approve it, and it's published and searchable. (To skip review in a personal vault: ctx config set review off.)
Terminal$ ctx review listTerminal$ ctx review approve nodes/architecture/auth - 4
Query it
Full-text search, or a selector that returns the same documents for the same question every time.
Terminal$ ctx search "auth"Terminal$ ctx query "#architecture"
Connect Claude Code, Claude Desktop or Cursor over MCP.
Claude Code
$ claude mcp add contextnest -e CONTEXTNEST_VAULT_PATH=/absolute/path/to/your/vault -- npx -y @promptowl/contextnest-mcp-serverOr install the ContextNest plugin inside Claude Code, which adds capture, curator and retriever agents: /plugin marketplace add promptowl/contextnest, then /plugin install contextnest.
Claude Desktop and Cursor
Add this to claude_desktop_config.json (Claude Desktop) or ~/.cursor/mcp.json (Cursor), then restart the app.
{
"mcpServers": {
"contextnest": {
"command": "npx",
"args": ["-y", "@promptowl/contextnest-mcp-server"],
"env": { "CONTEXTNEST_VAULT_PATH": "/absolute/path/to/your/vault" }
}
}
}Move to a shared server
When your team needs the same vault, push it to a self-hosted or hosted ContextNest server. Same files, no migration.
$ ctx push --server https://your-server --nest <nest-id> --key <api-key>What's open, and what isn't.
| Component | Package or repository | License |
|---|---|---|
| CLI | @promptowl/contextnest-cli | AGPL-3.0 |
| Engine | PromptOwl/ContextNest | AGPL-3.0 |
| MCP server | @promptowl/contextnest-mcp-server | AGPL-3.0 |
| Claude Code plugin | promptowl/contextnest | AGPL-3.0 (in the ContextNest repository) |
| Open spec | PromptOwl/context-nest-spec | Apache-2.0 |
| Starter vaults | PromptOwl/context-nest-starters | Apache-2.0 |
| Desktop app | ContextNest Desktop | Commercial license, free to use with a free account |
| Community server | @promptowl/contextnest-community | Commercial license, free for up to 10 users with a free license key |