geneseed 3.11.0 → 3.13.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 (265) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/README.md +5 -5
  3. package/SHIPPED.md +2 -2
  4. package/adapters/bob/README.md +1 -1
  5. package/adapters/claude-code/README.md +1 -1
  6. package/adapters/openclaude/README.md +1 -1
  7. package/adapters/opencode/README.md +3 -3
  8. package/adapters/opencode/plugins/geneseed-guard.js +157 -2
  9. package/bin/geneseed-cli.mjs +4 -0
  10. package/docs/README.md +41 -22
  11. package/docs/concepts/agents.md +3 -1
  12. package/docs/concepts/collaboration.md +3 -1
  13. package/docs/concepts/exclusions.md +4 -2
  14. package/docs/concepts/footprint.md +3 -1
  15. package/docs/concepts/foreman-mode.md +4 -2
  16. package/docs/concepts/hook-gates.md +61 -0
  17. package/docs/concepts/hooks.md +8 -56
  18. package/docs/concepts/host-matrix.md +38 -0
  19. package/docs/concepts/hosts.md +6 -32
  20. package/docs/concepts/loop-branch.md +66 -0
  21. package/docs/concepts/loop-bricks.md +48 -0
  22. package/docs/concepts/loop-contracts.md +33 -0
  23. package/docs/concepts/loop-gates.md +30 -0
  24. package/docs/concepts/loop-notes.md +43 -0
  25. package/docs/concepts/loop-risk.md +36 -0
  26. package/docs/concepts/loop-templates.md +50 -0
  27. package/docs/concepts/loops.md +73 -0
  28. package/docs/concepts/lsp.md +2 -0
  29. package/docs/concepts/memory.md +3 -1
  30. package/docs/concepts/notebook.md +3 -1
  31. package/docs/concepts/rules.md +4 -2
  32. package/docs/concepts/skills.md +3 -1
  33. package/docs/concepts/themes.md +3 -1
  34. package/docs/extending.md +28 -8
  35. package/docs/guides/autostart.md +3 -1
  36. package/docs/guides/choose-your-setup.md +5 -66
  37. package/docs/guides/headless.md +5 -3
  38. package/docs/guides/install-agent-md.md +37 -0
  39. package/docs/guides/install-bob.md +20 -0
  40. package/docs/guides/install-claude-code.md +22 -0
  41. package/docs/guides/install-clone.md +34 -0
  42. package/docs/guides/install-openclaude.md +25 -0
  43. package/docs/guides/install-opencode.md +35 -0
  44. package/docs/guides/install-scripted.md +21 -0
  45. package/docs/guides/install.md +9 -118
  46. package/docs/guides/loop-finish.md +54 -0
  47. package/docs/guides/loop-running.md +66 -0
  48. package/docs/guides/loop-which-template.md +35 -0
  49. package/docs/guides/mcp-filesystem.md +41 -0
  50. package/docs/guides/mcp-gitlab.md +66 -0
  51. package/docs/guides/mcp-markitdown.md +36 -0
  52. package/docs/guides/mcp.md +8 -137
  53. package/docs/guides/migrate.md +3 -1
  54. package/docs/guides/project-context.md +4 -2
  55. package/docs/guides/read-non-markdown.md +17 -0
  56. package/docs/guides/run-a-loop.md +64 -0
  57. package/docs/guides/run-anywhere.md +2 -0
  58. package/docs/guides/setup-doctrines.md +55 -0
  59. package/docs/guides/setup-footprint.md +48 -0
  60. package/docs/guides/uninstall.md +3 -1
  61. package/docs/guides/upgrade.md +3 -1
  62. package/docs/guides/verify.md +3 -1
  63. package/docs/guides/wiki.md +3 -1
  64. package/docs/guides/worktree.md +3 -1
  65. package/docs/reference/about.md +3 -1
  66. package/docs/reference/cli.md +2 -0
  67. package/docs/reference/env-context.md +40 -0
  68. package/docs/reference/environment.md +10 -59
  69. package/docs/reference/glossary.md +7 -1
  70. package/docs/reference/loop-actions.md +20 -0
  71. package/docs/reference/opencode-plugins.md +14 -116
  72. package/docs/reference/plugin-activity.md +20 -0
  73. package/docs/reference/plugin-context.md +27 -0
  74. package/docs/reference/plugin-guard.md +27 -0
  75. package/docs/reference/plugin-learn.md +27 -0
  76. package/docs/reference/plugin-notify.md +20 -0
  77. package/docs/reference/plugin-ponytail.md +19 -0
  78. package/docs/reference/plugin-workflow.md +25 -0
  79. package/docs/reference/troubleshoot-doctor.md +50 -0
  80. package/docs/reference/troubleshoot-hooks.md +99 -0
  81. package/docs/reference/troubleshoot-install.md +108 -0
  82. package/docs/reference/troubleshoot-tools.md +56 -0
  83. package/docs/reference/troubleshoot-update.md +23 -0
  84. package/docs/reference/troubleshoot-web.md +66 -0
  85. package/docs/reference/troubleshooting.md +13 -337
  86. package/docs/understand/a-day.md +3 -1
  87. package/docs/understand/enforced-vs-asked.md +3 -1
  88. package/docs/understand/harness.md +2 -0
  89. package/docs/understand/machine-bob.md +17 -0
  90. package/docs/understand/machine-claude.md +35 -0
  91. package/docs/understand/machine-opencode.md +36 -0
  92. package/docs/understand/on-your-machine.md +12 -55
  93. package/docs/understand/take-it-out.md +13 -0
  94. package/docs/web-ui.md +36 -5
  95. package/harness.config.json +1 -1
  96. package/js/README.md +32 -2
  97. package/js/build/driver.mjs +14 -8
  98. package/js/build/generate.mjs +10 -6
  99. package/js/build/render.mjs +5 -0
  100. package/js/build/source.mjs +5 -1
  101. package/js/cli-table.json +261 -0
  102. package/js/hosts/gitref.mjs +99 -0
  103. package/js/hosts/hooks.mjs +88 -1
  104. package/js/hosts/installs.mjs +21 -0
  105. package/js/hosts/mcp.mjs +1 -1
  106. package/js/hosts/native.mjs +43 -5
  107. package/js/inspect/checks-authoring.mjs +10 -0
  108. package/js/inspect/checks-build.mjs +28 -0
  109. package/js/inspect/diff.mjs +3 -0
  110. package/js/inspect/doctor.mjs +2 -1
  111. package/js/inspect/inventory.mjs +1 -0
  112. package/js/inspect/status.mjs +1 -1
  113. package/js/loop/catalog.mjs +127 -0
  114. package/js/loop/cli.mjs +173 -0
  115. package/js/loop/graph.mjs +163 -0
  116. package/js/loop/registry.mjs +196 -0
  117. package/js/loop/score.mjs +182 -0
  118. package/js/loop/state.mjs +436 -0
  119. package/js/maintain/migrate.mjs +4 -2
  120. package/js/maintain/setup.mjs +1 -1
  121. package/js/web/actions.mjs +34 -3
  122. package/js/web/api.mjs +51 -2
  123. package/js/web/daemon.mjs +43 -5
  124. package/js/web/docs.mjs +64 -12
  125. package/js/web/handler.mjs +1 -0
  126. package/js/web/jobs.mjs +3 -1
  127. package/js/web/routes.mjs +5 -1
  128. package/js/web/server.mjs +5 -3
  129. package/package.json +1 -1
  130. package/registry.json +14 -0
  131. package/src/AGENT.md.tmpl +2 -0
  132. package/src/agents/explorer.md +2 -2
  133. package/src/agents/researcher.md +3 -3
  134. package/src/bricks/README.md +34 -0
  135. package/src/bricks/_template.md +32 -0
  136. package/src/bricks/adr-challenge.md +20 -0
  137. package/src/bricks/adr-draft.md +15 -0
  138. package/src/bricks/apply.md +17 -0
  139. package/src/bricks/baseline-green.md +17 -0
  140. package/src/bricks/bruno-test.md +16 -0
  141. package/src/bricks/characterize.md +17 -0
  142. package/src/bricks/ci-fix.md +18 -0
  143. package/src/bricks/ci-triage.md +20 -0
  144. package/src/bricks/compat-check.md +16 -0
  145. package/src/bricks/deps-audit.md +14 -0
  146. package/src/bricks/docs-update.md +15 -0
  147. package/src/bricks/done-check.md +16 -0
  148. package/src/bricks/fitness-define.md +22 -0
  149. package/src/bricks/flake-check.md +17 -0
  150. package/src/bricks/flake-repro.md +18 -0
  151. package/src/bricks/identify.md +23 -0
  152. package/src/bricks/lint.md +14 -0
  153. package/src/bricks/migration-plan.md +21 -0
  154. package/src/bricks/mutation-check.md +18 -0
  155. package/src/bricks/plan.md +17 -0
  156. package/src/bricks/red-test.md +16 -0
  157. package/src/bricks/reproduce.md +16 -0
  158. package/src/bricks/review.md +19 -0
  159. package/src/bricks/security-scan.md +17 -0
  160. package/src/bricks/spec.md +18 -0
  161. package/src/bricks/test.md +14 -0
  162. package/src/bricks/upgrade-scout.md +16 -0
  163. package/src/doctrines/process.md +11 -8
  164. package/src/loops/api-endpoint.json +31 -0
  165. package/src/loops/architecture-decision.json +22 -0
  166. package/src/loops/bugfix.json +23 -0
  167. package/src/loops/ci-repair.json +19 -0
  168. package/src/loops/deps-upgrade.json +29 -0
  169. package/src/loops/enforce-architecture-rule.json +28 -0
  170. package/src/loops/feature.json +24 -0
  171. package/src/loops/fix-flaky-tests.json +30 -0
  172. package/src/loops/legacy-refactor.json +26 -0
  173. package/src/loops/legacy-tests.json +29 -0
  174. package/src/loops/refactor.json +24 -0
  175. package/src/loops/remove-dead-code.json +30 -0
  176. package/src/loops/spec-first-feature.json +29 -0
  177. package/src/loops/tdd.json +25 -0
  178. package/src/loops/update-contract.json +33 -0
  179. package/src/skills/brick-forge.md +48 -0
  180. package/src/skills/bruno-collection-generator.md +3 -3
  181. package/src/skills/bruno-test-writer.md +3 -3
  182. package/src/skills/ci-fix.md +3 -3
  183. package/src/skills/consolidate-memory.md +4 -4
  184. package/src/skills/council.md +1 -1
  185. package/src/skills/fresh-eyes.md +1 -1
  186. package/src/skills/geneseed.md +1 -1
  187. package/src/skills/git-archaeology.md +1 -1
  188. package/src/skills/git-rescue.md +4 -3
  189. package/src/skills/handoff.md +1 -1
  190. package/src/skills/herdr.md +1 -1
  191. package/src/skills/learn-mode.md +2 -2
  192. package/src/skills/loop.md +111 -0
  193. package/src/skills/opencode-theme.md +3 -3
  194. package/src/skills/ponytail.md +1 -1
  195. package/src/skills/profile.md +3 -4
  196. package/src/skills/prose.md +2 -3
  197. package/src/skills/quiz.md +1 -1
  198. package/src/skills/react-view-transitions/SKILL.md +1 -1
  199. package/src/skills/react-view-transitions/VENDOR.md +8 -3
  200. package/src/skills/research.md +3 -3
  201. package/src/skills/review-response.md +2 -2
  202. package/src/skills/rule.md +3 -3
  203. package/src/skills/security-audit.md +4 -4
  204. package/src/skills/teach.md +1 -1
  205. package/src/skills/wiki.md +3 -3
  206. package/src/skills/workflow.md +4 -4
  207. package/src/skills/worktree.md +2 -2
  208. package/themes/_TEMPLATE.json +2 -0
  209. package/themes/biker.json +2 -0
  210. package/themes/commentator.json +2 -0
  211. package/themes/cyberpunk.json +2 -0
  212. package/themes/gamer.json +2 -0
  213. package/themes/imperial.json +2 -0
  214. package/themes/joker.json +2 -0
  215. package/themes/marvin.json +2 -0
  216. package/themes/mean.json +2 -0
  217. package/themes/military.json +2 -0
  218. package/themes/neutral.json +2 -0
  219. package/themes/pirate.json +2 -0
  220. package/themes/sports.json +2 -0
  221. package/themes/verstappen.json +2 -0
  222. package/themes/wizard.json +2 -0
  223. package/web/dist/assets/Activity-Ca2Aruu7.js +1 -0
  224. package/web/dist/assets/ActivityDetail-Bo7v4Z_r.js +1 -0
  225. package/web/dist/assets/Dashboard-BuMq46aT.js +2 -0
  226. package/web/dist/assets/Docs-BzccCllG.js +5 -0
  227. package/web/dist/assets/FilterInput-CBcJBQPI.js +1 -0
  228. package/web/dist/assets/GreenhouseView-BCIKcnGG.js +2 -0
  229. package/web/dist/assets/Installs-DMFJvq7s.js +2 -0
  230. package/web/dist/assets/JournalView-o1rmd1_1.js +1 -0
  231. package/web/dist/assets/Laws-BANxq_I_.js +3 -0
  232. package/web/dist/assets/Library-DW4x0fbh.js +1 -0
  233. package/web/dist/assets/Loops-DEBibbBP.js +2 -0
  234. package/web/dist/assets/{Markdown-qjM2_ofS.js → Markdown-CdTX0kLe.js} +14 -14
  235. package/web/dist/assets/OperatorHudView-CLD0fYaA.js +2 -0
  236. package/web/dist/assets/Personal-6uMJvyBG.js +1 -0
  237. package/web/dist/assets/Tabs-BubnyZhF.js +1 -0
  238. package/web/dist/assets/activity-CObqyxkL.js +1 -0
  239. package/web/dist/assets/{api-Dc8f3ca-.js → api-D_ixdyEY.js} +1 -1
  240. package/web/dist/assets/drawable-C_x5xncq.js +1 -0
  241. package/web/dist/assets/index-CMPgezFm.js +2 -0
  242. package/web/dist/assets/index-DMsT4Aa6.css +1 -0
  243. package/web/dist/assets/{react-B9Z_tXRV.js → react-Bbzhmq4v.js} +1 -1
  244. package/web/dist/assets/rolldown-runtime-hePW80VL.js +1 -0
  245. package/web/dist/assets/sections-Dg23Hel5.js +1 -0
  246. package/web/dist/assets/usePoll-BOqeunzF.js +1 -0
  247. package/web/dist/index.html +6 -5
  248. package/web/dist/assets/Activity-C52LEb-2.js +0 -1
  249. package/web/dist/assets/ActivityDetail-CjNLRvXg.js +0 -1
  250. package/web/dist/assets/Dashboard-B6_sSCHi.js +0 -2
  251. package/web/dist/assets/Docs-Dj7BmCSA.js +0 -5
  252. package/web/dist/assets/FilterInput-CVyqmYWM.js +0 -1
  253. package/web/dist/assets/GreenhouseView-BALwjQsA.js +0 -2
  254. package/web/dist/assets/Installs-BbffDQm3.js +0 -2
  255. package/web/dist/assets/JournalView-JpAQ8Hqe.js +0 -1
  256. package/web/dist/assets/Laws-DK7eCWSm.js +0 -3
  257. package/web/dist/assets/Library-CoamHelE.js +0 -1
  258. package/web/dist/assets/OperatorHudView-DVx1HlBx.js +0 -2
  259. package/web/dist/assets/Personal-eaXb1zcj.js +0 -1
  260. package/web/dist/assets/Tabs-BmGtt8E2.js +0 -1
  261. package/web/dist/assets/drawable-Du_PZrQj.js +0 -1
  262. package/web/dist/assets/index-Bz_KMRDH.css +0 -1
  263. package/web/dist/assets/index-CNFH7o55.js +0 -2
  264. package/web/dist/assets/sections-GalMS0Zv.js +0 -1
  265. package/web/dist/assets/usePoll-O0sJEw1Y.js +0 -1
