Context
context_pack
Returns a ranked, cited, token-budgeted bundle for the current task.
Case study / Context engineering
Contextful gives AI coding agents a local way to find the right files, compress the evidence, and remember decisions across sessions.
It runs as a CLI and MCP server for Codex, Claude Code, Cursor, Windsurf, GitHub Copilot, VS Code, Cline, Roo Code, Continue, and Zed.
Project
Contextful
Category
Context engineering, MCP server, local code search, and agent memory
Core loop
Index workspace, search code/docs/symbols, return context pack, store evidence-backed lessons
Primary surfaces
cxf CLI, MCP server, generated agent instructions, local state directory
Storage
SQLite, FTS5 search tables, graph tables, adjacency cache, memory ledger
Repository
github.com/Inferensys/contextful
Product problem
The agent asks one question and receives ranked citations inside a token budget.
Contextful searches code, docs, symbols, graph relationships, and saved memory through one local index.
A memory write needs file, symbol, or pack evidence so future sessions can trust the lesson.
Repository
The repo includes the TypeScript package, MCP server, CLI, SQLite schema, search engine, memory ledger, tests, docs, and npm package metadata.
github.com/Inferensys/contextfulSource repositoryAgent interface
Contextful gives agents the actions they need for project context without turning the MCP server into a general shell.
Context
Returns a ranked, cited, token-budgeted bundle for the current task.
Search
Searches code, docs, symbols, and memory through the local index.
Graph
Traces file, symbol, module, and config relationships.
Change risk
Finds likely dependents and tests for a file, symbol, or module.
Memory
Stores durable lessons only when the agent provides evidence references.
Client support
The package is presented as a local MCP bridge for Codex, Claude Code, Cursor, Windsurf, GitHub Copilot, VS Code, Cline, Roo Code, Continue, and Zed.

Product surfaces
The diagrams show the problem Contextful addresses and the search model behind the product.
Context window
Contextful indexes the project locally and returns compact evidence instead of asking the agent to read broad file sets.

Search engine
The retrieval path combines lexical search, symbols, docs, graph relationships, and memory hits.

System architecture
The system keeps source code on the developer machine while giving agents a structured retrieval and memory layer.
Index
Discovers files, skips ignored paths, reads content, and extracts chunks, symbols, and edges.
Store
Stores files, chunks, graph nodes, graph edges, fingerprints, evidence packs, queries, and memories locally.
Retrieval
Classifies queries for memory, impact, history, architecture, docs, exact lookup, or vague search.
Output
Saves context packs with citations, related files, symbols, graph paths, memory hits, confidence, and token estimates.
Memory
Marks lessons stale when indexed files change, so old context does not silently carry forward.
Use cases
Contextful fits teams building coding agents, AI developer tools, internal copilots, and MCP-enabled engineering workflows.
Agents
Give agents a repeatable way to fetch project context before editing code.
MCP
Expose code search, context packs, graph tracing, and memory through typed MCP tools.
Search
Support exact lookup and vague project questions with local codebase indexing.
Memory
Carry decisions, lessons, and project facts across coding sessions with evidence attached.
Retrieval
Use ranked local evidence as the retrieval layer for internal software engineering agents.
Operating loop

01
The cxf CLI creates local Contextful state and generated agent instructions.
02
The indexer records files, chunks, symbols, graph edges, language counts, git commit data, and warnings.
03
The coding agent calls context_pack or search_code with a query and optional token budget.
04
Contextful returns citations, file reasons, symbols, graph paths, memory hits, confidence, and token estimate.
05
Useful lessons can be saved only when the agent attaches valid evidence references.
FAQ
Answers for teams evaluating context engineering, MCP code search, agent memory, and local codebase indexing.
Contextful is a local context engine for AI coding agents. It indexes a workspace and exposes code search, context packs, graph tracing, impact analysis, git-history context, and evidence-backed memory through a CLI and MCP server.
It gives agents a direct way to ask for ranked, cited project context instead of reading many files manually. That helps the agent start with better evidence before planning or editing code.
Yes. Contextful ships an MCP server with tools for context_pack, search_code, trace_path, impact_analysis, why_changed, recall_memory, and write_lesson.
No. The current design is local-first. The README states that V1 does not call external embedding APIs, upload source code, edit source files, auto-fix code, or install dependencies inside the target workspace.
Contextful is early alpha open-source software. It is useful as a reference build for context engineering, MCP developer tools, local code search, and agent memory systems.
Output gallery
Contextful cover, supported clients, context-window diagram, and retrieval model.
Contextful cover

Supported clients

Context window

Search model
Contact
Share what you are building, where you need help, and what needs to ship next. We will reply with the right next step.
01
NDA available
We can start under NDA when the work requires it.
02
Direct team access
You speak directly with the team doing the technical work.
03
Clear next step
We reply with a practical recommendation on scope, implementation, or rollout.
30m
working session
Direct
team access