agent-bios 0.19.4 → 0.20.1
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.
- package/DEPENDENCIES.md +20 -5
- package/README.md +14 -19
- package/claude/agents/frontier.md +1 -1
- package/claude/guides/claude-prompting.md +475 -234
- package/claude/guides/cli-multi-model-workflow.md +8 -7
- package/claude/guides/gpt-prompting.md +319 -144
- package/claude/guides/session-distill-workflow.md +93 -43
- package/claude/guides/tooling-gotchas.md +3 -1
- package/codex/agents/frontier.toml +1 -1
- package/codex/agents/reviewer.toml +1 -1
- package/codex/agents/workhorse.toml +1 -1
- package/codex/guides/claude-prompting.md +475 -234
- package/codex/guides/cli-multi-model-workflow.md +8 -7
- package/codex/guides/gpt-prompting.md +319 -144
- package/codex/guides/session-distill-workflow.md +93 -43
- package/codex/guides/tooling-gotchas.md +3 -1
- package/compose/assemble.py +4 -1
- package/compose/canary.sh +8 -6
- package/compose/host_platform.py +158 -15
- package/compose/instructions-state.py +183 -41
- package/compose/instructions_install.py +222 -27
- package/compose/instructions_session.py +250 -75
- package/compose/instructions_setup_cli.py +2 -36
- package/compose/instructions_store.py +160 -3
- package/compose/instructions_transaction.py +29 -5
- package/docs/advanced-launch.md +5 -1
- package/docs/releases/0.20.0.md +102 -0
- package/docs/releases/0.20.1.md +76 -0
- package/install.sh +42 -14
- package/launch/agent-launch.py +152 -18
- package/launch/agent-launch.toml +28 -16
- package/launch/agent-launch.zsh +104 -13
- package/launch/claude_subcommands.py +179 -0
- package/launch/shell_integration.py +7 -1
- package/learn/collect-learning.py +60 -9
- package/learn/migrate-learnings.py +70 -4
- package/learn/redact.py +2 -1
- package/package.json +36 -3
- package/provenance.json +1 -1
- package/session-cost.py +80 -9
- package/session-distill/coverage.json +6 -0
- package/session-distill/distill.py +2575 -0
- package/session-distill/grammar/__init__.py +0 -0
- package/session-distill/grammar/owner_lines.py +874 -0
- package/session-distill/originators.json +9 -0
- package/session-distill/packets/cross_review.md +31 -0
- package/session-distill/packets/form.md +86 -0
- package/session-distill/packets/judge.md +81 -0
- package/session-distill/packets/placement_contract.md +90 -0
- package/session-distill/packets/propose.md +124 -0
- package/session-distill/packets/read.md +57 -0
- package/session-distill/packets/reconsider.md +53 -0
- package/session-distill/packets/s7b.md +65 -0
- package/session-distill/packets/s9b.md +39 -0
- package/session-distill/packets/stitch.md +35 -0
- package/session-distill/packets/sweep.md +33 -0
- package/session-distill/runlib/__init__.py +0 -0
- package/session-distill/runlib/bound.py +1102 -0
- package/session-distill/runlib/breaker.py +467 -0
- package/session-distill/runlib/census.py +2347 -0
- package/session-distill/runlib/claims.py +420 -0
- package/session-distill/runlib/controls.py +902 -0
- package/session-distill/runlib/coverage.py +881 -0
- package/session-distill/runlib/declare.py +888 -0
- package/session-distill/runlib/delivery_evidence.py +1145 -0
- package/session-distill/runlib/derive.py +812 -0
- package/session-distill/runlib/destinations.py +3072 -0
- package/session-distill/runlib/dispatch.py +7940 -0
- package/session-distill/runlib/drift.py +1077 -0
- package/session-distill/runlib/entry.py +401 -0
- package/session-distill/runlib/evidence.py +890 -0
- package/session-distill/runlib/exposure.py +1162 -0
- package/session-distill/runlib/gate.py +2727 -0
- package/session-distill/runlib/gitread.py +79 -0
- package/session-distill/runlib/inventory.py +19624 -0
- package/session-distill/runlib/journal.py +1919 -0
- package/session-distill/runlib/ledger.py +3210 -0
- package/session-distill/runlib/ledger_compat.py +101 -0
- package/session-distill/runlib/ledger_migration.py +190 -0
- package/session-distill/runlib/lifecycle_intake.py +693 -0
- package/session-distill/runlib/lineage.py +454 -0
- package/session-distill/runlib/measures.py +249 -0
- package/session-distill/runlib/monitor.py +1180 -0
- package/session-distill/runlib/operations.py +522 -0
- package/session-distill/runlib/packet.py +838 -0
- package/session-distill/runlib/placement.py +1769 -0
- package/session-distill/runlib/projection.py +4090 -0
- package/session-distill/runlib/ranking.py +740 -0
- package/session-distill/runlib/receipts.py +200 -0
- package/session-distill/runlib/records.py +1965 -0
- package/session-distill/runlib/search.py +249 -0
- package/session-distill/runlib/sequencing.py +829 -0
- package/session-distill/runlib/sources.py +641 -0
- package/session-distill/runlib/stage_adjudicate.py +845 -0
- package/session-distill/runlib/stage_apply.py +1378 -0
- package/session-distill/runlib/stage_approvals.py +758 -0
- package/session-distill/runlib/stage_close.py +1220 -0
- package/session-distill/runlib/stage_confirm.py +929 -0
- package/session-distill/runlib/stage_delivery.py +3080 -0
- package/session-distill/runlib/stage_form.py +2576 -0
- package/session-distill/runlib/stage_judge.py +4248 -0
- package/session-distill/runlib/stage_propose.py +3307 -0
- package/session-distill/runlib/stage_read.py +5179 -0
- package/session-distill/runlib/stage_render.py +2739 -0
- package/session-distill/runlib/stage_retrieve.py +924 -0
- package/session-distill/runlib/stage_review_korean.py +1002 -0
- package/session-distill/runlib/stage_review_proposals.py +1292 -0
- package/session-distill/runlib/stagelock.py +412 -0
- package/session-distill/runlib/stop.py +1061 -0
- package/session-distill/runlib/targets.py +809 -0
- package/session-distill/runlib/usage.py +280 -0
- package/session-distill/runlib/validate.py +319 -0
- package/session-distill/runlib/views.py +4327 -0
- package/session-distill/schemas/adjudication.schema.json +35 -0
- package/session-distill/schemas/approval.schema.json +35 -0
- package/session-distill/schemas/census.schema.json +128 -0
- package/session-distill/schemas/checks.schema.json +207 -0
- package/session-distill/schemas/claim.schema.json +16 -0
- package/session-distill/schemas/confirmation.schema.json +24 -0
- package/session-distill/schemas/coverage.schema.json +66 -0
- package/session-distill/schemas/cross_review.schema.json +24 -0
- package/session-distill/schemas/event.schema.json +20 -0
- package/session-distill/schemas/evidence.schema.json +20 -0
- package/session-distill/schemas/expected_observation.schema.json +18 -0
- package/session-distill/schemas/form.schema.json +103 -0
- package/session-distill/schemas/intake.schema.json +71 -0
- package/session-distill/schemas/inventory.schema.json +872 -0
- package/session-distill/schemas/judge.schema.json +77 -0
- package/session-distill/schemas/ledger.schema.json +313 -0
- package/session-distill/schemas/observation.schema.json +16 -0
- package/session-distill/schemas/propose.schema.json +555 -0
- package/session-distill/schemas/read.schema.json +76 -0
- package/session-distill/schemas/reconsider.schema.json +122 -0
- package/session-distill/schemas/run.schema.json +150 -0
- package/session-distill/schemas/s7b.schema.json +200 -0
- package/session-distill/schemas/s9b.schema.json +28 -0
- package/session-distill/schemas/stitch.schema.json +25 -0
- package/session-distill/schemas/sweep.schema.json +25 -0
- package/session-distill/seats.json +149 -0
- package/session-distill/tables/allowed_pairs.json +257 -0
- package/session-distill/tables/controls.json +30 -0
- package/session-distill/tables/delivery_evidence.json +36 -0
- package/session-distill/tables/delivery_evidence_fixtures.json +731 -0
- package/session-distill/tables/destinations.json +684 -0
- package/session-distill/tables/drift_layers.json +68 -0
- package/session-distill/tables/exposure_rules.json +192 -0
- package/session-distill/tables/placement_rules.json +148 -0
- package/session-distill/tables/propose_fixtures.json +154 -0
- package/session-distill/tables/ranking.json +194 -0
- package/session-distill/tables/redundancy.json +10 -0
- package/session-distill/tables/structural_rules.json +44 -0
- package/session-distill/tables/transition_fixtures.json +398 -0
- package/session-distill/tables/transitions.json +69 -0
- package/session-distill/tables/unit_outcome.json +67 -0
- package/session-distill/tables/unit_outcome_fixtures.json +2364 -0
- package/wrappers/claude-run.sh +481 -33
- package/wrappers/claude_hermetic_evidence.py +1423 -0
- package/wrappers/codex-helm.sh +46 -15
- package/wrappers/codex-run.sh +183 -20
- package/wrappers/codex_frame_filter.py +1199 -0
- package/wrappers/codex_protocol.py +737 -0
- package/wrappers/jsonl_lines.py +65 -0
package/DEPENDENCIES.md
CHANGED
|
@@ -37,10 +37,11 @@ have separate runtime requirements below.
|
|
|
37
37
|
|
|
38
38
|
| Tool | Required by | Required capability | Verified |
|
|
39
39
|
| --- | --- | --- | --- |
|
|
40
|
-
| `python3` | `compose/instructions*.py`, app bridge helper, `session-cost.py`, `launch/agent-launch.py` | Python 3.12+ (`tomllib`) for the private store, offline installer UI loader, import evidence, app receipts
|
|
40
|
+
| `python3` | `compose/instructions*.py`, app bridge helper, `session-cost.py`, `launch/agent-launch.py`, `session-distill/distill.py` and `session-distill/runlib/` | Python 3.12+ (`tomllib`) for the private store, offline installer UI loader, import evidence, app receipts, native session adapter and the session-distill driver | 3.14.7 · version report · 2026-11-11 |
|
|
41
41
|
| `bash` | `install.sh`, shell adapters, provisioner and app helper command dispatch | Bash arrays and argument-preserving execution; macOS system Bash is supported | 3.2.57 · version report · 2026-09-12 |
|
|
42
|
-
| `git` | conversation source acquisition, clone updates
|
|
42
|
+
| `git` | conversation source acquisition, clone updates, version-control workflows and `session-distill/runlib/gitread.py` | clone and detached checkout for a fixed source commit; worktrees and modern revision operations for development; `git show <rev>:<path>` for the driver's comparison of a tracked file's committed bytes against the working tree, where a path absent at a revision is a measurement and not an error. No Git checkout is required to use an installed npm package, and the driver asks git only for a run that compares commits | 2.50.1 · version report · 2026-11-11 |
|
|
43
43
|
| `zsh` | `launch/agent-launch.zsh`, optional `launch/shell_integration.py` connection | shell functions, TTY checks and argument-preserving dispatch. Used by the explicit private shell connection as well as compatibility installation; it is not required for ordinary private storage or app context use | 5.9 · version report · 2026-09-12 |
|
|
44
|
+
| `zstd` | `session-distill/runlib/census.py` and `session-distill/runlib/sources.py` | reading a compressed session capture the host wrote: the driver declares the binary it used (`declare.py` requires a `zstd` entry) rather than assuming one, and a census without it refuses by name (`ZSTD_UNAVAILABLE`) instead of reporting fewer sessions | 1.5.7 · version report · 2026-11-11 |
|
|
44
45
|
| `mktemp`, `cp` | wrapper temporary homes and shell utilities | BSD or GNU command interfaces | local inventory checks command availability; no package-version claim |
|
|
45
46
|
| `ioreg`, `ps` | conversation setup machine/process identity on macOS | local OS identity probes. Linux uses machine-id and `/proc`; machine identity has a host/filesystem fallback, while missing process evidence leaves a running attempt unconfirmed | source-defined probes; no separate tool version pin |
|
|
46
47
|
| Node.js | npm delivery, optional npm host installation and selected slide jobs | `package.json` requires Node >=18 for npm package delivery. The optional Claude npm recipe requires Node >=22; Codex npm installation and slide runtimes retain their own requirements. The Python instructions runtime does not require Node | 26.0.0 · version report · 2026-09-12 |
|
|
@@ -50,7 +51,7 @@ have separate runtime requirements below.
|
|
|
50
51
|
| Bundled Textual UI runtime | interactive `install`/`onboard`, package/current-checkout Instructions Studio TTY entrypoint, private/current-checkout launcher rich entrypoint | pure-Python wheels shipped under `compose/ui_runtime/`; the loader verifies and extracts them temporarily before UI imports. No system/managed Textual, pip installation or runtime network access is needed | manifest versions/hashes/licenses; offline clean-interpreter, TTY and backend-handoff checks · 2026-09-12 |
|
|
51
52
|
| Managed `textual` | standalone compatibility launcher copies, retained in-process APIs and author tests | optional environment at `${AGENT_LAUNCH_VENV:-$HOME/.local/share/agent-launch/venv}`. Its installation target is `TEXTUAL_PIN`; current package CLI UI paths use the shipped bundle | 8.2.8 · clean-venv installation/import, `pip check` and UI tests · 2026-09-12 |
|
|
52
53
|
| `rich` | Textual clients | included with the installer UI bundle and otherwise provided transitively by Textual; not a separate setup choice. Plain editing needs no optional syntax-highlighting packages | managed Textual environment and UI tests · 2026-09-12; bundled version belongs to the manifest |
|
|
53
|
-
| `jsonschema` | `learn/collect-learning.py`, `learn/check-learning.py` | Draft 2020-12 validation for user learning capture and
|
|
54
|
+
| `jsonschema` | `learn/collect-learning.py`, `learn/check-learning.py`, `session-distill/runlib/validate.py` | Draft 2020-12 validation for user learning capture, author verification and every document the session-distill driver writes or reads (`validate.py` refuses by name — `JSONSCHEMA_MISSING`, `JSONSCHEMA_VERSION_MISMATCH`, `JSONSCHEMA_PIN_UNREADABLE` — rather than validating with an unverified version). `learn` uses a usable system validator, otherwise the configured managed interpreter. Installation target is `JSONSCHEMA_PIN` in the provisioner; `--learning-only` installs it without adding Textual | 4.26.0 · clean-venv installation/import and `pip check` 2026-09-12; import of the module the driver loads, equal to `JSONSCHEMA_PIN`, 2026-11-11 |
|
|
54
55
|
|
|
55
56
|
`agent-bios install` and `onboard` are interactive unless `--non-interactive` is explicit.
|
|
56
57
|
Selection flags seed the UI, and a non-TTY default call fails before writes. Python
|
|
@@ -94,8 +95,9 @@ managed interpreter does not need to bootstrap again. The provisioner checks Pyt
|
|
|
94
95
|
|
|
95
96
|
| CLI | Required by | Required capability | Verification |
|
|
96
97
|
| --- | --- | --- | --- |
|
|
97
|
-
| Claude Code | native Claude sessions
|
|
98
|
-
|
|
|
98
|
+
| Claude Code | native Claude sessions, Claude worker/review routes and the session-distill driver's own calls (`session-distill/runlib/dispatch.py`) | `--model`, `--effort`, `--agents`, per-call `--append-system-prompt`, `--session-id`, `--resume`, `--mcp-config`, `--plugin-dir`, and the selected permission mode; native global/project loading remains native | 2.1.268 · 2026-09-12 |
|
|
99
|
+
| Claude Code, hermetic profile | `wrappers/claude-run.sh --profile hermetic` and `wrappers/claude_hermetic_evidence.py` | `--safe-mode`, `--setting-sources ""`, `--strict-mcp-config`, `--disable-slash-commands`, `--tools`, `--allowedTools`, `--permission-mode dontAsk`, `--json-schema`, `--session-id`, `--append-system-prompt-file`, `--output-format stream-json --verbose --include-partial-messages`; login through `CLAUDE_CODE_OAUTH_TOKEN` (`--bare` reads no token); `CLAUDE_CODE_MAX_OUTPUT_TOKENS`; session transcripts under `CLAUDE_CONFIG_DIR/projects` in the record shapes the helper reads | 2.1.317 versioned binary · `--help` · 2026-11-04 (A-1 re-pin: six hermetic calls, record kinds measured; earlier 2.1.304 · 2026-10-21); the isolation effect of the flag set measured on 2.1.304 · 2026-10-20; the producing profile's `dontAsk` refusal not yet measured |
|
|
100
|
+
| Codex CLI | `compose/instructions_session.py`, launcher, Codex worker/review adapters and the session-distill driver's own calls (`session-distill/runlib/dispatch.py`) | per-call `-c`; cwd-aware `app-server --stdio` `config/read`; durable `thread/start`, `thread/inject_items`, `thread/read`; `codex resume`; `codex exec` and agent-config projection | local 0.153.4; isolated compatibility 0.154.0 · 2026-09-12 |
|
|
99
101
|
|
|
100
102
|
The Claude row reports the installed command version. The Codex row distinguishes the
|
|
101
103
|
installed runtime from the newer isolated compatibility check. Native protocol and
|
|
@@ -224,6 +226,17 @@ Agent-bios does not install credentials or infer a model account from dependency
|
|
|
224
226
|
`codex-helm.sh` and `claude-run.sh` from the selected package. Their command paths,
|
|
225
227
|
binding, reach and fallback are declared in the launch contract. An unavailable or
|
|
226
228
|
unauthenticated opposite-family route is reported, not credited as a completed review.
|
|
229
|
+
- **Codex capture** — `codex-run --capture DIR` records one call's evidence through
|
|
230
|
+
`wrappers/codex_frame_filter.py` (standard-library Python 3), resolved beside the adapter.
|
|
231
|
+
It reads codex-cli's trace frames, which appear only under the caller's
|
|
232
|
+
`RUST_LOG=tungstenite::protocol=trace,codex_otel.log_only=info,codex_core::responses_retry=warn`;
|
|
233
|
+
the channel is unsupported and version-bound, so a capture without it attests no model. The
|
|
234
|
+
frame shape was verified on codex-cli 0.163.0 and seen again in 0.167.0's live captures; session
|
|
235
|
+
distill pins 0.171.0 since 2026-11-24, and its first 0.171.0 capture is what confirms the shape
|
|
236
|
+
there. A capture refuses a codex whose
|
|
237
|
+
version is not `CODEX_RUN_VERSION` (`HOST_VERSION_MISMATCH`), and every exit the adapter takes
|
|
238
|
+
before it starts codex names its code (`codex-run: CODE ...`), which the distill driver records
|
|
239
|
+
as the call's `runner_refused`.
|
|
227
240
|
<!-- mcp-inventory:start -->
|
|
228
241
|
<!-- facts: {"bundlers": {"compose/app_desktop/server.py": ["compose/instructions_app.py"]}, "capabilities": [], "servers": ["compose/app_desktop/server.py"]} -->
|
|
229
242
|
- **MCP servers** — derived from source by `gates/check-mcp-inventory.py`.
|
|
@@ -307,6 +320,8 @@ managed test environment, so it is not a read-only machine inventory:
|
|
|
307
320
|
```bash
|
|
308
321
|
python3 gates/check-python-floor.py
|
|
309
322
|
bash -n install.sh launch/provision-venv.sh wrappers/codex-run.sh wrappers/codex-helm.sh wrappers/claude-run.sh
|
|
323
|
+
python3 wrappers/claude_hermetic_evidence.py --self-test
|
|
324
|
+
python3 wrappers/codex_frame_filter.py --self-test
|
|
310
325
|
zsh -n launch/agent-launch.zsh
|
|
311
326
|
./gates/check-parity.sh
|
|
312
327
|
```
|
package/README.md
CHANGED
|
@@ -5,31 +5,26 @@
|
|
|
5
5
|
Build an instruction library you can inspect, edit, and reuse. Choose what each
|
|
6
6
|
CLI session or Codex app task uses, while preserving your existing global instruction files.
|
|
7
7
|
|
|
8
|
-
[0.
|
|
8
|
+
[0.20.1 release notes](docs/releases/0.20.1.md)
|
|
9
9
|
|
|
10
10
|
## Purpose
|
|
11
11
|
|
|
12
12
|
<!-- product-purpose:start -->
|
|
13
|
-
agent-bios exists to let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
not require identical outputs or erase personal, team, and organizational boundaries.
|
|
13
|
+
agent-bios exists to let a worker keep one library of Instructions — rules,
|
|
14
|
+
guides, and procedures for LLM agents — and choose what each Claude Code or
|
|
15
|
+
Codex session uses, so the work follows the standards and context the worker
|
|
16
|
+
has chosen.
|
|
17
|
+
|
|
18
|
+
The goal is efficient work and continuity. Instructions are reusable defaults
|
|
19
|
+
that the worker adapts to each repository and personal working need; they are
|
|
20
|
+
not a mechanism for enforcing uniform working methods.
|
|
21
|
+
|
|
22
|
+
The worker should be able to read and edit what each instruction says, adopt
|
|
23
|
+
instructions others publish as packages, and continue the work when the model,
|
|
24
|
+
session, or host changes. Adopted instructions do not require identical outputs
|
|
25
|
+
or erase personal and organizational boundaries.
|
|
27
26
|
<!-- product-purpose:end -->
|
|
28
27
|
|
|
29
|
-
The current service provides the Instructions library and host launch/delivery
|
|
30
|
-
integration. Shared environment editions, Domain knowledge, and Decision memory
|
|
31
|
-
are the design direction; this purpose statement does not claim they are shipped.
|
|
32
|
-
|
|
33
28
|
[Quick start](#quick-start) · [Instructions Studio](#your-instruction-library) · [How it works](#how-sessions-work) · [Understand!](#understand-the-reasoning) · [Documentation](#documentation) · [한국어](ko/README.md)
|
|
34
29
|
|
|
35
30
|

|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontier
|
|
3
3
|
description: FRONTIER tier — bounded hardest decisions, first-of-kind design, triage gates, and final verdicts. Spawn when the Escalation gate fires — an irreversible or authority-changing action ahead, two failed attempts, or two persisting design alternatives — with a blind packet (evidence, constraints, rubric, neutral alternatives; no draft conclusion) and a pre-noted change condition.
|
|
4
|
-
model: claude-fable-5-
|
|
4
|
+
model: claude-fable-5-2
|
|
5
5
|
effort: max
|
|
6
6
|
disallowedTools: [Edit, Write, NotebookEdit]
|
|
7
7
|
---
|