craig-cli 0.7.0 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +40 -16
  2. package/dist/cli.js +53 -53
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  ---
28
28
 
29
- Craig is a full-screen TUI that lets you run multiple AI agents across multiple repos at the same time — each in its own isolated git worktree, each with a live PTY, all from one terminal. Spin up Claude, Codex, and Cursor simultaneously. Watch them cook. Review diffs, run checks, and merge PRs without ever leaving Craig.
29
+ Craig is a full-screen TUI that lets you run multiple AI agents across multiple repos at the same time — each in its own isolated git worktree, each with a live PTY, all from one terminal. Spin up Claude, Codex, and Cursor simultaneously. Watch them cook. Inspect diffs and review state while the agent handles repo actions from its PTY.
30
30
 
31
31
  it's like a game, except the PRs are real.
32
32
 
@@ -51,11 +51,11 @@ Craig writes all local state under `.craig/` — worktrees, logs, task records,
51
51
 
52
52
  ## Workflow
53
53
 
54
- 1. Press `n` to create a task — type a prompt, pick a runner, press `Enter`.
55
- 2. Craig creates the branch, worktree, and agent tab automatically.
54
+ 1. Press `n` to create a task — type a short task description, pick a runner, press `Enter`.
55
+ 2. Craig creates the task record, branch, worktree, and agent tab automatically.
56
56
  3. Press `Enter` on the task to attach its live PTY. `Ctrl+]` to return to control mode.
57
- 4. Use the **Files**, **Changes**, and **Review** inspector panels to check the diff and CI status.
58
- 5. `craig task pr <task-id> --watch` — creates the PR and waits for checks before merging.
57
+ 4. Give the runner its instructions in the agent PTY. The task description is Craig metadata; it is not pasted into the runner automatically.
58
+ 5. Use the **Files**, **Changes**, and read-only **Review** inspector panels to check the diff, PR state, checks, and comments.
59
59
 
60
60
  ## Polyrepo support
61
61
 
@@ -71,31 +71,51 @@ craig
71
71
  ```
72
72
  Global
73
73
  ? help
74
- Esc pause / back
74
+ Esc pause
75
75
  Tab, ] next panel
76
76
  Shift+Tab, [ previous panel
77
+ Up/Down, j/k move selection
78
+ PgUp/PgDn, Wheel scroll focused inspection or terminal view
79
+ z zoom center panel
80
+ n new task
77
81
  q quit
78
82
 
79
83
  Navigation
80
- Up/Down, j/k move selection
81
84
  Left/Right, h/l switch tabs or inspector mode
82
85
 
83
86
  Tasks
84
- n new task
85
- Enter attach selected task PTY
86
- X close selected task
87
+ Enter on + New Task open task prompt
88
+ Enter on + New Workspace open workspace browser
89
+ Enter on task attach selected task PTY
90
+ r on + New Task cycle runner for next task
91
+ X on task close selected task
92
+ X on workspace remove selected workspace
87
93
 
88
94
  Center panel
89
95
  Enter attach PTY
90
- + new tab
96
+ + create preferred tab kind
91
97
  a new agent tab
92
98
  t new terminal tab
99
+ r cycle runner for next agent tab
93
100
  x close tab
94
- z zoom center panel
95
101
 
96
102
  Review
97
- R sync PR / refresh checks
98
- X close task
103
+ Enter refresh status or close task, depending on selected action
104
+ R refresh read-only PR/check state
105
+ o open tracked PR URL
106
+ X close task record
107
+
108
+ Task prompt
109
+ Ctrl+R cycle runner
110
+ Enter create task
111
+ Esc cancel
112
+
113
+ Workspace browser
114
+ Up/Down, j/k move selection
115
+ Right, l open directory
116
+ Left, h parent directory
117
+ Enter add selected path
118
+ Esc cancel
99
119
 
100
120
  Terminal mode
101
121
  Ctrl+] return to control mode
@@ -109,21 +129,25 @@ craig repo add <path>
109
129
  craig repo list
110
130
  craig repo remove <repo-id>
111
131
 
132
+ craig workspace add <path>
112
133
  craig workspace list
134
+ craig workspace list --archived
113
135
  craig workspace archive <workspace-id>
114
136
  craig workspace restore <workspace-id>
115
137
  craig workspace remove <workspace-id>
116
138
 
117
139
  craig task new --repo <repo-id> [--runner codex|cursor|claude] "<task>"
140
+ craig task new --workspace <workspace-id> [--runner codex|cursor|claude] "<task>"
118
141
  craig task list
142
+ craig task list --repo <repo-id>
119
143
  craig task show <task-id>
120
144
  craig task attach <task-id>
145
+ craig task focus <task-id>
146
+ craig task open <task-id>
121
147
  craig task logs <task-id>
122
148
  craig task diff <task-id>
123
149
  craig task check <task-id>
124
150
  craig task commit <task-id>
125
- craig task pr <task-id> [--watch]
126
- craig task merge <task-id> [--preserve-worktree]
127
151
 
128
152
  craig link add <task-id> <repo-id>
129
153
  craig link list <task-id>