thoth-agents 0.3.11 → 0.4.0

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 (74) hide show
  1. package/README.md +182 -389
  2. package/dist/agents/prompt-dialects.d.ts +4 -1
  3. package/dist/agents/prompt-sections.d.ts +2 -1
  4. package/dist/{chunk-CB3EBA7H.js → chunk-5EBXGMOK.js} +1 -1
  5. package/dist/chunk-62L3ORXN.js +30 -0
  6. package/dist/{chunk-GIUU6FNE.js → chunk-Q6SDM4KP.js} +208 -106
  7. package/dist/chunk-SECDI3TL.js +312 -0
  8. package/dist/{chunk-ZEAAWBF2.js → chunk-WJ2YMM2E.js} +2877 -290
  9. package/dist/cli/codex-plugin-install.d.ts +16 -2
  10. package/dist/cli/index.js +188 -15
  11. package/dist/cli/install-completion.d.ts +13 -0
  12. package/dist/cli/install-ledger.d.ts +1 -1
  13. package/dist/cli/install.d.ts +11 -1
  14. package/dist/cli/operations/pi.d.ts +43 -0
  15. package/dist/cli/owned-skills.d.ts +17 -0
  16. package/dist/cli/pi-effort.d.ts +10 -0
  17. package/dist/cli/pi-install.d.ts +131 -0
  18. package/dist/cli/pi-migration.d.ts +12 -0
  19. package/dist/cli/pi-native-probe.d.ts +34 -0
  20. package/dist/cli/pi-package-receipt.d.ts +59 -0
  21. package/dist/cli/pi-paths.d.ts +20 -0
  22. package/dist/cli/pi-resources.d.ts +15 -0
  23. package/dist/cli/skills.d.ts +1 -1
  24. package/dist/cli/tui/index.js +12 -4
  25. package/dist/cli/tui/operations.d.ts +1 -0
  26. package/dist/cli/types.d.ts +4 -2
  27. package/dist/harness/adapters/pi.d.ts +8 -0
  28. package/dist/harness/core/agent-pack.d.ts +26 -6
  29. package/dist/harness/core/sdd.d.ts +27 -15
  30. package/dist/harness/pi-specialists.d.ts +6 -0
  31. package/dist/harness/types.d.ts +2 -2
  32. package/dist/harness/writers/codex-plugin-package.d.ts +1 -0
  33. package/dist/harness/writers/pi-agent.d.ts +16 -0
  34. package/dist/index.js +6 -4
  35. package/dist/pi.d.ts +11 -0
  36. package/dist/pi.js +46 -0
  37. package/package.json +17 -6
  38. package/pi/.thoth-agents-assets.json +12 -0
  39. package/pi/agents/thoth-deep.md +81 -0
  40. package/pi/agents/thoth-designer.md +81 -0
  41. package/pi/agents/thoth-explorer.md +81 -0
  42. package/pi/agents/thoth-librarian.md +83 -0
  43. package/pi/agents/thoth-oracle.md +83 -0
  44. package/pi/agents/thoth-quick.md +81 -0
  45. package/plugin/.claude-plugin/.thoth-agents-plugin-assets.json +2 -2
  46. package/plugin/.claude-plugin/plugin.json +1 -1
  47. package/plugin/.codex-plugin/plugin.json +1 -1
  48. package/plugin/agents/oracle.md +3 -3
  49. package/plugin/agents/orchestrator.md +35 -30
  50. package/plugin/skills/plan-reviewer/SKILL.md +54 -15
  51. package/plugin/skills/thoth-archive/SKILL.md +5 -0
  52. package/plugin/skills/thoth-constitution/SKILL.md +5 -0
  53. package/plugin/skills/thoth-constitution/templates/constitution.md +19 -2
  54. package/plugin/skills/thoth-init/SKILL.md +5 -0
  55. package/plugin/skills/thoth-sdd/SKILL.md +35 -10
  56. package/plugin/skills/thoth-sdd/references/phases/implement.md +13 -2
  57. package/plugin/skills/thoth-sdd/references/phases/tasks.md +23 -2
  58. package/plugin/skills/thoth-sdd/references/phases/verify.md +7 -5
  59. package/plugin/skills/thoth-sdd/scripts/validate.mjs +263 -30
  60. package/plugin/skills/thoth-sdd/templates/tasks.md +18 -2
  61. package/skills/README.md +2 -1
  62. package/skills/plan-reviewer/SKILL.md +54 -15
  63. package/skills/thoth-archive/SKILL.md +5 -0
  64. package/skills/thoth-constitution/SKILL.md +5 -0
  65. package/skills/thoth-constitution/templates/constitution.md +19 -2
  66. package/skills/thoth-init/SKILL.md +5 -0
  67. package/skills/thoth-sdd/SKILL.md +35 -10
  68. package/skills/thoth-sdd/references/phases/implement.md +13 -2
  69. package/skills/thoth-sdd/references/phases/tasks.md +23 -2
  70. package/skills/thoth-sdd/references/phases/verify.md +7 -5
  71. package/skills/thoth-sdd/scripts/validate.mjs +263 -30
  72. package/skills/thoth-sdd/templates/tasks.md +18 -2
  73. package/.agents/plugins/marketplace.json +0 -20
  74. package/.claude-plugin/marketplace.json +0 -21
