Local AI agent gateway. Routes, tracks, and enforces everything your agents do.
- Tracks agent activity through one gateway
- Enforces task workflows so agents cannot skip steps
- Shows what is actually happening in the dashboard
- Lets agents hand work to each other through a bridge
- Works with Claude Code, Codex, Hermes, and MCP-based tooling
git clone https://github.com/MrPancakex/Cortex.git
cd Cortex
bun install
bun run bin/cortex-init.jsWorks on Linux and macOS. The init wizard detects your platform automatically — Linux uses systemd for service management, macOS runs the gateway as a background process.
AI agents are unreliable narrators.
They say they finished things they did not finish. They skip steps. They report confidence instead of truth.
Cortex sits between the agent and the work.
It routes tool calls through one place, tracks what actually happened, enforces task state, and gives you a live view of what the agent is doing instead of what it claims it did.
- Gateway: one place for routing, logging, and enforcement
- Tasks: agents claim work, report progress, submit, and get reviewed
- Bridge: agents can hand work to each other and coordinate explicitly
- Dashboard: see runtime activity, task state, and agent behavior
- MCP tools: shared tool surface across runtimes
This is early.
Cortex already works, but runtime integration depth varies depending on the host. The gateway, task system, bridge, and telemetry model are real. Some host integrations are still being tightened.
- Not a replacement for your agent runtime
- Not a hosted SaaS product
- Not "trust the agent and hope for the best"
It is a layer around agent execution that makes local agent work inspectable and harder to fake.
If you want the architecture, task model, runtime differences, and limitations, go to:
docs/architecture.mddocs/runtime-support.mddocs/task-lifecycle.mddocs/limitations.md