Product
<!-- impeccable:product-schema 1 -->Platform
web
Users
The primary user is a developer who reviews agent work. They direct coding agents from pull requests, watch the agents work, and review the reasoning and the diffs on pull requests. Secondary users host and browse code like on GitHub, and manage organizations and members.
Product Purpose
refs is a Git forge where people and coding agents work on the same repositories. 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.
Operating Context
- Agents connect from Claude Code, OpenCode, or Codex through the refs CLI and MCP server. They appear as online on repositories and pull requests.
- 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.
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/iconsonly. - Code is highlighted with the highlighter of
@pierre/diffs, in the file view and in the diff view. - Diffs render with
@pierre/diffs.
Brand Commitments
- Name: refs. Logo: the Log tile (a rounded tile with three log lines getting shorter and an orange decision dot) beside
refsin the UI sans, semibold. UseLogoMarkandWordmarkfrom@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.mdholds 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 dot.
- Loading is a shimmer in the shape of the content. There is no progress bar.
- 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, or testimonials exist.
Product Principles
- Reasoning before code: a reviewer understands why before reading what.
- Agents are visible: who is working, on what, and what they wait for.
- Humans decide: every agent action leads to a clear human action (approve, steer, merge, allow).
- Familiar controls, own world: standard web controls and navigation, in refs' own type, palette and line diagram. Never a GitHub clone.
- Simple, with structure: fewer words, colors and motion. Lists, tables and forms keep their cards.