Skip to main content
The Aider agent plugin integrates the Aider AI pair programming tool into Agent Orchestrator, providing a simple, git-aware agent with auto-commit functionality.

Overview

Aider is an AI pair programming tool that automatically commits changes to git. The plugin:
  • Launches Aider with prompt delivered inline
  • Detects activity by monitoring git commits and chat history
  • Uses Aider’s auto-commit feature to track completed work
  • Supports one-shot and interactive modes
Aider focuses on simple, git-integrated workflows. It lacks session introspection and metadata tracking compared to Claude Code or Codex.

Installation

Configuration

Configure in agent-orchestrator.yaml:

Configuration Options

string
Model to use (e.g., gpt-4-turbo, gpt-4, claude-3-opus)
enum
Approval mode:
  • skip: Auto-approve all changes (--yes)
  • Other values: Prompt for approval (default Aider behavior)
string
Custom instructions passed via --system-prompt
string
Path to system prompt file (loaded via shell command substitution)
string
Initial message sent via --message flag

How It Works

Launch Behavior

Aider is launched with the prompt included in the command:
Unlike Claude Code (which delivers prompts post-launch), Aider receives the prompt at startup.

Activity Detection

The plugin uses two signals to detect activity:
  1. Recent Git Commits: Checks if any commits were made in the last 60 seconds
  2. Chat History Mtime: Monitors .aider.chat.history.md modification time
Default threshold: 30 seconds

Auto-Commit

Aider automatically commits changes after each successful edit:
The plugin uses this to detect recent activity without needing JSONL session files.

Usage Examples

Spawn an Agent

Monitor Progress

Attach to Session

Limitations

Aider has limited introspection capabilities compared to other agents.

No Session Info

Aider does not expose structured session data. The plugin returns null for:
  • getSessionInfo(): No summaries, token counts, or cost tracking
  • getRestoreCommand(): No native resume support

No Metadata Updates

Unlike Claude Code and Codex, Aider does not automatically update session metadata. You must manually track PRs and branches:

Limited Activity Detection

Activity detection relies on git commits and file mtime:
  • Long-running tasks without commits appear idle
  • Chat history updates are less granular than JSONL events
  • No distinction between “ready” and “waiting for input” states

Troubleshooting

Cause: Aider hasn’t made a commit or updated chat history recentlySolution:
  1. Attach to session to check actual status:
  2. Check if Aider is waiting for approval (if permissions != skip)
  3. Reduce readyThresholdMs in config:
Cause: Aider hasn’t created the file yet, or using non-standard locationSolution:
  1. Check if file exists:
  2. Wait for Aider to make its first API call (file is created lazily)
  3. Verify Aider is running with chat history enabled (default)
Cause: Aider does not expose this dataSolution: Track costs manually via:
  • OpenAI/Anthropic billing dashboard
  • Shell history parsing (if using API keys with per-request tracking)
  • Aider’s built-in cost reporting (if available in CLI output)
Cause: Process name doesn’t match “aider”Solution: Check actual process name:
If Aider is installed as aider-chat or similar, the detection regex may fail. The plugin searches for the substring “aider” in the command line.

Comparison with Other Agents

Use Aider for simple, git-integrated workflows. For production deployments with cost tracking and metadata updates, use Claude Code or Codex.

Environment Variables

The plugin sets these variables:
string
required
Session identifier for orchestrator tracking
string
Project identifier (set by caller, not the plugin)
string
Issue/ticket identifier if applicable

Advanced Usage

Custom Commit Messages

Aider uses auto-generated commit messages. To customize:

Manual Chat History Parsing

Chat history is stored in Markdown format:

Integration with Git Hooks

Leverage Aider’s auto-commit with git hooks:
Make executable: