UNOUNOCODE

GUIDES

Use cases

Fourteen real jobs, each with the exact prompt, what Uno does, and the settings that make it smooth. Filter by what you are doing.

01 · Fix a failing test

WHEN CI is red and you want it green without reading the whole stack trace yourself.

uno
› the test "parses leap years" fails. find out why and fix the code, not the test
  1. Uno runs that one test in the sandbox (no question), reads the failure and the code under test.
  2. It proposes an edit; you press y.
  3. It re-runs the test and the suite around it, and tells you what was wrong.

Tip: "fix the code, not the test" matters. Say what must not change.

02 · Understand a codebase you just joined

WHEN Day one on a new repo. You want a map, not a lecture.

uno --mode plan
› explain how a request flows from the HTTP router to the database. name the files.
  use helpers to look at different layers at once
  1. Plan mode: nothing can change, so you can relax.
  2. Uno sends explore helpers to trace routing, services and storage in parallel on the cheaper model.
  3. You get one answer with file paths, and your main conversation stays short.

03 · Add a feature, plan first

WHEN The change touches several files and you want to agree on the approach first.

uno --mode plan
› plan adding CSV export to the reports page. write the plan, don't change anything
/mode accept-edits
› go ahead with the plan
  1. In plan mode Uno can only write its plan, .uno/plan.md. Read it, push back, change it.
  2. Switch to accept-edits and it carries out the plan without asking per file.
  3. Review with git diff; /undo all if you hate it.

04 · Rename across the project

WHEN A name is wrong everywhere and find-and-replace would hit the wrong things.

uno -p "rename the User.getProfile method to User.fetchProfile, including callers and tests. run the type checker after"
  1. Uno greps for every use, tells real calls from look-alikes, and edits each file.
  2. Edits go ahead in a headless run; the type checker runs in the sandbox.
  3. uno undo --all reverts the lot if needed.

05 · Review a diff before you commit

WHEN A second pair of eyes, in five seconds, for a few cents.

uno -p "find real bugs only: logic errors, missed edge cases, leaks. no style comments. The diff: $(git diff)" --mode plan

Tip: make it a pre-commit hook with a cheap model. See CI and scripts.

06 · Find the cause in a huge log

WHEN A 5,000-line CI log and one real error somewhere in it.

uno
› ci.log is from the failing build. use a helper to find the first real error and the line of our code that caused it
  1. A helper reads the whole log in its own window.
  2. Only its short report comes back, so your chat stays cheap for the fix that follows.

07 · Upgrade a library with its migration guide

WHEN A major version bump with breaking changes.

uno --allow "web_fetch(*.github.com)"
› upgrade zod from 3 to 4. read the official migration guide first, then fix every breakage until the tests pass
  1. Search finds the guide; web_fetch reads it (allowed by your rule).
  2. npm install zod@4 runs inside the sandbox, which has the network, so it needs no rule.
  3. Uno fixes call sites and loops on the test suite.

08 · Build from a screenshot

WHEN You have a design, not a spec.

uno -p "build this card as a React component in src/components/PlanCard.tsx, matching our Tailwind setup" --image plan-card.png

09 · Check your app in a real browser

WHEN "It works on my machine", but does the signup form actually submit?

npm run dev &
uno
› open localhost:3000, sign up with a test email, and tell me every console error you see. then fix them

Needs agent-browser installed. The first browsing command asks once for the session.

10 · Ticket to pull request with MCP

WHEN Your work lives in Linear and GitHub.

uno mcp login linear
uno mcp login github
uno
› do ENG-412. when the tests pass, open a draft PR that links the issue
  1. mcp_search finds the Linear tool and mcp_call reads the issue; that call asks once (press s to allow the server).
  2. Uno does the work like any other task.
  3. Opening the PR is another MCP call: you see it and approve it.

11 · Share one setup with your team

WHEN Everyone should get the same allowed commands, hooks and servers.

// .uno/settings.json, committed
{
  "permissions": { "allow": ["bash(pnpm test)", "bash(pnpm lint)"], "deny": ["bash(git push)"] },
  "hooks": { "PostToolUse": [{ "matcher": "Edit|Write", "hooks": [{ "type": "command", "command": "pnpm prettier --write ." }] }] }
}

Each teammate runs uno trust once. If someone changes the file later, everyone is asked to trust again.

12 · Nightly dependency bumps

WHEN Small updates that nobody wants to do by hand.

0 3 * * * cd ~/code/app && uno -p "update patch and minor deps, keep tests green, write a summary to UPDATES.md" --allow "bash(npm install)" --max-cost 1

The cap means a bad night costs at most a dollar. Read UPDATES.md with your coffee.

13 · Enforce a rule with a hook

WHEN "Never edit generated files" keeps getting ignored.

{ "hooks": { "PreToolUse": [{ "matcher": "Edit|Write", "hooks": [{ "type": "command",
  "command": "jq -r .tool_input.path | grep -q '^src/generated/' && { echo 'generated: run pnpm codegen instead' >&2; exit 2; } || exit 0" }] }] } }

Advice in AGENTS.md is usually followed. A hook is always followed.

14 · "What did we decide last week?"

WHEN You remember the conversation, not the conclusion.

uno
› what did we decide about pagination in the API, and why?

Uno uses recall to search past sessions in this project, reads around the hit, and answers with the date.