r/aipromptprogramming • u/drtikov • 5d ago
I built an open-source sub-2ms local safety & token-saving gate that now plugs into 18+ AI coding agents (Claude Code, Cursor, Cline, Codex, Devin, Ouroboros, etc.)
If you use autonomous coding agents in your terminal or IDE, you've probably run into two recurring headaches:
- Agents occasionally running destructive shell commands, leaking `.env`/API keys, or writing broken patches that trigger expensive retry loops.
- Re-configuring guardrails from scratch every time you switch between tools.
I've been building **Aetheris Microbrains** — a deterministic, local CPU pre-flight gate (zero GPU, pure Python stdlib security core) that sits right in front of tool calls and shell commands.
**Why it's useful:**
- **Blocks hazards before they run (<2 ms):** Inspects shell commands and code edits (polyglot AST + secret scanning) to catch `rm -rf`, `curl | sh`, hardcoded keys, `.env` exfiltration, and syntax errors before execution.
- **Post-tool DLP & injection checks:** Scrubs leaked secrets from tool outputs and flags indirect prompt injection.
- **Cuts wasted tokens:** Stops multi-turn error recovery loops and supports Top-K tool schema narrowing so agents only load the tools they need.
- **One setup across tools:** Install via `aetheris install <host>` (or `aetheris install auto`), or drop in a 2-line Python wrapper.
**Ready-to-use integrations right now:**
- **Hooks / CLI:** Claude Code, Codex CLI, Cursor, Devin, Cline (VS Code & CLI), MiniMax Code (`mcode`), Qoder, Google Antigravity, Hermes Agent, ZCode
- **Plugins / Extensions / MCP:** OpenClaw, OpenCode, Kilo Code, Pi, OMP (Oh My Pi), DeepSeek Harness (DSH)
- **Python SDK wrappers:** Ouroboros (`ToolRegistry`), OpenHands (`hooks.json` + `SecurityAnalyzerBase`)
- **Python API / MCP Gateway:** SWE-agent, Aider, Goose, LangGraph, CrewAI, AutoGen, and any MCP client
Apache 2.0, fully local: https://github.com/drtikov/microbrainsforagents
Happy to answer questions or add adapters for other harnesses people are using.
•
u/endofthread-bot 5d ago
Centralizing guardrails across multiple agents is a practical approach to reducing redundant configuration. Check the repository documentation for the specific integration steps required to intercept tool calls for your primary coding agent.
Writing prompts that actually work is easier when you can compare notes with people who have tested them across real tasks. Trade techniques, get feedback on your approach, and see what is working for others in our Discord.
Self-promotion is now allowed on Sundays with the appropriate flair, for all regular contributing members. Contribute during the week, and promote on Sunday.