feat(agents): add aider adapter#125
Conversation
Greptile SummaryAdds the Aider agent adapter as a "Tier C" integration (no lifecycle hooks, no native session ID), following the same structural pattern as the existing
Confidence Score: 5/5Safe to merge; the adapter is narrowly scoped, all methods are well-tested, and the registration plumbing is one-line additions consistent with every other shipped adapter. The change introduces a self-contained new adapter with no shared mutable state beyond a per-instance binary cache, and the wiring test confirms end-to-end resolver resolution. The only notable inconsistency — GetLaunchCommand not re-checking the context once the binary is cached — does not affect correctness or data integrity. No files require special attention; aider.go is the most substantive change but is well-covered by the accompanying test file. Important Files Changed
Sequence DiagramsequenceDiagram
participant Manager as Session Manager
participant Plugin as aider.Plugin
participant Cache as resolvedBinary cache
participant Resolver as ResolveAiderBinary
participant FS as PATH / filesystem
Manager->>Plugin: GetLaunchCommand(ctx, cfg)
Plugin->>Cache: resolvedBinary set?
alt binary cached
Cache-->>Plugin: return resolvedBinary (ctx NOT checked)
else not cached
Plugin->>Resolver: ResolveAiderBinary(ctx)
Resolver->>Resolver: ctx.Err() check
Resolver->>FS: exec.LookPath("aider")
FS-->>Resolver: path or ""
Resolver-->>Plugin: binary path
Plugin->>Cache: store resolvedBinary
end
Plugin->>Plugin: build argv [-m prompt, approval flags, headless flags, --read]
Plugin-->>Manager: []string cmd
Manager->>Plugin: GetAgentHooks(ctx, cfg)
Plugin-->>Manager: ctx.Err() (no-op)
Manager->>Plugin: GetRestoreCommand(ctx, cfg)
Plugin-->>Manager: nil, false, nil (no native resume)
Reviews (2): Last reviewed commit: "feat(agents): add aider adapter" | Re-trigger Greptile |
Registers the aider harness, stacked on the agent platform. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds the aider harness, stacked on #119 (agent platform). Adapter package +
Constructors()registration + resolver test.🤖 Generated with Claude Code
Stack