feat(agents): add vibe adapter#137
Conversation
c01750c to
3f59c4e
Compare
Greptile SummaryIntroduces the Mistral Vibe agent adapter, following the same structure as the existing sibling adapters (kilocode, kiro, etc.). The adapter is registered in the
Confidence Score: 5/5Safe to merge; all four files are additive, the adapter correctly follows the established plugin contract, and the only gap is a missing test assertion. The vibe adapter is a straightforward, additive implementation with no changes to existing code paths. Binary resolution, permission mapping, context guards, and the no-op hooks/SessionInfo are all correctly implemented and consistent with sibling adapters. The only finding is that TestContextCancellation does not cover GetLaunchCommand, but the guard itself is present and correct in the implementation. No files require special attention; vibe_test.go has a minor test coverage gap for the GetLaunchCommand context guard. Important Files Changed
Sequence DiagramsequenceDiagram
participant AO as AO Daemon
participant P as vibe.Plugin
participant VB as vibeBinary()
participant RVB as ResolveVibeBinary()
participant OS as OS / PATH
AO->>P: GetLaunchCommand(ctx, cfg)
P->>P: ctx.Err() guard
P->>VB: vibeBinary(ctx)
alt resolvedBinary cached
VB-->>P: cached path
else first call
VB->>RVB: ResolveVibeBinary(ctx)
RVB->>OS: exec.LookPath("vibe")
OS-->>RVB: path or error
RVB-->>VB: binary path
VB->>VB: cache resolvedBinary
VB-->>P: binary path
end
P->>P: appendAgentFlags(cmd, permissions)
P->>P: append -p prompt (if set)
P-->>AO: "["vibe","--trust","--output","text",(--agent profile),"-p","<prompt>"]"
AO->>P: GetRestoreCommand(ctx, cfg)
P->>P: ctx.Err() guard
P->>P: check MetadataKeyAgentSessionID
P->>VB: vibeBinary(ctx)
VB-->>P: binary path (cached)
P->>P: appendAgentFlags(cmd, permissions)
P->>P: append --resume agentSessionID
P-->>AO: "["vibe","--trust","--output","text",(--agent profile),"--resume","<id>"], ok=true"
Reviews (2): Last reviewed commit: "feat(agents): add vibe adapter" | Re-trigger Greptile |
Registers the vibe harness, stacked on the agent platform. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3f59c4e to
1c58723
Compare
Adds the vibe harness, stacked on #119 (agent platform). Adapter package +
Constructors()registration + resolver test.🤖 Generated with Claude Code
Stack