package/README.md CHANGED
@@ -1,463 +1,256 @@
1
1
  <div align="center">
2
- <img src="img/thoth-agents-header.webp" alt="Seven human cyber-Egyptian thoth-agents roles, with Thoth as the Orchestrator centered between three read-only specialists and three implementation writers" width="100%">
2
+ <img src="img/thoth-agents-header.webp" alt="Seven cyber-Egyptian specialists led by Thoth, the Orchestrator" width="100%">
3
3
  <h1>Thoth-Agents</h1>
4
- <p><i>Adaptive orchestration for OpenCode, Codex, and Claude Code.</i></p>
5
- <p><b>Seven roles</b> · <b>Three SDD routes</b> · <b>Runtime-autonomous SDD</b></p>
4
+ <p><b>One conversation. The right specialists. A workflow that fits the task.</b></p>
5
+ <p>Adaptive agent orchestration for OpenCode, Codex, Claude Code, and Pi.</p>
6
6
  <p>
7
- <a href="https://www.npmjs.com/package/thoth-agents"><img src="https://img.shields.io/npm/v/thoth-agents?style=for-the-badge&amp;color=cb9b35&amp;label=npm" alt="npm version"></a>
8
- <a href="https://github.com/EremesNG/thoth-agents/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/EremesNG/thoth-agents/ci.yml?branch=master&amp;style=for-the-badge&amp;label=CI" alt="CI status"></a>
9
- <a href="package.json"><img src="https://img.shields.io/badge/node-%3E%3D22.13-43853d?style=for-the-badge&amp;logo=node.js&amp;logoColor=white" alt="Node 22.13 or newer"></a>
10
- <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-1f6feb?style=for-the-badge" alt="MIT License"></a>
7
+ <a href="https://www.npmjs.com/package/thoth-agents"><img src="https://img.shields.io/npm/v/thoth-agents?style=flat-square&amp;color=cb9b35&amp;label=npm" alt="npm version"></a>
8
+ <a href="https://github.com/EremesNG/thoth-agents/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/EremesNG/thoth-agents/ci.yml?branch=master&amp;style=flat-square&amp;label=CI" alt="CI status"></a>
9
+ <a href="package.json"><img src="https://img.shields.io/badge/node-%3E%3D22.19-43853d?style=flat-square&amp;logo=node.js&amp;logoColor=white" alt="Node 22.19 or newer"></a>
10
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-1f6feb?style=flat-square" alt="MIT License"></a>
11
+ </p>
12
+ <p>
13
+ <a href="#why-thoth-agents">Overview</a> ·
14
+ <a href="#install">Install</a> ·
15
+ <a href="#get-started">Get started</a> ·
16
+ <a href="#meet-the-team">The team</a> ·
17
+ <a href="#choose-your-workflow">Workflows</a> ·
18
+ <a href="#documentation">Documentation</a>
11
19
  </p>
12
20
  </div>
13
21
 
14
22
  ---
15
23
 
