---
title: Why I built Prism
description: Coding agents can write the change. They cannot see the repo. Prism is a local map of files, callers, and tests, so the agent starts in the right place.
date: 2026-10-20
slug: why-i-built-prism
topic: Tooling
series: Prism
seriesOrder: 1
featured: true
tags:
  - prism
  - agents
  - local-first
---

You ask an agent to change one function. It searches. It opens a file that looks right. It misses the caller two folders away. The reply says done. The test that would have caught it never ran.

That is not a rare miss. It is what happens when a writer has no map of the code.

## The gap

An agent is good at writing the next lines. It is bad at knowing which lines matter. Grep finds a word. It does not say who imports this file, which tests reach it, or which helper you should reuse instead of writing a new one.

The usual fix is to paste more of the repo into the chat. That gets slower, and it still misses the file you forgot to paste.

I wanted a map that already lived next to the repo. Ask in a sentence. Get the files, the callers, and the tests. Then edit.

## What Prism is

Prism reads the repository on your machine and keeps that map locally. You talk to your agent in plain language. Prism answers from the map:

- Which files to open before the edit
- What else depends on the file you are about to change
- Which tests reach that file
- Whether the change is proven when the agent stops

<SignalPath
  caption="The loop I wanted, without pasting the repo into the chat."
  steps={[
    { label: 'Ask', hint: 'Plain language' },
    { label: 'Map', hint: 'Files, callers, tests' },
    { label: 'Edit', hint: 'The agent writes' },
    { label: 'Receipt', hint: 'Ship, or not proven' },
  ]}
/>

The agent still writes the code. Prism does not have a model of its own. It supplies the map, and a verdict at the end.

<Note>
There is no Prism account and no Prism server. The map is stored in `~/.prism/` on your machine. Your source is not uploaded.
</Note>

Next: the four moments in that loop, in the order you actually hit them.
