ByteQuay
DocsBuild with agents

Build with agents

Start a task, guide the work, and review the result.

Choose your model

Open Settings → Agents → Models.

  • Codex or Claude Code: choose Sign in. If the CLI is missing or too old, run the command shown, then choose Check.
  • API key: choose Add API key and a provider, such as DeepSeek. DeepSeek tasks need the Codex CLI, but no Codex account.
  • Once it shows Ready, pick your Development and Review models. Repository Model overrides can choose differently.

Keys are stored encrypted on your Mac.

Keep Claude Code accounts separate

  1. In Models → Claude accounts, choose Add Claude account and sign in.
  2. Pick the account for Development or Review.
  3. To keep an account to one repository, add it in that repository’s Model overrides, or choose Use only here.

Existing tasks keep the account they started with.

Keep Codex work and personal logins separate

  1. In a repository’s Model overrides → Codex accounts, choose Add Codex account.
  2. Select Codex login, enter a name and your work email, then choose Add and sign in.
  3. Choose your work account and workspace in the browser. ByteQuay verifies the email.
  4. Select that account for Development and Review.

Each login has a separate profile. Repository accounts cannot run in other repositories; accounts added in global Models settings are shared. Existing tasks keep their original account.

Removing an account from ByteQuay preserves its Codex-owned login and session files.

Use Codex through a company gateway

  1. In Models → Codex accounts, choose Add Codex account, then Gateway token.
  2. Enter a name, the Responses API base URL (including /v1 when required), and your gateway token.
  3. Choose the account and a standard Codex model your gateway supports for Development or Review, such as gpt-6-astra.

Tokens are stored encrypted on your Mac; no ChatGPT sign-in is needed. Add an account in a repository’s Model overrides, or choose Use only here, to limit it to that repository. Existing tasks keep their account.

The model list comes from Codex; gateway access is checked when a task runs. Native web search is unavailable through gateway accounts.

Start an agent task

  1. Open Tasks → + New task and pick a ready model.
  2. Describe the outcome and how to check it.
  3. Check Automation, then Send. The task gets its own branch and working copy.

Steer adds guidance, Run next queues a message, and Stop this turn interrupts. Check WorkBench → Changes and the tests before Mark it complete.

Deliver changes and repair CI

The composer’s automation chip sets how far a new task goes. Each step includes the ones before it:

  • Auto-Commit: commits on the task’s branch. Nothing leaves your Mac.
  • Auto-Draft PR: pushes and opens a draft PR.
  • Auto-CI fix: reruns flaky jobs, repairs failures the PR caused, and marks the PR ready once checks pass.
  • Auto-Review fix: answers review comments and pushes fixes, at most three rounds per thread. Its replies wait 25 minutes before they post: one alert says they are ready to check, and a second counts down the last five minutes. Choose Post now or Don’t post on the card to end the wait.
  • Auto-merge: merges after the delay in Settings → Agents → Workflow, once GitHub allows it and no review thread is open.

When the agent rewrites pushed commits, for example by splitting or squashing them, the next push replaces them with a lease. It stops instead when the PR branch has commits the task never had. When automation stops on an error, your next message retries the delivery, even if that turn changes nothing.

To replace a task’s GitHub PR with one from a different branch, ask the agent in that task’s conversation and give the new branch name. When your message names the branch, ByteQuay starts at once; otherwise choose Allow once on the Replace task pull request card after checking its PR, branch and commit. ByteQuay copies the current title, description and draft status, verifies the replacement, connects it to the same task, then closes the previous PR.

Your conversation, working copy and enabled CI/review automation stay connected. GitHub reviews remain on the previous PR and the replacement gets fresh checks. Existing branches are kept. The checkout must be clean at the PR’s current commit, and queued messages must be finished or removed first. If a step fails, ask the agent to retry with the same branch name: ByteQuay checks the saved result and continues without blindly creating another PR. No terminal command is needed.

Ask the agent to push the task’s branch or close its PR, and ByteQuay does it with your account, so you never run a command yourself. When your message in that turn says push or close, it runs at once; otherwise a Push task branch or Close task pull request card asks first. A push sends only committed work and stops if the branch has commits the task never had. Closing keeps the branch.

