trekoon 0.4.2 → 0.4.4
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 +97 -208
- package/.agents/skills/trekoon/reference/execution-with-team.md +87 -149
- package/.agents/skills/trekoon/reference/execution.md +170 -380
- package/.agents/skills/trekoon/reference/harness-primitives.md +77 -0
- package/.agents/skills/trekoon/reference/planning.md +193 -330
- package/.agents/skills/trekoon/reference/sync.md +56 -103
- package/README.md +29 -10
- package/docs/ai-agents.md +48 -4
- package/docs/commands.md +34 -25
- package/docs/machine-contracts.md +1 -1
- package/docs/quickstart.md +9 -9
- package/package.json +2 -2
- package/src/board/asset-root.ts +73 -0
- package/src/board/assets/app.js +5 -3
- package/src/board/assets/components/Component.js +6 -8
- package/src/board/assets/state/actions.js +3 -0
- package/src/board/assets/state/api.js +48 -34
- package/src/board/assets/state/store.js +3 -0
- package/src/board/event-bus.ts +15 -0
- package/src/board/routes.ts +94 -83
- package/src/board/server.ts +35 -8
- package/src/board/snapshot.ts +6 -0
- package/src/board/types.ts +2 -34
- package/src/board/wal-watcher.ts +170 -28
- package/src/commands/board.ts +20 -42
- package/src/commands/help.ts +11 -12
- package/src/commands/init.ts +0 -29
- package/src/commands/quickstart.ts +1 -1
- package/src/commands/skills.ts +17 -5
- package/src/domain/mutation-service.ts +61 -42
- package/src/domain/tracker-domain.ts +20 -16
- package/src/domain/types.ts +3 -0
- package/src/export/render-markdown.ts +1 -2
- package/src/runtime/daemon.ts +110 -49
- package/src/runtime/version.ts +10 -2
- package/src/storage/database.ts +9 -2
- package/src/storage/migrations.ts +19 -2
- package/src/storage/path.ts +0 -36
- package/src/sync/service.ts +47 -27
- package/src/board/install.ts +0 -196
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Harness Primitives
|
|
2
|
+
|
|
3
|
+
Use these intent-level primitives across Codex, Claude Code, OpenCode, Pi, and
|
|
4
|
+
similar harnesses. Trekoon is durable state; harness-local todo/task tools are
|
|
5
|
+
only live session display.
|
|
6
|
+
|
|
7
|
+
| Need | Instruction |
|
|
8
|
+
|---|---|
|
|
9
|
+
| Orient | Read Trekoon session/progress/suggest for ready work and blockers. |
|
|
10
|
+
| Display progress | Use local todo/task tools for the current execution shape and lane status. |
|
|
11
|
+
| Ask | Use the harness question tool when available; otherwise ask one concise plain-text question. |
|
|
12
|
+
| Delegate | When executing an epic, use subagents by default for meaningful work that can run independently. |
|
|
13
|
+
| Explore | Use read-only/explorer subagents for noisy codebase lookup, logs, or research. |
|
|
14
|
+
| Execute | Use write-capable worker/general subagents for bounded implementation lanes. |
|
|
15
|
+
| Test | Run the required automated or manual checks for touched scope. |
|
|
16
|
+
| Review | Use a review agent/skill for non-trivial code changes when available. |
|
|
17
|
+
| Record | Append progress, blockers, tests, review, and completion evidence to Trekoon. |
|
|
18
|
+
|
|
19
|
+
## Delegation Default
|
|
20
|
+
|
|
21
|
+
When executing an epic, use subagents by default for any meaningful work that
|
|
22
|
+
can run independently. Keep small or tightly coupled tasks in the parent agent.
|
|
23
|
+
Use the parent session to coordinate the epic, make dependency decisions, keep
|
|
24
|
+
the user oriented, and synthesize results.
|
|
25
|
+
|
|
26
|
+
Treat "execute this epic", "work through this Trekoon plan", "use agents",
|
|
27
|
+
"spawn subagents", "delegate independent lanes", "execute with subagents",
|
|
28
|
+
"parallelize this", and "team execute" as requests to orchestrate work to
|
|
29
|
+
completion. If safe independent lanes exist and the harness supports subagents,
|
|
30
|
+
delegate those lanes by default.
|
|
31
|
+
|
|
32
|
+
If a higher-priority harness policy blocks subagents without explicit user
|
|
33
|
+
wording, tell the user immediately:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
I found <n> independent Trekoon lanes. This harness requires explicit
|
|
37
|
+
permission before I can spawn subagents. Should I delegate those lanes and keep
|
|
38
|
+
coordinating from the parent session?
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Runtime Notes
|
|
42
|
+
|
|
43
|
+
- Codex: use subagents by default when exposed. If Codex policy requires
|
|
44
|
+
explicit user wording, ask immediately before broad execution. Do not silently
|
|
45
|
+
do broad work in the parent. When available, use `spawn_agent`, `send_input`,
|
|
46
|
+
`wait_agent`, `resume_agent`, and `close_agent`.
|
|
47
|
+
- Claude Code: use normal subagents for bounded side work. Use Agent Teams only
|
|
48
|
+
when the user explicitly asks for team execution and the environment supports
|
|
49
|
+
it.
|
|
50
|
+
- OpenCode: use `@explore` for read-only discovery and `@general` or native
|
|
51
|
+
Task for write-capable lane work. Use `question` when available.
|
|
52
|
+
- Pi/other harnesses: use the same intent and native task/subagent/question
|
|
53
|
+
tools when available.
|
|
54
|
+
|
|
55
|
+
## Local Task Tools
|
|
56
|
+
|
|
57
|
+
Use local todo/task tools to show only current-session coordination:
|
|
58
|
+
|
|
59
|
+
1. Execution shape and lane list.
|
|
60
|
+
2. Lane status: pending, in progress, blocked, review, done.
|
|
61
|
+
3. Short enough to stay readable.
|
|
62
|
+
|
|
63
|
+
If local state and Trekoon disagree, Trekoon wins.
|
|
64
|
+
|
|
65
|
+
## Review
|
|
66
|
+
|
|
67
|
+
For non-trivial implementation, run a separate review pass before closing the
|
|
68
|
+
task or epic. Prefer a specialized review agent/skill. Review the actual diff
|
|
69
|
+
for correctness, regressions, missing tests, security, reliability, performance,
|
|
70
|
+
and integration risk.
|
|
71
|
+
|
|
72
|
+
Tiny docs/mechanical changes may skip separate review. Still run relevant
|
|
73
|
+
checks and record the review gap or decision:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
trekoon --toon task update <task-id> --append "Review: <summary or accepted gap>"
|
|
77
|
+
```
|