ao-plugin-agent-aider 0.1.0

Aider agent plugin for the ao-rs orchestrator
Documentation

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 when permissions is permissionless or auto-edit (or legacy skip, which normalizes to permissionless).
  • --model <value>: added when agent_config.model is set. The value is shell-escaped with single quotes to match the TS shellEscape helper.

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:

  1. If .aider.chat.history.md mtime is fresh → Active/Ready/Idle.
  2. Else if .aider.input.history mtime is fresh → Active/Ready/Idle.
  3. Else if git has recent commits → Active.
  4. Fallback: Ready.