Skip to content

Quick Start

Terminal window
curl --proto '=https' --tlsv1.2 -LsSf \
https://github.com/JaimeJunr/context-engine/releases/latest/download/ctx-engine-installer.sh | sh
ctx install --agent claude-code

Full install guide →

Generate a curated repo map ranked by relevance to a task:

Terminal window
cd your-rust-or-typescript-project
ctx map --title "Add OAuth login flow" --dirs src --max-tokens 4000

The output is text-format extracted signatures (no full file bodies) ranked by BM25 against the title and weighted by Personalized PageRank. Drop it into your LLM prompt.

JSON output for tool composition:

Terminal window
ctx map --title "..." --dirs src --format json

Run any command through the proxy and see the filtered output:

Terminal window
ctx exec git status # only modified files, no boilerplate
ctx exec cargo test # only failures preserved
ctx exec kubectl logs my-pod # logs deduplicated (×N grouping)

Token-saving report:

Terminal window
ctx exec report

Build the symbol graph for your project, then query it:

Terminal window
ctx graph index --dirs src
ctx graph callers some_function
ctx graph trace handle_request --depth 3
ctx graph impact migrate_database

Results are ranked by relevance to the query and respect a token budget — unique features vs CodeGraph.

Index your documentation and search it:

Terminal window
ctx add my-project --source ./docs --include "**/*.md"
ctx index my-project --with-embed # requires Ollama, see install guide
ctx search my-project "how does authentication work?"

After ctx install --agent claude-code, ten MCP tools are available to Claude:

ToolFunction
ctx_execRun command with compression
ctx_searchSemantic search in catalog
ctx_mapGenerate repo map
ctx_listList catalogs
ctx_graph_indexIndex project for graph
ctx_callersWho calls this symbol?
ctx_calleesWhat does this call?
ctx_traceCaller chain up to depth
ctx_impactWhat breaks if I change X?
ctx_nodeWhere is X defined?

You can call them manually too:

Terminal window
ctx mcp tools # list available tools
ctx mcp serve # start stdio server (used internally by the agent)