16
- ## What it does
17
-
18
- thoth-agents is a multi-harness orchestration plugin for OpenCode, Codex, and
19
- Claude Code. One adaptive root handles clear bounded work directly and delegates
20
- only when specialization, context isolation, independent review, or safe
21
- parallelism creates a net gain.
22
-
23
- The plugin ships the seven-role contract and thoth-owned SDD
24
- contracts that combine Spec Kit-grade traceability with OpenSpec-style durable
25
- deltas. Accelerated planning fast-forwards without routine pauses; structural
26
- `ready`/`closeout` gates and independent oracle review retain rigor. Root
27
- recommends Direct, Accelerated, or Full and the user selects the route. After
28
- `ready`, artifact-backed routes offer optional Oracle plan review or proceeding
29
- without it; every final verification remains mandatory. During
30
- installation, the CLI obtains four mandatory external skills
31
- from their canonical repositories with `npx skills add` and invokes the official
32
- provider-owned thoth-mem setup for the selected harness. During an SDD, agents
33
- load local contracts and the installed thoth-mem guidance; they never need to
34
- invoke either CLI or download a phase contract.
35
-
36
- Delivery is intentionally asymmetric. OpenCode uses the CLI to configure the
37
- npm plugin, external skills, and thoth-mem. Codex needs both a native plugin and a mandatory
38
- CLI-managed global layer because its manifest cannot install custom agents or
39
- global root instructions. Claude needs its two native marketplace commands
40
- before the CLI installs external skills and requests provider-owned thoth-mem
41
- setup.
42
-
43
- Runtime guarantees still differ by harness. OpenCode is the default and most
44
- integrated path; Codex and Claude preserve their own trust, policy, plugin-cache,
45
- and permission semantics.
24
+ ## Why thoth-agents
25
+
26
+ Describe what you want to build or fix. Thoth keeps the conversation together,
27
+ handles straightforward work directly, and brings in specialists when research,
28
+ design, implementation, or an independent review would help.
29
+
30
+ Small changes stay small. Larger changes get a specification, a plan, and
31
+ verification you can follow—without manually coordinating every agent.
32
+
33
+ - **A team, not seven conversations.** One adaptive Orchestrator coordinates six
34
+ specialists and brings their results back to you.
35
+ - **The right amount of process.** Choose a quick Direct path or a structured
36
+ specification-driven development (SDD) workflow for more involved work.
37
+ - **Specialists where they add value.** Repository discovery, current documentation,
38
+ UI/UX, focused edits, complex implementation, and independent review have distinct roles.
39
+ - **Models you can tune.** Configure models per role to suit your workflow and
40
+ the providers available in your harness.
41
+ - **Continuity between sessions.** Published installs include setup of
42
+ [thoth-mem](https://github.com/EremesNG/thoth-mem), the independent memory
43
+ companion for reusable decisions and project knowledge. thoth-mem owns its own
44
+ memory lifecycle, persistence, and storage; thoth-agents only invokes its setup.
45
+
46
+ > [!NOTE]
47
+ > OpenCode is the default and most integrated path. All four harnesses share the
48
+ > workflow and role design, but their permissions, delegation, and runtime
49
+ > capabilities are not identical. Your harness's trust and approval rules still apply.
46
50
 
47
51
  ## Install
48
52
 
49
- ### OpenCode
53
+ You need **Node.js `>=22.19`**, a supported harness already installed, and network
54
+ access for setup. Authenticate your model providers in that harness separately.
55
+ The commands below install at **global/user scope**.
56
+
57
+ | Harness | What you get | Install command |
58
+ | --- | --- | --- |
59
+ | <a href="https://github.com/anomalyco/opencode"><picture><source media="(prefers-color-scheme: dark)" srcset="https://svgl.app/library/opencode-dark.svg"><img src="https://svgl.app/library/opencode.svg" alt="OpenCode logo" width="48" height="48"></picture></a><br>**OpenCode** | Native plugin, agent team, workflow skills, and memory setup. **Recommended starting point.** | `npx thoth-agents@latest install --agent=opencode` |
60
+ | <a href="https://github.com/openai/codex"><img src="https://github.com/openai.png?size=120" alt="OpenAI logo — Codex" width="48" height="48"></a><br>**Codex** | Native plugin plus the required global agent and instruction setup. **Close Codex first.** | `npx thoth-agents@latest install --agent=codex` |
61
+ | <a href="https://claude.com/product/claude-code"><img src="https://github.com/anthropics.png?size=120" alt="Anthropic logo — Claude Code" width="48" height="48"></a><br>**Claude Code** | Marketplace agents and skills, completed by the CLI's external skills and memory setup. **Run the prerequisites below first.** | `npx thoth-agents@latest install --agent=claude` |
62
+ | <a href="https://github.com/earendil-works/pi"><img src="https://raw.githubusercontent.com/EremesNG/thoth-mem/master/img/pi.svg" alt="Pi logo" width="48" height="48"></a><br>**Pi** | Native package, six specialists, delegation and research extensions, workflow skills, and memory setup. | `npx thoth-agents@latest install --agent=pi` |
63
+
64
+ ### Claude Code prerequisites
50
65
 
51
- Install the plugin configuration, five thoth-owned skills, four external
52
- skills, and the thoth-mem companion globally:
66
+ Run these two commands **before** the Claude CLI install command in the table:
53
67
 
54
68
  ```bash
55
- npx thoth-agents@latest install --agent=opencode --dry-run
56
- npx thoth-agents@latest install --agent=opencode
69
+ claude plugin marketplace add https://github.com/EremesNG/thoth-plugins.git --scope user
70
+ claude plugin install thoth-agents@thoth-plugins --scope user
57
71
  ```
58
72
 
59
- Here, `@latest` selects which CLI release runs. That CLI writes the exact
60
- executing release to OpenCode configuration, for example
61
- `plugin: ["thoth-agents@0.4.8"]`; it never writes a `latest` plugin entry or
62
- falls back to one when package identity cannot be verified.
73
+ > [!TIP]
74
+ > Add `--dry-run` to any `npx thoth-agents ... install` command to preview setup
75
+ > without writing changes. After installation, restart your harness; Claude Code
76
+ > also supports `/reload-plugins`.
63
77
 
64
- Restart OpenCode and initialize the current repository:
78
+ Pi setup currently supports the default `~/.pi/agent` root. See the
79
+ [Pi installation guide](docs/installation.md#pi) for runtime requirements,
80
+ existing-package conflicts, and recovery. Pi extensions run with your user's
81
+ system permissions; agent tool allowlists are not an OS sandbox.
65
82
 
66
- ```text
67
- /thoth-init
68
- ```
83
+ For scopes, troubleshooting, or local checkout installation, see the
84
+ [installation guide](docs/installation.md). Local Pi checkout installs keep
85
+ thoth-mem setup separate.
69
86
 
70
- The installer materializes the five packaged thoth-owned workflow skills under
71
- `~/.config/opencode/skills/`; external skills are installed globally from their
72
- canonical repositories, and thoth-mem completes its own provider setup. The
73
- `/thoth-init` command only initializes or synchronizes the minimum `openspec/`
74
- governance structure. It never installs skills, agents, plugins, harness
75
- configuration, dependencies, or workflow templates. SDD phases read templates
76
- directly from the globally installed `thoth-sdd` skill; any legacy project
77
- `openspec/templates/` tree remains untouched.
87
+ ## Get started
78
88
 
79
- ### Codex
89
+ ### 1. Check your installation
80
90
 
81
- Preview, then run the combined native-plugin and global-layer installer:
91
+ After setup completes, inspect the installed state:
82
92
 
83
93
  ```bash
84
- npx thoth-agents@latest install --agent=codex --dry-run
85
- npx thoth-agents@latest install --agent=codex
94
+ npx thoth-agents@latest status
86
95
  ```
87
96
 
88
- The CLI first uses Codex's native manager to register `EremesNG/thoth-agents`
89
- and install or enable `thoth-agents@thoth-agents`. It then writes the
90
- orchestrator block to `~/.codex/AGENTS.md`, creates six custom-agent TOMLs under
91
- `~/.codex/agents/`, merges the managed feature into `~/.codex/config.toml`,
92
- installs the external skills, and invokes provider-owned thoth-mem setup.
93
- Restart Codex, then initialize each target repository's SDD governance:
97
+ If setup reports a missing dependency or a manual action, resolve it before
98
+ continuing. Package installation alone does not prove provider authentication
99
+ or a successful live model request.
94
100
 
95
- ```text
96
- $thoth-init
97
- ```
101
+ ### 2. Initialize your project
98
102
 
99
- The plugin contributes skills, their workflow templates, and MCP configuration.
100
- `$thoth-init` creates only missing `openspec/` governance files; SDD phases read
101
- templates from the plugin's installed `thoth-sdd` skill instead of copying them
102
- into the repository.
103
+ Open your repository in the harness and invoke the installed `thoth-init` skill:
103
104
 
104
- Review `/plugins` and `/hooks` after installation. Codex trust and
105
- higher-precedence instructions remain in force.
106
-
107
- ### Claude Code
105
+ | Harness | In your agent conversation |
106
+ | --- | --- |
107
+ | OpenCode | `/thoth-init` |
108
+ | Codex | `$thoth-init` |
109
+ | Claude Code | `/thoth-agents:thoth-init` |
110
+ | Pi | Ask: `Use the thoth-init skill to initialize this repository.` |
108
111
 
109
- Claude requires its two native marketplace steps before the plugin can expose
110
- agents or skills:
112
+ This prepares the repository's `openspec/` governance for structured workflows.
113
+ It does not install plugins or dependencies, and it preserves existing
114
+ constitutions.
111
115
 
112
- ```bash
113
- claude plugin marketplace add EremesNG/thoth-agents --scope user
114
- claude plugin install thoth-agents@thoth-agents --scope user
115
- ```
116
+ ### 3. Give Thoth a task
116
117
 
117
- Then install the mandatory external skills and invoke provider-owned thoth-mem
118
- setup:
118
+ Start with a goal, not a list of agents to manage. For example:
119
119
 
120
- ```bash
121
- npx thoth-agents@latest install --agent=claude --dry-run
122
- npx thoth-agents@latest install --agent=claude
120
+ ```text
121
+ Fix the broken documentation link using the Direct route.
123
122
  ```
124
123
 
125
- Restart Claude Code or run `/reload-plugins`, then initialize the repository:
126
-
127
124
  ```text
128
- /thoth-agents:thoth-init
125
+ Add CSV export to the reports page using Accelerated SDD.
126
+ Keep the existing filters and include tests for empty results.
129
127
  ```
130
128
 
131
- Claude discovers the packaged orchestrator, six namespaced subagents, and five
132
- thoth-owned skills from the plugin. The CLI installs the external skills into
133
- Claude's global skill root and requires thoth-mem's own setup result to be
134
- complete. Init creates only the missing project governance files; it never edits
135
- Claude's manager-owned plugin cache or copies workflow templates out of it.
136
-
137
- See [Installation](docs/installation.md), [Codex Install](docs/codex-install.md),
138
- and [Claude Code Install](docs/claude-code-install.md) for scopes, verification,
139
- and limitations.
129
+ ```text
130
+ Use Full SDD to plan a migration from our current authentication system.
131
+ Explore the risks before proposing changes.
132
+ ```
140
133
 
141
- ## Seven roles
134
+ You can name a route explicitly or let Thoth recommend one. Describe your
135
+ constraints and expected outcome; the Orchestrator decides whether to handle
136
+ work directly or bring in a specialist.
142
137
 
143
- One adaptive root and six specialists cover repository discovery, authoritative
144
- research, independent verification, UI/UX, narrow implementation, and
145
- correctness-critical work.
138
+ ## Meet the team
146
139
 
147
- ### Adaptive root
140
+ ### One coordinator
148
141
 
149
- <table width="100%">
142
+ <table>
150
143
  <tr>
151
- <td width="34%" align="center" valign="top">
152
- <img src="img/agents/orchestrator.webp" width="240" alt="Human cyber-Egyptian interpretation of Thoth coordinating the team as Orchestrator">
153
- </td>
154
- <td width="66%" valign="top">
155
- <b>Orchestrator</b>
156
- <br>
157
- <i>Adaptive root and final synthesis.</i>
158
- <br><br>
159
- Keeps task ownership and synthesis, recommends a route for the user's
160
- selection, coordinates SDD artifacts, and implements bounded work directly.
161
- <br><br>
162
- <b>Mode:</b> <code>adaptive-root</code>
163
- </td>
144
+ <td width="25%" align="center"><img src="img/agents/orchestrator.webp" width="160" alt="Thoth as the Orchestrator"></td>
145
+ <td><b>Orchestrator · Keeps the work moving</b><br><br>Your main point of contact. Understands the goal, recommends a workflow, handles bounded work, and coordinates specialists without handing you the management overhead.</td>
164
146
  </tr>
165
147
  </table>
166
148
 
167
- ### Read-only specialists
149
+ ### Research and review
168
150
 
169
- <table width="100%">
170
- <tr>
171
- <td width="34%" align="center" valign="top">
172
- <img src="img/agents/explorer.webp" width="240" alt="Human cyber-Egyptian interpretation of Anubis tracing repository paths as Explorer">
173
- </td>
174
- <td width="66%" valign="top">
175
- <b>Explorer</b>
176
- <br>
177
- <i>Decision-ready local discovery.</i>
178
- <br><br>
179
- Resolves repository uncertainty and returns decision-ready local evidence.
180
- <br><br>
181
- <b>Mode:</b> <code>read-only</code>
182
- </td>
183
- </tr>
184
- </table>
151
+ | Explorer | Librarian | Oracle |
152
+ | :---: | :---: | :---: |
153
+ | <img src="img/agents/explorer.webp" width="150" alt="Anubis as the Explorer"> | <img src="img/agents/librarian.webp" width="150" alt="Seshat as the Librarian"> | <img src="img/agents/oracle.webp" width="150" alt="Ma'at as the Oracle"> |
154
+ | **Finds the relevant code.** Maps unfamiliar repository behavior before changes begin. | **Checks current sources.** Looks up authoritative documentation and external evidence. | **Challenges the result.** Independently reviews plans and verifies changes when the workflow or risk requires it. |
185
155
 
186
- <table width="100%">
187
- <tr>
188
- <td width="34%" align="center" valign="top">
189
- <img src="img/agents/librarian.webp" width="240" alt="Human cyber-Egyptian interpretation of Seshat consulting an authoritative scroll as Librarian">
190
- </td>
191
- <td width="66%" valign="top">
192
- <b>Librarian</b>
193
- <br>
194
- <i>Authoritative external research.</i>
195
- <br><br>
196
- Gathers current authoritative external evidence and labels inference.
197
- <br><br>
198
- <b>Mode:</b> <code>read-only</code>
199
- </td>
200
- </tr>
201
- </table>
156
+ ### Design and implementation
202
157
 
203
- <table width="100%">
204
- <tr>
205
- <td width="34%" align="center" valign="top">
206
- <img src="img/agents/oracle.webp" width="240" alt="Human cyber-Egyptian interpretation of Ma'at weighing independent evidence as Oracle">
207
- </td>
208
- <td width="66%" valign="top">
209
- <b>Oracle</b>
210
- <br>
211
- <i>Independent analysis and verification.</i>
212
- <br><br>
213
- Reviews plans when the user requests it and independently verifies every
214
- implementation.
215
- <br><br>
216
- <b>Mode:</b> <code>read-only</code>
217
- </td>
218
- </tr>
219
- </table>
158
+ | Designer | Quick | Deep |
159
+ | :---: | :---: | :---: |
160
+ | <img src="img/agents/designer.webp" width="150" alt="Hathor as the Designer"> | <img src="img/agents/quick.webp" width="150" alt="Horus as Quick"> | <img src="img/agents/deep.webp" width="150" alt="Sobek as Deep"> |
161
+ | **Makes interfaces work well.** Owns UI/UX, accessibility, implementation, and visual quality. | **Makes focused changes.** Handles clear, narrow, low-risk implementation tasks. | **Handles complex changes.** Works through coupled behavior, edge cases, and correctness-critical implementation. |
220
162
 
221
- ### Implementation writers
163
+ Research and review specialists are read-only. Implementation work has one
164
+ writer per area; independent areas can proceed in parallel when the harness
165
+ supports it. You do not need to summon every role for every task.
222
166
 
223
- <table width="100%">
224
- <tr>
225
- <td width="34%" align="center" valign="top">
226
- <img src="img/agents/designer.webp" width="240" alt="Human cyber-Egyptian interpretation of Hathor shaping interface geometry as Designer">
227
- </td>
228
- <td width="66%" valign="top">
229
- <b>Designer</b>
230
- <br>
231
- <i>UI/UX ownership and visual quality.</i>
232
- <br><br>
233
- Owns UI/UX choices, implementation, and visual verification.
234
- <br><br>
235
- <b>Mode:</b> <code>write-capable</code>
236
- </td>
237
- </tr>
238
- </table>
239
-
240
- <table width="100%">
241
- <tr>
242
- <td width="34%" align="center" valign="top">
243
- <img src="img/agents/quick.webp" width="240" alt="Human cyber-Egyptian interpretation of Horus placing a precise component as Quick">
244
- </td>
245
- <td width="66%" valign="top">
246
- <b>Quick</b>
247
- <br>
248
- <i>Fast bounded implementation.</i>
249
- <br><br>
250
- Makes narrow, clear, low-risk edits within an explicit surface.
251
- <br><br>
252
- <b>Mode:</b> <code>write-capable</code>
253
- </td>
254
- </tr>
255
- </table>
167
+ ## Choose your workflow
256
168
 
257
- <table width="100%">
258
- <tr>
259
- <td width="34%" align="center" valign="top">
260
- <img src="img/agents/deep.webp" width="240" alt="Human cyber-Egyptian interpretation of Sobek examining a complex mechanism as Deep">
261
- </td>
262
- <td width="66%" valign="top">
263
- <b>Deep</b>
264
- <br>
265
- <i>Correctness-critical implementation.</i>
266
- <br><br>
267
- Handles multi-file, edge-case-heavy, or correctness-critical
268
- implementation.
269
- <br><br>
270
- <b>Mode:</b> <code>write-capable</code>
271
- </td>
272
- </tr>
273
- </table>
169
+ SDD means **specification-driven development**: agree on the intended result,
170
+ plan the work, implement it, and check it against that intent.
274
171
 
275
- Children do not delegate. Each mutable surface has one writer. Parallel work is
276
- limited to independent surfaces. The implementation writer never reviews or
277
- approves its own result: `oracle` owns every `verify`, including Direct and
278
- Accelerated work.
279
-
280
- ## SDD routes
281
-
282
- ```text
283
- Direct: implement -> verify
284
- Accelerated: specify -> plan -> tasks -> implement -> verify -> archive
285
- Full: explore -> specify -> plan -> tasks -> implement -> verify -> archive
286
- ```
287
-
288
- | Route | Use when | Artifacts |
172
+ | Route | Best for | What to expect |
289
173
  | --- | --- | --- |
290
- | Direct | Clear, bounded, low-risk work, including multi-file documentation/mechanical edits | None; oracle returns its verdict in-session. |
291
- | Accelerated | Generic SDD request, partial clarity, moderate risk, multi-surface behavior, or architecture | Canonical artifacts with fast-forward specification/planning/tasks. |
292
- | Full | Material uncertainty, cross-cutting behavior/architecture, high contract risk, or high failure cost | Accelerated artifacts plus exploration and separate planning gates. |
293
-
294
- The root loads only the current phase contract from the bundled `thoth-sdd`
295
- skill. It owns specification, clarification, planning, requirements checklists,
296
- task decomposition, convergence, report persistence, and archive. `explorer`
297
- owns Full discovery; `oracle` owns user-selected plan review and every `verify`.
298
-
299
- An explicitly named route is the user's selection and wins. Otherwise root
300
- recommends one of all three routes and waits for the user's choice. A generic
301
- request to use SDD sets Accelerated as the minimum recommendation. Accelerated
302
- writes `spec.md -> plan.md -> tasks.md` in one uninterrupted root pass and does
303
- not pause for routine approval between those planning phases.
304
-
305
- Conditional phases remain deliberately narrow:
306
-
307
- - `clarify` runs only for a material ambiguity and updates canonical `spec.md`;
308
- - `checklist` audits high-risk requirement quality with `CHK###` taxonomy and a
309
- separate revalidation pass;
310
- - `plan-review` is offered after `ready` on Accelerated and Full; the user chooses
311
- `Review plan with Oracle (Recommended)` or `Proceed without review`;
312
- - `converge` appends tasks only after failed artifact-backed verification; and
313
- - `architectural-grilling` runs before specification only when explicitly
314
- requested or a material human-owned decision remains unresolved.
315
-
316
- Accelerated and Full use Spec Kit-grade formats: independent prioritized `US#`
317
- stories with explicit FR/SC coverage, Given/When/Then scenarios, named normative
318
- FRs with durable/internal delta metadata, buildable/outcome SC types,
319
- Constitution checks, `T### [P?] [US#?]` task grammar, honest parallel-or-none
320
- evidence, risk-driven checklist lenses, `ready`/`closeout` validation, compliance
321
- reports, and transactional synchronization of declared durable deltas at archive.
322
- Handled failures roll back within the active process; forced process or OS
323
- termination is not crash-atomic. See
324
- [SDD Pipeline](docs/sdd-pipeline.md).
325
-
326
- ## Skills
327
-
328
- Every harness package includes the workflow contracts owned by thoth-agents:
329
-
330
- | Skill | Purpose |
331
- | --- | --- |
332
- | `thoth-init` | Offline, idempotent initialization and synchronization of minimum `openspec/` governance only. |
333
- | `thoth-sdd` | Route rules, phase contracts, templates, and structural validator. |
334
- | `thoth-constitution` | Explicit governance SemVer lifecycle; routine plans only read principles. |
335
- | `thoth-archive` | Passing closeout, transactional durable-spec sync, audit report, and dated move. |
336
- | `plan-reviewer` | Optional read-only Oracle plan review with exact `[OKAY]`/`[REJECT]` results and freshness evidence. |
337
-
338
- The installer obtains these mandatory external skills from their single source
339
- of truth:
174
+ | **Direct** | Clear, bounded, low-risk fixes and documentation changes. | Implement → verify. No planning artifacts required. |
175
+ | **Accelerated** | Features spanning several areas, moderate risk, or a request to use SDD. | Specify → plan → tasks → implement → verify → archive. Planning runs in one pass unless a material decision needs you. |
176
+ | **Full** | Uncertain requirements, architectural changes, or high-cost failures. | Explore first, then follow the structured workflow with separate planning checkpoints. |
340
177
 
341
- | Skill | Canonical repository |
342
- | --- | --- |
343
- | `simplify` | `https://github.com/EremesNG/skills` |
344
- | `tdd` | `https://github.com/mattpocock/skills` |
345
- | `progressive-context-router` | `https://github.com/EremesNG/skills` |
346
- | `architectural-grilling` | `https://github.com/EremesNG/skills` |
347
-
348
- It invokes `npx skills add <repository> --skill <name> --global --agent
349
- <harness> --yes`; missing external skills make installation unhealthy. Project
350
- QA executables such as Playwright remain project-owned.
178
+ For Accelerated and Full, the specification, plan, tasks, and verification
179
+ reports live under `openspec/`, so you can inspect what was agreed and what
180
+ was checked. You can choose an optional Oracle plan review before implementation;
181
+ final verification is required either way. These routes and materially risky
182
+ Direct work use an independent Oracle for final verification.
351
183
 
352
- The same CLI installation then invokes `npx -y thoth-mem@latest setup
353
- <opencode|codex|claude> --scope global --json`; dry-run adds `--plan`. Only a
354
- consistent provider `complete` result completes installation. Provider
355
- diagnostics, manual actions, and receipt paths remain visible for recovery.
184
+ > [!TIP]
185
+ > You stay in control of the route. Say “Use Direct,” “Use Accelerated SDD,” or
186
+ > “Use Full SDD” when you already know how much structure you want.
356
187
 
357
- ## Harness limitations
188
+ The installed skills cover project initialization, SDD, project principles,
189
+ plan review, and archiving. External skills add test-driven development,
190
+ behavior-preserving simplification, focused repository context, and architectural
191
+ questioning when needed. See [Skills and MCPs](docs/skills-and-mcps.md) and the
192
+ [SDD workflow guide](docs/sdd-pipeline.md) for details.
358
193
 
359
- | Harness | Important limitation |
360
- | --- | --- |
361
- | OpenCode | Strongest integrated path. The CLI installs the npm plugin configuration, global thoth-owned and external skills, and provider-owned thoth-mem setup; `/thoth-init` only initializes per-repository `openspec/` governance. Only the OpenAI built-in preset ships. |
362
- | Codex | The CLI installs the native plugin and manages global `AGENTS.md`, six agent TOMLs, config, external skills, and thoth-mem setup; `$thoth-init` only initializes per-repository SDD governance. Runtime role matching and some permissions remain instruction-level. |
363
- | Claude Code | Run both native marketplace commands before the CLI installs external skills and requests thoth-mem setup. The native manager owns cache files; fine-grained path restrictions remain instruction-level. |
194
+ ## Configure and update
364
195
 
365
- Codex and Claude marketplace manifests are versioned in
366
- `.agents/plugins/marketplace.json` and `.claude-plugin/marketplace.json`. The
367
- two catalogs resolve to the same generated `plugin/` bundle. Build and npm
368
- version lifecycle commands keep that shared bundle synchronized.
196
+ ### Tune the team
369
197
 
370
- ## Models and provider boundaries
198
+ Use the interactive CLI to inspect setup and configure role models:
371
199
 
372
- OpenCode install and sync ship and select only the `openai` preset. Kimi,
373
- GitHub Copilot, ZAI/GLM, and mixed-provider mappings are not built in. Explicit
374
- per-role model overrides remain available. Applying model configuration creates
375
- a complete seven-role `agents` preset from the effective values and activates
376
- it with `preset: agents`; unrelated presets and configuration remain intact.
200
+ ```bash
201
+ npx thoth-agents@latest
202
+ ```
377
203
 
378
- thoth-mem is an independent plugin/provider. `thoth-agents install` orchestrates
379
- its public setup command, but thoth-mem owns the resulting hooks, MCP, skill,
380
- session lifecycle, persistence, receipts, and recovery. thoth-agents does not
381
- copy, edit, force, roll back, or emulate those mechanics.
204
+ Choose models your harness and provider account can access. OpenCode ships the
205
+ **OpenAI preset**; per-role overrides let you customize it. Other harnesses use
206
+ their own model configuration and capability rules.
382
207
 
383
- At runtime the root loads the installed `thoth-mem` skill for prior-work recall,
384
- durable decisions/root causes/conventions/discoveries, verified compaction, and
385
- meaningful semantic completion. Delegates receive bounded `none`, `recall`, or
386
- `observe` authorization separately from workspace write permission; root
387
- lifecycle never transfers. `openspec/` remains canonical, so SDD phase artifacts
388
- are not mirrored into memory.
208
+ See [Provider Configuration](docs/provider-configurations.md) and
209
+ [Codex Model Customization](docs/codex-model-customization.md).
389
210
 
390
- ## CLI operations
211
+ ### Keep the complete installation current
391
212
 
392
- The npm CLI is part of installation for every harness and remains available for
393
- status, repair, and model/configuration operations:
213
+ Preview an update, then apply it explicitly:
394
214
 
395
215
  ```bash
396
- npx thoth-agents@latest status
397
- npx thoth-agents@latest list
398
- npx thoth-agents@latest install --agent=opencode
399
- npx thoth-agents@latest install --agent=codex
400
- npx thoth-agents@latest install --agent=claude
401
216
  npx thoth-agents@latest update --harness=opencode
402
217
  npx thoth-agents@latest update --harness=opencode --apply
403
- npx thoth-agents@latest model --harness=codex --role=deep --model=gpt-5.6-sol
404
218
  ```
405
219
 
406
- `update` previews by default. Applying it performs the same complete refresh as
407
- installation for the selected harness: OpenCode refreshes its exact plugin pin,
408
- managed configuration, owned skills, external skills, and provider setup;
409
- Codex runs native plugin setup before its global agent pack, external skills,
410
- and provider setup; Claude refreshes its native plugin before external skills
411
- and provider setup. Any required failure makes the operation fail rather than
412
- claiming a complete update.
413
-
414
- After every required step succeeds, the CLI records that harness's executing
415
- version in
416
- `${XDG_CONFIG_HOME:-~/.config}/thoth-agents/install-state.json`. `status` shows
417
- the executing CLI version and this last complete CLI-managed version. The three
418
- harness records are independent: native Codex or Claude marketplace updates do
419
- not advance them and do not prove that CLI-managed agents, skills,
420
- configuration, or provider setup are current.
421
-
422
- OpenCode's runtime release check is notification-only. It does not rewrite the
423
- exact plugin pin, invalidate package state, or run a package manager. Follow the
424
- notification by rerunning the latest CLI installer or applying CLI Update.
425
-
426
- In the interactive `Configure models` flow, `Apply` is always available. When
427
- no role is dirty, it reapplies every currently displayed role value; after an
428
- edit, preview and apply remain limited to the dirty roles. In OpenCode, both
429
- `Apply` and `Apply changes` materialize the complete effective roster and
430
- activate the named `agents` preset.
431
-
432
- It does not bypass native marketplace trust or edit manager-owned caches
433
- directly; Codex and Claude own their native manager mutations.
434
-
435
- ## Documentation
220
+ Replace `opencode` with `codex`, `claude`, or `pi` for your harness. Close Codex
221
+ before applying its update, and restart the selected harness afterward.
436
222
 
437
- - [Installation](docs/installation.md)
438
- - [Quick Reference](docs/quick-reference.md)
439
- - [SDD Pipeline](docs/sdd-pipeline.md)
440
- - [Skills and MCPs](docs/skills-and-mcps.md)
441
- - [Codex Install](docs/codex-install.md)
442
- - [Claude Code Install](docs/claude-code-install.md)
443
- - [Codex Plugin Packaging](docs/codex-plugin-packaging.md)
444
- - [Claude Code Plugin Packaging](docs/claude-code-plugin-packaging.md)
445
- - [Provider Configuration](docs/provider-configurations.md)
223
+ An applied update refreshes the complete CLI-managed setup, including required
224
+ skills and provider setup—not just the plugin. Native marketplace updates alone
225
+ do not prove those other pieces are current. Use `status` to inspect the last
226
+ complete CLI-managed installation and follow any reported recovery actions.
446
227
 
447
- ## Development
448
-
449
- ```bash
450
- pnpm install
451
- pnpm run check:ci
452
- pnpm run typecheck
453
- pnpm run build
454
- pnpm test
455
- ```
456
-
457
- Node.js `>=22.13` and `pnpm@11.2.2` are required. `pnpm run build` regenerates
458
- both integration packages, compiles the runtime and declarations, and refreshes
459
- the JSON schema.
228
+ ## Documentation
460
229
 
461
- ## License
230
+ ### User guides
462
231
 
463
- [MIT](LICENSE)
232
+ | Guide | Use it to… |
233
+ | --- | --- |
234
+ | [Installation](docs/installation.md) | Check prerequisites, preview setup, troubleshoot, and repair an installation. |
235
+ | [Quick Reference](docs/quick-reference.md) | Find commands, roles, skills, and workflow reminders. |
236
+ | [SDD Pipeline](docs/sdd-pipeline.md) | Understand planning, review, verification, and archiving. |
237
+ | [Skills and MCPs](docs/skills-and-mcps.md) | See the included workflows, research tools, and memory boundaries. |
238
+ | [Provider Configuration](docs/provider-configurations.md) | Configure models and providers. |
239
+ | [Codex Install](docs/codex-install.md) | Follow Codex-specific setup, activation, and trust requirements. |
240
+ | [Codex Model Customization](docs/codex-model-customization.md) | Adjust Codex specialist models. |
241
+ | [Claude Code Install](docs/claude-code-install.md) | Follow marketplace setup and activation. |
242
+ | [Pi Setup](docs/installation.md#pi) | Check Pi dependencies, permissions, and recovery steps. |
243
+ | [Tmux Integration](docs/tmux-integration.md) | Configure OpenCode's optional terminal-pane integration. |
244
+
245
+ ### Technical guides
246
+
247
+ Working on thoth-agents itself? Start here rather than in the user setup above.
248
+
249
+ | Guide | What it covers |
250
+ | --- | --- |
251
+ | [Development](docs/development.md) | Local build, verification, and harness development setup. |
252
+ | [Architecture](docs/agent/architecture.md) | Repository structure and component responsibilities. |
253
+ | [Codex Plugin Packaging](docs/codex-plugin-packaging.md) | Plugin contents, the global layer, and local synchronization. |
254
+ | [Claude Code Plugin Packaging](docs/claude-code-plugin-packaging.md) | Native discovery, packaging, and ownership boundaries. |
255
+ | [Codex Surface Validation](docs/codex-surface-validation.md) | Harness-specific validation evidence and limitations. |
256
+ | [Agent Context Index](docs/agent/index.md) | Task-specific engineering and testing guidance. |