Ninja Builder Sign in Get started

Watch background work

The Background work tray shows every workflow, helper agent and long command a chat started, with its live log and token count; you can steer them with live notes, schedule jobs and replay a build. This page covers: follow workflows and helpers in the tray, steer them with live notes, run schedules and replay a build.

11 topics · 13 min read

On this page

The Background work tray

Shows every workflow, helper agent and long command running for this chat, each with its live log and token count. It also shows outside jobs the builder starts elsewhere, such as remote builds, test runs or deploys, and checks on them once a minute.

Where the Background work bar above the message box. Click it to open the tray.

Token alerts for big workflows

Tells you when one running workflow gets expensive, so a run that keeps going doesn't quietly use up your plan. It alerts once when a workflow passes 10M tokens and once more at 25M. It never stops or pauses the run.

Where the bell in the top bar shows a Token use item naming the workflow, its token count and how many of its agents are done, for example "WORD-FORMS used 10M tokens so far (22/24 agents)". Click it to open the chat.

Build a bigger feature (Build a feature)

Builds a feature that touches several files the lean way. One builder makes all the changes, a few short reviewers each check the result once, and it then merges or asks you. It uses fewer tokens than one agent checking its own work over and over.

How to use it

  1. Just ask for the feature: when it touches several files, the builder runs it this way by itself and says so in one line. You can also type /build-feature and what you want, for example "/build-feature account pictures in SettingsAccounts";.
  2. The builder writes a short plan with what "done" means. If there's a look to choose, you get lettered mockups first.
  3. One builder agent makes every change, then runs its one check.
  4. Only the reviewers that apply look at the change, all at once: checks and tests (always), code (always), security (only when inputs, sign-in, files or secrets are touched), and UI against the approved mockup (only when screens changed).
  5. Anything to fix goes back to the same builder, at most twice. Then it merges, or tells you plainly what's still open.

Where to find it type /build-feature in the message box, or LibraryPlaybooksBuild a feature. (It is not on the start screen until it has passed a real run.)

Lean workflows

Steers the builder toward small workflows that cost fewer tokens. Each agent in a workflow starts fresh and pays again to read what it needs, so a run with dozens of agents can use tens of millions of tokens.

How it works (nothing to set up)

  • Helper agents do all the work first, then check: every helper agent is told to make all its changes (every file) before running any check, never after each file or edit, then fix what the check shows and re-check. A re-run with nothing changed gets a reminder. Nothing is ever stopped: if an agent runs the same kind of check (the app checks, unit tests or a test runner) more than 3 times, you get a Check runs note in Needs you, and you decide whether to step in. Your own chat is never touched.
  • Every agent in a workflow has to say in one line why its role is needed. A workflow with an agent that doesn't say why isn't launched until the builder adds it.
  • The builder starts from a small shape: one scout that gathers the facts, one builder that makes the change, and one checker that does all the checks in one pass.
  • When a workflow looks heavy (more than 10 agents, the same role twice, or search and check agents on the most expensive model), it still starts, but the builder gets a note listing what looks heavy and the leaner way to do it. It can then stop the run and relaunch a smaller one, or explain why the run needs that size.

Success sheets: decide what success means first

Before the builder starts a workflow, it writes down what success needs, so its helpers don't guess, redo work or skip measuring.

How it works (nothing to set up)

  1. The success sheet. A short note with the exact target, today's measured value (and how it was measured), the checks that prove it's done, every input it needs and whether it exists, what could go wrong with a fallback for each, and what counts as proof. It's kept in Ninja Builder's own folder for the project (~/.ai-builder/projects/<id>/success/), never inside your project.
  2. A checklist for each kind of job. Research says which questions it asks, which sources count, when to stop and where the answers are saved. A paper or reference lookup finds each paper by its DOI, reads it, and checks it wasn't withdrawn. A build measures today's value first and checks what else the change could affect. A prototype states what it's testing, how it's measured and when it stops.
  3. Briefs are checked for substance. A helper isn't started when its "done" has nothing to measure, when today's value is missing, or when a file it needs isn't there. These are quick to fix, and the builder fixes them and tries again. Smaller gaps (no success sheet, no stop rule for research, no DOI step) only give the builder a note; the helper still starts.
  4. Scored at the end. When a workflow finishes, the builder checks the result against the success sheet item by item, with the measured values and the tokens used, and saves one lesson for its next brief. Then it carries on with the plan. If no sheet was written, that becomes the lesson.

Leftover background commands are stopped

Stops a chat's background commands once the chat's the AI process has ended, so nothing keeps running for days with no one to read the result. This happens when you delete a chat, quit Ninja Builder, or when the app restarts a chat (for an account switch, when the AI stops responding, or after an hour with nothing to do). The app also checks when it starts and every 10 minutes for commands that a chat left behind.

