geneseed 5.3.1 → 5.5.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 (248) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/README.md +51 -18
  3. package/SHIPPED.md +7 -7
  4. package/adapters/bob/README.md +12 -1
  5. package/adapters/opencode/README.md +5 -3
  6. package/adapters/opencode/plugins/geneseed-context.js +77 -10
  7. package/adapters/opencode/plugins/geneseed-guard.js +106 -22
  8. package/adapters/opencode/plugins/geneseed-learn.js +641 -6
  9. package/bin/geneseed-cli.mjs +10 -0
  10. package/bin/geneseed-hook.mjs +5 -4
  11. package/docs/PRD.md +1 -1
  12. package/docs/README.md +1 -0
  13. package/docs/concepts/agents.md +14 -2
  14. package/docs/concepts/collaboration.md +2 -2
  15. package/docs/concepts/enforcement-table.md +5 -2
  16. package/docs/concepts/exclusions.md +16 -2
  17. package/docs/concepts/footprint.md +1 -1
  18. package/docs/concepts/foreman-mode.md +23 -4
  19. package/docs/concepts/hook-gates.md +4 -4
  20. package/docs/concepts/hooks.md +25 -7
  21. package/docs/concepts/host-matrix.md +4 -4
  22. package/docs/concepts/hosts.md +1 -1
  23. package/docs/concepts/kits.md +12 -2
  24. package/docs/concepts/loop-bricks.md +3 -3
  25. package/docs/concepts/loops.md +6 -4
  26. package/docs/concepts/ownership.md +1 -1
  27. package/docs/concepts/rules.md +2 -2
  28. package/docs/concepts/shared-tier.md +1 -1
  29. package/docs/concepts/skills.md +21 -1
  30. package/docs/concepts/themes.md +1 -1
  31. package/docs/extending.md +73 -29
  32. package/docs/guides/auto-merge.md +100 -0
  33. package/docs/guides/choose-your-setup.md +1 -1
  34. package/docs/guides/headless.md +1 -1
  35. package/docs/guides/install-clone.md +19 -1
  36. package/docs/guides/install-scripted.md +8 -2
  37. package/docs/guides/install.md +20 -2
  38. package/docs/guides/loop-finish.md +3 -3
  39. package/docs/guides/loop-running.md +4 -4
  40. package/docs/guides/project-context.md +1 -1
  41. package/docs/guides/run-a-factory.md +2 -2
  42. package/docs/guides/setup-doctrines.md +2 -2
  43. package/docs/guides/setup-footprint.md +1 -1
  44. package/docs/guides/uninstall.md +3 -3
  45. package/docs/guides/upgrade.md +2 -2
  46. package/docs/guides/worktree.md +1 -1
  47. package/docs/reference/env-context.md +1 -1
  48. package/docs/reference/environment.md +4 -2
  49. package/docs/reference/plugin-activity.md +1 -1
  50. package/docs/reference/plugin-guard.md +1 -1
  51. package/docs/reference/plugin-learn.md +5 -1
  52. package/docs/reference/plugin-workflow.md +1 -1
  53. package/docs/reference/profiles.md +142 -0
  54. package/docs/reference/troubleshoot-doctor.md +1 -1
  55. package/docs/reference/troubleshoot-hooks.md +2 -2
  56. package/docs/reference/troubleshoot-install.md +3 -3
  57. package/docs/reference/troubleshoot-tools.md +1 -1
  58. package/docs/token-footprint.md +11 -6
  59. package/docs/understand/design-choices-engineering.md +1 -1
  60. package/docs/understand/enforced-vs-asked.md +1 -1
  61. package/docs/understand/machine-claude.md +2 -2
  62. package/docs/understand/on-your-machine.md +1 -1
  63. package/docs/web-ui.md +8 -6
  64. package/harness.config.json +1 -1
  65. package/js/README.md +11 -3
  66. package/js/build/args.mjs +16 -4
  67. package/js/build/catalog.mjs +11 -1
  68. package/js/build/driver.mjs +74 -16
  69. package/js/build/emit-claude.mjs +32 -5
  70. package/js/build/emit-opencode.mjs +16 -9
  71. package/js/build/export.mjs +1 -1
  72. package/js/build/generate.mjs +12 -157
  73. package/js/build/notes-migrate.mjs +99 -0
  74. package/js/build/profile.mjs +326 -0
  75. package/js/build/render.mjs +110 -8
  76. package/js/build/retired-skills.mjs +60 -13
  77. package/js/build/source.mjs +100 -3
  78. package/js/build/stubs.mjs +4 -1
  79. package/js/cli-table.json +212 -7
  80. package/js/hosts/agent-runs.mjs +205 -0
  81. package/js/hosts/done-checks.mjs +3 -1
  82. package/js/hosts/hooks-done.mjs +428 -63
  83. package/js/hosts/hooks-learn.mjs +89 -3
  84. package/js/hosts/hooks-prims.mjs +44 -4
  85. package/js/hosts/hooks.mjs +159 -9
  86. package/js/hosts/hosts.mjs +10 -0
  87. package/js/hosts/installs.mjs +44 -2
  88. package/js/hosts/link.mjs +45 -10
  89. package/js/hosts/native.mjs +61 -7
  90. package/js/hosts/opencode.mjs +1 -1
  91. package/js/hosts/settings.mjs +101 -3
  92. package/js/hosts/spec-feedback.mjs +538 -0
  93. package/js/hosts/usage.mjs +67 -8
  94. package/js/inspect/agent-scores.mjs +118 -0
  95. package/js/inspect/checks-authoring.mjs +2 -1
  96. package/js/inspect/checks-build.mjs +20 -4
  97. package/js/inspect/checks-constitution.mjs +32 -0
  98. package/js/inspect/checks-repo.mjs +27 -2
  99. package/js/inspect/cost.mjs +6 -5
  100. package/js/inspect/diff.mjs +46 -8
  101. package/js/inspect/doctor.mjs +4 -0
  102. package/js/inspect/inventory.mjs +1 -1
  103. package/js/inspect/status.mjs +3 -1
  104. package/js/inspect/validate.mjs +1 -0
  105. package/js/lib/machine-dir.mjs +8 -0
  106. package/js/lib/paths.mjs +4 -1
  107. package/js/maintain/profile-scope.mjs +145 -0
  108. package/js/maintain/profiles.mjs +486 -0
  109. package/js/maintain/setup.mjs +413 -15
  110. package/js/maintain/uninstall.mjs +4 -1
  111. package/js/maintain/update.mjs +4 -2
  112. package/js/web/actions.mjs +44 -41
  113. package/js/web/api.mjs +13 -3
  114. package/js/web/handler.mjs +8 -0
  115. package/js/web/jobs.mjs +5 -4
  116. package/js/web/profiles-api.mjs +201 -0
  117. package/js/web/routes.mjs +5 -0
  118. package/package.json +2 -1
  119. package/profiles/guillaume-claude-global.json +16 -0
  120. package/profiles/starter.json +14 -0
  121. package/registry.json +14 -0
  122. package/src/AGENT.md.tmpl +16 -18
  123. package/src/agents/_self-improvement.md +15 -7
  124. package/src/agents/_template.md +4 -2
  125. package/src/agents/advocate.md +1 -1
  126. package/src/agents/architect.md +1 -1
  127. package/src/agents/developer.md +10 -3
  128. package/src/agents/devops-engineer.md +1 -1
  129. package/src/agents/docker-expert.md +1 -1
  130. package/src/agents/docs.md +1 -1
  131. package/src/agents/empiricist.md +1 -1
  132. package/src/agents/explorer.md +4 -2
  133. package/src/agents/framer.md +1 -1
  134. package/src/agents/historian.md +1 -1
  135. package/src/agents/kubernetes-specialist.md +1 -1
  136. package/src/agents/memory-curator.md +1 -1
  137. package/src/agents/operator.md +1 -1
  138. package/src/agents/performance.md +1 -1
  139. package/src/agents/pragmatist.md +1 -1
  140. package/src/agents/react-engineer.md +1 -1
  141. package/src/agents/react-reviewer.md +1 -1
  142. package/src/agents/researcher.md +1 -1
  143. package/src/agents/reviewer.md +10 -3
  144. package/src/agents/security.md +1 -1
  145. package/src/agents/skeptic.md +1 -1
  146. package/src/agents/spring-boot-engineer.md +1 -1
  147. package/src/agents/spring-reviewer.md +1 -1
  148. package/src/agents/spring-security.md +1 -1
  149. package/src/agents/steward.md +1 -1
  150. package/src/agents/tester.md +4 -2
  151. package/src/agents/user-advocate.md +1 -1
  152. package/src/agents/visionary.md +1 -1
  153. package/src/bricks/pr-open.md +3 -2
  154. package/src/doctrines/ops.md +2 -2
  155. package/src/doctrines/process.md +40 -36
  156. package/src/factories/analysis-to-build.json +1 -1
  157. package/src/factories/bug-report-to-fix.json +1 -1
  158. package/src/factories/issue-to-pr.json +1 -1
  159. package/src/kits/terminal-tools/rules.md +10 -0
  160. package/src/kits/terminal-tools.json +13 -0
  161. package/src/licenses/herdr.txt +201 -0
  162. package/src/memory/README.md +12 -2
  163. package/src/modes/foreman.md +25 -9
  164. package/src/skill-descriptions.json +63 -0
  165. package/src/skills/_self-improvement.md +42 -24
  166. package/src/skills/_template.md +3 -1
  167. package/src/skills/brainstorm.md +35 -22
  168. package/src/skills/commit.md +17 -17
  169. package/src/skills/daydream/VENDOR.md +6 -0
  170. package/src/skills/debug/ci.md +1 -1
  171. package/src/skills/dependencies.md +3 -3
  172. package/src/skills/diagram-design/VENDOR.md +4 -0
  173. package/src/skills/document-project.md +3 -2
  174. package/src/skills/explain-changes/VENDOR.md +5 -1
  175. package/src/skills/factory.md +13 -4
  176. package/src/skills/geneseed.md +4 -2
  177. package/src/skills/git-history.md +5 -7
  178. package/src/skills/herdr.md +135 -0
  179. package/src/skills/loop.md +3 -2
  180. package/src/skills/opencode-cli.md +84 -0
  181. package/src/skills/parallel-agents.md +11 -0
  182. package/src/skills/pipeline.md +3 -3
  183. package/src/skills/plan.md +5 -4
  184. package/src/skills/react-view-transitions/VENDOR.md +7 -1
  185. package/src/skills/release.md +11 -9
  186. package/src/skills/review-response.md +4 -2
  187. package/src/skills/rule/approve.md +2 -1
  188. package/src/skills/rule.md +27 -1
  189. package/src/skills/ship.md +54 -7
  190. package/src/skills/skill-forge.md +5 -3
  191. package/src/skills/token-report/VENDOR.md +5 -1
  192. package/src/skills/worktree.md +2 -2
  193. package/src/upstreams.json +9 -2
  194. package/themes/README.md +3 -1
  195. package/themes/_TEMPLATE.json +2 -0
  196. package/themes/biker.json +2 -0
  197. package/themes/commentator.json +2 -0
  198. package/themes/cyberpunk.json +2 -0
  199. package/themes/gamer.json +2 -0
  200. package/themes/imperial.json +2 -0
  201. package/themes/joker.json +2 -0
  202. package/themes/marvin.json +2 -0
  203. package/themes/mean.json +2 -0
  204. package/themes/military.json +2 -0
  205. package/themes/neutral.json +2 -0
  206. package/themes/pirate.json +2 -0
  207. package/themes/sports.json +2 -0
  208. package/themes/verstappen.json +2 -0
  209. package/themes/wizard.json +2 -0
  210. package/web/dist/assets/{ActiveLoops-BJJN3P-V.js → ActiveLoops-DOJCPPPc.js} +1 -1
  211. package/web/dist/assets/Activity-LKsDzsnK.js +1 -0
  212. package/web/dist/assets/ActivityDetail-DhwTfPm6.js +1 -0
  213. package/web/dist/assets/{Bonsai-BBl4XXqs.js → Bonsai-CePMLrpr.js} +1 -1
  214. package/web/dist/assets/{CopyButton-Beven8yn.js → CopyButton-CuoaJ6k7.js} +1 -1
  215. package/web/dist/assets/Dashboard-D1VKuvLe.js +2 -0
  216. package/web/dist/assets/Docs-CUrHJKaU.js +5 -0
  217. package/web/dist/assets/Factories-Ci1XfmSy.js +1 -0
  218. package/web/dist/assets/{GreenhouseView-Bce212qd.js → GreenhouseView-CNfH2lPK.js} +1 -1
  219. package/web/dist/assets/Installs-ZHQZM1iS.js +3 -0
  220. package/web/dist/assets/{JournalView-CV4omyww.js → JournalView-CMsWahkS.js} +1 -1
  221. package/web/dist/assets/Kits-CkliyK0n.js +1 -0
  222. package/web/dist/assets/Laws-hh4O3HZ4.js +4 -0
  223. package/web/dist/assets/{LibRows-Dag1s0ZX.js → LibRows-Brv0Hmkr.js} +1 -1
  224. package/web/dist/assets/Library-BYmiLjJr.js +3 -0
  225. package/web/dist/assets/Loops-ytm-xJ68.js +2 -0
  226. package/web/dist/assets/{OperatorHudView-JmYY1pBR.js → OperatorHudView-KaqCx_HP.js} +1 -1
  227. package/web/dist/assets/Personal-CmcnRKYE.js +2 -0
  228. package/web/dist/assets/Settings-tUrpdOfq.js +1 -0
  229. package/web/dist/assets/{Tabs-8zsyEPSK.js → Tabs-CD7etcGD.js} +1 -1
  230. package/web/dist/assets/api-CZ-x0iWG.js +1 -0
  231. package/web/dist/assets/{controls-D4wmg_pl.js → controls-CK7qHA8H.js} +1 -1
  232. package/web/dist/assets/{index-CRWqKxfY.css → index-Ba_Kg3Af.css} +1 -1
  233. package/web/dist/assets/index-COKbhFNo.js +6 -0
  234. package/web/dist/index.html +3 -3
  235. package/web/dist/assets/Activity-WQ3ykgxU.js +0 -1
  236. package/web/dist/assets/ActivityDetail-7rt04SkS.js +0 -1
  237. package/web/dist/assets/Dashboard-BgLArtgu.js +0 -2
  238. package/web/dist/assets/Docs-B5aHp86J.js +0 -5
  239. package/web/dist/assets/Factories-BjqzXAw8.js +0 -1
  240. package/web/dist/assets/Installs-B1OsrHXF.js +0 -3
  241. package/web/dist/assets/Kits-CW1e7xNa.js +0 -1
  242. package/web/dist/assets/Laws-1Ckf1lbs.js +0 -4
  243. package/web/dist/assets/Library-B3FuFLel.js +0 -3
  244. package/web/dist/assets/Loops-CwqgnLNw.js +0 -2
  245. package/web/dist/assets/Personal-DKLgLa7Z.js +0 -2
  246. package/web/dist/assets/Settings-BwErnh-R.js +0 -1
  247. package/web/dist/assets/api-DLDVY3K-.js +0 -1
  248. package/web/dist/assets/index-Ce6qF2nG.js +0 -6
