mimocode-herdr
v0.1.2
Published
Herdr integration plugin for MiMo Code — reports agent state to herdr terminal workspace manager
Maintainers
Readme
mimocode-herdr
Herdr integration plugin for MiMo Code.
Reports agent state (idle / working / blocked) to herdr terminal workspace manager via its socket API.
Install
{
"plugin": ["mimocode-herdr"]
}Add this to your ~/.config/mimocode/mimocode.json (or project-level .mimocode/mimocode.json), then restart MiMo Code.
How it works
When MiMo Code runs inside a herdr pane (detected via HERDR_ENV=1), this plugin:
- Reports the agent as
opencodeto herdr (reuses opencode's full lifecycle hook authority) - Overrides the display name to
mimocodeviapane.report_metadata - Tracks session events and reports state transitions:
session.status(busy/idle) → working / idlepermission.asked/question.asked→ blockedsession.idle→ idleserver.instance.disposed→ releases agent on exit
Outside a herdr environment, the plugin does nothing.
Exit handling
mimo exits via server.instance.disposed (a bus event), not process signals. The plugin registers process.on("exit") as a safety net, using a Worker thread with Atomics.wait for synchronous socket I/O — no external binaries or process.execPath dependency.
License
MIT
