Projectv0.8.2
Prism
Write agent workflows as programs. Run them anywhere. Run them again.
Prism runs Claude Code, Codex, Grok, and ten more agent CLIs from workflows you write in TypeScript with Effect. Mix models in one program, fan out across a whole codebase, let Jev make the calls between steps, and run it again for free: finished work comes back from cache.
npm install -g @skastr0/prism01
Many agents. One program.
You have Claude Code, Codex, Grok, and more models than you can keep track of. Using them together by hand doesn't scale. Scripting them is painful: every CLI has its own flags, models, and permission modes. Runs go on for minutes or hours, crash halfway, and take their output with them.
Prism turns that into a program. You write a workflow in TypeScript with Effect. Prism runs the agents you already have, on the models you pick, and keeps every result.
- 01Write itTasks, agents, and the answers you want back, in one TypeScript file.
- 02Run itEvery agent in parallel, on your machine or somewhere else.
- 03Run it againFinished work comes back from cache. Change one task and only that task reruns.
02
Write it. Run it. Run it again.
A task is a prompt, the agent that runs it, and the shape of the answer you want back. A workflow is ordinary Effect code around those tasks.
Here Codex and Claude review the same commit at the same time. Both answers come back in one shape, so the next step can use them. Run it again and nothing reruns: both answers come back from cache.
$
A real run: Codex and Claude reviewed one commit in 57 seconds for $0.24. The second run cost nothing.
03
Orchestrate at scale.
A workflow is a program, so it can do what programs do: fan out across a codebase, run one phase after another, branch, retry, loop.
Give every file its own agent, as many at once as your machine allows. If the run dies, resume it: finished files replay from cache and the rest carry on.
codex-cli · one agent per file
04
Agents and Jev, woven together.
Jev makes decisions. Hand it an array (issues, files, findings, tabs, anything) with a question for each item. One request brings back a typed answer per item: the choice, how sure it is, and the full probabilities.
Your agents take it from there. Jev decides which work matters and who should do it. The agents do the work.
A real request: six issues, one call, 1.0 second. #423 came back unsure (0.29), and the workflow can see that and treat it differently.
05
Run it anywhere.
A workflow runs wherever Prism and your agents are installed, and each agent uses its own login. Start it in your terminal, leave it running in the background, put it on a schedule, or send a task to another machine.
$ prism workflow run review.workflow.ts
$ prism workflow run migrate.workflow.ts --detach$ prism workflow runs resume <run> migrate.workflow.ts
export default defineWorkflow({name: "morning-triage",schedule: { cron: "0 7 * * 1-5", timezone: "America/Sao_Paulo", overlap: "skip", missedRuns: "skip" },run: (wf) => wf.runTask(triage),});
$ prism workflow schedule install morning-triage.workflow.ts
worker: { worker: "amp-runner", runnerId: "macbook" }
A task can run on a registered runner machine or in a hosted Amp orb.
With the agents you already use
- Claude Code
- Codex
- Grok
- Amp
- Amp Orb
- Amp Runner
- Cursor
- OpenCode
- Kimi Code
- Devin
- Antigravity
- Hermes
- Oh My Pi
Prism also installs one set of skills, agents, and hooks into every one of them, in each one's own format.
06
Install
- Version
- 0.8.2
- Runs on
- macOS and Linux, arm64 and x64
- Install
npm install -g @skastr0/prismRuns the agent CLIs you have logged in. Run Codex tasks from inside a Git repository.- Source
- github.com/skastr0/prism