IW-222: Agent-usable CLI — projects, worktrees, status + --prompt #229
No reviewers
Labels
No labels
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli!229
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-222"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds agent-facing CLI primitives and architecture cleanup for IW-222.
Architecture Cleanup
ServerClient,ServerConfigRepository,ProcessManagerfromdashboard/toadapters/FeedbackParser,ServerLifecycleServicefromdashboard/tomodel/ServerStateCodecfromStateRepositoryfor shared JSON codecsdashboard/imports)New Commands
iw projects [--json]— list registered projects from state.jsoniw worktrees [--all] [--json]— list worktrees for current projectiw status [issue-id] [--json]— detailed worktree status with live git dataAgent Integration
iw start --prompt <text> <issue-id>— create worktree + launch claude agentiw open --prompt <text> [issue-id]— open worktree + launch claude agentImplementation Phases
ProjectPath,ServerStateCodec, value objects (ProjectSummary,WorktreeSummary,WorktreeStatus)StateReader,TmuxAdapter.sendKeysprojects,worktrees,statuscommands with formatters--promptflag forstart/openTesting
Test plan
iw projectsandiw projects --jsonshow registered projectsiw worktreesandiw worktrees --jsonshow worktrees for current projectiw status ISSUE-IDandiw status --jsonshow detailed statusiw start --prompt "text" ISSUE-IDcreates worktree and sends claude commandiw open --prompt "text" ISSUE-IDopens session and sends claude commandstart,open,rm,issue, etc.) work unchanged🤖 Generated with Claude Code