JacBrain
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@JacBrain find relevant Jac context for an offer-search walker in project demo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
JacBrain
A project memory for AI agents building with Jac.
Keep useful knowledge. Find what matters. Check it with the compiler.
Try it · How it works · Roadmap
The idea
An AI coding agent often has to look up the same language rules and work through the same errors across sessions. JacBrain gives it a place to keep and find that knowledge.
It connects notes, code, compiler errors, and candidate fixes in a knowledge graph: a collection of records linked by how they relate. When an agent starts a task, JacBrain returns a small selection of relevant records for that project and Jac version.
The goal is to build effectively with Jac using less repeated explanation and fewer reference tokens. JacBrain supplies reusable language knowledge even when an agent does not reliably know Jac. It does not retrain the agent.
Related MCP server: MCP Memory Keeper
How it works
flowchart LR
A[Save notes and code] --> B[Find context for a task]
B --> C[Agent proposes code]
C --> D[Jac compiler checks it]
D --> E[Keep the result]
E --> BFor example, an agent working on an offer-search walker can ask for related notes and code. JacBrain returns matching records with their sources. The agent can then submit a candidate snippet to the real Jac compiler and keep the result for later retrieval.
A compiler pass means the snippet compiles. Tests are still needed to show that it behaves correctly.
Try it
You need Python 3.11+. This first example needs no Jac installation, API key, or extra Python packages. These commands work in PowerShell or Bash:
git clone https://github.com/CosmonautJones/jacbrain.git
cd jacbrain
# Save a sample note and code file
python -m jacbrain ingest examples/walker-note.md --project demo
python -m jacbrain ingest examples/walker-pattern.jac --project demo
# Ask for relevant context
python -m jacbrain context "walker Offer traversal" --project demoYou’ll get JSON containing matching records, their sources, and validation
status. Data stays in .jacbrain/brain.sqlite3 on your machine. Choose only
nonsecret files to ingest.
Next: connect a coding agent and enable compiler checks →
Load Jac's actual reference guides
With Jac 0.37.23 available, import its bundled knowledge once:
python -m jacbrain sync-guides
python -m jacbrain context "walker with one typed report after traversal" --project my-appThis imports the installed guides, splits them into source-linked sections, and connects their explicit references. Task queries can then use that language knowledge alongside your project's notes. Re-run the import to refresh it. See the Windows setup if Jac runs in WSL.
Where it stands
Early working foundation. You can use the local tools today; the complete learning loop is still being built.
Working today | Still to build |
Import versioned Jac guides and save project evidence locally | Extract project relationships with Jac’s compiler |
Retrieve context by task, project, and Jac version | Connect the native Jac graph to persistent storage |
Check snippets through Jac MCP and save the results | Verify fixes against full projects and behavioral tests |
Use the CLI, MCP interface, and separate Jac graph demo | Measure broader tasks, repairs, and graph-specific value |
The persistent service currently uses Python and SQLite. The Jac nodes, edges, and walkers form a separate runnable graph model. “Learning” here means keeping evidence across sessions, not training an AI model.
First measured result
In a four-task pilot, selected context used 73% fewer reference tokens than curated complete guides. Both approaches passed all four compiler and behavior checks. Total observed model input fell by 16%, including tool overhead.
That is an encouraging small result, not proof of general savings. Graph and plain section retrieval returned identical context, so the graph itself has not yet shown an advantage. Read the experiment and its limits →
Explore further
I want to… | Start here |
Connect my agent or check code | |
Understand the design | |
Run the native Jac graph | |
See the API and data format | |
See what was tested | |
Contribute or troubleshoot |
Jac already provides MCP tools and code-context queries. JacBrain builds on that work and explores memory across tasks. Our prior-art review covers related projects and the questions we still need to test.
Built by Travis Jones, inspired by working with Jac on the M-Local team project. Independent of the Jac/Jaseci maintainers. MIT licensed.
Available Tools
3 toolscontextB
Return task context from project memory and installed Jac guides, scoped to exact Jac version.
Inputs: task (required), project (required), jac_version (required), max_bytes, +2 more.
ingestC
Ingest one explicitly selected local Markdown/text/Jac file.
Inputs: path (required), project (required), jac_version (required).
validateC
Compile trusted candidate source through real Jac MCP; not runtime testing or sandboxing.
Inputs: identity (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: context retrieves task context, ingest loads a file, and validate compiles source. There is no overlapping action or resource, and the descriptions reinforce the separation.
All tool names are single lowercase words, but 'context' is a noun while 'ingest' and 'validate' are verbs, creating a mixed convention. It is readable but not a consistent verb_noun pattern.
Three tools is lean but each covers a distinct stage in the Jac memory and validation workflow. The set is well-scoped, though slightly under the typical 3-15 range for a domain with potential CRUD operations.
The surface covers retrieval, ingestion, and validation, but lacks update/delete/forget or listing operations for project memory. Ingest also handles only one explicitly selected file, leaving notable lifecycle gaps.
Maintenance
Related MCP Connectors
Project memory, documentation and controlled secret access for AI coding agents.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Project memory for coding agents: requirements, decisions, code graph and delivery telemetry.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides AI coding agents with fast, deterministic access to code graphs, knowledge lifecycle state, and cross-document symbol links, enabling compact context retrieval and seamless session handoffs.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding assistants to persistently save, search, checkpoint, and restore project context across sessions, including decisions, progress, and file state. It supports shared channels, git-aware organization, and batch operations for long-running or parallel development workflows.195 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding assistants to persist context across sessions by saving, searching, checkpointing, restoring, and organizing decisions, progress, files, and Git-related state.195 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding assistants to persistently save, search, and restore project context across sessions, including decisions, progress, file caches, checkpoints, and channel-based memory. It supports git-aware organization, batch operations, and shared memory across parallel sessions.195 npmMIT