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.
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 1pub 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.
| driver | runs | status |
|---|---|---|
| Claude Code | claude -p | Code exists, not wired up |
| Antigravity | agy --non-interactive | Code exists, not wired up |
| OpenCode | opencode run | Code exists, not wired up |
| OpenAI-compatible | One chat completion, no tools | Code exists, not wired up. Can’t run an agent loop. |
| Replay | A recorded run | Code exists, not wired up. Recording isn’t built. |
| Anthropic and OpenAI APIs | Direct HTTPS | Planned |
Graders
A grader turns a transcript into pass or fail.
| grader | checks | status |
|---|---|---|
| Trajectory | Cache hit ratio and loop count against thresholds | Code exists. Runs on a built-in sample only. |
| Review rounds | Multi-agent review stalls | Code exists. Runs on a built-in sample only. |
| Red to green | Tests fail before the change, pass after | Green half only, with cargo test. Not wired up. |
| Rubric judge | A model grades against an anchored rubric | Planned |
| Wisp briefing | Context against the code regions it should point at | Planned |
| Code intelligence | Answers against compiler output | Planned |
Inside Orin DX
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.