Over a long run
Handover — what happened
Section titled “Handover — what happened”bee handover --session # what THIS run didbee handover --since 12h # or a windowbee handover --jsonDecisions first, then fixes, then the rest — the order someone picking the work up needs it in.
--session reads the id the harness already exports — CLAUDE_CODE_SESSION_ID,
CODEX_SESSION_ID — so “this run” is an exact boundary rather than a guess at
one. BEE_SESSION overrides it for anything bee has not been taught.
Budget — what the steering costs
Section titled “Budget — what the steering costs”bee budgetbee budget --json session start (once)┌───────────┬───────┬───────┬─────────┐│ component │ items │ chars │ ~tokens │├───────────┼───────┼───────┼─────────┤│ memory │ 1 │ 108 │ 27 ││ chrome │ │ 48 │ 12 ││ total │ │ 156 │ 39 │└───────────┴───────┴───────┴─────────┘Broken down by component, for session start and for a sample prompt. This is how you find out that a rule set has quietly become expensive.
Compaction — what is costing recall
Section titled “Compaction — what is costing recall”bee compact # report onlybee compact --archive # act on itbee compact --archived # what is currently out of recallbee compact --restore <id> # bring one backOver time a store accumulates memories that make it harder to find things:
near-duplicates, superseded decisions, one-off notes that will never be asked for
again. bee compact reports them; nothing moves unless you ask.
The background worker
Section titled “The background worker”bee worker # stay upbee worker --once # run each job once and reportbee worker --once --jsonWork that scales with the size of the store does not belong on the way to a prompt. The worker builds the relevance index and checks embedding health.
{"ok":true,"jobs":[{"job":"embedding-health"}, {"job":"search-index","message":"built the relevance index — search now reaches the whole store, not just the recent end of it"}],"failures":[]}Jobs are resolved from dependency injection, so adding one is a registration.