prism

Tests prompt and skill changes for coding agents, and gates them in CI.

measure
early

Why Prism

the problem

A prompt or skill change can make an agent better, worse or just more expensive. Without a harness, you find out from anecdotes.

what it does

Prism is designed to run an agent on a fixed task, grade the result and fail CI when it regresses.

It’s early. The libraries are partly written; the CLI doesn’t run real evaluations yet.

Not available yet

Not installable yet. Drivers and graders are partly written; the CLI doesn’t run real evaluations yet.

The loop and the task

The loop is the design. The task type is real code; nothing runs it end to end yet.

The improvement loop, as designed
1. observe   Lumen flags a session: loops, a low cache hit ratio, high cost
2. capture   Prism turns that session into a regression task
3. change    you edit the skill, the prompt or the Wisp context
4. verify    Prism reruns the task and gates the pull request
             then back to 1
A task, as Prism’s core library defines it
pub struct TaskSpec {
    pub id: CompactString,
    pub skill: CompactString,
    pub input_prompt: String,
    pub fixture_repo: Option<PathBuf>,
    pub expected_assertions: Vec<CompactString>,
    pub max_turns: usize,
    pub timeout_seconds: u64,
}

Before you try it

  • Early. prism test grades a built-in sample, not your suite. bench, record and rebuild print fixed text.
  • No results yet. Nothing has been measured with Prism.
  • Not installable. Building needs a Lumen checkout beside it, and the CLI doesn’t build against current Lumen.
  • The prism-cli crate on crates.io is a different project.
  • Red to green runs cargo test, so fixtures are Rust only.
  • prism.toml is documented but not read. Turn limits and timeouts aren’t enforced.

What it’s for

Most of this is design. The last group is what exists.

Designed: the run

  • Copy a fixture repository into a throwaway workspace.
  • Run an agent on it: Claude Code, Antigravity, OpenCode or an OpenAI-compatible endpoint.
  • Record a live run once. Replay it in CI with no model calls.
  • Read every transcript with Lumen’s parsers, so cost and cache figures match Lumen.

Designed: the grade

  • Tests fail before the change and pass after it.
  • Cache hit ratio and loop count stay within thresholds.
  • Multi-agent review ends within two rounds.
  • A JSON scorecard, a GitHub step summary and a non-zero exit on failure.

Designed: comparisons

  • Paired runs with and without a skill, on the same model.
  • Whether a cheaper model can do the same skill as well.
  • A matrix across models and prompt versions.
  • Deltas in pass rate, cache hit ratio, cost, turns and wall time.

Built so far

  • The task type and a throwaway workspace: a plain copy, no timeout.
  • Five drivers, none called from the CLI yet.
  • Three graders: trajectory, review rounds and the green half of red to green.
  • A candidate-versus-baseline comparison and a JSON report builder.

What it supports

Drivers

A driver runs the agent and hands Lumen the transcript.

Drivers
driverrunsstatus
Claude Codeclaude -pCode exists, not wired up
Antigravityagy --non-interactiveCode exists, not wired up
OpenCodeopencode runCode exists, not wired up
OpenAI-compatibleOne chat completion, no toolsCode exists, not wired up. Can’t run an agent loop.
ReplayA recorded runCode exists, not wired up. Recording isn’t built.
Anthropic and OpenAI APIsDirect HTTPSPlanned

Graders

A grader turns a transcript into pass or fail.

Graders
graderchecksstatus
TrajectoryCache hit ratio and loop count against thresholdsCode exists. Runs on a built-in sample only.
Review roundsMulti-agent review stallsCode exists. Runs on a built-in sample only.
Red to greenTests fail before the change, pass afterGreen half only, with cargo test. Not wired up.
Rubric judgeA model grades against an anchored rubricPlanned
Wisp briefingContext against the code regions it should point atPlanned
Code intelligenceAnswers against compiler outputPlanned

Inside Orin DX

  • prism
  • lumenBuilt on Lumen’s parsers, pricing and loop detection.
  • wispWill test whether Wisp briefs point at the right code and help the agent finish. Planned.
  • monoklWill check Monokl’s answers against compiler output. Planned.
prism
  • lumenBuilt on Lumen’s parsers, pricing and loop detection.
  • wispWill test whether Wisp briefs point at the right code and help the agent finish. Planned.
  • monoklWill check Monokl’s answers against compiler output. Planned.

What’s next

  • Wire the CLI to real task suites, drivers and replay.
  • Record runs and replay them offline in CI.
  • Real paired trials for prism bench, with seeds and significance.
  • Full red-to-green grading and a rubric judge.
  • Wisp briefing evaluation: does the context point at the right code, and does it help the agent finish?
  • Code-intelligence evaluation for Monokl against compiler oracles.
  • GitHub workflows: an offline pull-request gate and nightly live runs.