Skip to content

Extract kill operation to core/operations/kill.ts #61

Description

@2witstudios

Epic 1: Core Operations Refactoring — Issue 3/4

Source: 1-agent worktree (wt-a6gki1)

Description

Move agent kill logic from commands/kill.ts into core/operations/kill.ts. CLI command becomes a thin wrapper.

Acceptance Criteria

  • core/operations/kill.ts exports a performKill() function
  • Handles tmux pane kill for individual agents
  • Handles multi-agent worktree kill (kill all agents in worktree)
  • Updates manifest: agent status → killed
  • commands/kill.ts simplified to arg parsing + calling performKill()
  • Tests: tmux pane kill, manifest update, multi-agent scenarios

Files to Create/Modify

  • src/core/operations/kill.ts (new)
  • src/core/operations/kill.test.ts (new)
  • src/commands/kill.ts (simplify)

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:core-operationsEpic 1: Core Operations RefactoringmobilePPG Mobile project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions