-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Summary
Refactor the agent abstraction layer to support Amp SDK as a first-class agent backend.
Linear: ENG-1462
Changes
- Add
amptoAgentTypeunion insrc/loop/agents.ts - Add Amp agent config to
AGENTSobject (detection command, run command, args mapping) - Generalize the agent interface to support Amp's tool-use patterns
- Ensure the abstraction can handle Amp's 3 modes: smart, rush, deep
- Add Amp to the agent detection loop (
detectAgent())
Current Architecture
// src/loop/agents.ts
type AgentType = 'claude-code' | 'cursor' | 'codex' | 'opencode' | 'unknown';Needs to become:
type AgentType = 'claude-code' | 'cursor' | 'codex' | 'opencode' | 'amp' | 'unknown';Files
src/loop/agents.ts(main changes)src/types.ts(if AgentType is exported)
Depends On
- Issue K (Research Amp SDK API surface)
Reactions are currently unavailable