Skip to content
refs
History
5.3 KBRaw

Product

<!-- impeccable:product-schema 1 -->

Platform

web

Users

The primary user is a developer who gives work to coding agents and reviews the result. They run several agents at once, watch them work, and review the decisions before the diffs. Secondary users host and browse code like on GitHub, manage organizations and members, and run refs on their own Cloudflare account.

Product Purpose

refs is an open-source Git host where people and coding agents work on the same repositories. It runs as a hosted service at useref.dev, or on the reader's own Cloudflare account. Success: a reviewer can see what agents are doing, follow why each change was made, steer or branch from any decision, and merge with confidence without reading every line first.

Positioning

Agent reasoning is a first-class object. A commit carries a decision record only for a choice that a person must judge. A pull request opens on its Reasoning tab, on the few decisions that still hold, each with its reasons and the cost of a later change. The commits come after. A reviewer can steer a decision, challenge an assumption, or branch from any commit. A merge accepts the decisions, and refs tells every agent at work that the default branch moved.

The headline is "Stop reading diffs. Start reading decisions." Agents push thousands of lines; refs shows the few choices that matter.

Operating Context

  • Agents connect from Claude Code, OpenCode, Codex or any MCP client through the refs CLI and MCP server. They appear as online on repositories and pull requests.
  • An agent gets an update when someone else pushes to its branch, and when the default branch moves. It merges the default branch; it never rebases pushed commits.
  • Hosted agents answer an @handle mention on a pull request with one short comment. Six are built in (@reviewer, @security, @tests, @perf, @explain, @docs). A namespace or a repository can add or customize agents. An agent runs on Workers AI by default, or on an Anthropic, OpenAI or OpenRouter key that refs stores encrypted.
  • CI runs .refs/ci.yml pipelines in containers on a push, a pull request or a manual start. A job can be an agent job. Secrets are sealed, and a deploy to an environment waits for a person.
  • The refs CLI signs Git in, and works with pull requests, tasks and CI runs from the terminal, like gh.
  • Work moves branch → pull request → review → merge. Tasks are a separate tracker. Nothing links them to branches, pull requests or agents.
  • Agent tool approvals arrive in the browser with Allow and Deny.
  • Namespaces: a personal namespace per user, plus organizations with owner, admin, and member roles. Anyone can sign up. A site admin page and a password reset by email exist.

Capabilities and Constraints

  • React Router on Cloudflare Workers, server-rendered with hydration.
  • UI is built with @refs/design-system: refs' own components on @base-ui/react (accessible behaviour) with the Quiet Line tokens. Type is Inter Variable and Geist Mono Variable.
  • Icons are Lucide outlines. Import them from @refs/design-system/icons only.
  • Code is highlighted with the highlighter of @pierre/diffs, in the file view and in the diff view.
  • Diffs render with @pierre/diffs.
  • Landing art is code first: scenes and drawings use tokens and follow the theme. A generated image is allowed only as an alpha mask painted with a token (see assets/README.md).

Brand Commitments

  • Name: refs. Logo: Merge (two hollow agent rings whose lines flow into one main line, which stops short of an orange decision dot) beside refs in the UI sans, semibold. Use LogoMark and Wordmark from @refs/design-system.
  • refs has its own visual world, not Cloudflare's and not GitHub's. It is a calm ink interface: neutral surfaces, cards on soft rings, one line diagram as the signature. Work is a line of decisions: branches are lines, decisions are stations, merges are interchanges.
  • The design method is Apple's Human Interface Guidelines, applied where they fit the web, with Linear as a second reference. DESIGN.md holds the rules.
  • The theme follows the system. The reader can pick System, Light or Dark.
  • Blue marks a person; agents are hollow rings. The primary button is ink. A reviewer must tell human from agent at a glance. Amber is reserved for what needs the viewer now. Green is merged. Orange only in the logo.
  • Loading is a shimmer in the shape of the content. There is no progress bar.
  • On the landing page, product scenes sit on monochrome stages, and only the arcs and markers of the hero globe glow.
  • Keep the pull request views: Reasoning (opens first, on the decisions, then the commits), Conversation, Map, Files.
  • Never use the Cloudflare logo or wordmark.

Evidence on Hand

Local seed data only (Acme organization, demo repositories). No customer quotes, metrics, logos or testimonials exist. Do not invent them.

Product Principles

  1. Reasoning before code: a reviewer understands why before reading what.
  2. Agents are visible: who is working, on what, and what they wait for.
  3. Humans decide: every agent action leads to a clear human action (approve, steer, merge, allow).
  4. Familiar controls, own world: standard web controls and navigation, in refs' own type, palette and line diagram. Never a GitHub clone.
  5. Simple, with structure: fewer words, colors and motion. Lists, tables and forms keep their cards.