What is CtxNest?
CtxNest is a local MCP server that gives AI coding agents a persistent knowledge vault (Brain), sandboxed command execution (Hands), and learning feedback (Eyes). It integrates with local markdown files, SQLite FTS5, and git, and is designed for developers using Claude Code, Cursor, Gemini, or Codex.
How to use CtxNest?
Configure commands in a ctxnest.json file; the server then exposes them as sandboxed MCP tools. The agent can invoke any of the 46 MCP tools directly, with optional human approval before execution. The server runs entirely locally with no external network calls.
Key features of CtxNest
- Markdown knowledge vault with SQLite FTS5 full-text search
- Git-backed versioning and cross-project context retrieval
- Sandboxed tool execution: no shell, locked working directory, clean environment
- Optional human approval gate before any command runs
- Stdout capture, Brain diffs, and journal_append for agent learning
- 100 % local, zero egress of data
Use cases of CtxNest
- An AI agent reads project documentation from the vault instead of manual copy-pasting
- A developer defines safe shell commands in
ctxnest.json and lets the agent run them
- The agent records learnings after each task so the next session starts smarter
- Cross-project context sharing across multiple codebases without duplicating docs
评论