Skip to content

Commit 3ef6a3f

Browse files
update: resolve doc inconsistencies (#45)
1 parent 6e88bed commit 3ef6a3f

14 files changed

Lines changed: 63 additions & 165 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default defineConfig({
4242
{ text: "Dashboard", link: "/guide/dashboard" },
4343
{ text: "Reviewing Changes", link: "/guide/reviewing" },
4444
{ text: "Resuming Work", link: "/guide/resuming" },
45-
{ text: "Agents", link: "/guide/agents" },
45+
{ text: "Agent Configuration", link: "/guide/agents" },
4646
{ text: "Merging", link: "/guide/merging" },
4747
],
4848
},

docs/getting-started/configuration.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The `agent` block configures which AI coding agent to use.
2929

3030
| Field | Type | Default | Description |
3131
|---|---|---|---|
32-
| `command` | `string` || **Required.** Binary name or full path (`claude`, `codex`, `aider`, or a custom command). |
32+
| `command` | `string` || **Required.** Agent binary name or full path (currently `claude`). |
3333
| `args` | `string[]` | `[]` | Extra arguments passed before the prompt. |
3434
| `env` | `object` | `{}` | Extra environment variables for the agent process. |
3535
| `timeout` | `number` || Timeout in seconds. Agent is killed if it exceeds this. |
@@ -42,9 +42,6 @@ When `acceptAll` is `true` (the default), `ws` automatically adds flags based on
4242
| Agent | Flags |
4343
|---|---|
4444
| `claude` | `--dangerously-skip-permissions --output-format stream-json --verbose --include-partial-messages` |
45-
| `codex` | `--full-auto` |
46-
| `aider` | `--yes` |
47-
| Other | No flags injected |
4845

4946
Set `acceptAll: false` to disable this behavior and control flags manually via `args`.
5047

@@ -111,8 +108,6 @@ your-repo/
111108
dark-mode.log
112109
comments/ # Review comments
113110
add-tests.json
114-
pending-prompts/ # Continuation prompts
115-
add-tests.txt
116111
```
117112

118113
The `.workstreams/` directory is automatically added to `.gitignore`.
@@ -128,4 +123,4 @@ The `.workstreams/` directory is automatically added to `.gitignore`.
128123
## Next Steps
129124

130125
- [Concepts](/guide/concepts): how worktrees, agents, and parallel execution work
131-
- [Agents](/guide/agents): agent configuration for Claude, Codex, and Aider
126+
- [Agents](/guide/agents): agent configuration and custom models

docs/getting-started/installation.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
- **[Bun](https://bun.sh)** v1.0 or later
66
- **Git** 2.20 or later (for worktree support)
7-
- At least one AI coding agent installed:
8-
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) (recommended)
9-
- [Codex](https://github.com/openai/codex)
10-
- [Aider](https://aider.chat)
7+
- **[Claude Code](https://docs.anthropic.com/en/docs/claude-code)** installed
118

129
## Install
1310

docs/getting-started/quickstart.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,15 @@ ws run add-tests -p "Resolve the merge conflicts with main"
101101

102102
## 7. Merge into Main
103103

104-
When a workstream looks good, switch back to `main` and merge:
104+
When a workstream looks good, first make sure all changes on the workstream branch are committed:
105+
106+
```bash
107+
cd $(ws checkout add-tests)
108+
git add .
109+
git commit -m "finalize changes"
110+
```
111+
112+
Then switch back to `main` and merge:
105113

106114
```bash
107115
cd /path/to/your-repo # return to the main working directory

docs/guide/agents.md

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Agents
22

3-
`ws` supports multiple AI coding agents. Configure your preferred agent in the `agent` section of `workstream.yaml`.
3+
`ws` currently supports **Claude Code** as the AI coding agent. Additional agent support is coming soon.
44

5-
## Claude (Default)
5+
## Claude Code
66

77
```yaml
88
agent:
@@ -15,9 +15,9 @@ agent:
1515
- `--verbose` — detailed logging
1616
- `--include-partial-messages` — stream partial messages
1717

18-
**Features with Claude:**
18+
**Features:**
1919
- Session capture: `ws` extracts the session ID from Claude's stream-json output
20-
- Resume: `ws run <name> -p` continues the exact same conversation with full context
20+
- Resume: `ws run <name> -p "..."` continues the exact same conversation with full context
2121
- Auto-commit: successful changes are committed automatically
2222

2323
### Custom Model
@@ -31,41 +31,6 @@ agent:
3131
ANTHROPIC_MODEL: claude-sonnet-4-20250514
3232
```
3333

34-
## Codex
35-
36-
```yaml
37-
agent:
38-
command: codex
39-
```
40-
41-
**Auto-injected flags:** `--full-auto`
42-
43-
Codex does not support session resume. When resumed, a fresh session runs in the existing worktree with previous changes intact.
44-
45-
## Aider
46-
47-
```yaml
48-
agent:
49-
command: aider
50-
```
51-
52-
**Auto-injected flags:** `--yes`
53-
54-
Like Codex, Aider does not support session resume. Fresh sessions pick up where the previous one left off via the existing worktree state.
55-
56-
## Custom Agents
57-
58-
Use any command-line tool as an agent:
59-
60-
```yaml
61-
agent:
62-
command: /path/to/my-agent
63-
args: ["--some-flag"]
64-
acceptAll: false # No auto-injected flags for custom agents
65-
```
66-
67-
The agent receives the prompt as the last argument. It runs with the worktree directory as the working directory.
68-
6934
## Disabling Auto-Accept Flags
7035

7136
Set `acceptAll: false` to prevent `ws` from injecting any flags:

docs/guide/concepts.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ws run
5252
Each workstream goes through a lifecycle:
5353

5454
```
55-
ready → queued → running → success / failed
55+
ready → queued → running → success / failed / interrupted
5656
```
5757

5858
| Status | Meaning |
@@ -62,6 +62,7 @@ ready → queued → running → success / failed
6262
| `running` | Agent is actively working |
6363
| `success` | Agent completed without errors |
6464
| `failed` | Agent exited with an error |
65+
| `interrupted` | Agent was interrupted (e.g. Ctrl+C) |
6566
| `workspace` | No prompt, manual workspace only |
6667

6768
## Session Capture
@@ -78,7 +79,7 @@ The core workflow is iterative:
7879
4. Repeat until you're happy
7980
5. Merge
8081

81-
Comments and pending prompts are stored in `.workstreams/comments/` and `.workstreams/pending-prompts/`. They're automatically included when resuming and cleared on success.
82+
Comments are stored in `.workstreams/comments/` and automatically included when resuming. They're cleared on success.
8283

8384
## Branches
8485

docs/guide/dashboard.md

Lines changed: 6 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,24 @@
11
# Dashboard
22

3-
The interactive dashboard is the central hub for managing workstreams.
3+
The dashboard is the recommended way to interact with your workstreams. It shows all workstreams at a glance and lets you view diffs, review changes, resume agents, and open editors — all from a single screen.
44

55
```bash
66
ws dashboard
77
```
88

99
![Dashboard](/dashboard.png)
1010

11-
## Layout
12-
13-
The dashboard displays workstreams as compact cards:
14-
15-
```
16-
✓ add-tests
17-
Add unit tests for all API routes
18-
+142 −3 · 3 files · 2 min ago: test: add route coverage
19-
20-
⠋ dark-mode
21-
Implement dark mode toggle
22-
running...
23-
24-
○ fix-types
25-
Fix all TypeScript type errors
26-
ready
27-
```
28-
29-
Each card shows:
30-
- **Line 1:** Status icon + workstream name
31-
- **Line 2:** Prompt (dimmed)
32-
- **Line 3:** Diff stats, commit info, comments count, resume status
33-
3411
## Status Icons
3512

3613
| Icon | Status | Meaning |
3714
|---|---|---|
3815
| `` | success | Agent completed |
3916
| `` | failed | Agent errored |
40-
| `` | running | Agent working (animated) |
41-
| `` | queued | Scheduled to run |
17+
| `` | interrupted | Agent was interrupted (e.g. Ctrl+C) |
18+
| `` | running | Agent working (animated) |
19+
| `` | queued | Scheduled to run |
4220
| `` | ready | Has prompt, not run yet |
43-
| `` | workspace | Manual workspace, no prompt |
21+
| `` | workspace | Manual workspace, no prompt |
4422

4523
## Navigation
4624

@@ -51,8 +29,6 @@ Each card shows:
5129
| `g` | Jump to first |
5230
| `G` | Jump to last |
5331
| `Enter` | Open action picker |
54-
| `/` | Search workstreams |
55-
| `?` | Toggle help overlay |
5632
| `q` / `Esc` | Quit |
5733

5834
## Action Picker
@@ -61,27 +37,16 @@ Press `Enter` on a workstream to see context-sensitive actions:
6137

6238
**Before first run:**
6339
- Open in editor
64-
- Set/Edit prompt
6540
- Run agent
6641

6742
**After successful run:**
6843
- Open in editor
6944
- Open session (interactive terminal)
70-
- Set continuation prompt
7145
- View diff & review
7246
- View logs
7347

7448
**If changes exist:**
75-
- View diff & review: opens the [diff viewer](/guide/reviewing)
76-
77-
## Search
78-
79-
Press `/` to enter search mode. Type to filter workstreams. Matching uses multi-term AND logic:
80-
81-
- `auth pass` finds workstreams matching both "auth" and "pass"
82-
- Search checks names, prompts, and status
83-
84-
Press `Enter` to confirm the filter, `Esc` to clear.
49+
- View diff & review — opens the [diff viewer](/guide/reviewing)
8550

8651
## Opening in Your Editor
8752

docs/guide/merging.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
Each workstream lives on a `ws/<name>` branch. When you're done iterating, merge it like any other branch.
44

5+
## Commit changes on the workstream branch
6+
7+
Before merging, make sure all changes on the workstream branch are committed:
8+
9+
```bash
10+
cd $(ws checkout add-tests)
11+
git add .
12+
git commit -m "finalize changes"
13+
```
14+
15+
::: tip
16+
If the agent completed successfully, changes are auto-committed. This step is only needed if you made manual edits in the worktree.
17+
:::
18+
519
## Merge into main
620

721
```bash

docs/guide/resuming.md

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Resuming Work
22

3-
Resume a workstream to send new instructions or review comments to the agent. Resuming is done via `ws run` with the `-p` flag.
3+
Resume a workstream to send new instructions or review feedback to the agent. Use `ws run` with the `-p` flag.
44

55
## Resume with New Instructions
66

@@ -12,40 +12,19 @@ The agent continues from where it left off, with full context of its previous wo
1212

1313
## Resume with Review Comments
1414

15-
After adding inline comments in the [diff viewer](/guide/reviewing), resume the workstream. Pending comments are included automatically:
15+
After adding inline comments in the [diff viewer](/guide/reviewing), resume the workstream. Comments are included automatically:
1616

1717
```bash
1818
ws run auth -p "Address the review comments"
1919
```
2020

2121
Comments are cleared after a successful resume.
2222

23-
## Combined Resume
24-
25-
When resuming, all pending context is combined in order:
26-
27-
1. Stored review comments (from diff viewer)
28-
2. Pending prompt (set from dashboard)
29-
3. `-p` flag text
30-
31-
```bash
32-
ws run auth -p "And fix the edge case on line 42"
33-
```
34-
35-
## Setting a Pending Prompt
36-
37-
From the dashboard (`ws dashboard`), select a workstream and choose "Set continuation prompt". This stores a prompt that will be included on the next resume.
38-
3923
## How Resume Works
4024

41-
When resuming a Claude session:
42-
43-
1. The stored `sessionId` is retrieved from state
25+
1. The stored `session_id` is retrieved from state
4426
2. `--resume <sessionId>` is passed to Claude
45-
3. Your new instructions are passed via `-p`
46-
4. The agent picks up with full conversation context
47-
5. Any new changes are auto-committed on success
48-
49-
::: info
50-
Session resume is currently supported for **Claude** only. For Codex and Aider, resume starts a fresh session in the existing worktree (changes from the previous run are still present).
51-
:::
27+
3. Any stored review comments are included in the prompt
28+
4. Your `-p` text is appended
29+
5. The agent picks up with full conversation context
30+
6. New changes are auto-committed on success

docs/guide/reviewing.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22

33
## View Diffs
44

5-
View changes from a specific workstream:
5+
From the dashboard, select a workstream, press `Enter`, and choose "View diff & review". Or from the command line:
66

77
```bash
8-
ws diff auth-feature
8+
ws diff auth-feature # interactive diff viewer
99
```
1010

11-
This opens an interactive diff viewer. For raw output (useful for piping):
12-
1311
![Diff viewer](/diff-viewer.png)
1412

1513
```bash
16-
ws diff auth --raw
17-
ws diff # raw diffs for all workstreams
14+
ws diff auth --raw # raw output (for piping)
15+
ws diff # raw diffs for all workstreams
1816
```
1917

2018
## Interactive Diff Viewer
@@ -51,14 +49,10 @@ Comments are shown as inline markers in the diff viewer and are automatically in
5149

5250
## Review Workflow
5351

54-
The typical review loop:
55-
56-
1. Run `ws diff auth` to browse changes
57-
2. Press `c` to comment on lines that need work
58-
3. Press `q` to exit the diff viewer
59-
4. Run `ws run auth -p "Address review comments"` to resume. Pending comments are included automatically.
60-
5. The agent addresses your feedback
52+
1. Open the dashboard with `ws dashboard` (or run `ws diff auth` directly)
53+
2. Select a workstream and choose "View diff & review"
54+
3. Press `c` to comment on lines that need work
55+
4. Press `q` to exit the diff viewer
56+
5. Resume with `ws run auth -p "Address review comments"` — comments are included automatically
6157
6. Repeat until satisfied
6258
7. Merge via GitHub PR or `git merge`
63-
64-
You can also start the review from the dashboard: select a workstream, press `Enter`, and choose "View diff & review".

0 commit comments

Comments
 (0)