@@ -27,15 +27,14 @@
27
27
  */
28
28
  import { spawn } from 'node:child_process';
29
29
  import {
30
- accessSync, constants, copyFileSync, existsSync, mkdirSync, mkdtempSync, realpathSync,
31
- renameSync, rmSync,
30
+ copyFileSync, existsSync, mkdirSync, mkdtempSync, realpathSync, renameSync, rmSync,
32
31
  } from 'node:fs';
33
32
  import os from 'node:os';
34
33
  import path from 'node:path';
35
34
 
36
35
  import { emitGlobalInto } from '../build/driver.mjs';
37
36
  import {
38
- ROOT, discoverNames, knownRuleIds, loadKits, PACK_ORDER,
37
+ CONTEXT_WINDOWS, ROOT, discoverNames, knownRuleIds, loadKits, PACK_ORDER,
39
38
  } from '../build/source.mjs';
40
39
  import { diffCollect, drifted, renderMemo, withStdoutSwallowed } from '../inspect/diff.mjs';
41
40
  import { SESSION_FILES } from '../hosts/hooks-context.mjs';
@@ -43,14 +42,11 @@ import { excludeAdd, excludeRemove } from '../inspect/excludes.mjs';
43
42
  import { installProfile, setupBuildArgs } from '../build/generate.mjs';
44
43
  import { DEFAULT_PRESET, PRESETS } from '../loop/score.mjs';
45
44
  import { activeLoops, setLoopPreset } from '../loop/registry.mjs';
45
+ import { HOSTS, resolvePath } from '../hosts/hosts.mjs';
46
46
  import {
47
- HOSTS, bobConfigDir, claudeConfigDir, expanduser, openclaudeConfigDir,
48
- opencodeConfigDir, resolvePath,
49
- } from '../hosts/hosts.mjs';
50
- import {
51
- EMIT_FOR, EMIT_HOST_SCOPE, doctrinesForBuild, excludedRulesOfDir, excludedSkillsOfDir, kitsOfDir, sharedTierOfDir, renderedTier,
47
+ EMIT_FOR, EMIT_HOST_SCOPE, doctrinesForBuild, excludedRulesOfDir, excludedSkillsOfDir, kitsOfDir, sharedTierOfDir, contextWindowOfDir, renderedTier,
52
48
  footprintOfDir, gatesOfDir,
53
- installState, installTargets, modeOfDir, postureOfDir, themeOfDir,
49
+ installedDefaults, installState, installTargets, modeOfDir, postureOfDir, themeOfDir,
54
50
  trustOfDir,
55
51
  } from '../hosts/installs.mjs';