@@ -0,0 +1,73 @@
1
+ ---
2
+ group: concepts
3
+ kind: "concept"
4
+ section: "Loops"
5
+ order: 16
6
+ title: "Loops"
7
+ link: {"hash":"#/docs/loop-actions","label":"The geneseed loop actions →"}
8
+ description: "What a loop is, the ring of bricks it runs, and how it differs from foreman mode."
9
+ ---
10
+ To run one, see [Run a loop](../guides/run-a-loop.md).
11
+
12
+ A **loop** is a requirement worked as small, validated, committed iterations instead of one long
13
+ turn. `geneseed loop` is the state machine: it decides every transition, ceiling, score and stop,
14
+ and hands the agent one node at a time to run. The `loop` [skill](skills.md) is the only thing
15
+ that talks to it — the agent runs the node it is given and reports the outcome, never its own
16
+ reading of the graph.
17
+
18
+ > **You already know this:** a checklist a tech lead walks through on a ticket, where some steps
19
+ > need a sign-off before continuing and others don't. The lead doesn't improvise the order; the
20
+ > checklist decides it, and only the risky steps stop for you.
21
+
22
+ ## The ring
23
+
24
+ A loop is a graph of **bricks** — one node each — wired by **edges**, one per outcome a brick can
25
+ report. One cycle through the graph back to its head is an **iteration**; the graph's `loops`
26
+ array names every cycle that is allowed to exist, each with a `max` number of times a node inside
27
+ it may be re-entered. Picture it as rings: the outer ring is the iteration itself (plan, apply,
28
+ test, review, back to plan), and inner rings sit inside it for retries (apply failed its test, try
29
+ `apply` again without going all the way back around). The shipped templates that center on
30
+ `apply` — `bugfix`, `feature`, `refactor`, `tdd`, `legacy-refactor`, `deps-upgrade` — all nest a
31
+ short `apply`↔`test` retry ring inside the iteration ring, and most nest a second, wider
32
+ `review-fix` ring around that. `legacy-tests` and `ci-repair` have no `apply` at all: the first
33
+ only ever writes tests, the second repairs CI directly through `ci-fix`.
34
+
35
+ Work closes into a commit whenever the graph re-enters the iteration loop's head — so any setup
36
+ work before the loop starts (reproducing a bug, say) is its own unit, numbered iteration 0, kept
37
+ out of iteration 1's diff. For the same reason the iteration has exactly one way in: its
38
+ **head** is the first node listed in the iteration loop (normally `identify`), and every edge that
39
+ enters the iteration from outside it — and `start`, when `start` is inside it — must target that
40
+ head. `geneseed loop check` refuses a graph that enters anywhere else.
41
+
42
+ **A node's re-entry budget is not each loop's `max` added up.** Every node inside one or more
43
+ inner loops gets a single shared counter: `1 + the largest max among the inner loops that contain
44
+ it`. A node in both a `max: 5` and a `max: 3` loop gets 6 re-entries total, not 8 — the loops don't
45
+ stack, the larger one wins and the `+1` is the node's own first run. A node inside no inner loop at
46
+ all gets exactly 1 — no re-entry — which is also why **every cycle inside an iteration must be a
47
+ named inner loop** in the graph JSON: `geneseed loop check` (and `loop init`, which runs the same
48
+ check) refuses a graph with an undeclared cycle inside an iteration, before a single node runs.
49
+
50
+ ## Limits
51
+
52
+ - **No parallel nodes.** The graph runs one node at a time; there is no fan-out.
53
+ - **A per-install skill exclusion is invisible to the CLI** (see [Bricks and their origins](loop-bricks.md)) — the `loop` skill is
54
+ responsible for skipping bricks it can't run, not the engine.
55
+
56
+ ## Read on
57
+
58
+ - [Loop templates](loop-templates.md): the shipped graphs, and when to use each.
59
+ - [Bricks and their origins](loop-bricks.md): what a brick is, and where your own override the shipped ones.
60
+ - [Notes and rules](loop-notes.md): what survives an iteration, and what every brick must follow.
61
+ - [Risk, trust and validation levels](loop-risk.md): how a change is scored, and when it stops for you.
62
+ - [Human gates](loop-gates.md): the bricks that always wait for a person.
63
+ - [Contracts and ignored deletions](loop-contracts.md): the globs that raise or ignore risk.
64
+ - [LOOP.md, trailers and the loop branch](loop-branch.md): the state file, the commit trailers, and why merging always asks.
65
+ - [Loop actions](../reference/loop-actions.md): the `geneseed loop` commands.
66
+
67
+ ## Not foreman mode
68
+
69
+ A loop and a [foreman-mode](foreman-mode.md) pipeline are both "hand work off and keep going," but
70
+ they solve different problems. A pipeline is a one-shot crew for a single task, uncommitted until
71
+ you accept it. A loop is a long-running, self-scoring state machine that commits each validated
72
+ iteration on its own branch as it goes, and only stops for a person when the risk crosses a
73
+ threshold.
@@ -3,6 +3,8 @@ group: concepts
3
3
  order: 13
