voku / agent-recall-compiler
Deterministic L2 Meta-Prompt compiler and briefing manager for coding agents.
Fund package maintenance!
Requires
- php: ^8.3
- voku/agent-map: ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0 || ^0.26.0
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5 || ^12.0
- voku/agent-learning: ^0.23.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 0.29.21
- 0.29.20
- 0.29.19
- 0.29.18
- 0.29.17
- 0.29.16
- 0.29.15
- 0.29.14
- 0.29.13
- 0.29.12
- 0.29.11
- 0.29.10
- 0.29.9
- 0.29.8
- 0.29.7
- 0.29.6
- 0.29.5
- 0.29.4
- 0.29.3
- 0.29.2
- 0.29.1
- 0.29.0
- 0.28.1
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.10
- 0.25.9
- 0.25.8
- 0.25.7
- 0.25.6
- 0.25.5
- 0.25.4
- 0.25.3
- 0.25.2
- 0.25.1
- 0.25.0
- 0.24.0
- 0.23.1
- 0.23.0
- 0.22.1
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.11
- 0.17.10
- 0.17.9
- 0.17.8
- 0.17.7
- 0.17.6
- 0.17.5
- 0.17.4
- 0.17.3
- 0.17.2
- 0.17.1
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.16
- 0.13.15
- 0.13.14
- 0.13.13
- 0.13.12
- 0.13.11
- 0.13.10
- 0.13.9
- 0.13.8
- 0.13.7
- 0.13.6
- 0.13.5
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.4
- 0.12.3
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.9
- 0.6.8
- 0.6.7
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.1
- 0.4.0
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.1
- 0.1.0
- 0.0.2
- 0.0.1
- dev-marker/0.29.21
- dev-release/0.29.21
- dev-fix/disjoint-guidance-conflicts
- dev-chore/release-0.29.20
- dev-chore/accept-agent-map-0.26
- dev-claude/agent-stack-engineering-ipfw5o
- dev-ccr-784c9e99-0jrxgb
- dev-ccr-44bf1ea9-qiofzm
- dev-ccr-f6ae47e6-y5bjjs
- dev-ccr-0ca1f0b3-slnot0
- dev-claude/agent-stack-efficiency-qo3x8v
- dev-chore/release-mark-0.29.14
- dev-chore/release-0.29.14
- dev-fix/outcome-unknown-guidance-id-warning
- dev-chore/release-0.29.13-marker
- dev-chore/release-0.29.13-prep
- dev-docs/gpt-6-2-standalone-completion-report
- dev-feat/itp-source-hints-recall
- dev-test/stale-governed-contract-source
- dev-release/0.29.12-marker
- dev-release/0.29.12-prepare
- dev-fix/applied-guidance-target-conflict
- dev-ccr-9c63a6d1-iq4gl1
- dev-ccr-aa56cccc-q8t2ue
- dev-release/0.29.5-marker
- dev-release/0.29.5-changelog
- dev-fix/handoff-context-not-network-isolation
- dev-ccr-15823ed8-z12v42
- dev-claude/agent-ecosystem-handover-az7pys
- dev-ci/skillevaluator-tier1-20261113
- dev-docs/typed-facts-consumption-20261113
- dev-research/arc174-context-shape-probe
- dev-research/issue-intent-applicability-20261110
- dev-research/prospective-issue-intent-choice-20261110
- dev-experiment/choice-veto-retrospective-20261110
- dev-docs/readme-file-guide-20261110
- dev-research/opportunity-reflection-evaluation-20261107
- dev-experiment/metadata-bounded-choice-recall-20261106
- dev-release/tag-0.27.0-explore-20261107
- dev-release/prepare-0.27.0-explore-20261107
- dev-test/installed-explore-consumer-dogfood-20261107
- dev-feat/context-light-exploration-20261107
- dev-feat/opportunity-scan-context-reflection-20261107
- dev-chore/release-0.26.0-tag-20261107
- dev-docs/release-0.26.0-20261107
- dev-fix/typed-bounded-choice-core-20261107
- dev-experiment/native-json-recall-candidate-20261106
- dev-experiment/native-json-recall-shadow-20261106
- dev-release/marker-0.25.10
- dev-release/0.25.10-next-step
- dev-feat/tdd-oracle-quality-review
- dev-feat/outcome-aware-next-step-reflection
- dev-codex/release-security-20261024
- dev-ccr-3d900b81-gjumfz
- dev-fix/guaranteed-code-review-prompt
- dev-fix/explain-omit-irrelevant-guidance
- dev-chore/renovate-phpunit-php83-floor
- dev-feat/clarify-missing-inputs-recipe
- dev-docs/recall-discovery-skill-entrypoint-20261010
- dev-fix/map-symbol-context-absence-20261010
- dev-release/0.25.8-marker
- dev-release/0.25.7
- dev-feat/constraint-subject-patterns
- dev-release/0.25.6-marker
- dev-release/0.25.5
- dev-fix/security-marker-scans-task-files
- dev-ccr-6f81b111-pl491d-mark-0.25.4
- dev-ccr-6f81b111-pl491d-map-0.20
- dev-release-request/0.25.3
- dev-feat/self-blindspot-results-audit
- dev-release-request/0.25.2
- dev-claude/agent-ui-dogfood-continuation-k6288f
- dev-chore/release-0.25.1
- dev-feat/review-prompt-language-focus
- dev-fix/phpstan-2.2.15-duplicate-closeout-assertion
- dev-release/0.23.1-marker
- dev-release/0.23.1
- dev-fix/render-declared-task-scope
- dev-diagnostic/packagist-release-boundary-208
- dev-release/0.23.0-marker
- dev-release/0.23.0
- dev-experiment/task-relevant-capability-context
- dev-experiment/task-relevant-capability-context-ci
- dev-fix/missingness-audit-scope-gaps
- dev-release/0.21.0-marker
- dev-release/0.21.0
- dev-build/map-017-floor
- dev-release/0.20.0-marker
- dev-release/0.20.0-prepare
- dev-release/0.19.1
- dev-build/map-016-floor
- dev-fix/release-marker-019
- dev-release/0.19.0
- dev-feat/186-typed-operating-prompts
- dev-fix/release-marker-0.18
- dev-release/0.18.0
- dev-chore/map-015-floor
- dev-fix/183-release-marker-replay-order
- dev-test/483-bundled-operating-prompt-source
- dev-release/0.17.8-review-session-tail
- dev-fix/review-session-tail-projection
- dev-feat/allow-agent-map-013
- dev-release/0.17.5
- dev-fix/178-immutable-numeric-lineage-release
- dev-docs/continue-resumable-checkpoint
- dev-evidence/152-learning-scale-0187-context
- dev-chatgpt/143-real-context-cohort
- dev-chatgpt/166-bound-runtime-context
- dev-chatgpt/152-task-aware-learning-precedents
- dev-release/0.17.4
- dev-fix/numeric-learning-depth-169
- dev-fix/released-learning-0183-ci
- dev-evidence/152-learning-scale-0183
- dev-fix/learning-precedent-truncation-152
- dev-release/0.17.3-marker
- dev-release/0.17.3
- dev-feat/review-report-owner-path
- dev-release/0.17.1
- dev-fix/optional-learning-missing-root
- dev-release/0.17.0
- dev-pre-1.0/152-bounded-learning-precedent
- dev-feat/rolling-plan-horizon
- dev-feat/refine-l1-contract-prompt
- dev-pre-1.0/143-drop-legacy-sha1-repair
- dev-dogfood/agent-edit-method-removal-replay
- dev-release/0.16.0-marker
- dev-release/0.16.0
- dev-pre-1.0/141-typed-inline-compile
- dev-feat/compiled-briefing-reader
- dev-release/0.14.0-marker
- dev-break/1.0-remove-event-log-writer
- dev-release/0.14.0
- dev-docs/learning-note-precedent-readme
- dev-feature/learning-note-recall-145
- dev-pre1/skill-assets-api
- dev-pre1/review-owner-api
- dev-pre1/review-boundary
- dev-release/0.13.16-marker
- dev-release/agent-map-0.9-compat
- dev-fix/135-blindspot-review-boundary
- dev-api/expose-bundled-operating-prompt-manifest
- dev-release/0.13.15
- dev-unlazy-recipe-reconciliation
- dev-docs/agents-owner-boundary
- dev-fix/operating-prompt-runtime-types
- dev-chore/harden-release-tag-workflow
- dev-fix/prompt-applicability-metadata
- dev-feature/124-operating-prompt-catalog-api-final
- dev-feature/124-operating-prompt-catalog-api
- dev-release/0.13.14-tag
- dev-release/0.13.14
- dev-feature/kanban-context-projection
- dev-feat/117-persist-constraint-metadata
- dev-issue-117-typed-context-explanation
- dev-feature/plan-as-draft-recipe
- dev-release/0.13.13-tag
- dev-release/0.13.13
- dev-refactor/recall-output-superseder-owner
- dev-issue-110-artifact-shape-dispatch
- dev-release/0.13.12
- dev-noop
- dev-docs/prompt-intent-routing
- dev-feature/momentum-investment-review
- dev-issue-103-delegated-execution-continuation
- dev-feature/delegation-readiness-contract
- dev-dogfood/packagist-0.13.11
- dev-fix/release-tag-target-validation
- dev-release/0.13.11
- dev-feat/plan-execution-blind-spot-prompt
- dev-docs/housekeeping-current-loop-front-door
- dev-feat/discovery-production-handoff-prompts
- dev-release/0.13.10
- dev-fix/file-fact-inherited-symbol-relations
- dev-release/0.13.9
- dev-agent/own-recall-facts-path
- dev-release/0.13.8
- dev-agent/typed-recall-facts-document-reader
- dev-release/0.13.7
- dev-agent/typed-recall-output-readers
- dev-agent/docs-prompt-compilation
- dev-agent/blind-spot-repo-first-lens
- dev-agent/reject-missing-review-binding-fields
- dev-release/0.13.6
- dev-agent/review-report-owner-api
- dev-release/0.13.5
- dev-agent/public-compile-api
- dev-agent/test-driven-development-prompt
- dev-agent/security-document-source-containment
- dev-release/0.13.4
- dev-agent/autonomous-continuation-authority-boundary
- dev-release/0.13.3
- dev-agent/model-output-trust-boundary
- dev-agent/todo-card-handoff-l2
- dev-release/0.13.2
- dev-agent/dedupe-navigation-facts
- dev-fix/context-dogfood-candidate-boundary
- dev-release/0.13.1
- dev-agent/regression-hunt-clean-outcome
- dev-fix/security-marker-boundaries
- dev-agent/boundary-aware-blindspot-markers
- dev-agent/token-diet-20260815
- dev-agent/implementation-snapshot-review
- dev-agent/stale-guidance-selection
- dev-agent/php-first-dogfood-runner
- dev-release/0.12.4
- dev-agent/allow-map-0.8
- dev-agent/release-0.12.3
- dev-agent/guidance-gap-authority-kind
- dev-agent/release-0.12.2
- dev-agent/guidance-gap-prompt
- dev-agent/release-0.12.1
- dev-agent/outcome-skill-contract
- dev-claude/request-0.12.0-tag
- dev-claude/release-0.12.0
- dev-claude/outcome-honesty
- dev-claude/approval-queue-prompt
- dev-agent/release-0.11.4
- dev-agent/prompt-contract-primitives
- dev-test/taskbrief-augmentation-equivalence
- dev-release/0.11.3
- dev-agent/preserve-taskbrief-augmentation
- dev-release/0.11.2
- dev-agent/acceptance-criteria
- dev-release/0.11.1
- dev-agent/future-work-reflection
- dev-agent/future-work-reflection-final
- dev-agent/future-work-reflection-final2
- dev-agent/future-work-reflection-v2
- dev-renovate-integration
- dev-fix/task-mentioned-composer-dependencies
- dev-ci/pin-agent-loop-dogfood-baseline
- dev-reset/governed-contract-run-binding
- dev-fix/compact-review-session-root
- dev-breaking/default-agent-loop-paths
- dev-release/0.10.2
- dev-release/0.10.1-agent-map-0.6
- dev-feat/agent-map-0.5-discovery
- dev-agent/context-explain-plan
- dev-release/0.10.0
- dev-feat/execution-contract-shape
- dev-handoff/canonical-source-loaded
- dev-fix/project-root-memory-recall
- dev-feat/operating-prompt-contracts
- dev-refactor/review-workflow-contract
- dev-feat/deterministic-verification-plans
- dev-feat/target-aware-map-recall
- dev-codex/integrate-code-from-pr-5-into-agent-loop-repo
- dev-codex/add-regression-tests-for-empty-guidance
- dev-codex/refactor-implementation-without-breaking-public-behaviour
This package is auto-updated.
Last update: 2026-12-01 10:44:06 UTC
README
Stop pasting "context" into your coding agent and hoping: compile the task plus bounded repository evidence into a replayable briefing, so the same input always gives the agent the same instructions.
You get:
- Replayable briefings. Identical inputs produce an identical
recall.bundle.json,system.mdnames that bundle's SHA-256, andmeta.jsonrecords the SHA-256 ofsystem.mdand every other immutable artifact, so you can tell exactly which briefing was compiled (proving an agent actually received it needs host evidence). - No invented confidence. Every briefing makes the agent label each material conclusion
VERIFIED,INFERRED,ASSUMED,BLOCKEDorCONTRADICTED; every exposed source carries provenance, and missing evidence staysUNKNOWN. - Fail closed, never filler. Conflicting guidance or invalid constraints abort the compile instead of emitting a misleading briefing; with no learning root at all, Recall selects no guidance instead of inventing any.
Part of Agent Loop — a deterministic, local-first workflow for coding agents: approved Contracts, explicit next actions, evidence before "done". This package owns bounded task context (Recall) and operating-prompt recipes.
Quickstart
Requires PHP ^8.3.
composer require --dev voku/agent-recall-compiler
Compile a briefing from inside your repository. By default Recall reads the learning root at .agent-loop/learning and writes to .agent-loop/recall/<task-id>/; an empty or missing learning root is valid.
vendor/bin/agent-recall-compiler compile \
--task DEMO-1 \
--description "Make the greeting configurable" \
--file src/Greeter.php \
--file tests/GreeterTest.php
Briefing compiled successfully under: /path/to/project/.agent-loop/recall/DEMO-1/
- compilation ID: compilation.DEMO-1.<timestamp>.<suffix>
- system.md (selected guidance: 0, selected constraints: 0)
- recall.bundle.json (canonical, replayable)
- facts.json and selection-report.json
- validation-plan.md
- recall-log.draft.json
Hand system.md and validation-plan.md to the coding agent. The briefing opens like this:
# L2 Meta-Prompt Briefing for Task: DEMO-1 > Recall bundle SHA-256: d5984584eafd23ce6d98f9ae8efbb35f6e31857f1a7012ac327535169f7109da ## Evidence Discipline Label every material conclusion honestly: **VERIFIED** (direct reproducible evidence), **INFERRED** ...
Before close-out, complete the generated outcome draft and record it:
vendor/bin/agent-recall-compiler log-outcome \ --root .agent-loop/learning \ --draft .agent-loop/recall/DEMO-1/recall-log.draft.json \ --by "<agent-or-human>" \ --commit "<commit-or-working-tree>"
The draft starts with no outcome rows. Add a row only for selected guidance that actually changed, confirmed, or misled the work; unjudged selections are neutral and still recorded as selection events.
Next steps: pass --root for a learning root elsewhere (for example --root infra/doc/agent-learning) and use the same value for compile and log-outcome, add --target "App\\Service\\UserService::save" --map-index .agent-map/php-symbols.json for exact agent-map context, or generate review artifacts with review blindspots <task-id> --output-dir .agent-loop/recall/<task-id> (the review commands default to .agent-recall/current). Run vendor/bin/agent-recall-compiler help for every command and option.
How it works
task (inline, JSON, or a governed approved-Contract envelope)
+ bounded evidence: guidance, constraints, project documents, agent-map facts, prior outcomes
↓ deterministic selection, with WHAT / WHY / HOW / AUTHORITY / USE / STATE provenance
system.md + validation-plan.md + recall.bundle.json (hash-identified) + recall-log.draft.json
↓
your coding agent implements; verification, review and close-out stay with their owners
Recall compiles context and prompt recipes only: it does not execute edits, approve work, acknowledge review, or change durable guidance. The full model is in Concepts.
Documentation
| I want to… | Read |
|---|---|
| Understand why Recall exists, the core contracts and what it does not own | Concepts |
| See every artifact a compile writes and when it fails closed | Concepts: generated artifacts |
| Look up compile, target/map, manifest, outcome, review and prompt commands | CLI reference |
| Learn the rules behind bounded context, evidence states and authority | Design principles |
Use L2/L1 operating-prompt recipes or run Recall under agent-loop |
Operating prompt recipes |
| Pick the right prompt primitive (first-draft review, reflection, exploration) | Prompt primitives |
| Re-ground a stale task before handing it to a fresh agent | Discovery-first handoff |
| Understand provider boundaries, fact precedence and source digests | Recall provider architecture · Context Explain |
| Record whether selected guidance helped | Guidance event history · LearningNote precedents |
Embed Recall from PHP or resolve shipped assets via PackageResources |
Embedding Recall · Public PHP API |
| Tell dependency readiness apart from a defect under review | Dependency readiness |
| Give my agent a ready-made skill | agent-recall-consumer · maintainer skill |
| Browse all docs | Documentation index |
| See what changed or upgrade | CHANGELOG · UPGRADING |
Part of the Agent Loop toolchain
Each package owns one concern and can be used on its own. voku/agent-loop composes them into one governed workflow.
| Package | Owns |
|---|---|
| agent-loop | Task Contracts, lifecycle, next actions, validation and review gates |
| agent-kanban | Git-native Markdown board and card semantics |
| agent-session | Per-task working memory, decisions and checkpoints |
| agent-map | Read-only repository symbol maps and typed edit plans |
| agent-edit | Transactional, verified application of edit plans |
| agent-graph | Deterministic SQLite graph index and runtime |
| agent-recall-compiler | Bounded task context (Recall) and prompt recipes |
| agent-learning | Reviewable findings, proposals and durable guidance |
| agent-skills | Portable engineering skills for coding agents |
| agent-ui | Local server-rendered control plane for humans |
| agent-decision | Experimental bounded, advisory-only decision helper |
| agent-dotfiles | Shell dotfiles for non-interactive agent shells |
Development
composer ci
composer ci runs strict Composer validation, PHPUnit, and PHPStan. Where to change what, and the focused commands, are in docs/development.md; contribution rules are in CONTRIBUTING.md and agent rules in AGENTS.md.
License
MIT. See LICENSE.