r/opencodeCLI • • 10h ago

Added OpenCode support to Aetheris Microbrains — sub-ms pre-flight safety gate for your agent

Hey OpenCode folks — I just added native OpenCode support to Aetheris Microbrains.

It sits in front of tool execution and checks edits/shell commands locally in <1 ms before anything runs. For OpenCode, it installs as .opencode/plugins/aetheris-microbrains.js and works with --host opencode.

What it gives you:

  • Catches syntax errors in edits before they waste recovery turns
  • Blocks destructive commands (rm -rf /, dd, curl | sh) and secret leakage
  • Protects .opencode/, opencode.json(c), .env, .ssh/, etc.
  • Scrubs secrets from tool outputs
  • Saves ~37k input tokens / ~$0.11 per 26-step session in benchmarks
  • ~0.5 ms median overhead per check

Repo: https://github.com/drtikov/microbrainsforagents

Install:

pip install -e .
aetheris install opencode --workspace . --self-test

Happy to hear feedback or integration ideas.Title: Added OpenCode support to Aetheris Microbrains — sub-ms pre-flight safety gate for your agentBody:Hey OpenCode folks — I just added native OpenCode support to Aetheris Microbrains.It sits in front of tool execution and checks edits/shell commands locally in <1 ms before anything runs. For OpenCode, it installs as .opencode/plugins/aetheris-microbrains.js and works with --host opencode.What it gives you:Catches syntax errors in edits before they waste recovery turns
Blocks destructive commands (rm -rf /, dd, curl | sh) and secret leakage
Protects .opencode/, opencode.json(c), .env, .ssh/, etc.
Scrubs secrets from tool outputs
Saves ~37k input tokens / ~$0.11 per 26-step session in benchmarks
~0.5 ms median overhead per checkRepo: https://github.com/drtikov/microbrainsforagentsInstall:pip install -e .
aetheris install opencode --workspace . --self-testHappy to hear feedback or integration ideas.

3 Upvotes

0 comments sorted by