4
4
  title: "Code intelligence (LSP, OpenCode)"
5
5
  kind: "concept"
6
+ section: "Configuration"
7
+ description: "Language servers on OpenCode, so the agent sees real diagnostics."
6
8
  ---
7
9
  OpenCode can run **language servers** — the same Language Server Protocol servers your editor uses — so the agent sees real diagnostics, type errors and definitions, not just text. Geneseed turns this on for every language OpenCode ships a server for.
8
10
 
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  group: concepts
3
- order: 6
3
+ order: 8
4
4
  title: "Memory"
5
5
  kind: "markdown"
6
+ section: "Memory"
7
+ description: "How durable facts are stored, indexed and loaded."
6
8
  source: "src/memory/README.md"
7
9
  ---
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  group: concepts
3
- order: 7
3
+ order: 9
4
4
  title: "Notebook"
5
5
  kind: "markdown"
6
+ section: "Memory"
7
+ description: "The agent's own working space: plans, notes and the gate log."
6
8
  source: "src/notebook/README.md"
7
9
  ---
@@ -1,8 +1,10 @@
1
1
  ---
2
2
  group: concepts
3
- order: 2
3
+ order: 3
4
4
  title: "Rules (the constitution)"
5
5
  kind: "concept"
6
+ section: "Harness"
7
+ description: "The constitution: the standing rules every session carries, in laws and doctrine packs."
6
8
  link: {"hash": "#/laws", "label": "Browse the constitution →"}
