← Back to Leaderboard
Mdrtikov

drtikov/microbrainsforagents

Local policy gate and MCP router for screening coding-agent actions before execution

View on GitHub ↗
Engineering Health (Methodology)
A · 79/100
Maintenance Activity
● Updated today
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption13/25
Release Cadence11/20
License Clarity20/20
CLIMCPLocal AISelf-Hosted
Total Stars
★ 55
24h Growth
+0
7d Growth
+11
Forks
8

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

drtikov/microbrainsforagents Star History (2026-11-16 - 2026-12-03) DAILY STAR HISTORY (18-DAY D1 TELEMETRY) +54 in 17d · avg +3/day 59 30 0 2026-11-16: ★ 12026-11-18: ★ 142026-11-20: ★ 182026-11-22: ★ 242026-11-24: ★ 382026-11-26: ★ 442026-11-28: ★ 492026-11-30: ★ 552026-12-02: ★ 552026-12-03: ★ 55 ★ 55 11-16 11-24 12-03

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Execution boundary: Host adapters normalize tool events and map allow, ask, and deny back to native controls.
Inspection: Structural diff checks span Python, JS/TS, Go, Rust, SQL, Terraform, and Dockerfile; shell tokenization accounts for wrappers.
Runtime: Standard-library Python core with an optional Rust shim; aetheris policy-ir-check checks shared policy representation parity.
Routing: Optional NumPy ToolRoutingMoE with conformal routing, separate from core policy enforcement.
MCP gateway: aetheris mcp-proxy --stdio fronts configured downstream servers and offers secret brokering.
Policy operations: Shadow mode, JSONL decision replay, and SARIF output for a pre-merge CI gate.
Best For

Teams running coding agents with supported hooks that want local pre-execution checks, shared policy across hosts, or auditable MCP traffic.

Skip If

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.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIMCPLocal AISelf-Hosted
git clone https://github.com/drtikov/microbrainsforagents.git
cd microbrainsforagents
pip install -e .

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
microbrainsforagents ★55+11PythonApache-2.0Local policy gate and MCP router for screening coding-agent actions before execu
skills204.1k+2.5kPython—A Claude Agent Skills catalog for packaging and reusing task workflows
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
last30days-skill80.4k+3.9kPythonMITAn 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/drtikov/microbrainsforagents.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

drtikov/microbrainsforagents Star History on RepoForAI

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?

Use the host hook for shell, file, and edit operations that the agent runs directly. Use 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?

The base engine uses the Python standard library and runs on CPU, so it has no GPU or VRAM requirement. The optional NumPy router is a separate path. Measure policy evaluation separately from hook startup and report end-to-end latency under realistic payloads and concurrency; the sub-2 ms figure is not a sizing guarantee.

Can we self-host it commercially, and does local execution settle compliance?

Apache-2.0 permits commercial use and self-hosting. If you redistribute the software, comply with the applicable license and notice requirements, and review optional dependencies separately. Local enforcement does not keep an upstream agent's requests local or settle how tool arguments and audit data should be retained.

When is this worth adding over native permissions or a sandbox?

Native permissions may be enough if you only need a few approvals in one host. Microbrains is more useful when several hosts need shared policy, structural inspection, and replayable decisions. Keep the OS or container sandbox if you need hard filesystem, process, or network restrictions; the gate only evaluates operations it receives.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining drtikov/microbrainsforagents? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature drtikov/microbrainsforagents on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare