OpenParable
Skip to content
← Back to skills

Eval Cache

Agent Building
eval-cache

Eval Cache is an Agent Skill for agent building published in the closedloop-ai/claude-plugins repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Check for a cached plan-evaluation.json result before launching the plan-evaluator agent. This skill should be used in Phase 1.3 (Simple Mode Evaluation) of the orchestrator prompt. Triggers on: entering Phase 1.3, checking simple mode, evaluating plan complexity. Returns EVAL_CACHE_HIT with cached values or EVAL_CACHE_MISS signaling re-evaluation is needed.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/closedloop-ai/claude-plugins/blob/HEAD/plugins/judges/skills/eval-cache/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/eval-cache, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Eval Cache

Check whether a prior simple-mode evaluation can be reused, avoiding a redundant plan-evaluator launch when the plan has not changed.

When to Use

Activate this skill at the start of Phase 1.3 (Simple Mode Evaluation), before launching @code:plan-evaluator. If the cache is fresh, skip the evaluator entirely and use the cached result.

Usage

Run the cache check script:

bash ${CLAUDE_SKILL_DIR}/scripts/check_eval_cache.sh <WORKDIR>

Interpreting Output

The script prints one of two structured results to stdout:

Cache Hit

EVAL_CACHE_HIT
simple_mode: true|false
selected_critics: [critic1, critic2, ...]
summary: <cached evaluation summary>

Action: Parse simple_mode and selected_critics from the output. Skip launching @code:plan-evaluator and proceed with the cached values as if the evaluator had just returned them.

Cache Miss

EVAL_CACHE_MISS
reason: <why the cache is stale or missing>

Action: Launch @code:plan-evaluator as normal. The evaluator will write a fresh plan-evaluation.json that subsequent iterations can cache from.

How Freshness Works

The script uses file modification timestamps:

  • If plan-evaluation.json does not exist: miss
  • If plan.json is newer than plan-evaluation.json: miss (plan was modified since last evaluation)
  • If plan-evaluation.json is newer than plan.json: hit (evaluation is still valid)

This correctly handles the case where a user modifies the plan while the workflow is paused: editing plan.json updates its mtime, invalidating the cached evaluation.