7
9
  ---
8
10
  The **constitution** is the set of standing rules the agent carries into every session. It is authored in `src/`, rendered into the instructions file your host reads (`AGENT.md`, `CLAUDE.md` or `AGENTS.md`), and comes in layers that differ in one thing: whether you can turn them off.
@@ -37,7 +39,7 @@ When two instructions disagree, the higher one wins.
37
39
  | **process** | how a session runs — planning, context economy, docs first, bounded loops, consent before every commit and push |
38
40
  | **comms** | how answers are presented — stable reference codes on tracked items, a diagram or table only where it earns its place |
39
41
 
40
- All of them are on by default. This install built in {N_PACKS_ACTIVE}, carrying {N_DOCTRINE_RULES} rules between them. You choose packs at build time with `--doctrines`, or drop single rules with `--exclude-rules`; the how-to is in [Choose your setup](../guides/choose-your-setup.md).
42
+ All of them are on by default. This install built in {N_PACKS_ACTIVE}, carrying {N_DOCTRINE_RULES} rules between them. You choose packs at build time with `--doctrines`, or drop single rules with `--exclude-rules`; the how-to is in [Doctrine packs and single rules](../guides/setup-doctrines.md).
41
43
 
42
44
  A pack you leave out **still ships**: every pack file lands under `doctrines/` beside the instructions file whether or not it was built in. A rule that cites an inactive pack still resolves on disk, and you can read the alternatives before turning one on. An inactive pack loses its binding force, not its availability.
43
45
 
@@ -1,8 +1,10 @@
1
1
  ---
2
2
  group: concepts
3
- order: 4
3
+ order: 5
4
4
  title: "Skills"
5
5
  kind: "concept"
6
+ section: "Harness"
7
+ description: "Written playbooks the agent follows for a repeatable task."
6
8
  link: {"hash": "#/section/skills", "label": "Browse the catalog →"}
7
9
  ---
8
10
  A **skill** is a repeatable workflow written as a markdown playbook: when it applies, the steps, and what "done" looks like. The agent reads the playbook before acting, so a task it has a skill for is done the same careful way every time instead of improvised.
@@ -1,8 +1,10 @@
1
1
  ---
2
2
  group: concepts
3
- order: 12
3
+ order: 11
4
4
  title: "Themes"
5
5
  kind: "concept"
6
+ section: "Configuration"
7
+ description: "The agent's voice and the words the harness uses, never its structure."
6
8
  ---
7
9
  A **theme** changes the agent's *voice* and the words the harness uses for its own parts. It never changes structure: the same rules, in the same order, with the same files, folders and links, whatever theme you pick.
8
10
 
package/docs/extending.md CHANGED
@@ -408,11 +408,12 @@ The `geneseed-` prefix and the `.js` suffix are mechanically load-bearing: the b
408
408
  1. `adapters/opencode/plugins/geneseed-<name>.js` — ESM, zero dependencies. The factory-export
409
409
  convention is real (OpenCode requires it) but **ungated**; the only generic gate on plugin
410
410
  source is `node --check` (the one spawn in `authoringProblems`).
411
- 2. `docs/reference/opencode-plugins.md` — a `## geneseed-<name>` section (gated: every plugin
412
- file needs one). The count in its intro renders from `{N_PLUGINS}`.
413
- 3. `docs/understand/on-your-machine.md` — a row in the OpenCode map table (Piece · What it does
411
+ 2. `docs/reference/plugin-<name>.md` — one page titled `geneseed-<name>`, `section: "OpenCode plugins"`,
412
+ linked from the list in `docs/reference/opencode-plugins.md` (gated: every plugin file needs
413
+ both). The count in the overview's intro renders from `{N_PLUGINS}`.
414
+ 3. `docs/understand/machine-opencode.md` — a row in the OpenCode map table (Piece · What it does
414
415
  for you · Kind · Cost · Turn it off). **Hand-written and ungated** beyond the table parsing.
415
- 4. `docs/concepts/hosts.md` — check the capability matrix still tells the truth.
416
+ 4. `docs/concepts/host-matrix.md` — check the capability matrix still tells the truth.
416
417
  5. `README.md` — **three** sites: the badge, the `N plugins` prose, and the 🔌 Plugins row.
417
418
  6. `SHIPPED.md` — the bare name inside `plugins (…)`; that list must equal the directory exactly,
418
419
  in both directions (`tests/unit/web_api.test.mjs:1655`).
@@ -440,12 +441,26 @@ throws). The same file is what GitHub shows, so write for both
440
441
  (`docFrontmatter` in `js/web/docs.mjs`):