Where nothing to turn on. When the app stops one, the chat it belonged to gets one small line, for example "Stopped a leftover background command". Click it to see which command and how long it had run.

Steer a running workflow with live notes

Lets you change a workflow's instructions while it runs, without stopping it.

How to use it

  1. While a workflow runs, write "tell the workflow:" followed by your change. For example: "tell the workflow: skip the mobile layout for now".
  2. The builder adds your note and tells you which steps have not started yet and will follow it.
  3. Write "show progress" to see the latest result lines from each running workflow.

Background jobs panel

Shows long commands the builder runs for you, such as a build or a sync, with their live log. You get a message when one finishes or fails.

Where the Background jobs button in the top bar. It appears once there is a job.

Schedules: run a prompt or playbook by itself

Runs a prompt or a playbook on a schedule, for example "every weekday at 9:00: /seo-audit" or "every hour: check the build". Each run happens in a chat of its own, so you can read what it did and carry on from there.

Where MenuSchedules, SettingsSchedules, or ⌘K and type "Schedules".

Start from an example: the page offers three ready-made ones (below your schedules under More examples once you have some; one you've added drops off the list): Morning project summary (weekdays at 9:00), Weekly dependency check (Mondays at 10:00) and Nightly security check (daily at 22:00). One click adds it to the project that's open, read-only (it looks and reports, it doesn't change files). Click Edit to change its prompt or time. With no project open, the click opens the form filled in, so you can pick one.

How to add one

  1. Click Add schedule.
  2. Give it a Name and pick the Project (the folder it works in).
  3. Write the Prompt. Type / at the start to pick a playbook from the list, then add what it should do.
  4. Pick when it Repeats: every hour, every day, weekdays, or weekly on the days you tick, at the time you set. Advanced (cron) takes a cron line such as 30 8 * * 1-5. The line under it says the schedule in words and the next three runs, or what's wrong.
  5. Pick the Autonomy. Nobody is watching a run, so "Just build it" or "Read-only: look and report" work best. "Check key decisions" stops and waits for you when it needs an answer.
  6. Optional: a Model, and a Step limit: a run that takes more steps than this is stopped (150 by default), so a run can't go on and on.
  7. Click Add schedule.

The list shows each schedule's name, project, when it runs in words (for example "Weekdays at 9:00" or "Weekdays every 15 minutes from 9:00 to 17:59"), its next run, how the last run went and an on/off switch. Read-only marks a schedule that can look but not change files. If the last run failed, the reason shows in red under it; if the project folder was moved or deleted, it says so and Run now is greyed out until you pick another folder in Edit.

To pause a schedule, turn its switch off: it says Paused and doesn't run. Turn it back on to resume. Runs it would have made while paused are not caught up.

Each run

  • opens a chat called "<name> · <date and time>" in the Scheduled group in the sidebar;
  • uses your accounts like any other chat: it moves to another account at a usage limit, or waits for the limit to reset;
  • marks the chat as new, and plays the reply-finished sound and badges the Dock as SettingsNotifications says;
  • shows in the schedule's History (N): when it ran, OK, Failed, Skipped or Waiting (for a usage limit), how long it took, what it cost, the reason when it failed, and Open chat. The History keeps the last 20 runs and scrolls;
  • keeps its final answer in its chat for good, even if you open the chat days later.

Replay a build

Plays back the chat step by step: what you asked, what the builder noted and what it answered. It looks like the chat: your messages are your bubbles on the right with your picture or initials, the builder's notes and answers sit on the left beside the robot, and its work (commands, files it read or edited, thinking) shows as thin grey one-line rows under them, each with an icon and a short label such as Command or Read.

How to use it

  1. Press Play, or step with the arrows: ‹ › one step back or forward, « » jump to the first or last step. The step you are on is lit.
  2. Each step shows the time it happened, with the date on the first step of each day; hover a time for the full date. A long command is cut to one line; hover it to read all of it.
  3. Every commit the builder made during a reply shows as its own row after that reply: "Committed", the commit's short id and its message. Click the row to open the Git window at that commit; click the copy icon at its end to copy the full commit id. (Chats from before this change have no commit rows.)
  4. To save it as a file, click Export HTML, choose Everything or From – to (pick the dates and times), then Export. The page has the same look, in your theme's colours, and keeps the commit rows.

Where the top bar's More (⋯) › Replay this build (clock with arrow).

What I checked

For real builds, a panel lists each requirement and whether it has proof, such as a passing test, plus an independent second look. The builder cannot call a build finished while something is unproven.

Where the "What I checked" panel at the end of the chat. Click its header to open it.