Agenthelm
π π βοΈ π π πͺ π§ - Shared, versioned memory and governance control plane for AI coding agents. Compiler pipeline resolves architectural decision conflicts across Claude Code, Cursor, and custom agent fleets. npx -y agenthelm-mcp
Quick Install
{
"mcpServers": {
"jayasukuv11-beep-agenthelm": {
"command": "npx",
"args": [
"-y",
"jayasukuv11-beep-agenthelm"
]
}
}
}Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.
Documentation Overview
AgentHelm gives AI coding agents (Claude Code, Cursor, Windsurf, custom Python/Node fleets) a shared, versioned Project Brain. Agents remember architecture, API conventions, schemas, and trade-offs across sessions instead of starting from zero.
π§ The Project Brain Loop
graph TD
A[Agent Starts Task] --> B[Get Rich Context from Project Brain]
B --> C[Agent Executes Task]
C --> D[Propose New Knowledge/Decisions]
D --> E[Brain Compiler Validates & Resolves Conflicts]
E --> F[Update Project Brain Release]
F --> A
- Get Context: On startup, an agent fetches versioned, compiled architecture & database context.
- Execute Safely: Agent operates within token budgets and Telegram HITL safety guardrails.
- Propose Knowledge: As agents discover schemas or make design trade-offs, they propose knowledge entries.
- Compile & Evolve: The Brain Compiler verifies evidence, resolves conflicts, and releases the next Project Brain version.
β‘ 60-Second Setup: Model Context Protocol (MCP)
Plug AgentHelm directly into Cursor, Claude Code, or Claude Desktop:
Add to .cursor/mcp.json or claude_desktop_config.json
{
"mcpServers": {
"agenthelm": {
"command": "npx",
"args": ["-y", "agenthelm-mcp"],
"env": {
"AGENTHELM_CONNECT_KEY": "ahe_live_YOUR_KEY_HERE",
"AGENTHELM_PROJECT": "your-project-name"
}
}
}
}
Exposed MCP Tools
get_context: Query versioned project architecture, database schemas, and conventions.propose_knowledge: Propose new engineering decisions and codebase discoveries.get_history: Audit version history logs, diffs, and decision trace blame.
π Programmatic SDKs
Python SDK
pip install agenthelm-sdk
from agenthelm import Agent
# Connect to control plane and fetch project brain context
agent = Agent(key="ahe_live_...", name="Architect Agent", project="My App")
# Get context for database schema
context = agent.get_context(category="database")
print("Project Context:", context.entries)
# Propose new knowledge to the Brain Compiler
agent.propose_knowledge(
summary="Migrate authentication from JWT to Session Cookies",
decisions=["Use session IDs mapped to Redis backend"],
files_modified=["lib/auth.ts", "middleware.ts"],
confidence=95
)
Node.js SDK
npm install agenthelm-node-sdk
import { Agent } from 'agenthelm-node-sdk';
const agent = new Agent({
key: 'ahe_live_...',
name: 'Support Bot',
project: 'My App'
});
agent.log('Analyzing sentiment...', 'info');
agent.output({ score: 0.92 }, 'sentiment_results');
π² Human-in-the-Loop (HITL) Safety Gate
AgentHelm prevents autonomous catastrophic actions. Mark functions as @irreversible to trigger inline Telegram approval gates:
β οΈ Irreversible Action Requested
Agent:Cloud Architect
Action:destroy_infrastructure
Payload:{"region": "us-east-1"}[ β Approve ] [ β Reject ]
ποΈ Key Architecture Pillars
- π§ Brain Compiler: Versioned knowledge engine resolving schema and architectural decision conflicts.
- π Fleet Observability: Real-time telemetry, token cost tracking, and execution tracing.
- π‘οΈ Safety Firewall: Classification decorators (
@read,@side_effect,@irreversible) with fail-closed default safety. - βΈοΈ Remote Mission Control: Pause, resume, or override agent state directly from agenthelm.online.
π Dashboard & Community
- Web Dashboard: https://agenthelm.online
- Documentation: agenthelm.online/docs
- Issues & Support: GitHub Issues
βοΈ License
MIT Β© AgentHelm Team