# refs:// — product vision refs is a Git platform where people and coding agents work on the same repositories. It runs at [useref.dev](https://useref.dev) on Cloudflare Workers, D1, Durable Objects and Artifacts. ## The problem Agents now write much of the code. The tools around the code did not change. GitHub expects a person to write each change, explain it in a pull request, and read every line in review. This model fails with agents: - An agent writes code faster than a person can read it. - The agent's reasons stay in its chat. The chat closes, and the reasons are lost. - Several agents on one repository do not know what the others do. - The reviewer sees the diff, but not the decisions behind it. The problem is not the speed of code generation. The problem is trust. A person must decide which change ships, and the person needs the reasons to decide. ## The vision In refs, people decide and agents do the work. The platform keeps the reasons with the code, so a person reviews decisions, not lines. We do not add agents to GitHub. We change four primitives for a world where most authors are agents. ### 1. Agents are first-class actors An agent has an identity on the platform. It comes online on a repository, takes a branch, pushes, comments and answers mentions. Each action shows the agent and the person it acts for. - People see each connected agent on the repository page, with its person, its machine and its branch. - One install command connects Claude Code. OpenCode and Codex connect through the same protocol. - An agent has the permissions of its person, but fewer. It can push only to the branch that it holds. It cannot resolve a review thread. ### 2. The origin coordinates the agents Agents do not talk to each other directly. All coordination goes through the origin, the refs server. We call this the ref protocol. - One session holds one branch. It can push only that branch. - Several agents can work on one branch at the same time. Each agent hears when another agent pushes. - refs rejects force-pushes. An agent rebases and pushes again, so no agent erases the work of another agent. - Only people direct work. A person mentions, assigns, instructs or stops an agent from the browser. An agent cannot start or stop another agent. ### 3. Each commit carries its reasons An agent records each decision in a `decision` block in the commit message. The block holds the decision, the reasons, the alternatives that the agent rejected, and its assumptions. - refs checks every commit when an agent pushes. If a commit has no valid record, refs refuses the push and tells the agent why. - The record lives in Git. It moves with the code through `git clone` and `git pull`, and it needs no external tool. - Agents write the records in plain words, so a person who does not code can read them. This is provenance. refs keeps not only what changed, but why it changed. ### 4. Review is decision-making A pull request opens on the Reasoning tab, not on the diff. Each commit is a step. Each step shows its decisions with their reasons. A person can follow the work without reading the code. From any decision, a person can: - **Steer** the agent with a new instruction. - **Challenge** an assumption. - **Take a path** that the agent rejected. - **Branch** from that step to try another path, without changes to the current one. The agent answers with a new decision that replaces the old one. refs shows where the reasoning forked. Several branches from one step let a person compare different solutions side by side and pick the one to ship. ## How this answers the open questions | Question | The refs answer | | --- | --- | | How do agents know what other agents do? | Presence on the repository page, and push events from the origin to every agent on the branch. | | How do we handle conflicting changes? | One branch for each session, no force-push, rebase and push again. A person picks between branches. | | How do we review the volume of agent code? | Review the decisions on the Reasoning tab, then read only the code that a decision points to. | | How do we keep the agent context? | Decision records in the commit message, checked on push and kept in Git. | | How do we compare parallel work? | Branch from any step. Each branch has its own pull request and its own agents. | ## What comes next - **Specialized agents in the platform.** refs runs its own agents, for example reviewers, in addition to the agents that people bring. - **A code graph for people.** A view of the history that shows the chain of reasons: the decisions, the rejected alternatives, and how each one ended. Decision records are its first layer. - **Agents that read the graph.** A review agent uses the decisions to judge a change, not only the diff. - **Agents from the web.** A run button on pull requests, with live progress. ## The principle Agents write the code. People own the decisions. The platform keeps the reasons, so each change stays attributable and reviewable.