drtikov/microbrainsforagents
Local policy gate and MCP router for screening coding-agent actions before execution
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Aetheris Microbrains is a local policy gate and optional tool router for coding agents. Host adapters normalize tool events before execution; the engine returns allow, ask, or deny, and the adapter translates the result into the host's permission protocol. The MCP proxy offers a separate interception point for traffic routed to downstream servers. Running an MCP service alone does not put the gate in front of an agent's native shell or editing tools.
The aetheris_microbrains core uses only the Python standard library. The optional router extra adds NumPy for ToolRoutingMoE and conformal routing without making policy enforcement depend on it. Some host integrations can use the native aetheris-gate shim; aetheris policy-ir-check checks parity of the shared policy_ir.json representation across Python and Rust. Policy parity is distinct from whether a host intercepts and handles every intended event.
Key Capabilities & Differentiators
The gate inspects edits with AST or structural scanners across Python, JS/TS, Go, Rust, SQL, Terraform, and Dockerfile. It tokenizes shell commands with awareness of command wrappers, checks deferred supply-chain execution targets, and applies policy to sensitive file access and potential credential leakage. Pre-execution inspection can block an operation; post-tool hooks on supported hosts can instead inspect returned content and surface warnings. These are different control points, not interchangeable guarantees.
Operational tools include MCP manifest auditing via aetheris doctor --scan-mcp, downstream MCP proxying with secret brokering, JSONL decision replay, and a pre-merge diff gate with SARIF output. The sub-2 ms figure refers to local CPU evaluation, not end-to-end hook or proxy latency. Cold starts, input size, host handoff, and downstream calls should be measured separately.
Trade-offs & Limitations
Compared with host-native approvals, Microbrains adds reusable inspection rules and decision replay across agents, at the cost of another policy layer to tune. Compared with OS or container sandboxing, it can make more context-aware decisions about the proposed command or edit, but it does not provide kernel-enforced isolation or cover execution paths outside the configured hooks or proxy. Allow means the request passed the active policy, not that arbitrary code is safe to execute.
Integration assurance varies: Claude Code and Codex are listed as end-to-end tested, while Qoder and Qwen Code are listed as configuration- and contract-tested. Validate matchers, failure behavior, and approval handling for the particular host before relying on enforcement. The Claude skill installer can auto-approve escalations by default, so teams requiring human review should explicitly disable that behavior. Apache-2.0 accommodates commercial deployment, but does not resolve audit-data handling or upstream agent obligations.
Hardware & Deployment Guide
Install aetheris-microbrains for the packaged path or use pip install -e . from a checkout. The manifest lists Python 3.10–3.13. Core policy evaluation runs locally on CPU without a model service or GPU; the upstream coding agent may still use a remote model. Install .[router] only if you need the optional router, and configure interception per host rather than assuming that installing the package enables protection.
For Claude Code, start with the installer in --shadow mode, use --self-test to verify wiring, and explicitly review escalation settings before enforcement. For Cline, aetheris install cline --self-test is the host-specific entry point; the VS Code workspace target and CLI hooks are configured separately. The MCP proxy can run over stdio without a listening port. The package manifest reports version 0.9.0 with Beta status, but there is no listed GitHub release from which to establish a release cadence.
aetheris policy-ir-check checks shared policy representation parity.aetheris mcp-proxy --stdio fronts configured downstream servers and offers secret brokering.Teams running coding agents with supported hooks that want local pre-execution checks, shared policy across hosts, or auditable MCP traffic.
Native approvals already meet your needs, or you need a hard isolation boundary and expect a hook or MCP proxy to enforce it on its own.
Quick Start & Installation
git clone https://github.com/drtikov/microbrainsforagents.git cd microbrainsforagents pip install -e .
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| microbrainsforagents ★ | 55 | +11 | Python | Apache-2.0 | Local policy gate and MCP router for screening coding-agent actions before execu |
| skills | 204.1k | +2.5k | Python | — | A Claude Agent Skills catalog for packaging and reusing task workflows |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| last30days-skill | 80.4k | +3.9k | Python | MIT | An agent skill with a CLI and MCP bundle for cited, cross-source 30-day research |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/drtikov/microbrainsforagents.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about microbrainsforagents
Should I install a host hook, run the MCP proxy, or use both?
aetheris mcp-proxy --stdio for calls to downstream MCP servers routed through the proxy. The proxy cannot enforce policy on native operations it never sees. Verify both paths separately before assuming coverage.Does it need a GPU, and how should I estimate overhead?
Can we self-host it commercially, and does local execution settle compliance?
When is this worth adding over native permissions or a sandbox?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy