agent-bios 0.19.1 → 0.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/DEPENDENCIES.md +58 -30
  2. package/INSTALL.md +4 -4
  3. package/README.md +105 -28
  4. package/claude/CLAUDE.md +1 -1
  5. package/claude/guides/claude-prompting.md +1 -1
  6. package/claude/guides/cli-multi-model-workflow.md +4 -4
  7. package/claude/guides/coding-staged-workflow.md +17 -0
  8. package/claude/guides/documentation-hygiene.md +3 -0
  9. package/claude/guides/gpt-prompting.md +1 -1
  10. package/claude/guides/korean-writing.md +153 -0
  11. package/claude/guides/learning-flow.md +4 -4
  12. package/claude/guides/llm-capability-boundary.md +7 -1
  13. package/claude/guides/session-distill-workflow.md +8 -8
  14. package/claude/guides/slide-writing/RUNBOOK.md +5 -5
  15. package/claude/guides/tooling-gotchas.md +20 -1
  16. package/claude/guides/ui-design/visual-direction.md +88 -0
  17. package/claude/guides/ui-design.md +90 -0
  18. package/claude/guides/verification-discipline.md +10 -1
  19. package/claude/hooks/tooling-gotchas-hook.py +41 -0
  20. package/claude/skills/repo-charter/SKILL.md +3 -3
  21. package/claude/skills/understand/SKILL.md +5 -5
  22. package/codex/AGENTS.md +1 -1
  23. package/codex/guides/claude-prompting.md +1 -1
  24. package/codex/guides/cli-multi-model-workflow.md +4 -4
  25. package/codex/guides/coding-staged-workflow.md +17 -0
  26. package/codex/guides/documentation-hygiene.md +3 -0
  27. package/codex/guides/gpt-prompting.md +1 -1
  28. package/codex/guides/korean-writing.md +153 -0
  29. package/codex/guides/learning-flow.md +4 -4
  30. package/codex/guides/llm-capability-boundary.md +7 -1
  31. package/codex/guides/session-distill-workflow.md +8 -8
  32. package/codex/guides/slide-writing/RUNBOOK.md +5 -5
  33. package/codex/guides/tooling-gotchas.md +20 -1
  34. package/codex/guides/ui-design/visual-direction.md +88 -0
  35. package/codex/guides/ui-design.md +90 -0
  36. package/codex/guides/verification-discipline.md +10 -1
  37. package/compose/app_bridge/SKILL.md +12 -12
  38. package/compose/app_bridge/scripts/bridge.py +35 -10
  39. package/compose/app_desktop/server.py +250 -0
  40. package/compose/assemble.py +5 -5
  41. package/compose/bootstrap/SKILL.md +18 -18
  42. package/compose/canary.sh +4 -4
  43. package/compose/check-domains.py +6 -6
  44. package/compose/corpus-state.py +16 -1168
  45. package/compose/corpus.py +13 -402
  46. package/compose/corpus_app.py +14 -450
  47. package/compose/corpus_catalog.py +15 -926
  48. package/compose/corpus_import.py +14 -523
  49. package/compose/corpus_install.py +14 -1847
  50. package/compose/corpus_session.py +16 -848
  51. package/compose/corpus_setup.py +16 -672
  52. package/compose/corpus_setup_cli.py +15 -580
  53. package/compose/corpus_setup_i18n.py +20 -324
  54. package/compose/corpus_setup_ui.py +18 -645
  55. package/compose/corpus_store.py +16 -1664
  56. package/compose/corpus_transaction.py +15 -284
  57. package/compose/corpus_ui.py +17 -972
  58. package/compose/corpus_ui_runtime.py +16 -274
  59. package/compose/corpus_understand.py +13 -671
  60. package/compose/domains.json +3 -1
  61. package/compose/host_platform.py +121 -0
  62. package/compose/instructions-state.py +1178 -0
  63. package/compose/instructions.py +409 -0
  64. package/compose/instructions_app.py +697 -0
  65. package/compose/instructions_catalog.py +931 -0
  66. package/compose/instructions_import.py +537 -0
  67. package/compose/instructions_install.py +1932 -0
  68. package/compose/instructions_session.py +852 -0
  69. package/compose/instructions_setup.py +713 -0
  70. package/compose/instructions_setup_cli.py +607 -0
  71. package/compose/instructions_setup_i18n.py +327 -0
  72. package/compose/instructions_setup_ui.py +647 -0
  73. package/compose/instructions_store.py +1668 -0
  74. package/compose/instructions_transaction.py +308 -0
  75. package/compose/instructions_ui.py +975 -0
  76. package/compose/instructions_ui_runtime.py +279 -0
  77. package/compose/instructions_understand.py +678 -0
  78. package/compose/native_cli.py +52 -0
  79. package/compose/register-hooks.py +1 -1
  80. package/compose/runtime_entry.py +58 -0
  81. package/compose/setup/START.md +11 -11
  82. package/compose/windows_deploy.py +719 -0
  83. package/docs/advanced-launch.md +11 -11
  84. package/docs/instructions-compatibility.md +86 -0
  85. package/docs/{corpus.md → instructions.md} +36 -8
  86. package/docs/recovery.md +10 -10
  87. package/docs/releases/0.19.2.md +38 -0
  88. package/docs/releases/0.19.3.md +107 -0
  89. package/docs/session-model.md +31 -20
  90. package/docs/setup.md +63 -26
  91. package/docs/understand.md +6 -6
  92. package/docs/windows.md +99 -0
  93. package/install.sh +71 -69
  94. package/launch/agent-launch.py +309 -293
  95. package/launch/agent-launch.toml +2 -2
  96. package/launch/agent-launch.zsh +11 -1
  97. package/launch/i18n/en.toml +55 -55
  98. package/launch/i18n/ja.toml +56 -56
  99. package/launch/i18n/ko.toml +56 -56
  100. package/launch/shell_integration.py +4 -4
  101. package/learn/collect-learning.py +10 -10
  102. package/learn/learning.schema.json +1 -1
  103. package/learn/migrate-learnings.py +51 -51
  104. package/package.json +33 -12
  105. package/provenance.json +1 -1
  106. /package/docs/assets/{corpus-studio.svg → instructions-studio.svg} +0 -0
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  name: agent-bios
3
- description: Inspect or change the private agent-bios corpus used by activated sessions, including item creation, edits, consumption placement, enablement, removal, restore, recovery, selection, reset, rollback, history, and current-vs-pinned explanation. Use for requests about the user's agent-bios instructions or personal learnings; it does not alter the running session or native global files.
3
+ description: Inspect or change the private agent-bios instructions used by activated sessions, including item creation, edits, consumption placement, enablement, removal, restore, recovery, selection, reset, rollback, history, and current-vs-pinned explanation. Use for requests about the user's agent-bios instructions or personal learnings; it does not alter the running session or native global files.
4
4
  ---
5
5
 
6
- # Corpus management
6
+ # Instructions management
7
7
 
8
8
  For installation, dependency choices or setup reconfiguration, read
9
9
  `compose/setup/START.md` from the confirmed `AGENT_BIOS_PACKAGE_ROOT` and use
@@ -13,17 +13,17 @@ operations supply the confirmed runtime and saved roots on every tool call.
13
13
  A completed setup can return that helper path before native discovery refreshes;
14
14
  use the returned path directly.
15
15
  Do not copy this private bootstrap into host discovery or register a second
16
- personal skill named `agent-bios`. Setup does not activate corpus in the current
16
+ personal skill named `agent-bios`. Setup does not activate instructions in the current
17
17
  task; use the app bridge's explicit session-use procedure when requested.
18
18
 
19
- For a guided conversation about why a corpus bundle exists and how its rules work,
19
+ For a guided conversation about why an instruction bundle exists and how its rules work,
20
20
  use the `understand!` / `$understand` skill. `agent-bios understand list` lists
21
21
  learning bundles; `agent-launch --understand BUNDLE claude` (or `codex`) opens a
22
- dedicated learning session. Understanding is not a corpus mutation or `learn!`
22
+ dedicated learning session. Understanding is not an instruction mutation or `learn!`
23
23
  capture request; use the management operations below for ordinary edits.
24
24
 
25
- Use the deterministic `agent-bios corpus` client. In an activated launch, invoke
26
- it as `bash "$AGENT_BIOS_PACKAGE_ROOT/install.sh" corpus` (the examples below use
25
+ Use the deterministic `agent-bios instructions` client. In an activated launch, invoke
26
+ it as `bash "$AGENT_BIOS_PACKAGE_ROOT/install.sh" instructions` (the examples below use
27
27
  the shorter command name). The launcher supplies that package path, so a checkout
28
28
  installation does not accidentally call an older global npm CLI. If the variable
29
29
  is absent, resolve the installed `agent-bios` command before using the examples.
@@ -36,9 +36,9 @@ discovery directories, or the current conversation.
36
36
  Start with:
37
37
 
38
38
  ```bash
39
- agent-bios corpus status --json
40
- agent-bios corpus list --json
41
- agent-bios corpus show '<CorpusRef>' --view effective --json
39
+ agent-bios instructions status --json
40
+ agent-bios instructions list --json
41
+ agent-bios instructions show '<InstructionsRef>' --view effective --json
42
42
  ```
43
43
 
44
44
  The running session is pinned to the `ContentRef` stated by its launch contract.
@@ -51,7 +51,7 @@ items and instruction text of the running or resumed session, independently of
51
51
  current authoring.
52
52
 
53
53
  Use `show --view installed|change|diff|history` to compare the selected installed
54
- baseline, the personal layer, and effective authoring. Use `history [CorpusRef]
54
+ baseline, the personal layer, and effective authoring. Use `history [InstructionsRef]
55
55
  --json` for recoverable revisions.
56
56
 
57
57
  ## Plan, preview, then apply
@@ -62,8 +62,8 @@ edit those values. For writes, preserve the `digest` returned by `list` as
62
62
  `item_digest`; preserve the plan's `expected_revision` when applying it.
63
63
 
64
64
  ```bash
65
- agent-bios corpus plan --input request.json --json
66
- agent-bios corpus apply '<plan_id>' --expected-revision '<expected_revision>' --json
65
+ agent-bios instructions plan --input request.json --json
66
+ agent-bios instructions apply '<plan_id>' --expected-revision '<expected_revision>' --json
67
67
  ```
68
68
 
69
69
  Supported payloads:
@@ -105,16 +105,16 @@ edits the binding through the same plan/apply path. Preserve the installed sourc
105
105
  carrier and native agent frontmatter, including tool restrictions. Changing an
106
106
  ordinary prose item's kind/surface does not turn it into executable hook code.
107
107
 
108
- Native hook execution and corpus-agent registration are off by default. The user
109
- opts in per launch with `agent-launch --corpus-native`; `snapshot --host claude
108
+ Native hook execution and instructions-agent registration are off by default. The user
109
+ opts in per launch with `agent-launch --instructions-native`; `snapshot --host claude
110
110
  --native --json` or `snapshot --host codex --native --json` previews/composes that
111
111
  selection without activating a host. Hook bodies and typed bindings are shared;
112
112
  compilation reports events the selected host does not support. Codex uses session
113
113
  config flags and its native `/hooks` review; Claude uses per-item plugins. Native
114
- corpus-agent registration currently projects Claude agent frontmatter only.
114
+ instructions-agent registration currently projects Claude agent frontmatter only.
115
115
  The snapshot supplies session-only local plugins; it does not install them into
116
116
  global discovery. Check `unavailable` for unsupported carriers or hosts. Native
117
- corpus agent names are qualified by their item plugin, distinct from the launcher's
117
+ instructions agent names are qualified by their item plugin, distinct from the launcher's
118
118
  bare tier names. Removing/restoring one item changes only future snapshots.
119
119
 
120
120
  Show the plan and its consequences before Apply when the user has not already
@@ -143,7 +143,7 @@ current session is unchanged and a new activated launch is needed.
143
143
 
144
144
  Claude and Codex learning sources are separate, host-qualified local authorities.
145
145
  Captured events and their `learning_id` identify immutable captured bytes. Editing
146
- their corpus presentation creates a local overlay for future snapshots; it does
146
+ their instructions presentation creates a local overlay for future snapshots; it does
147
147
  not change an already uploaded record. Uploading revised wording is a new explicit
148
148
  capture with a new id and provenance link. Never claim that local remove, reset,
149
149
  promotion, or purge deleted an uploaded learning unless a real remote delete
package/compose/canary.sh CHANGED
@@ -15,7 +15,7 @@ CLAUDE_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
15
15
  BUNDLE="$CLAUDE_DIR/central/bundle.md"
16
16
 
17
17
  # Every install assembles a central bundle now — the shape that had none, where the entry file
18
- # WAS the corpus, is gone. So a missing bundle is a real failure again rather than the N/A it
18
+ # WAS the instructions, is gone. So a missing bundle is a real failure again rather than the N/A it
19
19
  # used to be, and an entry file with no bundle beside it is a pre-convergence layout that a
20
20
  # re-install fixes.
21
21
  if [ ! -f "$BUNDLE" ]; then
@@ -24,7 +24,7 @@ if [ ! -f "$BUNDLE" ]; then
24
24
  echo " whole-file layout; re-run: agent-bios install"
25
25
  exit 1
26
26
  fi
27
- echo "CANARY FAIL: no corpus deployed at $CLAUDE_DIR (run: agent-bios install)"
27
+ echo "CANARY FAIL: no instructions deployed at $CLAUDE_DIR (run: agent-bios install)"
28
28
  exit 1
29
29
  fi
30
30
 
@@ -38,7 +38,7 @@ probe_status=$?
38
38
 
39
39
  if printf '%s' "$out" | grep -qF "$expected"; then
40
40
  # Record WHICH bundle was proven to load. This is the only evidence in the system that
41
- # distinguishes a corpus that landed from one that is read, so the irreversible act that
41
+ # distinguishes an instruction that landed from one that is read, so the irreversible act that
42
42
  # depends on that distinction — pruning a user's personal copy of a promoted learning — reads
43
43
  # this file rather than re-deriving a weaker answer from file contents. The rev is part of the
44
44
  # proof: a later reassembly invalidates it instead of inheriting it.
@@ -50,7 +50,7 @@ fi
50
50
 
51
51
  # A pre-dispatch refusal produces no model output at all, so the reply carries
52
52
  # nothing about activation. Attributing it to a declined import would blame the
53
- # corpus for an auth or quota problem.
53
+ # instructions for an auth or quota problem.
54
54
  case "$out" in
55
55
  *"Not logged in"*|*"/login"*|*"Invalid API key"*|*"authentication"*|*"Authentication"*)
56
56
  echo "CANARY SKIP: claude CLI is not authenticated for this config dir — cannot probe activation"
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env python3
2
- """Bijection/coverage gate: compose/domains.json vs the canonical corpus.
2
+ """Bijection/coverage gate: compose/domains.json vs the canonical instructions.
3
3
 
4
4
  The manifest is the sole classification authority (tagged-monolith layout);
5
5
  claude/CLAUDE.md stays the sole text authority. This gate closes the
@@ -50,7 +50,7 @@ from assemble import ( # noqa: E402 the shipped structural/audience/ownership
50
50
  REPO = pathlib.Path(__file__).resolve().parent.parent
51
51
  MANIFEST = REPO / "compose" / "domains.json"
52
52
  MONOLITH = REPO / "claude" / "CLAUDE.md"
53
- FILE_SECTIONS = { # manifest key -> corpus dir, glob
53
+ FILE_SECTIONS = { # manifest key -> instructions dir, glob
54
54
  "guides": ("claude/guides", "*.md"),
55
55
  "hooks": ("claude/hooks", "*"),
56
56
  "agents": ("claude/agents", "*.md"),
@@ -89,7 +89,7 @@ def load_manifest(path=MANIFEST):
89
89
  return json.load(f)
90
90
 
91
91
 
92
- def corpus_bullets(path=MONOLITH):
92
+ def instructions_bullets(path=MONOLITH):
93
93
  text = path.read_text(encoding="utf-8")
94
94
  return [ln for ln in text.splitlines() if ln.startswith("- ")]
95
95
 
@@ -406,7 +406,7 @@ def run_gate(manifest, bullets, repo=REPO):
406
406
  # written, packaged, and delivered while nothing reaches it, and every other check is green.
407
407
  #
408
408
  # Three consumer kinds exist and each is a real delivery path, so none of them is an
409
- # exemption: a corpus bullet (by path or declared handle), a parent guide citing a child
409
+ # exemption: an instruction bullet (by path or declared handle), a parent guide citing a child
410
410
  # as a depth chain, and a launch preset's mission. An exemption list would be the fourth,
411
411
  # and it is the one that lets a genuinely orphaned guide through.
412
412
  launch = repo / "launch" / "agent-launch.toml"
@@ -920,7 +920,7 @@ def self_test(manifest, bullets):
920
920
  print(f"self-test [{'CAUGHT' if xd_ok else 'MISSED'}] a declared handle spelling "
921
921
  f"another guide's derived name fails as a collision")
922
922
 
923
- # Guide-to-guide audience. The mutation is a manifest narrowing, not a corpus edit, so it
923
+ # Guide-to-guide audience. The mutation is a manifest narrowing, not an instruction edit, so it
924
924
  # cannot trip the bijection the way the orphan control first did: take a guide that some
925
925
  # OTHER guide cites and shrink its domain set to one the citing guide does not hold.
926
926
  # The cited guide must be one NO bullet points at — a depth-chain child. Pick one a bullet
@@ -1364,7 +1364,7 @@ def self_test(manifest, bullets):
1364
1364
 
1365
1365
  def main():
1366
1366
  manifest = load_manifest()
1367
- bullets = corpus_bullets()
1367
+ bullets = instructions_bullets()
1368
1368
  extra = [a for a in sys.argv[1:] if a != "--self-test"]
1369
1369
  if extra:
1370
1370
  sys.exit(f"check-domains: refusing unknown argument(s) {extra!r}. This gate "