Every step after Auto-Commit writes to GitHub, and repairs use your model allowance. The stop square above the composer halts automation and keeps your draft. CI watching runs while ByteQuay is open and resumes after a restart.

Cherry-pick and backport

Link related repositories once under Related workspaces in repository settings. Fork links form a repo line that every workspace in it shows.

  1. In Commits → History, pick upstream commits or a merged PR.
  2. Choose Cherry-pick, check the Dry run, then Start cherry-pick. This lets ByteQuay push a work branch, open a draft PR, and fix CI.
  3. Follow the task as the agent resolves conflicts, builds, and tests. Message it at any time.
  4. When CI is green, choose Approve squash, then Merge pull request.

Pause holds the task; Abort closes the PR and deletes the work branch. Backport carries a PR down the line, one cherry-pick per repository. To ask before a PR merges, type @backport and its number or link in the destination's task composer. Each step waits for its PR to merge.

Let rules watch and act on your work

A rule names something that happens, such as a review requested from you, and the work ByteQuay could do then. A new rule only watches: it records what it would have done, and whether you then did that work yourself.

  1. Choose Rules in the Assistant's composer, or open Settings → Agents → Rules. Choose Paste a rule.
  2. Between two --- lines, name the event (when), the work (does), and what you do when you agree (agrees-when). Write the instructions below them. The box shows an example.
  3. Choose Check rule to see what it reads, then Save rule. It starts in Observe.

To have the Assistant write rules for you, type @rules in the Assistant, alone or with what to look at, such as @rules my reviews. It reads the last 30 days of your work that ByteQuay keeps on this Mac: reviews, tasks you started, and merged pull requests with their backports. It offers up to three rules, each on a card with the data behind it. Change the rule on its card if you want, then choose Save rule or Not now. A saved rule starts in Observe.

A rule’s row shows its record, such as 12 runs · 83% agree, and Edit lists each run. A run agrees when you review the pull request, start a task, update the branch, or open the backport in time. Records keep 30 days, and changing the header starts a new one. The switch pauses a rule.

When a rule’s record shows you agree with it (at least 10 answered runs, 80% agreeing), the Assistant asks whether to move it to Suggest. Choose Move to Suggest or Keep observing; nothing moves up by itself. Move down to Observe in the rule’s box moves it back.

In Suggest, a review rule reviews the pull request with its instructions as the focus and keeps the findings as drafts, and an issue rule starts a task that only commits on your Mac. The result waits in the Assistant’s Decision view: Open it to publish, push, or continue it, or Dismiss it. A finding published as written agrees; changing the work first counts as edited. Suggestions and automatic private reviews share a limit of 3 starts per rule and 10 total per local day. Merges and permission resolutions are outside that budget. Skips and their reasons appear in the rule’s history.

Activate a rule

Active rules are separate from Learning and suggestions. A good observational record never grants permission on its own.

  1. Save and check a rule, then choose Activate… beside it.
  2. Review its event, repositories and other scope, instructions, and the action it authorizes. For merge and permission rules, prose notes add no enforced conditions. Choose Activate rule to authorize that saved revision.
  3. Matching actions run without another approval card. Their results name the rule; expand its receipt to inspect each action. Allowed 3 requests under Build access records permission, not whether the work succeeded.
  4. Pause a rule with its switch. Editing an active rule returns it to Observe; review and activate the saved revision again.

Active review rules prepare findings without posting them. A pull-request-ready rule with does: merge can merge your own approved PR once its checks pass; ByteQuay rechecks the current head before acting. A permission-requested rule with does: allow needs exact hosts and explicit operations (network-access or github-read). Requests outside that scope still ask you. An uncertain remote outcome shows Needs attention, so you can inspect it before taking another action.

With owned-lines: true, a rule checks the last author at the fetched merge base, using your configured Git email or GitHub noreply identity. Only deleted or replaced existing lines establish ownership; additions-only files and renames do not.