Aider agent plugin.
Launches the aider CLI in interactive mode and delivers the initial task
via post-launch send_message (same flow as Claude Code).
Launch command (TS parity)
Mirrors the packages/plugins/agent-aider TypeScript plugin:
--yes: added whenpermissionsispermissionlessorauto-edit(or legacyskip, which normalizes topermissionless).--model <value>: added whenagent_config.modelis set. The value is shell-escaped with single quotes to match the TSshellEscapehelper.
Rules are delivered as part of the first send_message payload rather than
via a CLI flag — aider's --system-prompt behavior varies across providers,
so post-launch delivery is the safer default (consistent with Claude Code's
approach when no stable system-prompt flag is available).
Cost estimation
Aider does not expose structured token/cost data in a machine-readable form
(the TS reference's getSessionInfo explicitly leaves cost undefined).
cost_estimate therefore always returns None.
Activity detection
Aider writes local history files in the workspace by default:
.aider.chat.history.md.aider.input.history
Detection mirrors the TS plugin strategy:
- If
.aider.chat.history.mdmtime is fresh → Active/Ready/Idle. - Else if
.aider.input.historymtime is fresh → Active/Ready/Idle. - Else if git has recent commits → Active.
- Fallback: Ready.