56
52
  import {
@@ -64,6 +60,7 @@ import { stripWhitespace } from '../lib/text.mjs';
64
60
  import { memoryDelete } from '../maintain/memory.mjs';
65
61
  import { autostartInstall, autostartRemove } from '../hosts/shim.mjs';
66
62
  import { installDeactivate, installReactivate, installUninstall } from '../maintain/uninstall.mjs';
63
+ import { checkProjectFolder } from '../maintain/profile-scope.mjs';
67
64
  import { emitChoices, themeChoices, viewCfg } from './api.mjs';
68
65
  import { actionCommands } from './jobs.mjs';
69
66
  import { emitOf } from '../inspect/status.mjs';
@@ -155,9 +152,20 @@ function bodySharedTier(body, root, host) {
155
152
  return typeof said === 'boolean' ? said : sharedTierOfDir(root, host);
156
153
  }
157
154
 
155
+ /**
156
+ * A request body's `contextWindow` (`--context-window`): only a value `CONTEXT_WINDOWS` names
157
+ * counts; anything else keeps the install's own answer, so a malformed body changes nothing. An
158
+ * install not there yet takes the machine's (`installedDefaults`), as the CLI's new project does.
159
+ */
160
+ function bodyContextWindow(body, root, host, scope) {
161
+ const said = bget(body, 'contextWindow');
162
+ if (typeof said === 'string' && Object.hasOwn(CONTEXT_WINDOWS, said)) return said;
163
+ return installState(root, host, scope) === 'absent' ? installedDefaults().contextWindow : contextWindowOfDir(root, host);
164
+ }
165
+
158
166
  /**
159
167
  * The gate switches across the trust boundary (`deletionGate`, `secretsGate`, `doneGate`,
160
- * `ownershipGate`, `externalGate`, `testNote`), each on its own: only a real JSON boolean counts. Anything else — a string
168
+ * `ownershipGate`, `externalGate`, `testNote`, `ownBranchPass`), each on its own: only a real JSON boolean counts. Anything else — a string
161
169
  * `"false"`, a number, absence — falls back to the install's own answer for THAT gate, so a
162
170
  * malformed or partial body can never disarm (or re-arm) a gate it did not name.
163
171
  */
@@ -563,12 +571,16 @@ export function buildActionCmds(state, body) {
563
571
  return { error: `${emit} installs into a folder you choose — use Deploy with a folder, `
564
572
  + 'not Build' };
565
573
  }
566
- return actionCommands('build', {
574
+ const [step] = actionCommands('build', {
567
575
  theme, emit, footprint: deployed(state) ? state.footprint : 'lean',
568
576
  posture: state.posture, mode: state.mode,
569
577
  trust: state.trust,
570
578
  doctrines: doctrinesForBuild(state.target),
571
579
  });
580
+ // `--reset`, as in `apiInstallCmd`: a fresh target's argv is a whole selection that elides
581
+ // axes at their defaults, so an install already there must not be refused by the preserve
582
+ // guard (js/build/profile.mjs) for every axis it did not spell.
583
+ return [[...step, '--reset']];
572
584
  }
573
585
 
574
586
  /**
@@ -665,6 +677,7 @@ export function apiRestore(state, files) {
665
677
  // The kits: a restored AGENT.md keeps its Kits block and `Active kits:` line.
666
678
  kits: kitsOfDir(target),
667
679
  sharedTier: sharedTierOfDir(target),
680
+ contextWindow: contextWindowOfDir(target),
668
681
  // The gate switches: a restored AGENT.md must keep the install's `<gate>: off` lines.
669
682
  ...gatesOfDir(target),
670
683
  }));
@@ -737,7 +750,7 @@ export function apiInstallCmd(state, body) {
737
750
  const emit = EMIT_FOR.get(`${host} ${scope}`);
738
751
  if (emit === undefined) return { error: `no install mode for ${host}:${scope}` };
739
752
  // Every read-back below is narrowed to `host`'s OWN carrier (host-compat B1) — see the
740
- // comment at `installProfile` in `js/build/generate.mjs`.
753
+ // comment at `installProfile` in `js/build/profile.mjs`.
741
754
  // The theme default is THIS install's own, not the viewed one's: the Kits page acts on any row.
742
755
  // An ABSENT row has no footprint of its own (`footprintOfDir` answers its no-marker `full`),
743
756
  // so a new install takes the CLI's default, lean — see `apiDeployCmd` below.
@@ -779,10 +792,17 @@ export function apiInstallCmd(state, body) {
779
792
  const out = scope === 'global' ? null : String(root);
780
793
  const argv = setupBuildArgs(theme || 'neutral', emit, out, out, fp, pos, mode, doctrines,
781
794
  PACK_ORDER, excludeRules, trust, excludedSkillsOfDir(root, host), gates,
782
- kits ?? kitsOfDir(root, host), sharedTier);
795
+ kits ?? kitsOfDir(root, host), sharedTier, bodyContextWindow(body, root, host, scope));
796
+ // `--reset`: this argv is a WHOLE selection — every axis is the body's or the install's own —
797
+ // and `setupBuildArgs` elides an axis at its default, so returning one to it (a mode back to
798
+ // direct, a gate re-armed) would otherwise trip the preserve guard (js/build/profile.mjs).
799
+ argv.push('--reset');
783
800
  // `--force` only on a literal `true`: the panel's "Replace with Geneseed's copies", which
784
801
  // names the files first. It is this one build's instruction and is never recorded.
785
802
  if (bget(body, 'force') === true) argv.push('--force');
803
+ // `--prune-gates` the same way, and only where it means something: OpenCode's opencode.json
804
+ // is the one file with `permission.bash` gates. One build's instruction, never recorded.
805
+ if (bget(body, 'pruneGates') === true && host === 'opencode') argv.push('--prune-gates');
786
806
  return { cmd: [process.execPath, path.join(ROOT, 'bin', 'build-driver.mjs'), ...argv] };
787
807
  }
788
808
 
@@ -863,39 +883,20 @@ export function apiInstallToggle(state, body) {
863
883
  * The open-ended sibling of `apiInstallCmd`, which only rebuilds a pre-detected target from
864
884
  * a tight allowlist. Scope is always `project`: a global lands in the host's config dir,
865
885
  * never a chosen folder. THIS ENDPOINT TAKES A RAW PATH, so it is the trust boundary — the
866
- * path is validated here as an existing, writable directory that is not a host's own global
867
- * config dir (deploying a `project` emit there would mislabel as the global row and collide
868
- * on dedup).
886
+ * path is validated (`checkProjectFolder`) as an existing, writable directory that is not a
887
+ * host's own global config dir (deploying a `project` emit there would mislabel as the global
888
+ * row and collide on dedup).
869
889
  */
870
890
  export function apiDeployCmd(state, body) {
871
891
  const host = stripWhitespace(strOr(bget(body, 'host')));
872
892
  if (!HOSTS.some((h) => h.host === host)) {
873
893
  return { error: `unknown host: ${host || '(none)'}` };
874
894
  }
875
- const raw = stripWhitespace(strOr(bget(body, 'path')));
876
- if (!raw) return { error: 'no folder given' };
877
- let root;
878
- try {
879
- root = resolvePath(expanduser(raw));
880
- } catch {
881
- return { error: `bad path: ${raw}` };
882
- }
883
- if (!isDir(root)) return { error: `not a folder: ${root}` };
884
- try {
885
- accessSync(root, constants.W_OK);
886
- } catch {
887
- return { error: `folder not writable: ${root}` };
888
- }
889
- const cfgdirs = new Set();
890
- for (const fn of [opencodeConfigDir, claudeConfigDir, bobConfigDir,
891
- openclaudeConfigDir]) {
892
- try {
893
- cfgdirs.add(resolvePath(fn()));
894
- } catch { /* not every host has a resolvable config dir; skip it */ }
895
- }
896
- if (cfgdirs.has(root)) {
897
- return { error: "that's a host global config dir — use its existing row to build a global install" };
898
- }
895
+ // The folder check is `checkProjectFolder`'s (js/maintain/profile-scope.mjs), shared with
896
+ // `geneseed profile apply --project` and the Profiles tab's apply.
897
+ const folder = checkProjectFolder(strOr(bget(body, 'path')), [host]);
898
+ if (folder.error) return { error: folder.error };
899
+ const { root } = folder;
899
900
  // A fresh deploy is LEAN, at the default register, mode and trust: the same default as the
900
901
  // CLI's `--footprint`, which the user chose (2026-10-24) over the console's old `full` — a
901
902
  // console install and a CLI install of the same folder must not differ in always-on text for
@@ -915,6 +916,8 @@ export function apiDeployCmd(state, body) {
915
916
  // project-scope emit name == host name (opencode / claude / bob / openclaude)
916
917
  const argv = setupBuildArgs(theme || 'neutral', host, root, root, fp, pos, mode, doctrines,
917
918
  PACK_ORDER, excludeRules, trust, excludedSkillsOfDir(root, host), gates, kitsOfDir(root, host),
918
- bodySharedTier(body, root, host));
919
+ bodySharedTier(body, root, host), bodyContextWindow(body, root, host, 'project'));
920
+ // `--reset`, as in `apiInstallCmd`: the form's answers plus the folder's own are a whole selection.
921
+ argv.push('--reset');
919
922
  return { cmd: [process.execPath, path.join(ROOT, 'bin', 'build-driver.mjs'), ...argv] };
920
923
  }
package/js/web/api.mjs CHANGED
@@ -23,8 +23,8 @@ import { CLAUDE_STYLE, VERSION_MARKER } from '../hosts/hosts.mjs';
23
23
  import { factCount } from '../hosts/memory-files.mjs';
24
24
  import { autostartState } from '../hosts/shim.mjs';
25
25
  import {
26
- footprintOfDir, gatesOfDir, installState, installTargets, leftoversOf, modeOfDir,
27
- trustOfDir, sharedTierOfDir,
26
+ footprintOfDir, gatesOfDir, installedDefaults, installState, installTargets, leftoversOf, modeOfDir,
27
+ trustOfDir, sharedTierOfDir, contextWindowOfDir, strandedGatesOf,
28
28
  postureOfDir, readJsonMaybe, readMaybe, themeOfDir,
29
29
  } from '../hosts/installs.mjs';
30
30
  import { PRESETS } from '../loop/score.mjs';
@@ -174,6 +174,8 @@ const driftCounts = (files) => ({
174
174
  missing: files.filter((f) => f.status === 'missing').length,
175
175
  linked: files.filter((f) => f.status === 'linked').length,
176
176
  stale: files.filter((f) => f.status === 'stale').length,
177
+ // D11: .md files keep alert tone even when kept, so don't count them in kept
178
+ kept: files.filter((f) => f.status === 'edited' && f.diverged === false && !f.rel.endsWith('.md')).length,
177
179
  });
178
180
 
179
181
  /**
@@ -232,6 +234,8 @@ export function apiInstalls(state) {
232
234
  // The row marked `default` must be the install an unnamed request reads, so the daemon state
233
235
  // follows the marker here, where the console reads it, rather than only on a full refresh.
234
236
  followDefault(state, def);
237
+ let machineCw = null;
238
+ const machineWindow = () => (machineCw ??= installedDefaults().contextWindow);
235
239
  for (const [host, scope, root] of targets) {
236
240
  out.push({
237
241
  ...installRowBase(host, scope, root, installState(root, host, scope)),
@@ -240,9 +244,14 @@ export function apiInstalls(state) {
240
244
  trust: trustOfDir(root, host),
241
245
  // A project install's switch for reading the machine tier (a global install owns it).
242
246
  sharedTier: scope === 'global' ? false : sharedTierOfDir(root, host),
247
+ // The context window the install is built for (`--context-window`); it writes settings on
248
+ // Claude Code only. A row not installed yet offers the machine's, as a new install takes it.
249
+ contextWindow: installState(root, host, scope) === 'absent' ? machineWindow() : contextWindowOfDir(root, host),
243
250
  // Files here that are the user's where Geneseed ships one, and retired leftovers: what a
244
251
  // forced rebuild would replace or remove (`leftoversOf`). Read off the emit's own record.
245
252
  leftovers: leftoversOf(root, host, scope),
253
+ // OpenCode only: the bash gates a `--prune-gates` rebuild would take out (`strandedGatesOf`).
254
+ strandedGates: strandedGatesOf(root, host, scope),
246
255
  // The install a request naming none reads (`defaultView`): the console's pickers start on it.
247
256
  default: !!def && samePath(viewCfg(host, scope, root), def[0]),
248
257
  });
@@ -477,7 +486,8 @@ export function apiOverview(state, counts = machineCounts(state, [{ install: nul
477
486
  if (samePath(viewCfg(host, scope, root), state.target)) {
478
487
  // `deletionGate`/`secretsGate`/`doneGate`/`testNote`/`ownershipGate`/`externalGate`: the gate
479
488
  // switches, for the Constitution page's toggles on rows IV, I, III, VIII, inside the Credo's
480
- // Ownership row and inside doctrine rigor 5's row.
489
+ // Ownership row and inside doctrine rigor 5's row. `ownBranchPass` too: false is strict
490
+ // consent, the switch inside doctrine process 5's row.
481
491
  install = { host, scope, path: root, footprint: footprintOfDir(root),
482
492
  ...gatesOfDir(root, host) };
483
493
  break;
@@ -22,6 +22,7 @@ import { BadRequest, NotFound } from './catalog.mjs';
22
22
  import { nonceBook, openFolder, requestRestart, restartRefusal, rootId, secretProof } from './daemon.mjs';
23
23
  import { apiDocs, apiDocsPage } from './docs.mjs';
24
24
  import { actionCommands, updatePlan } from './jobs.mjs';
25
+ import { profileApplyCmd, profileSaveCmd } from './profiles-api.mjs';
25
26
  import {
26
27
  MACHINE_GETS, POST_ROUTES, PREFIX_ROUTES, STATE_ROUTES, VIEW_POSTS, readJsonBody,
27
28
  } from './routes.mjs';
@@ -396,6 +397,13 @@ export function makeHandler(state, jm, token, dist, holder = null) {
396
397
  if (Object.hasOwn(plan, 'error')) return sendJson(res, plan, 400, ae);
397
398
  return startJob(res, 'deploy', [plan.cmd], ae);
398
399
  }
400
+ // The Profiles tab's two jobs run the CLI's own `profile apply|save` (js/web/profiles-api.mjs).
401
+ // The body names a profile, hosts, a folder or an install, so a refusal is the body's: 400.
402
+ if (action === 'profile-apply' || action === 'profile-save') {
403
+ const plan = action === 'profile-apply' ? profileApplyCmd(body) : profileSaveCmd(body);
404
+ if (Object.hasOwn(plan, 'error')) return sendJson(res, plan, 400, ae);
405
+ return startJob(res, action, [plan.cmd], ae);
406
+ }
399
407
  if (action === 'rebuild') {
400
408
  const plan = rebuildCmds(body);
401
409
  if (Object.hasOwn(plan, 'error')) return sendJson(res, plan, 409, ae);
package/js/web/jobs.mjs CHANGED
@@ -413,12 +413,13 @@ const CLI = () => path.join(ROOT, 'bin', 'geneseed-cli.mjs');
413
413
  const GEN = () => path.join(ROOT, 'bin', 'build-driver.mjs');
414
414
 
415
415
  /**
416
- * The four actions the dispatcher answers INLINE, without consulting the table above:
417
- * `restore` is synchronous and returns a result rather than a job id, and `install`/`deploy`/
418
- * `rebuild` resolve their argv from the request body first. Declared so the surface check
416
+ * The actions the dispatcher answers INLINE, without consulting the table above: `restore` is
417
+ * synchronous and returns a result rather than a job id, and `install`/`deploy`/`rebuild` and the
418
+ * two profile jobs (`profile-apply`, `profile-save`, js/web/profiles-api.mjs) resolve their argv
419
+ * from the request body first. Declared so the surface check
419
420
  * covers every action the dispatcher answers, not only the table's keys.
420
421
  */
421
- export const INLINE_ACTIONS = ['restore', 'install', 'deploy', 'rebuild'];
422
+ export const INLINE_ACTIONS = ['restore', 'install', 'deploy', 'rebuild', 'profile-apply', 'profile-save'];
422
423
 
423
424
  /**
424
425
  * ⚠ `doctrines` DEFAULTS TO THE FULL SET, and it is the one axis here whose default is not the
@@ -0,0 +1,201 @@
1
+ /**
2
+ * The console's Profiles tab (spec D38, D39): the read-only list of install profiles, what
3
+ * applying one would change, and the two jobs that apply or save one.
4
+ *
5
+ * NOTHING HERE BUILDS. The list and the preview read profile files and install markers; the two
6
+ * writes are a `{ cmd }` the job runner spawns, `geneseed profile apply|save …` — the same CLI path
7
+ * a terminal takes, so the console cannot apply a profile any other way than the CLI does. Each
8
+ * body is checked here first, so a bad one is a 400 and never a job that fails.
9
+ *
10
+ * `src` (the profile sources) and `tools` (the host detection) are the tests' seams: no test may
11
+ * read the real machine tier's `profiles/`.
12
+ */
13
+ import path from 'node:path';
14
+
15
+ import { ROOT } from '../build/source.mjs';
16
+ import { installProfile } from '../build/profile.mjs';
17
+ import { HOSTS, expanduser } from '../hosts/hosts.mjs';
18
+ import { installState, installTargets } from '../hosts/installs.mjs';
19
+ import {
20
+ BASE_PROFILE, isGitClone, listProfiles, loadProfile, profileBuildArgs, profileDiff, profileDirs,
21
+ profileFromInstall, profileHosts,
22
+ } from '../maintain/profiles.mjs';
23
+ import { checkProjectFolder, globalLayering, markerCollision } from '../maintain/profile-scope.mjs';
24
+ import { hostTools, profileChanges } from '../maintain/setup.mjs';
25
+
26
+ /**
27
+ * The console's folder check: absolute (after `~` expansion) first, then `checkProjectFolder`.
28
+ * A RELATIVE PATH IS REFUSED HERE: it would resolve against the daemon's working directory,
29
+ * which the user never sees, so `api` typed in the panel could build into a folder nobody named.
30
+ */
31
+ function consoleFolder(raw, hosts = []) {
32
+ const typed = typeof raw === 'string' ? raw.trim() : '';
33
+ if (typed && !path.isAbsolute(expanduser(typed))) {
34
+ return { error: `not an absolute path: ${typed} — give the whole folder path (or start it with ~)` };
35
+ }
36
+ return checkProjectFolder(typed, hosts);
37
+ }
38
+
39
+ /** A profile name, as `saveProfile` takes one: a file stem, never a path. */
40
+ const NAME_RE = /^[a-z0-9][a-z0-9._-]*$/i;
41
+
42
+ /** `[host, scope, root]` of every active install, in `installTargets` order. */
43
+ function activeTargets() {
44
+ return installTargets().filter(([h, s, r]) => installState(r, h, s) === 'active');
45
+ }
46
+
47
+ /**
48
+ * Whether an install FOLLOWS a profile: its read-back equals the profile on every build setting.
49
+ * `hosts`, `login` and `description` are no install setting, so they are never compared (else
50
+ * `starter`, which lists four hosts, could match no install). `sharedTier` counts only on a
51
+ * project install: a global apply ignores it (D37), so a global install cannot differ on it.
52
+ */
53
+ export function followsProfile(installP, scope, p) {
54
+ const skip = new Set(['hosts', 'login', ...(scope === 'global' ? ['sharedTier'] : [])]);
55
+ return profileDiff(installP, p).every((d) => skip.has(d.key));
56
+ }
57
+
58
+ /** The hosts row of the tab: `{ host, label, present }` in HOSTS order. */
59
+ function hostRows(tools) {
60
+ const labels = { opencode: 'OpenCode', claude: 'Claude Code', bob: 'IBM Bob', openclaude: 'OpenClaude' };
61
+ const rows = tools();
62
+ return profileHosts().map((host, i) => ({ host, label: labels[host] ?? host, present: Boolean(rows[i]?.[1]) }));
63
+ }
64
+
65
+ /**
66
+ * What applying `p` would do per host, in one scope: `project` null is global. Each row names
67
+ * the install there now (`state`), whether this machine has the tool, the settings its build
68
+ * would change back (the preserve guard's own list, `profileChanges`), and in project scope the
69
+ * global install that keeps running beside it (D39, `globalLayering`).
70
+ */
71
+ function previewRows(p, project, hosts) {
72
+ return hosts.filter((h) => p.hosts.includes(h.host)).map((h) => {
73
+ let root = project;
74
+ if (!project) {
75
+ try { root = HOSTS.find((x) => x.host === h.host).configDir(); } catch { root = null; }
76
+ }
77
+ const state = root ? installState(root, h.host, project ? 'project' : 'global') : 'absent';
78
+ // A project folder whose marker dir IS this host's global install is refused for this host
79
+ // (`markerCollision`): the row says so and the panel does not offer it.
80
+ const refused = project ? markerCollision(project, h.host) : null;
81
+ const changes = h.present && !refused && state === 'active'
82
+ ? profileChanges(profileBuildArgs(p, h.host, project)) : [];
83
+ return {
84
+ host: h.host, label: h.label, present: h.present, state, root: root ? String(root) : null,
85
+ changes, layering: project && !refused ? globalLayering(h.host) : null, refused,
86
+ };
87
+ });
88
+ }
89
+
90
+ /**
91
+ * `GET /api/profiles[?profile=<name>[&project=<dir>]]` — machine-wide (`MACHINE_GETS`).
92
+ *
93
+ * `profiles`: every file of both sources, each with its source, file, validity, settings, the
94
+ * gates it turns off, how it differs from `starter` and the active installs that follow it.
95
+ * `installs`: every active install with the profiles it follows and its own difference from
96
+ * `starter` (the Selected install panel's tag, the Save panel's preview). With `?profile=`, a
97
+ * `preview` of applying it globally, or into `?project=` (a folder the Apply panel names).
98
+ */
99
+ export function apiProfiles(state, url, { src = {}, tools = hostTools } = {}) {
100
+ const q = new URL(url || '', 'http://x').searchParams;
101
+ const dirs = profileDirs(src);
102
+ const base = loadProfile(BASE_PROFILE, dirs);
103
+ const readBacks = activeTargets().map(([host, scope, root]) => ({
104
+ host, scope, path: String(root), profile: profileFromInstall(installProfile(host, scope, root)),
105
+ }));
106
+ /** @type {any[]} one row per file: a loaded profile carries `profile`, a refused one `error` */
107
+ const profiles = listProfiles(dirs).map((e) => {
108
+ const head = { name: e.name, source: e.source, file: e.file, shadowed: e.shadowed };
109
+ if (e.shadowed) return { ...head, error: 'a shipped profile has this name, so this file is never loaded — rename it' };
110
+ const r = loadProfile(e.name, dirs);
111
+ if (!r.ok) return { ...head, error: r.error };
112
+ const p = r.profile;
113
+ return {
114
+ ...head, description: p.description ?? '', profile: p,
115
+ gatesOff: Object.keys(p.gates ?? {}),
116
+ diff: base.ok ? profileDiff(p, base.profile) : [],
117
+ matches: readBacks.filter((rb) => followsProfile(rb.profile, rb.scope, p))
118
+ .map(({ host, scope, path: at }) => ({ host, scope, path: at })),
119
+ };
120
+ });
121
+ const loaded = profiles.filter((x) => x.profile);
122
+ const installs = readBacks.map((rb) => ({
123
+ host: rb.host, scope: rb.scope, path: rb.path,
124
+ matches: loaded.filter((x) => followsProfile(rb.profile, rb.scope, x.profile)).map((x) => x.name),
125
+ diff: base.ok ? profileDiff(rb.profile, base.profile) : [],
126
+ }));
127
+ const hosts = hostRows(tools);
128
+ const out = {
129
+ profiles, installs, hosts, base: BASE_PROFILE, personalDir: dirs.personalDir,
130
+ shippedDir: dirs.shippedDir, shippedWritable: isGitClone(),
131
+ };
132
+ const name = q.get('profile');
133
+ if (name) {
134
+ const r = loadProfile(name, dirs);
135
+ if (!r.ok) return { ...out, preview: { error: r.error } };
136
+ let project = null;
137
+ const raw = q.get('project');
138
+ if (raw !== null) {
139
+ const f = consoleFolder(raw);
140
+ if (f.error) return { ...out, preview: { name, scope: 'project', error: f.error } };
141
+ project = f.root;
142
+ }
143
+ out.preview = { name, scope: project ? 'project' : 'global', project, rows: previewRows(r.profile, project, hosts) };
144
+ }
145
+ return out;
146
+ }
147
+
148
+ const CLI = () => path.join(ROOT, 'bin', 'geneseed-cli.mjs');
149
+
150
+ /**
151
+ * The job for `POST /api/actions/profile-apply`, body `{ name, hosts: [..], project? }`:
152
+ * `{ cmd }` or `{ error }` (400). `hosts` must be a non-empty subset of the profile's own (D41);
153
+ * `project`, when given, passes the deploy form's folder check.
154
+ */
155
+ export function profileApplyCmd(body, { src = {} } = {}) {
156
+ const name = typeof body?.name === 'string' ? body.name : '';
157
+ const r = loadProfile(name, profileDirs(src));
158
+ if (!r.ok) return { error: r.error };
159
+ const hosts = body?.hosts;
160
+ if (!Array.isArray(hosts) || !hosts.length || !hosts.every((h) => typeof h === 'string')) {
161
+ return { error: 'hosts must be a non-empty list of host ids' };
162
+ }
163
+ const bad = hosts.filter((h) => !r.profile.hosts.includes(h));
164
+ if (bad.length) return { error: `not in profile '${name}': ${bad.join(', ')} (it lists ${r.profile.hosts.join(', ')})` };
165
+ const argv = ['profile', 'apply', name, '--hosts', [...new Set(hosts)].join(',')];
166
+ if (body.project !== undefined && body.project !== null) {
167
+ const f = consoleFolder(body.project, [...new Set(hosts)]);
168
+ if (f.error) return { error: f.error };
169
+ argv.push('--project', f.root);
170
+ }
171
+ return { cmd: [process.execPath, CLI(), ...argv] };
172
+ }
173
+
174
+ /**
175
+ * The job for `POST /api/actions/profile-save`, body `{ name, from: { host, path }, shipped?,
176
+ * force? }`: `{ cmd }` or `{ error }` (400). `from` must be an ACTIVE detected install, matched on
177
+ * its raw path as `/api/profiles` gave it, so the argv is built from the registry, never from body
178
+ * strings. The refusals the CLI would print are answered here first: a Shipped destination outside
179
+ * a git clone (D35), a name the other source holds (D36), an existing file without `force`.
180
+ */
181
+ export function profileSaveCmd(body, { src = {}, root = ROOT } = {}) {
182
+ const name = typeof body?.name === 'string' ? body.name : '';
183
+ if (!NAME_RE.test(name)) return { error: `'${name}' is not a profile name: letters, digits, '.', '_' and '-' only` };
184
+ const from = body?.from;
185
+ const want = JSON.stringify([String(from?.host ?? ''), String(from?.path ?? '')]);
186
+ const hit = activeTargets().findLast(([h, , r]) => JSON.stringify([h, String(r)]) === want);
187
+ if (!hit) return { error: 'from must name an active install ({host, path})' };
188
+ const [host, scope, installRoot] = hit;
189
+ const shipped = body.shipped === true;
190
+ if (shipped && !isGitClone(root)) return { error: 'a shipped profile can only be saved from a git clone of Geneseed' };
191
+ const entries = listProfiles(profileDirs(src));
192
+ const other = entries.find((e) => e.name === name && e.source === (shipped ? 'personal' : 'shipped'));
193
+ if (other) return { error: `'${name}' is already a ${other.source} profile — a personal profile may not reuse a shipped name` };
194
+ const same = entries.find((e) => e.name === name && e.source === (shipped ? 'shipped' : 'personal'));
195
+ if (same && body.force !== true) return { error: `'${name}' already exists (${same.file}) — pick another name, or replace it` };
196
+ const argv = ['profile', 'save', name, '--from', scope === 'global' ? `${host}-global` : host];
197
+ if (scope !== 'global') argv.push('--project', String(installRoot));
198
+ if (shipped) argv.push('--shipped');
199
+ if (body.force === true) argv.push('--force');
200
+ return { cmd: [process.execPath, CLI(), ...argv] };
201
+ }
package/js/web/routes.mjs CHANGED
@@ -25,6 +25,7 @@ import {
25
25
  } from './api.mjs';
26
26
  import { FLEET_SECTIONS, NotFound, apiCatalog, apiItem, apiLoadout } from './catalog.mjs';
27
27
  import { apiUsage } from './usage-api.mjs';
28
+ import { apiProfiles } from './profiles-api.mjs';
28
29
  import { fleetSort } from './state.mjs';
29
30
  import { apiGates } from './gates-api.mjs';
30
31
  import { migratePreview } from '../maintain/migrate.mjs';
@@ -90,6 +91,7 @@ export const VIEW_POSTS = new Set(['/api/activity', '/api/memory/delete', '/api/
90
91
  * section, and `/api/item/`, stay install-scoped (`PREFIX_ROUTES`).
91
92
  */
92
93
  export const MACHINE_GETS = new Set(['/api/update', '/api/installs', '/api/fleet', '/api/migrate/preview', '/api/kits',
94
+ '/api/profiles',
93
95
  '/api/usage', '/api/gates', '/api/excludes', '/api/mcp', '/api/loops/active', '/api/factories/active', '/api/activity',
94
96
  '/api/catalog/skills', '/api/catalog/agents', '/api/catalog/memory', '/api/catalog/notebook',
95
97
  '/api/catalog/wiki', '/api/catalog/config']);
@@ -212,6 +214,9 @@ export const STATE_ROUTES = {
212
214
  // Reads every global install, and writes nothing: the console's view of `migrate --dry-run`.
213
215
  '/api/migrate/preview': () => migratePreview(),
214
216
  '/api/kits': apiKits,
217
+ // The Profiles tab: both profile sources, the installs that follow each, and with `?profile=`
218
+ // (and `?project=`) what applying one would change. Machine-wide; it reads its own query.
219
+ '/api/profiles': (state, url) => apiProfiles(state, url),
215
220
  '/api/update': apiUpdate,
216
221
  '/api/usage': apiUsage,
217
222
  '/api/gates': apiGates,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "//": "Every field here is argued and gated in tests/unit/package_manifest.test.mjs. `files`, `bin`, `exports` and `engines` each have a test that fails when reality drifts from this file; `version` mirrors harness.config.json and is gated too. Read that docblock before editing this one.",
3
3
  "name": "geneseed",
4
- "version": "5.3.1",
4
+ "version": "5.5.0",
5
5
  "description": "A portable, theme-able harness you implant once and use everywhere to grow a disciplined AI coding agent.",
6
6
  "keywords": [
7
7
  "ai",
@@ -39,6 +39,7 @@
39
39
  "js/",
40
40
  "src/",
41
41
  "themes/",
42
+ "profiles/",
42
43
  "adapters/",
43
44
  "docs/*.md",
44
45
  "docs/_groups.json",
@@ -0,0 +1,16 @@
1
+ {
2
+ "description": "Guillaume's recommended Claude Code setup: imperial voice, expert posture, foreman mode. Claude Code only.",
3
+ "hosts": ["claude"],
4
+ "theme": "imperial",
5
+ "footprint": "lean",
6
+ "posture": "expert",
7
+ "mode": "foreman",
8
+ "trust": "balanced",
9
+ "doctrines": ["craft", "rigor", "ops", "process", "comms"],
10
+ "excludeRules": ["craft.4", "ops.1", "process.3", "process.4", "process.5", "rigor.5"],
11
+ "excludeSkills": [],
12
+ "kits": [],
13
+ "contextWindow": "1m",
14
+ "gates": { "deletionGate": false, "ownershipGate": false, "externalGate": false },
15
+ "login": true
16
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "description": "For a first install: neutral voice, every guardrail except the ownership gate.",
3
+ "hosts": ["opencode", "bob", "claude", "openclaude"],
4
+ "theme": "neutral",
5
+ "footprint": "lean",
6
+ "posture": "peer",
7
+ "mode": "direct",
8
+ "trust": "balanced",
9
+ "doctrines": "all",
10
+ "kits": [],
11
+ "contextWindow": "200k",
12
+ "gates": { "ownershipGate": false },
13
+ "login": true
14
+ }
package/registry.json CHANGED
@@ -596,6 +596,20 @@
596
596
  "added": "2026-11-08",
597
597
  "last_verified": ""
598
598
  },
599
+ "skills/herdr": {
600
+ "status": "experimental",
601
+ "version": "1.0.0",
602
+ "owner": "Guillaume Lemer",
603
+ "added": "2026-11-13",
604
+ "last_verified": ""
605
+ },
606
+ "skills/opencode-cli": {
607
+ "status": "experimental",
608
+ "version": "1.0.0",
609
+ "owner": "Guillaume Lemer",
610
+ "added": "2026-11-13",
611
+ "last_verified": ""
612
+ },
599
613
  "skills/gitlab-ci": {
600
614
  "status": "experimental",
601
615
  "version": "1.0.0",