# UltraCode v1.2.0 — Full Documentation Reference > Source: https://ultracode.plutokeating.beer/ > Repository: https://github.com/PlutoKeating/Project.UltraCode > License: MIT > Provenance: Built and shipped with UltraCode v1.0.0 UltraCode is a provider- and model-neutral Goal Engineering layer built on official OpenCode V2 across macOS, Linux, and Windows (Terminal, Desktop App, Web, and Mobile). --- ## Install: Terminal + Desktop Canonical URL: https://ultracode.plutokeating.beer/docs/install-desktop/ Summary: Recommended for most people: one command installs UltraCode, then you add the official desktop window. Recommended for most people: **install UltraCode first, then add the desktop window.** Copy the line for your computer and paste it into a terminal (PowerShell on Windows). ## 01 Install UltraCode ``` curl -fsSL https://ultracode.plutokeating.beer/install.sh | bash ``` ``` irm https://ultracode.plutokeating.beer/install.ps1 | iex ``` Both boxes do the same thing: they prepare official OpenCode, the UltraCode binary, and the runtime it needs. Nothing else has to be installed first. If the current window cannot find `ultracode` afterwards, close and reopen the terminal before the next step. **What you'll see:** it updates OpenCode, installs UltraCode, finishes setup, and ends with the version plus Ready. ## 02 Add the desktop window **Type this in the terminal** ``` ultracode desktop ``` On the first run it downloads the official desktop installer: macOS and Windows open a system installer window you click through; Linux opens it directly. Afterwards you can also launch it from your normal app list. **What you'll see:** the desktop app opens; the first time it downloads the official installer for your system, after that it just launches. Installed? Start with [the desktop walkthrough](/docs/tutorial-desktop/). Want the terminal only, no desktop window? See [terminal-only install](/docs/install-terminal/). --- ## Install: Terminal Only (TUI) Canonical URL: https://ultracode.plutokeating.beer/docs/install-terminal/ Summary: For developers and keyboard-first workflows: one line installs the terminal interface, with no desktop window. If all you want is the terminal interface: **install it once and use it inside any folder**, with no desktop window. Copy the line for your computer and paste it into a terminal (PowerShell on Windows). ## 01 Install with one line ``` curl -fsSL https://ultracode.plutokeating.beer/install.sh | bash ``` ``` irm https://ultracode.plutokeating.beer/install.ps1 | iex ``` Both boxes do the same thing. If the current window cannot find `ultracode` afterwards, close and reopen the terminal. **What you'll see:** it updates OpenCode, installs UltraCode, finishes setup, and ends with the version plus Ready. ## 02 Open it inside the folder you want to work on **Enter the folder first, then run** ``` ultracode ``` To work somewhere else, run it again inside that folder. It never touches anything outside it. **What you'll see:** a prompt appears in the middle and the current folder name sits along the bottom. ## 03 Confirm it sees your folder Wrong path means you opened it somewhere else — exit and reopen in the right place. **What you'll see:** the path at the bottom matches the folder you meant, with UltraCode on the right. Installed? Continue with [Terminal mode without fear](/docs/tutorial-terminal/). Want the desktop window later? Run `ultracode desktop` whenever you like — no reinstall needed. --- ## Connect: Phone and Browser Canonical URL: https://ultracode.plutokeating.beer/docs/install-mobile/ Summary: Generate one link on the computer; open it on your phone and take over the same progress. Nothing needs to be installed on the phone: **it borrows the workbench on your computer.** ## 01 Make sure UltraCode is installed on the computer **Type this in the computer terminal** ``` ultracode pair ``` If UltraCode is not installed on this computer yet, do [the terminal + desktop install](/docs/install-desktop/) first, then come back. **What you'll see:** one link appears that you can open directly. It stays valid for a few minutes only. ## 02 Send the link to your phone and open it A chat app, a note, or email to yourself all work; some terminals also show a QR code you can scan. **What you'll see:** the same interface in your phone browser, with the same project list as the computer. ## 03 Tap, interrupt, and continue on the phone **Commands work in the phone composer too** ``` /direction ``` The other switch is `/approvals`, which controls whether it asks before running an action. Both stay in sync between computer and phone. **What you'll see:** the questioning mode switches immediately and the computer display follows. Connected? Continue with [Phone remote control](/docs/tutorial-mobile/). --- ## What Is Goal Engineering Canonical URL: https://ultracode.plutokeating.beer/docs/goal-engineering/ Summary: Move past prompt tricks and manual context juggling — describe the outcome you want and let UltraCode deliver and verify it. You should not have to memorize prompt formulas or manually paste dozens of files into every chat just to finish a multi-step engineering task. ## Why Standard AI Chat Loses Track Halfway Through In standard AI chat, the model often starts coding before requirements are clear, forgets earlier constraints over long threads, and stops with unverified work. UltraCode replaces that with a structured loop: ## Describe What You Want in Plain Language No special slash commands or prompt templates required. Simply state three things clearly: - **Who it is for**: the target audience and where it runs (desktop, mobile, terminal, API). - **What it should do**: core behavior, style preferences, and anything explicitly out of scope. - **How to verify it**: your real acceptance bar (passing tests, clean mobile layout, reliable edge cases). --- ## Primary Roles & Background Specialists Canonical URL: https://ultracode.plutokeating.beer/docs/roles-and-workflow/ Summary: Two clear front-stage roles (UltraBuild and UltraPlan) backed by five automatic specialists. UltraCode keeps multi-agent orchestration clean and predictable. You only interact with **2 primary roles**, while 5 background specialists step in automatically when needed. ## Choosing Between the Two Primary Roles Press `Shift+Tab` inside OpenCode at any time to switch: | Primary Role | Default | What It Does | Best For | | --- | --- | --- | --- | | **`UltraBuild`** | Default | Clarifies goals, plans milestones, coordinates specialists, and ships verified results | Everyday building, bug fixing, and end-to-end delivery | | **`UltraPlan`** | `Shift+Tab` | Strictly read-only planning — never modifies your code | Exploring architecture, scope, and trade-offs safely | ## What the 5 Background Specialists Do Automatically You never need to invoke them manually — `UltraBuild` dispatches each specialist when useful: - **Librarian**: Reads official docs, repository conventions, and open-source prior art before implementation. - **Architect**: Analyzes module boundaries, root causes, and design trade-offs. - **Implementer**: Delivers bounded code changes together with project-native verification. - **Reviewer**: Audits diffs independently for regressions, security issues, and missed requirements. - **Visual Evaluator**: Opens a real browser to exercise interactive flows and inspect desktop and mobile layouts. --- ## Long-Running Work & Resumption Canonical URL: https://ultracode.plutokeating.beer/docs/long-running/ Summary: Advance multi-step milestones automatically, steer at any moment, and resume cleanly after a restart. Larger engineering tasks rarely finish in a single turn. UltraCode keeps multi-milestone work moving steadily without flooding your conversation or stopping halfway. ## How Long-Running Work Works in Practice - **Steady, evidence-gated progress**: Start directly in natural chat or run `/goal ` — UltraCode clarifies open decisions upfront, advances across milestones automatically, and checks every requirement before declaring work complete. - **Instant pause, resume, or steering at any time**: Send a new message, use `/goal pause` and `/goal resume`, or click **Pause / Resume / Clear** in the **UltraCode** pill. Run `/review` anytime for an independent audit. - **Clean resumption across sessions**: Close your terminal or desktop app and come back later — simply run `ultracode` and say: ```text Read the handoff and continue ``` UltraCode restores the saved progress, verified evidence, and next planned step directly from your repository. --- ## Real-Browser Visual Checks Canonical URL: https://ultracode.plutokeating.beer/docs/visual-qa/ Summary: Passing unit tests is not enough for UI. UltraCode opens a real browser, exercises controls, inspects viewports, and fixes defects before sign-off. For web interfaces, green unit tests alone can still miss overlapping buttons, broken mobile layouts, low-contrast text, or broken click handlers. ## Four Checks Before Calling UI Work Done 1. **Launches your real app**: Starts the local server and opens it in a real Chromium browser. 2. **Interacts like a real user**: Clicks buttons, fills forms, and navigates flows to catch console or runtime errors. 3. **Inspects desktop & mobile viewports**: Checks for overlapping elements, clipped text, alignment issues, and contrast problems across screen sizes. 4. **Fixes and re-verifies**: Whenever a visual or interaction defect is found, UltraCode fixes it and re-checks before delivering. --- ## Desktop Walkthrough: Build an Event Page Without Commands Canonical URL: https://ultracode.plutokeating.beer/docs/tutorial-desktop/ Summary: No code and no terminal: turn one plain sentence into a sign-up page you can open in a browser. Not installed yet? Start with [desktop app install guide](/docs/install-desktop/). In this lesson we do exactly one thing: **build a working weekend book-club sign-up page inside an empty folder.** No commands to memorise, no programming knowledge required. You click a few times, then describe what you want the way you would to a colleague. ## 01 Open the desktop window and add your empty folder Open the desktop app, click **Add project** in the sidebar, and pick the empty folder you prepared. Keeping it near your Desktop or Documents is easiest. **What you'll see:** Your folder name appears in the left sidebar, which means UltraCode is ready to work there. ## 02 Describe it the way you would to a colleague One complete sentence is enough: **who it is for, what it must do, and how you will check it.** Those three things cut most of the rework later. **Send this sentence** ``` Build a sign-up page for a weekend book club in this folder: pick Saturday or Sunday, enter the number of guests, and show a confirmation card after submitting. It should look good on a phone too, then open a preview for me. ``` **What you'll see:** Instead of guessing and writing immediately, it asks a few decisive questions first, using choice cards you can click. ## 03 Answer the cards, then let it check its own work When a choice card appears, click whichever option matches your intent; if you are unsure, take the recommended one. Then it moves forward in small steps, and you can interrupt at any moment. **What you'll see:** After building a first version it opens a real browser, clicks the buttons, checks both desktop and phone layouts, and reports back. Accept it once you see that check pass. ## 04 Not happy? Keep talking instead of starting over This is the difference between describing a **goal** and writing code: you describe the outcome, and it handles implementation plus self-checking. **Ask for a style change like this** ``` Make the whole thing calmer, use a warmer heading colour, make the button bigger, and keep it on one line on a phone. ``` **What you'll see:** Only the colours and layout change; the sign-up logic you already approved stays intact. Next, try [Terminal mode without fear](/docs/tutorial-terminal/), or read how [primary roles and specialists](/docs/roles-and-workflow/) divide the work. --- ## Terminal Mode Without Fear: Tidy a Folder by Chatting Canonical URL: https://ultracode.plutokeating.beer/docs/tutorial-terminal/ Summary: The black window is just a chat box. In one lesson, turn messy meeting notes into a clean action list. Not installed yet? Start with [terminal mode install guide](/docs/install-terminal/). The terminal sounds intimidating, but there is really only one thing in front of you: **a box you can type into.** In this lesson we use it to turn a messy folder of meeting notes into a clear to-do list. ## 01 Open it and look at the “black window” once Open it inside the folder you want to work on. The lines around the edges are just frames — there is nothing you need to type as a command. **What you'll see:** A prompt in the middle, your current folder name along the bottom, and the UltraCode label to the right. The blinking cursor is simply waiting for you to speak. ## 02 State the outcome in one sentence The important half is the ending: **say which files may change and which must stay untouched.** That is what makes it safe to let it act. **Send this sentence** ``` Turn the meeting notes in this folder into a clear action list: group by owner, say what to do and when it is due, and save it as a new file without deleting the originals. ``` **What you'll see:** It looks through the folder first, tells you how it plans to organise things, and only then starts working. ## 03 When you need one more action, open the slash menu See `ctrl+p commands` at the bottom? That is the command menu. You never have to memorise a command; open the menu and pick. **What you'll see:** A list of clickable commands appears in the middle — switch model, open settings, and so on. Move with the arrow keys and press Enter. ## 04 Keep talking instead of starting over Terminal mode and the desktop app are the same capability in a different window. Use whichever feels natural. **Adjust it like this** ``` Tighten the list: only what is still open this week, sorted by the nearest due date. ``` **What you'll see:** Only this list changes; the notes it already organised are not rebuilt from scratch. Want it to check a real interface next? Continue with [Lock a blueprint, then verify the page](/docs/tutorial-plan-and-verify/). --- ## Phone Remote Control: Steer From the Couch Canonical URL: https://ultracode.plutokeating.beer/docs/tutorial-mobile/ Summary: The computer keeps working while you answer questions, watch progress, and pause it from your phone. Not installed yet? Start with [phone install guide](/docs/install-mobile/). This lesson solves something very practical: **the work has started, but you have to leave the desk.** You do not need remote desktop, and you do not need to carry the laptop. A phone browser can take over the same progress. ## 01 Create a pairing link on the computer Copy that link and send it to yourself in a phone chat window — the most reliable way to move it across. **Type this in the terminal — the only line you need** ``` ultracode pair ``` **What you'll see:** One link appears that you can open directly. It stays valid for a few minutes only. ## 02 Open it on your phone Nothing needs to be installed on the phone. The interface reshapes itself for finger-sized taps. **What you'll see:** The same project opens in your phone browser, with the same project name and the same progress. ## 03 Answer its questions right on the phone So the moments that actually need you are never missed: picking a style, choosing an approach, deciding whether to continue. **What you'll see:** Choice cards are just as tappable on a phone, and the desktop updates as soon as you choose. ## 04 Prefer fewer interruptions? Flip the two switches The other switch is `/approvals`, which controls whether it asks before running an action. Both stay in sync between computer and phone. **Send this command in the phone composer** ``` /direction ``` **What you'll see:** The current questioning mode is shown and switches immediately: let it decide on its own, or have it ask you every time. When you come back to the desk there is nothing to reconnect. Next: [Lock a blueprint, then verify the page](/docs/tutorial-plan-and-verify/). --- ## Power Trick 1: Lock a Blueprint, Then Verify the Page Canonical URL: https://ultracode.plutokeating.beer/docs/tutorial-plan-and-verify/ Summary: Agree on the approach read-only first, build second, then let it click through the real page and have an independent reviewer sign off. The first two lessons covered **how to start**. This one is about **how to avoid wasted work**. Three moves: agree on the plan, build it, then make it verify itself. ## 01 Switch to the plan-only role first Press `Shift + Tab` to switch. The most expensive mistake is starting to edit before the approach is settled — this step prevents exactly that. **What you'll see:** The role at the bottom changes from UltraBuild to UltraPlan. In that role it only reads and writes plans; your files stay untouched. ## 02 Have it spell out risks and trade-offs The output here is not code; it is **the standard you both agreed on**. Everything later is judged against it. **Send this sentence** ``` Do not write code yet. Tell me how many steps this sign-up page needs, how each step will be verified, and where it is easy to get wrong. List the open questions for me. ``` **What you'll see:** A step-by-step plan with acceptance checks, plus the questions that genuinely need your decision. ## 03 Approve it, then switch back and build Keep refining while you are not satisfied. Once you are, switching back makes it follow the plan instead of improvising. **What you'll see:** The role returns to UltraBuild and it implements the agreed plan step by step. ## 04 Let it click through the real page Self-checking is where quality quietly slips, so what you want here is **someone else verifying**. That is the default way UltraCode works. **Ask for verification and an independent review** ``` When it is built, open a real browser and click through both the desktop and phone layouts: buttons work, nothing overflows, no console errors. Then have an independent reviewer check it and fix anything it finds. ``` **What you'll see:** It actually operates the page and takes screenshots, fixing what it finds; then a separate reviewer role returns a pass or fail verdict. The last lesson is about long tasks: [Autopilot, next-day resume, and pairing fast and deep models](/docs/tutorial-goals-and-models/). --- ## Power Trick 2: Autopilot, Next-Day Resume, Fast and Deep Models Canonical URL: https://ultracode.plutokeating.beer/docs/tutorial-goals-and-models/ Summary: Let a multi-step job advance on its own, pause or resume at will, pick it up tomorrow, and spend less by pairing a smart model with a fast one. This lesson bundles three small things that usually show up together: **advance on its own, resume tomorrow, and spend less.** ## 01 Give it a goal that can advance on its own `/goal` suits work that **splits into several steps, each of which can be verified**. If one sentence cannot hold the request, put it in the goal. **Start a multi-step goal with this** ``` /goal Turn this sign-up page into something shippable: add an empty-slot hint, add the confirmation card after submitting, re-check the phone layout, and hand it over once everything passes. ``` **What you'll see:** It records the goal, then moves from one small completed step to the next until every check passes. ## 02 Pause or resume with one line You can also just send a new message to interrupt — your words always outrank automatic progress. **When you want it to stop** ``` /goal pause ``` **What you'll see:** It stops on the current step instead of editing further; swap pause for resume to continue. ## 03 Close the laptop, continue tomorrow Progress is not trapped in a chat log: it is written into handoff files in your project, so a new window or a new day can pick it up. **The next day, this is all you need** ``` Read the handoff notes and continue from yesterday's progress. ``` **What you'll see:** It first says what was finished, what was verified, what is left, then continues from the next step instead of restarting. ## 04 With several models, let each role do what it is good at If you only have one model configured, skip this step — every role simply uses your current model. **Pair models for planning, coding, research, and visual checks** ``` /setup-models ``` **What you'll see:** A short recommendation appears, and one confirmation writes it in. Planning and review get the stronger model; quick lookups get the faster, cheaper one. That covers the whole loop: clarify, build, verify, and carry it across days. Start again from [the desktop walkthrough](/docs/tutorial-desktop/) whenever you want a refresher. --- ## Live Controls, Upgrades & Uninstall Canonical URL: https://ultracode.plutokeating.beer/docs/controls-and-maintenance/ Summary: Toggle autonomy across Terminal, Desktop, and Mobile/Web in real time, and manage everything from one ultracode command. Day-to-day control stays synchronized across Terminal, Desktop, and Web/Mobile in real time with zero manual config editing. ## Toggle Switches on Any Surface - **Desktop App (OpenCode Desktop)**: Click the **UltraCode** pill above the composer for one-click toggles (and to pause, resume, or clear an active Goal or milestone in the current session), or open **Settings → UltraCode**. - **Terminal (TUI)**: Open the Command Palette and search **UltraCode**. - **Web & Mobile (`ultracode pair`)**: Type `/goal`, `/review`, `/setup-models`, `/approvals`, or `/direction` directly in the composer (`auto` / `manual` switches toggle immediately with zero AI model calls). - **Command approvals**: Set to `auto` by default so routine steps run smoothly without constant prompts, while explicit deny rules always remain enforced. - **Direction questions**: Set to `manual` by default so UltraCode asks with structured choice cards whenever a material product or architectural decision needs your input. ## Unified Command Reference | Command | What It Does | | --- | --- | | `ultracode` | Open the terminal UI (all OpenCode flags & subcommands work directly) | | `ultracode desktop` | Launch OpenCode Desktop, or download the official installer if missing | | `ultracode pair` | Generate a pairing link & QR code for browser or mobile access | | `ultracode setup-models` | Pair multiple configured models across planning, coding, research, and visual QA roles | | `ultracode upgrade` | Update official OpenCode and UltraCode together, then sync | | `ultracode sync` | Re-sync configuration and managed runtime | | `ultracode doctor` | Fast setup health check with zero AI model calls | | `ultracode uninstall --yes` | Cleanly remove UltraCode while preserving your own configs and backups | --- ## FAQ & Non-Invasive Guarantee Canonical URL: https://ultracode.plutokeating.beer/docs/faq/ Summary: Clear answers on cross-platform setup, API key safety, model compatibility, config preservation, and updates. UltraCode is built around a **strictly additive, reversible, non-invasive** design across macOS, Linux, and Windows — Terminal, Desktop, Web, and Mobile. ## 1. Does UltraCode modify official OpenCode or read my API keys? **No.** UltraCode is strictly additive and provider/model-neutral. It never patches the official OpenCode CLI or Desktop binary, and never reads, stores, or transmits your API keys. ## 2. Do I need to install OpenCode before installing UltraCode? **No.** On macOS, Linux, and Windows, both the install script and `ultracode upgrade` automatically detect official OpenCode V2, installing it from the official channel if missing or keeping it updated. ## 3. Which AI models does UltraCode support? **Whatever model and provider you already configure in OpenCode.** UltraCode never locks you into a single model vendor. ## 4. Will UltraCode overwrite my existing OpenCode configuration or skills? **No.** Install and sync merge additively while preserving your existing settings, comments, and skills. Running `ultracode uninstall --yes` removes only unmodified files added by UltraCode. ## 5. How do I update UltraCode or verify setup health? Run `ultracode upgrade` to update official OpenCode and UltraCode together, or run `ultracode doctor` anytime for a fast check that makes **zero AI model calls**.