spequi
v0.1.11
Published
Local web UI for OpenSpec: plan specs with your coding agent, review spec-linked diffs, apply only what you approve.
Maintainers
Readme
Spequi
Understand the spec. Guide your agent. Review the implementation.
Spequi brings OpenSpec documents, agent conversations, and code diffs into one local workspace. Read the plan, give precise feedback, and review the implementation against requirements with the coding agent you already use.
Quickstart
cd /path/to/your-project # a project that contains OpenSpec files
npx spequi@latest init # sets up .spequi/ and registers the agent skillThen invoke the Spequi skill inside your coding agent, with the same project open:
| Agent | Run after init |
| --- | --- |
| Claude Code | /spequi |
| Codex | $spequi |
| Other skill-capable agents | load .agents/skills/spequi/SKILL.md |
| GigaCode CLI | /skills spequi or /spequi |
The skill starts the local server, opens your browser on a startup page, and handles requests from the UI. The workspace appears once your agent is ready, normally at http://127.0.0.1:4310. Keep the agent session running while you work. Restart your agent after init so it loads the new skill and permission hooks.
Requirements: Node.js 20+ and npm. For agent-driven work you also need the OpenSpec CLI and its workflow skills (current OpenSpec needs Node.js 22.12+). See Getting started.
Why Spequi?
Coding agents are fast. Reading what they changed, and checking it against what you asked for, is the slow part. A plain diff shows what changed, not why.
- Spec-linked diffs. Linked code blocks show the requirement or scenario behind them, with source path and line range. Link coverage depends on the preview; suggested file-level context is labelled separately.
- Review implementation before applying. Implementation previews use an isolated copy. Applying is a separate, explicit step with conflict checks and backups. Planning requests update specification files in your project.
- Bring your own agent. Claude Code, Codex, GigaCode, or any skill-capable agent. No extra model endpoint or provider API key to configure.
- Local workspace. The UI binds to
127.0.0.1. Browsing and offline analysis do not upload source. Your attached agent may send source to its provider; optional model generation sends selected context to your configured endpoint.
Usage sharing is opt-in per project on the first web visit, including existing projects. Choose no sharing, usage without names, or usage with the project folder and Git user name. Nothing is sent until you choose; change the preference under Settings > Usage sharing. Usage without names still includes a random machine identifier and CLI name. Source files, prompts and comments are excluded. See Security and limits.
How it works
- Plan. Click New spec and describe an idea, with files or screenshots if useful. Spequi suggests the change name; a Git branch is optional. A live card shows what the agent is doing and asks its questions. Planning stops before implementation; drafts save automatically. A finished plan opens on Tasks; choose Review, then Finish planning.
- Generate. Open Files and choose Generate file diff. The agent makes the spec’s file changes in an isolated copy, without running validation, builds, linters or tests. Test files change only when the specs require them.
- Review. Inspect the code diff with compact, collapsed spec references, labelled suggested context, dependency impact and inline comments. There is no change-summary strip above the code.
- Apply and finish. Apply explicitly with baseline conflict checks and recoverable backups. Workflow stays beside the artifact tabs and shows each step’s command or agent skill, with optional validation, verification, sync and archive actions. Verification requires a substantive report; empty older results offer a rerun.
Features
- Planning boundaries: next-artifact, full-plan and revision requests edit planning documents only; mentioned commands are not executed
- Permissions in the browser: answer your agent’s permission prompts with Allow once, Always allow or Deny, or confirm a 5-minute auto-allow
- Live planning view: the agent’s latest one-line update, a timer, inline questions and your original request
- Tidy navigation: completed changes fold into their own group, and the browser tab title counts what is waiting for you
- Branch per change: create or switch branches before the agent starts, including spec creation; confirm reuse of an existing branch
- Save the plan to Git: a finished plan opens on Tasks; choose Review to open Push spec files in Build or Workflow > Prepare the plan > Push spec files. Review the branch and planning files, write a message or use the Generate with agent icon, then confirm. Spequi uses the configured push destination automatically. Unrelated staged edits stay staged; pushing also publishes earlier branch commits
- Spec-linked review: linked requirements and scenarios, collapsed by default to keep code in focus
- Unified and split diffs with syntax highlighting, changed-word emphasis, folding and wrapping
- Impact analysis: direct and downstream dependencies, related tests, export changes
- Precise feedback: comments on files, code ranges and planning Markdown passages, including before Finish planning; attach reference files or paste text and images in comments and the revision/question composer, send all review comments to your agent for a spec update
- Questions where you need them: a distinct header marker shows when an answer is needed; read and answer directly in Agent or Requests; cancel an obsolete waiting request to free the queue
- Optional desktop notifications: enable them under Settings > Notifications for completed plans and diffs, questions, and failures while you’re in another tab; keep the workspace open
- Focused header: Requests, Agent and MCPs stay visible; Docs, the Light/Dark mode action, notifications, usage sharing and update information live in Settings; only one Settings section opens at a time
- Works offline: browsing, review and affected-file analysis need no attached agent
- Light and dark themes
Permission prompts
In Claude Code, Codex and GigaCode, prompts from the attached session appear in the workspace while a tab is open. Otherwise, or if nobody answers within five minutes, the CLI asks as usual. init installs the hooks; GigaCode runs project hooks only in a trusted folder, and Codex needs a trusted project and the hook approved with /hooks. Other hosts keep approvals in their CLI.
This is a convenience, not a security boundary. Read Permission prompts before using auto-allow.
Keep Spequi current
After updating, restart your agent; in Codex, approve the changed hook with /hooks.
Startup checks the configured npm registry; a red dot on Settings and plain text inside indicate an available update; it never updates automatically. When requests are settled, run /spequi update in your coding agent. The skill stops this project's server, runs node .spequi/cli.mjs update, reloads the refreshed skill and restarts/reattaches. Project state and queued requests are kept. Customized managed files and local development checkouts are protected. Offline checks do not prevent startup.
node .spequi/cli.mjs update --check checks versions without updating. The browser composer's /update <revision> still revises a plan.
Documentation
| | |
| --- | --- |
| Getting started | Install, initialize, attach an agent, what init creates |
| Planning workflow | New specs, drafts, slash commands, planning stages |
| Review workflow | Diffs, spec context, comments, requests inbox |
| Offline tools and model preview | Affected-file analysis, optional model endpoint, patch API |
| Agent workflow | Queue, heartbeat, questions, MCP reports |
| Security and limits | Local data, boundaries, known limitations |
| Architecture | Stack, repo layout, development, packaging |
Status
Spequi is early. It has been tested with Claude Code and Codex, and with GigaCode CLI on Windows. Permission hooks are new in 0.1.11 and have been checked with simulated hook calls. Static impact analysis can miss dynamic references and aliases. See Security and limits for the full list.
Feedback and bug reports are welcome in Issues.
Contributing
git clone https://github.com/rahulnjs/spequi.git
cd spequi
npm ci
npm run check
node bin/spequi.mjs init --root /path/to/test-projectOpen the test project in your coding agent and invoke the Spequi skill to start the workspace.
See Architecture for the repo layout. Documentation images are captured from a disposable example project with headless Chrome.