441
442
 
442
443
  - `group` must match an id in `docs/_groups.json` — gated by `docs_tree.test.mjs`.
444
+ - `section` (optional, a non-empty string — gated by `docs_tree.test.mjs`) files the page under
445
+ a sub-part of its folder in the console's list, breadcrumb and Previous / Next; without one it
446
+ sits under **General**. Sections order by the smallest `order` among their pages, pages within
447
+ a section by `order` (`bySection` in `js/web/docs.mjs`). `description` (optional) is the
448
+ list row's second line. Keep a page to about 700 words: a longer one becomes a section of
449
+ short pages, each standing alone (its own intro line, links to its siblings).
443
450
  - `kind` ∈ `markdown | concept | map | glossary | about | cli`; anything else 404s. `map` is a
444
451
  concept page whose Piece/Kind/Cost table the console turns into the clickable map.
445
- - `harness: "claude"|"opencode"` hides the page from the other host — keep it for how-tos that
446
- cannot run elsewhere; a reference page says its host in its title instead.
452
+ - `harness: "opencode"|"claude"|"openclaude"|"bob"` hides the page from the other hosts — keep it
453
+ for how-tos that cannot run elsewhere; a reference page says its host in its title instead.
454
+ `claude` is the Claude-engine family: it shows to Claude Code, OpenClaude and Bob alike.
455
+ To name several hosts, give a JSON list: `harness: ["claude", "openclaude"]` shows to exactly
456
+ those hosts — inside a list `claude` is Claude Code alone, never the family — so that page
457
+ is hidden from Bob. The value is JSON like every frontmatter value; `[claude, openclaude]`
458
+ unquoted is refused by `tests/unit/docs_tree.test.mjs`.
447
459
  - Link pages with relative `.md` links; the console rewrites them to `#/docs/<id>`. A host-only
