PHP code example of voku / agent-recall-compiler

1. Go to this page and download the library: Download voku/agent-recall-compiler library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

voku / agent-recall-compiler example snippets


use voku\AgentRecallCompiler\PackageResources;

// Path to bundled operating-prompts.json catalog
$catalogPath = PackageResources::consumerOperatingPrompts();

// Path to bundled operating-prompts.metadata.json
$metadataPath = PackageResources::consumerOperatingPromptsMetadata();

// Root directory for bundled skills (resources/skills/)
$skillsRoot = PackageResources::skillsRoot();
bash
vendor/bin/agent-recall-compiler compile \
  --root infra/doc/agent-learning \
  --task "PROJECT-367" \
  --description "Implement the new region-aware menu navigation" \
  --file "src/Navigation/MenuEntry.php" \
  --file "tests/Navigation/MenuEntryTest.php" \
  --output-dir ".agent-recall/current"