# Repository Briefing: drtikov/microbrainsforagents
> Source: https://repoforai.com/repo/drtikov/microbrainsforagents (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/drtikov/microbrainsforagents
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A (79/100 · Maintenance 35/35 · Adoption 13/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: CLI, MCP, Local AI, Self-Hosted
- **Momentum**: 55 ★ total (+0 24h / +11 7d) · 8 forks
- **Topics**: `ai-agents`, `conformal-prediction`, `continual-learning`, `counterfactual-reasoning`, `edge-ai`, `hyperdimensional-computing`, `llm-orchestration`, `micro-transformer`, `mixture-of-experts`, `numpy`, `opencl`, `python`
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
git clone https://github.com/drtikov/microbrainsforagents.git
cd microbrainsforagents
pip install -e .
```
