r/kilocode • u/drtikov • 2d ago
Aetheris Microbrains now integrates with Kilo Code — sub-2ms pre-flight safety gate
Just integrated [Aetheris Microbrains](https://github.com/drtikov/microbrainsforagents) into Kilo Code. It's a deterministic pre-flight policy engine that sits in front of every tool call and shell command.
**What it catches (benchmarked):**
- 100% of syntax errors in code edits before execution (AST parsing)
- Destructive commands: `rm -rf /`, `dd`, `curl | sh`, piped exfiltration
- Secret leaks: API keys (OpenAI, Anthropic, Stripe, GitHub, AWS), DB URIs, JWTs, PEM keys
- MCP tool schema poisoning / prompt injection / rug-pulls
- Supply-chain deferred execution (Makefile, package.json, CI workflows)
**Measured benefits (26-step session A/B):**
- 12/12 hazards caught, 0 false positives
- 8 wasted recovery turns eliminated
- ~37k input tokens saved (~$0.11/session)
- <1ms mean latency per check
**Setup (2 commands):**
```bash
pip install -e "git+https://github.com/drtikov/microbrainsforagents#egg=aetheris_microbrains[mcp]"
aetheris install kilocode --profile dev --auto-approve-escalations
```
Start the warm daemon for <1ms latency:
```bash
aetheris-daemon --http --host kilocode --port 8765 --token your-token --detach
```
Repo: https://github.com/drtikov/microbrainsforagents
Works alongside Kilo's existing permissions — adds a defense-in-depth layer that runs locally on CPU, zero network/GPU. Happy to answer questions.


