trekoon 0.4.4 → 0.4.5
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.
- package/.agents/skills/trekoon/SKILL.md +6 -1
- package/.agents/skills/trekoon/reference/execution-with-team.md +11 -2
- package/.agents/skills/trekoon/reference/execution.md +12 -1
- package/.agents/skills/trekoon/reference/harness-primitives.md +4 -1
- package/docs/ai-agents.md +8 -0
- package/docs/quickstart.md +4 -0
- package/package.json +1 -1
|
@@ -98,6 +98,10 @@ matches the user intent.
|
|
|
98
98
|
`task next`, `dep list`, `dep reverse`, targeted `show`.
|
|
99
99
|
- Prefer transactional/bulk commands for planning and narrow `--ids` for bulk
|
|
100
100
|
updates.
|
|
101
|
+
- In Claude Code, keep parallel `Bash` batches read-only for Trekoon commands.
|
|
102
|
+
Only `task claim` and `subtask claim` are safe parallel write exceptions.
|
|
103
|
+
Run `task done` and other status-changing commands sequentially after reading
|
|
104
|
+
current state.
|
|
101
105
|
- Append progress, verification, and blocker notes with `--append`; do not
|
|
102
106
|
rewrite descriptions unless fixing the plan itself.
|
|
103
107
|
- Preview search/replace before `--apply`.
|
|
@@ -112,7 +116,8 @@ matches the user intent.
|
|
|
112
116
|
Normal status flow is `todo -> in_progress -> done`; `blocked` requires an
|
|
113
117
|
appended reason. Use `task done` for task completion because it auto-transitions
|
|
114
118
|
from `todo` or `blocked` through `in_progress`. Load
|
|
115
|
-
`reference/status-machine.md` for transition errors or uncertainty.
|
|
119
|
+
`reference/status-machine.md` for transition errors or uncertainty. For
|
|
120
|
+
subtasks, claim or move through `in_progress` before marking `done`.
|
|
116
121
|
|
|
117
122
|
## Recovery
|
|
118
123
|
|
|
@@ -47,7 +47,10 @@ TaskCreate:
|
|
|
47
47
|
While working:
|
|
48
48
|
- Complete required subtasks.
|
|
49
49
|
- Append progress notes; do not rewrite task descriptions.
|
|
50
|
-
- Use task done for completion.
|
|
50
|
+
- Use task done for task completion.
|
|
51
|
+
- For subtasks, claim or move through in_progress before done.
|
|
52
|
+
- Keep parallel Trekoon Bash calls read-only; serialize status-changing
|
|
53
|
+
commands unless using atomic claim.
|
|
51
54
|
- Use --compact for noisy Trekoon reads.
|
|
52
55
|
|
|
53
56
|
On completion:
|
|
@@ -82,7 +85,9 @@ Agent:
|
|
|
82
85
|
Claim each Trekoon task before editing:
|
|
83
86
|
trekoon --toon task claim <trekoon-task-id> --owner <your-name>
|
|
84
87
|
|
|
85
|
-
Use task done for completion.
|
|
88
|
+
Use task done for task completion. For subtasks, claim or move through
|
|
89
|
+
in_progress before done. Do not batch multiple Trekoon status-changing Bash
|
|
90
|
+
calls in one parallel tool turn. Read and report unblocked tasks, warnings,
|
|
86
91
|
and next candidate via SendMessage.
|
|
87
92
|
|
|
88
93
|
Communicate blockers and coordination needs via SendMessage.
|
|
@@ -126,6 +131,10 @@ For `status_transition_invalid`, inspect current status with:
|
|
|
126
131
|
trekoon --toon --compact task show <id>
|
|
127
132
|
```
|
|
128
133
|
|
|
134
|
+
If the error came from a cancelled parallel Bash batch, first re-read the
|
|
135
|
+
affected task or subtask, then retry only the valid next transition. Do not
|
|
136
|
+
replay the whole batch.
|
|
137
|
+
|
|
129
138
|
For `dependency_blocked`, inspect the dependency, append a blocker note, then
|
|
130
139
|
continue with a ready candidate from:
|
|
131
140
|
|
|
@@ -86,7 +86,8 @@ Before each task:
|
|
|
86
86
|
While working:
|
|
87
87
|
- Complete required subtasks and update subtask statuses.
|
|
88
88
|
- Append meaningful progress notes; do not rewrite task descriptions.
|
|
89
|
-
- Respect status flow: todo -> in_progress -> done. Use task done for
|
|
89
|
+
- Respect status flow: todo -> in_progress -> done. Use task done for task
|
|
90
|
+
completion; for subtasks, claim or move through in_progress before done.
|
|
90
91
|
- Assume other agents may edit unrelated files. Do not revert unrelated changes.
|
|
91
92
|
|
|
92
93
|
On completion:
|
|
@@ -102,6 +103,16 @@ If blocked:
|
|
|
102
103
|
Use --compact in noisy Trekoon reads. Do not create branches, commits, pushes,
|
|
103
104
|
or PRs unless the user explicitly asked and harness policy allows it.
|
|
104
105
|
|
|
106
|
+
Claude Code parallel tool calls:
|
|
107
|
+
- Parallel Trekoon Bash calls are for read-only commands such as session,
|
|
108
|
+
progress, ready, suggest, and targeted show.
|
|
109
|
+
- Do not issue multiple Trekoon status-changing Bash commands in one parallel
|
|
110
|
+
tool batch. Use task/subtask claim for atomic races, then serialize updates
|
|
111
|
+
and completion commands.
|
|
112
|
+
- If a parallel batch reports sibling cancellation, re-read the affected task or
|
|
113
|
+
subtask before retrying; recover from current Trekoon state, not the cancelled
|
|
114
|
+
command text.
|
|
115
|
+
|
|
105
116
|
Final report: tasks completed, files changed, checks, review result/gap,
|
|
106
117
|
task done response, blockers.
|
|
107
118
|
```
|
|
@@ -46,7 +46,10 @@ coordinating from the parent session?
|
|
|
46
46
|
`wait_agent`, `resume_agent`, and `close_agent`.
|
|
47
47
|
- Claude Code: use normal subagents for bounded side work. Use Agent Teams only
|
|
48
48
|
when the user explicitly asks for team execution and the environment supports
|
|
49
|
-
it.
|
|
49
|
+
it. Treat parallel `Bash` tool calls as read-only unless every command is a
|
|
50
|
+
safe atomic claim. Do not batch multiple Trekoon status-changing commands in
|
|
51
|
+
one parallel tool turn; run them sequentially so one failed transition does
|
|
52
|
+
not cancel sibling mutations.
|
|
50
53
|
- OpenCode: use `@explore` for read-only discovery and `@general` or native
|
|
51
54
|
Task for write-capable lane work. Use `question` when available.
|
|
52
55
|
- Pi/other harnesses: use the same intent and native task/subagent/question
|
package/docs/ai-agents.md
CHANGED
|
@@ -274,6 +274,14 @@ trekoon --toon epic replace <epic-id> --search "path/to/somewhere" --replace "pa
|
|
|
274
274
|
trekoon --toon epic replace <epic-id> --search "path/to/somewhere" --replace "path/to/new-path" --apply
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
+
For Claude Code and similar harnesses with parallel tool calls, keep parallel
|
|
278
|
+
Trekoon `Bash` batches read-only. It is safe to fan out `session`, `progress`,
|
|
279
|
+
`ready`, `suggest`, and targeted `show` commands. Do not batch multiple
|
|
280
|
+
status-changing Trekoon commands in one parallel tool turn; if one transition
|
|
281
|
+
fails, sibling calls may be cancelled and the agent must re-read state before
|
|
282
|
+
retrying. Use `task claim` / `subtask claim` for atomic races, then serialize
|
|
283
|
+
status updates and completion commands.
|
|
284
|
+
|
|
277
285
|
## Shared-database model
|
|
278
286
|
|
|
279
287
|
Trekoon uses one live SQLite database per repository at
|
package/docs/quickstart.md
CHANGED
|
@@ -163,6 +163,10 @@ The response includes `claimed` (true/false), `currentOwner`, `currentStatus`,
|
|
|
163
163
|
and the full entity record on success. Two concurrent claims return exactly one
|
|
164
164
|
`claimed=true`.
|
|
165
165
|
|
|
166
|
+
In Claude Code, keep parallel Trekoon `Bash` calls read-only unless the command
|
|
167
|
+
is an atomic `claim`. Run status updates and completion commands sequentially so
|
|
168
|
+
a failed transition does not cancel sibling mutations.
|
|
169
|
+
|
|
166
170
|
## Database backup and migration
|
|
167
171
|
|
|
168
172
|
Before any manual migration recovery, snapshot the database:
|
package/package.json
CHANGED