448
- passage is `<!--harness:x-->` + a visible `*(OpenCode only)*` / `*(Claude Code only)*` line.
460
+ passage is `<!--harness:x-->` + a visible `*(OpenCode only)*` / `*(Claude Code only)*` /
461
+ `*(OpenClaude only)*` / `*(IBM Bob only)*` line, with the same family rule as pages. A
462
+ passage for several hosts lists them, `<!--harness:claude,openclaude-->`, labelled
463
+ `*(Claude Code and OpenClaude only)*` (names in the marker's order, joined by *and*).
449
464
  - No `{N_*}` token in `understand/` or `guides/` — GitHub would show it raw.
450
465
  - `kind: "markdown"` pulls from a repo file via `source:`, traversal-guarded, optionally sliced to
451
466
  one section with `anchor:` + `slice: true`.
@@ -615,7 +630,7 @@ only, at best, on its presence.
615
630
  | Per-law Principle lines | `web/src/pages/Laws.jsx` | presence and class only, never accuracy |
616
631
  | 588 themed constitution titles (42 keys × 14 voices) — `LEX_<ID>` (one per law), `DOC_<ID>` (one per doctrine rule), `PACK_<NAME>` | `themes/*.json` | key presence only — a shipped placeholder is green. `LEX_*` and `DOC_*` are held across the template too, and in both directions; `PACK_*` only across the voices |
617
632
  | The README keyword enumerations | `README.md`, `docs/concepts/rules.md` | nothing |
618
- | The per-host map of what lands on a machine | `docs/understand/on-your-machine.md` | table shape only, never accuracy |
633
+ | The per-host map of what lands on a machine | `docs/understand/machine-opencode.md`, `docs/understand/machine-claude.md` | table shape only, never accuracy |
619
634
  | Section labels and page subtitles | `web/src/lib/sections.js`, `web/src/pages/Docs/index.jsx` | nothing |
620
635
  | `THEME_BLURBS` (8 of 14), `ART` (8 of 14) | `js/maintain/setup.mjs`, `js/ui/anim.mjs` | nothing — missing entries fall back silently |
621
636
  | `LOADED_SIGIL` uniqueness | `themes/*.json` | nothing, and it is load-bearing for theme detection |
@@ -748,6 +763,11 @@ handler falls back to `index.html` at 200 with `text/html`, and the browser repo
748
763
  "no running server recorded" and exits 0, and `web restart` starts a *second* daemon. Recovery is
749
764
  to kill every pid on the port, then `geneseed web start`.
750
765
 
766
+ `--port N` on `web stop|restart|status` names *which* daemon: the verb acts only if the record is
767
+ on N, and refuses (exit 1, nothing sent) when it names another port. A test instance on another
768
+ port is therefore stopped with `--port`, never with a bare `web stop` — that one stops whatever
769
+ the record names, usually the live console on 4747.
770
+
751
771
  ---
752
772
 
753
773
  ## 10 — What to settle before the next wave
@@ -1,8 +1,10 @@
1
1
  ---
2
2
  group: guides
3
- order: 10
3
+ order: 27
4
4
  title: "Start the web console at login"
5
5
  kind: "concept"
6
+ section: "Keep it running"
7
+ description: "Keep the web console running from login."
6
8
  ---
7
9
  The web console is the only long-running Geneseed process. `geneseed web start` launches it as a background process on `127.0.0.1:4747` and returns immediately. A login item that runs this command once, with `--no-browser`, leaves the console ready whenever you open [http://127.0.0.1:4747](http://127.0.0.1:4747).
8
10
 
@@ -1,10 +1,12 @@
1
1
  ---
2
2
  group: guides
3
- order: 2
3
+ order: 10
4
4
  title: "Choose your setup"
5
5
  kind: "concept"
6
+ section: "Set up"
7
+ description: "The voice and working style: theme, posture and mode, and where the other setup choices are."
6
8
  ---
7
- The setup wizard asks a handful of questions before it builds. Every one has a safe default, so you can accept them all and move on. This page says what each one changes, so you can pick on purpose, and how to change it later.
9
+ The setup wizard asks a handful of questions before it builds. Every one has a safe default, so you can accept them all and move on. Three pages say what each one changes, so you can pick on purpose: this one covers the voice and how the agent works with you; [Doctrine packs and single rules](setup-doctrines.md) covers which practices bind; [Footprint, loop trust and changing later](setup-footprint.md) covers the token cost, how far a loop goes, and how to change any of it.
8
10
 
9
11
  All of these choices are made **at build time**. The build writes them into the files your agent loads. Nothing switches at runtime. Rebuilds, re-themes and upgrades keep each install's choices, because they are recorded in small marker files beside the install.
10
12
 
@@ -52,69 +54,6 @@ geneseed build --emit opencode-global --mode direct # back to the default
52
54
 
53
55
  More in [Foreman mode](../concepts/foreman-mode.md).
54
56
 
55
- ## Doctrine packs: which practices bind
56
-
57
- The harness's rules come in tiers (see [Rules](../concepts/rules.md)). The Ethos and the Rules are always on. The **doctrines** are practices rather than principles, and they ship as packs you choose:
58
-
59
- | Pack | What it governs |
60
- | --- | --- |
61
- | **craft** | how code is written: reuse first, house conventions, docs updated in the same change, the smallest diff |
62
- | **rigor** | how work is proven: idempotence, honest tests, cover-and-verify, gates that can actually fail |
63
- | **ops** | how the machine is driven: tool discovery, commands that return, complete teardowns |
64
- | **process** | how a session runs: planning, context economy, docs first, bounded loops, and consent before every commit and push |
65
- | **comms** | how answers are presented: stable reference codes on tracked items, and a diagram or table only where it earns its place |
66
-
67
- Every pack is enabled by default. To keep only some packs, or none:
68
-
69
- ```
70
- geneseed build --emit opencode-global --doctrines craft,rigor # two packs
71
- geneseed build --emit opencode-global --doctrines none # Ethos and Rules only
72
- ```
73
-
74
- The packs always load in the same order (craft, rigor, ops, process, comms), whatever order you type them in. A pack you leave out still ships on disk under `doctrines/`, so you can read it before you turn it on. A clone can set its own default in `harness.config.json` with a `doctrines` array.
75
-
76
- **Dropping `process` changes what the machine does, not only what the agent reads.** The *Consent Before Push* rule in that pack is enforced at the tool boundary as well as in the prose:
77
-
78
- - On Claude Code and OpenClaude, the git hook stays wired but stops asking before a commit or push.
79
- - On OpenCode, a fresh install no longer gets the `git commit*` and `git push*` ask entries in `opencode.json`. On an existing install, entries that are already there are left in place and reported, because Geneseed cannot tell its own entries from ones you typed.
80
-
81
- The refusals of destructive git and `rm -rf` belong to the always-on Rules, not to the pack, so they stay in every build. See [Enforced vs. asked](../understand/enforced-vs-asked.md).
82
-
83
- ## One rule at a time
84
-
85
- A pack is all-or-nothing. `--exclude-rules` drops single doctrine rules instead. It takes rule addresses, written `<pack> <n>` or `<pack>.<n>`:
86
-
87
- ```
88
- geneseed build --emit opencode-global --exclude-rules "process 7"
89
- geneseed build --emit opencode-global --exclude-rules "process 5,craft 2"
90
- geneseed build --emit opencode-global --exclude-rules none
91
- ```
92
-
93
- The number in an address is the rule's position in its pack, so it can change if a rule is added or removed. To see the current addresses, pass an address that does not exist: the build refuses it and lists every valid address. The web console's **Constitution** page has one switch per rule. You stage the changes there and apply them in a single rebuild.
94
-
95
- Excluding *Consent Before Push* (`process 5` today) takes the commit and push consent gate with it, exactly as dropping the whole `process` pack does. The console and the wizard both warn you before applying it. A pack whose every rule is excluded drops out of the build entirely. See [Exclusions](../concepts/exclusions.md) for excluding whole folders instead.
96
-
97
- ## Footprint: how much loads every turn
98
-
99
- Footprint controls how much of the rules text sits inside `AGENT.md`, which is loaded on every turn. It changes the token cost, not which rules apply:
100
-
101
- - **lean** *(default)*: each rule appears in a hand-written short form, with a pointer to the full text. The full text ships beside `AGENT.md`, and the agent reads it when a rule's nuance matters.
102
- - **full**: every rule's complete text and rationale is inline. This costs the most tokens. It can help a smaller model, which applies a rule's nuance more reliably when the reasoning is always in front of it.
103
-
104
- ```
105
- geneseed build --emit opencode-global --footprint full
106
- ```
107
-
108
- Both footprints install the same agents, skills, hooks and plugins. More in [Footprint](../concepts/footprint.md).
109
-
110
- ## Changing a choice later
111
-
112
- You have three ways to change a choice:
113
-
114
- - **Re-run the wizard** with `geneseed setup`. It pre-selects what the install already has, so holding Enter cannot widen a set you narrowed on purpose. The wizard does not ask about single rules, but it keeps any rule exclusions already in place.
115
- - **Use the web console** (`geneseed web`). **Settings** and the **Harnesses** page change theme, footprint and the rest per install. **Constitution** toggles packs and rules.
116
- - **Run the build yourself.** Watch out: a flag you leave out takes the *generator's* default, not your install's current value. `geneseed status --json` prints, for every install, the exact `geneseed build` command that rebuilds it as it is. Start from that command and change the one flag you want.
117
-
118
57
  ---
119
58
 
120
- **Next:** [Verify it works](verify.md)
59
+ **Next:** [Doctrine packs and single rules](setup-doctrines.md)
@@ -1,8 +1,10 @@
1
1
  ---
2
2
  group: guides
3
- order: 11
3
+ order: 29
4
4
  title: "Run in CI / headless"
5
5
  kind: "concept"
6
+ section: "OpenCode extras"
7
+ description: "Run OpenCode with the harness in CI, without a terminal."
6
8
  harness: "opencode"
7
9
  ---
8
10
  Once the harness is installed for OpenCode (global or per repo), OpenCode can run **non-interactively**, without its terminal UI. The harness's rules, agents and skills then apply in scripts and pipelines too:
@@ -17,6 +19,6 @@ cat issue.md | opencode run "triage this and propose a fix plan" # pipe inp
17
19
 
18
20
  ## Things to know
19
21
 
20
- - **Permission prompts still apply, and in CI nobody can answer them.** Any command the config marks `ask` blocks a non-interactive run: `rm -rf`, and `git commit` and `git push` whenever the *Consent Before Push* rule is built in (it is part of the `process` pack; see [Choose your setup](choose-your-setup.md)). A CI job that has to commit should set those commands back to `"allow"` in its own `permission.bash` map, or limit the run to read-only work. Do not disable the guards wholesale.
22
+ - **Permission prompts still apply, and in CI nobody can answer them.** Any command the config marks `ask` blocks a non-interactive run: `rm -rf`, and `git commit` and `git push` whenever the *Consent Before Push* rule is built in (it is part of the `process` pack; see [Doctrine packs and single rules](setup-doctrines.md)). A CI job that has to commit should set those commands back to `"allow"` in its own `permission.bash` map, or limit the run to read-only work. Do not disable the guards wholesale.
21
23
  - **`--pure`** runs OpenCode without any local or global config. Use it to reproduce a bug without the harness in the way, or to confirm that a behaviour comes from the harness.
22
- - **The plugins still load.** The context plugin injects the repo's docs, and the learn plugin still writes memory when the session goes idle. To change their behaviour for a run, set `GENESEED_GUARD=warn` or `off`, `GENESEED_CONTEXT_INJECT=off`, or `GENESEED_DEBUG=1`. See [Environment](../reference/environment.md) and [OpenCode plugins](../reference/opencode-plugins.md).
24
+ - **The plugins still load.** The context plugin injects the repo's docs, and the learn plugin still writes memory when the session goes idle. To change their behaviour for a run, set `GENESEED_GUARD=warn` or `off`, `GENESEED_CONTEXT_INJECT=off`, or `GENESEED_DEBUG=1`. See [Context and memory variables](../reference/env-context.md) and [OpenCode plugins](../reference/opencode-plugins.md).
@@ -0,0 +1,37 @@
1
+ ---
2
+ group: guides
3
+ order: 7
4
+ title: "Install for any AGENT.md tool"
5
+ kind: "concept"
6
+ section: "Install"
7
+ description: "The plain bundle for Codex CLI, Cursor, Gemini CLI and the like, or a prompt for a machine with no runtime."
8
+ ---
9
+ The setup wizard runs this for you (see [Install](install.md)). Use the commands directly when you script an install, or when you want a scope the wizard did not offer you.
10
+
11
+ ```
12
+ geneseed build # renders the plain bundle into ./Harness
13
+ ```
14
+
15
+ Point your tool's instructions or rules setting at `Harness/AGENT.md`. If the tool only loads one specific filename, rename or symlink the file (`AGENT.md` to `AGENTS.md` or `CLAUDE.md`). The rules then rest on the agent's own discipline, because these tools have no hooks or plugins to enforce anything (see [Enforced vs. asked](../understand/enforced-vs-asked.md)).
16
+
17
+ Some of these tools also load skills. Their own docs list where:
18
+
19
+ - **Codex CLI** loads a root `AGENTS.md` and `~/.codex/AGENTS.md`, and skills from `~/.codex/skills` or `.agents/skills`.
20
+ - **Cursor** loads `AGENTS.md`, and skills from `.cursor/skills`, `.agents/skills` or `.claude/skills`.
21
+ - **Gemini CLI** reads `GEMINI.md` by default. Set `context.fileName` in its `settings.json` to include `AGENTS.md`. Skills load from `.gemini/skills` or `.agents/skills`.
22
+
23
+ Copy or symlink the bundle's `skills/` to `.agents/skills/` and all three of them see it.
24
+
25
+ ## No runtime on the target machine
26
+
27
+ If the machine that will use the harness cannot run Node, run this once on a machine that can:
28
+
29
+ ```
30
+ npx geneseed prompt --theme neutral > install-geneseed.md
31
+ ```
32
+
33
+ This produces one self-contained prompt that recreates the whole file tree. Paste it into any capable agent on the target machine. There is nothing to install and no build step. Any theme works the same way.
34
+
35
+ ---
36
+
37
+ **Next:** [Verify it works](verify.md) · [Choose your setup](choose-your-setup.md) · [What lands on your machine](../understand/on-your-machine.md)
@@ -0,0 +1,20 @@
1
+ ---
2
+ group: guides
3
+ order: 6
4
+ title: "Install for IBM Bob"
5
+ kind: "concept"
6
+ section: "Install"
7
+ description: "The IBM Bob install, global or per repo, and how its hooks differ."
8
+ ---
9
+ The setup wizard runs this for you (see [Install](install.md)). Use the commands directly when you script an install, or when you want a scope the wizard did not offer you.
10
+
11
+ ```
12
+ geneseed build --emit bob-global # ~/.bob
13
+ geneseed build --emit bob --out /path/to/repo --root /path/to/repo # one repo
14
+ ```
15
+
16
+ Bob is shaped like Claude Code, so it gets the same agents and skills. Per repo, the preamble goes into a root `AGENTS.md` and the rest into `.bob/`. Globally, everything goes under `~/.bob` (`$BOB_CONFIG_DIR` moves it), and the preamble rides `rules/geneseed.md`, because Bob does not auto-load a global `AGENTS.md`. Bob's hooks refuse an action with exit code 2, and Bob has no `SubagentStop` or `PreCompact` events. Bob support has not yet been verified against a live install.
17
+
18
+ ---
19
+
20
+ **Next:** [Verify it works](verify.md) · [Choose your setup](choose-your-setup.md) · [What lands on your machine](../understand/on-your-machine.md)
@@ -0,0 +1,22 @@
1
+ ---
2
+ group: guides
3
+ order: 4
4
+ title: "Install for Claude Code"
5
+ kind: "concept"
6
+ section: "Install"
7
+ description: "The Claude Code install, global or per repo, and the hook shim every hook calls."
8
+ ---
9
+ The setup wizard runs this for you (see [Install](install.md)). Use the commands directly when you script an install, or when you want a scope the wizard did not offer you.
10
+
11
+ ```
12
+ geneseed build --emit claude-global # ~/.claude, every repo
13
+ geneseed build --emit claude --out /path/to/repo --root /path/to/repo # one repo
14
+ ```
15
+
16
+ The install writes `CLAUDE.md`, `agents/`, `skills/`, `memory/` and `notebook/`, plus hooks in Claude Code's `settings.json`. Hooks are commands Claude Code runs around each tool call. They gate risky actions and load project context (see [Hooks](../concepts/hooks.md)). For a project install the hooks go into `.claude/settings.local.json`, which stays out of git because it names a path on your machine.
17
+
18
+ Every hook calls `geneseed-hook <verb>` through one stable file, the **hook shim** at `~/.geneseed/bin/geneseed-hook` (`geneseed-hook.cmd` on Windows). The shim knows where Node and Geneseed live. If you move or replace Geneseed, one rebuild rewrites the shim and every install works again. `GENESEED_HOME` moves the shim's folder.
19
+
20
+ ---
21
+
22
+ **Next:** [Verify it works](verify.md) · [Choose your setup](choose-your-setup.md) · [What lands on your machine](../understand/on-your-machine.md)
@@ -0,0 +1,34 @@
1
+ ---
2
+ group: guides
3
+ order: 2
4
+ title: "Install from a clone"
5
+ kind: "concept"
6
+ section: "Install"
7
+ description: "Install from a git clone when npm is out of reach, or when you want to change the harness."
8
+ ---
9
+ Clone the repository when npm is out of reach (for example, a corporate network with no registry access), or when you want to change the harness rather than just use it. A clone needs **git** as well as Node 22.3 or newer. git is what updates the clone.
10
+
11
+ Each OS has a one-step installer at the root of the clone. It checks for Node and git. If one is missing, it names what to install and where to get it, then stops. **It never installs anything itself.** When the checks pass, it runs the setup wizard and offers to open the web console.
12
+
13
+ ```bash
14
+ git clone https://github.com/Arylmera/Geneseed.git
15
+ cd Geneseed
16
+ ./install # macOS, Linux, or a POSIX shell on Windows
17
+ ```
18
+
19
+ - **macOS**: you can also double-click `install.command` in the Finder. It opens in Terminal.
20
+ - **Windows**: double-click `install.cmd` in Explorer, or run it from cmd or PowerShell. It needs no bash, WSL or PowerShell script.
21
+
22
+ ```powershell
23
+ git clone https://github.com/Arylmera/Geneseed.git
24
+ cd Geneseed
25
+ .\install.cmd
26
+ ```
27
+
28
+ Later, run the launcher in the clone: `./geneseed setup` (Windows: `.\geneseed.cmd setup`) re-runs the wizard, and bare `./geneseed` opens the web console. Both launchers need `node` on `PATH`. If it is not there (some version managers only patch interactive shells), set `GENESEED_NODE` to the absolute path of the Node binary.
29
+
30
+ From a clone, every `geneseed …` command on these pages is `./geneseed …` (Windows: `.\geneseed.cmd …`). To drop the `./`, see [Run geneseed from anywhere](run-anywhere.md).
31
+
32
+ ---
33
+
34
+ **Next:** [Verify it works](verify.md) · [Install](install.md)
@@ -0,0 +1,25 @@
1
+ ---
2
+ group: guides
3
+ order: 5
4
+ title: "Install for OpenClaude"
5
+ kind: "concept"
6
+ section: "Install"
7
+ description: "The OpenClaude install: Claude Code's pieces under OpenClaude's own config folder."
8
+ ---
9
+ The setup wizard runs this for you (see [Install](install.md)). Use the commands directly when you script an install, or when you want a scope the wizard did not offer you.
10
+
11
+ ```
12
+ geneseed build --emit openclaude-global # ~/.openclaude
13
+ geneseed build --emit openclaude --out /path/to/repo --root /path/to/repo # one repo
14
+ ```
15
+
16
+ [OpenClaude](https://openclaude.gitlawb.com/) is a fork of Claude Code that can drive any model. You get the same agents, skills and hooks as Claude Code, under a different config directory. OpenClaude never reads `~/.claude` or a project `.claude/`, so the two installs can sit side by side. The differences:
17
+
18
+ - Per repo, the preamble is written to `.openclaude/CLAUDE.md` rather than a root file, and the hooks go into `.openclaude/settings.local.json`.
19
+ - `$OPENCLAUDE_CONFIG_DIR` moves the global directory (default `~/.openclaude`).
20
+
21
+ OpenClaude support has not yet been verified against a live install.
22
+
23
+ ---
24
+
25
+ **Next:** [Verify it works](verify.md) · [Choose your setup](choose-your-setup.md) · [What lands on your machine](../understand/on-your-machine.md)
@@ -0,0 +1,35 @@
1
+ ---
2
+ group: guides
3
+ order: 3
4
+ title: "Install for OpenCode"
5
+ kind: "concept"
6
+ section: "Install"
7
+ description: "The OpenCode install, global (recommended) or per repo."
8
+ ---
9
+ The setup wizard runs this for you (see [Install](install.md)). Use the commands directly when you script an install, or when you want a scope the wizard did not offer you.
10
+
11
+ ## Global (recommended)
12
+
13
+ ```
14
+ geneseed build --emit opencode-global
15
+ ```
16
+
17
+ This writes into OpenCode's config directory: `$OPENCODE_CONFIG_DIR`, else `$XDG_CONFIG_HOME/opencode`, else `~/.config/opencode` (on Windows too: `C:\Users\<you>\.config\opencode`). The install contains `AGENT.md`, `agents/`, `skills/`, the plugins, the `memory/` store, and a merged `opencode.json` whose `instructions` key points at `AGENT.md`. Every repo you open in OpenCode inherits it. You do not need a per-repo file, because the context plugin finds each repo's docs by itself (see [Project context](project-context.md)).
18
+
19
+ The install is non-destructive. A manifest (`.geneseed-manifest.json`) records the files Geneseed owns. A rebuild replaces and prunes only those files, and never touches your own agents, skills, plugins or memory.
20
+
21
+ ## Per repo
22
+
23
+ ```
24
+ geneseed build --emit opencode --out /path/to/repo --root /path/to/repo
25
+ ```
26
+
27
+ This writes the bundle (`AGENT.md`, `agents/`, `skills/`, `memory/`, `notebook/`) and OpenCode's own layer (`opencode.json` and `.opencode/`) into one repository. You can commit them or not. To keep the bundle in a subfolder, point `--out` at the subfolder and keep `--root` on the repo, so instruction paths resolve from the project root:
28
+
29
+ ```
30
+ geneseed build --emit opencode --out /path/to/repo/Harness --root /path/to/repo
31
+ ```
32
+
33
+ ---
34
+
35
+ **Next:** [Verify it works](verify.md) · [Choose your setup](choose-your-setup.md) · [What lands on your machine](../understand/on-your-machine.md)
@@ -0,0 +1,21 @@
1
+ ---
2
+ group: guides
3
+ order: 8
4
+ title: "Install without the wizard"
5
+ kind: "concept"
6
+ section: "Install"
7
+ description: "The build command to run in a script, a CI job, or a shell with no terminal."
8
+ ---
9
+ `setup` needs an interactive terminal. In a script, a CI job, or any shell without one, it stops with exit code 1 and prints the build command to run instead:
10
+
11
+ ```
12
+ geneseed build --emit opencode-global --theme neutral
13
+ ```
14
+
15
+ `geneseed build` takes the same flags as the generator `geneseed-build`. `--emit` picks the host and its scope: `files`, `opencode`, `opencode-global`, `claude`, `claude-global`, `bob`, `bob-global`, `openclaude` or `openclaude-global`. A `-global` emit writes into the tool's own config directory. A project emit writes into the repo you name with `--out <repo> --root <repo>`. All the other flags (`--theme`, `--footprint`, `--posture`, `--mode`, `--trust`, `--doctrines`, `--exclude-rules`) are covered in [Choose your setup](choose-your-setup.md) and the two pages after it.
16
+
17
+ To test a build before writing anything, use `geneseed validate` with the same flags. See [Verify](verify.md).
18
+
19
+ ---
20
+
21
+ **Next:** [Choose your setup](choose-your-setup.md) · [Install](install.md)