trekoon 0.4.2 → 0.4.3

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.
@@ -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
+ ```