Download the PHP package voku/agent-recall-compiler without Composer

On this page you can find all versions of the php package voku/agent-recall-compiler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package agent-recall-compiler

Agent Recall Compiler (voku/agent-recall-compiler)

Deterministic L2 Meta-Prompt Compiler and Briefing Manager for Coding Agents.

Build Status

This package forms the recall layer of the governed agent learning loop. It turns approved learnings (managed by voku/agent-learning) into precise, context-aware meta-prompts for subsequent coding sessions.

Rather than overloading an LLM's system prompt with every rule ever created, the Recall Compiler selects only the rules relevant to the files the agent is about to modify. It also warns the agent of past rejections and failures to prevent repeating mistakes.


Architecture & Workflow


Key Features


Installation

Install via Composer:


CLI Usage

The package exposes a binary at vendor/bin/agent-recall-compiler supporting two main operations:

Learning roots may define config.json to avoid hard-coding the active constraint manifest directory:

Relative paths are resolved from the learning root. Without configuration, the compiler keeps the legacy constraints/active and constraints lookup paths.

Starter Integration Pattern

Use the examples instead of embedding a long recall policy in every task:

Copy this shorter contract into AGENTS.md, an existing learning/guidance skill, or a pre/post-task hook:

Selection is not usefulness. It only proves the rule entered the prompt. Use later helpful, irrelevant, and harmful outcomes for promotion, review, and retirement decisions.


CLI Reference

1. Compile a Task Briefing

Prepares the system briefing, validation plan, metadata log, and draft outcome files for an active task.

Inline vs. File-based Briefing

Alternatively, you can pass a path to a pre-defined JSON file containing the task metadata:

Where task-brief.json is:

Outputs Generated:

Compilation fails before writing a misleading briefing when selected guidance cannot be trusted as a coherent instruction set. Blocking cases include unsupported schema versions, inactive selected rules, conflicting active rules, target overlap with rejected proposals, unknown constraint engines, superseded selected constraints, constraint commands that contradict their engine, constraints without validation commands, and outcome records that reference unknown rules.

An empty-guidance compile is valid. When no active guidance, active constraints, or rejected guidance match the task scope, selected_guidance, evaluated_guidance, selected_constraints, selected_rejections, and the outcome draft guidance arrays remain empty. Close-out may record the session result, but it must not invent synthetic guidance such as "none" or create per-guidance not_used, helpful, irrelevant, harmful, or applied evidence.

Constraint Manifest

Active constraints are stored as small runtime manifests:


2. Log Session Outcome

At the end of a coding session, once the validation commands pass and changes are committed, log the feedback to close the loop:

This appends permanent, structured selection entries to history/recall-selections.jsonl and per-guidance outcome entries to history/outcomes.jsonl, which the compiler and voku/agent-learning can read during future evaluations.

recall-log.draft.json defaults every selected rule to outcome=unknown and applied=false. Selected means the rule was included in the closed session’s selected guidance set; it is not proof of model attention, application, or usefulness. Events are written at close-out so abandoned or repeatedly recompiled briefings do not inflate promotion evidence. Duplicate retries fail without partially appending duplicate records.

Full schema details and retry behavior are documented in examples/end-to-end.


Development & Testing

Bundled Agent Skills

This package ships package-specific skills under skills/:

Generated hard constraints selected by recall are authored through the agent-hard-constraint-author skill shipped by voku/agent-learning.

Run the test suite using PHPUnit:

Run static analysis using PHPStan:


License

This project is licensed under the MIT License. See LICENSE for details.

Internal Pipeline and Compatibility

The public CLI, Composer API classes, JSON field names, and generated file locations remain stable, but the implementation is organized around typed internal boundaries:

  1. Task input normalization: inline CLI input and JSON task briefs resolve to a TaskBrief before selection. Existing brief files using either id or legacy task_id continue to load.
  2. Root/config resolution: RecallRootResolver produces a RecallRootConfig from explicit --root, config.json, and legacy defaults. After that point, compiler services should receive typed config instead of rediscovering paths.
  3. Guidance selection: RecallDecisionEngine still returns the historical RecallResult, and SelectionResult / GuidanceSelection provide an additive typed adapter for the consolidated pipeline.
  4. Rendering: renderer facades consume SelectionResult or the legacy RecallResult and preserve the current system.md, validation-plan.md, meta.json, and recall-log.draft.json shapes.
  5. Close-out: OutcomeCloseOutService centralizes the typed close-out entry point while preserving OutcomeLogger for existing callers.

Event Vocabulary

The compiler records observable facts only:

Selection is not model access. Applied is not automatically helpful. Helpful is task-local evidence, not a universal promotion decision. Promotion and projection remain the responsibility of voku/agent-learning.

Compatibility Notes


All versions of agent-recall-compiler with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package voku/agent-recall-compiler contains the following files

Loading the files please wait ...