Codex
Assign an issue to Codex and work it in your local repository.
For hosted Claude Code repository work, see the cloud execution guide, including workspace eligibility, backend configuration, size selection and recovery.
Enable Codex
A workspace owner or administrator can enable Codex under Settings → Agents → Agent and executor configuration → Codex. Assign an issue to Codex or mention @codex in an issue comment to queue a run. Members can dispatch work; guests cannot. Assignment and mention dispatch have separate switches.
Start a worker
Use Node 18.20 or newer. Install Codex and sign in with codex login, or privately set your own CODEX_API_KEY. Velocity uses your Codex account and does not meter these runs as Velocity AI operations.
npm install --global https://github.com/velocity-quest/velocity-agent/releases/download/agent-v0.5.74/velocity-agent-0.5.74.tgz
velocity-agent login
velocity-agent whoami
velocity-agent status --agent codex --team YOUR_TEAM
velocity-agent repo link --workspace YOUR_WORKSPACE --team YOUR_TEAM --repo /path/to/repository
velocity-agent run --agent codex --team YOUR_TEAMSelect one or more workspaces during Velocity login. The worker processes all approved workspaces by default; add --workspace <id-or-slug> to focus on one. Sign in again to expand an older grant. For SSH or a browser on another machine, use velocity-agent login --no-browser and paste the code shown by Velocity. Saved credentials are private and refresh automatically; velocity-agent logout revokes the saved grant. Workspace connection tokens also work through VELOCITY_MCP_TOKEN; see the MCP setup guide.
Repository and delivery
--workspace selects an authorized Velocity workspace slug or UUID (for example velocity-project); --team restricts work to a team identifier or UUID (for example ENGIN). Without it, the worker honors the team scope in Velocity agent settings, or searches all teams when none is configured. --repo takes a local checkout path such as ~/projects/velocity/velocity. The GitHub org/repo, such as velocity-quest/velocity, comes from the workspace’s GitHub mapping. A wrapper directory containing a checkout is not itself a checkout. Directory names grant no workspace or team access.
velocity-agent repo list lists saved local links for this server and authorized workspace selection; an empty [] means no matching links have been saved, not that GitHub has no repositories. Link the intended checkout explicitly using the command above.
repo link and repo tasks default to the current Git checkout (including subdirectories and worktrees), and invalid local paths are diagnosed before sign-in or remote selection. Workspace/team selection and repository authorization still apply.
By default, each poll selects eligible queued issues by priority (Urgent through None), then earliest due date, oldest issue and stable run order. Current provider and enabled shared controls filter the queue before the batch limit, so ineligible work cannot hide an urgent issue. An issue edit affects the next poll; a running task keeps its existing lease. Change the priority order in Settings → Agents → Loops. The full loop scheduler is not yet available.
The worker only takes Codex issue runs from the specified team and authenticated workspace. Link a writable GitHub checkout with an initial commit and configured Git author to the workspace’s team/project mapping. Worker 0.5.5 creates an owned writable worktree and branch from the verified default-branch commit, preserves all source-checkout changes and resumes the same run’s saved branch and diff. Codex edits and tests in the workspace-write sandbox; the runner commits and links the actual SHA. Separate runners use separate worktrees. Add --single-checkout only to work directly in a clean selected checkout. A missing, ambiguous or changed repository mapping requires selection or relinking.
Commits stay local by default. Add --allow-delivery to authorize pushing the issue branch and opening a linked PR. Delivery needs local Git authentication and the workspace’s GitHub repository mapping. For merge, deployment and verified Done, configure an authorized end-to-end workflow using the Delivery settings below; --allow-delivery alone stops at a PR handoff. Connecting Codex to MCP alone does not start this worker.
Recover or clean up work
Worker 0.5.31 fixes outcome reporting in resumable Codex sessions. If an older worker reports that report_agent_outcome requires approval while approvals are disabled, update the worker and restart it. The worker configures permission for its authorized Velocity tools; there is no Agents-page approval switch to enable. Other delivery failures, including failed CI checks, still need repair before delivery can continue.
velocity-agent repo tasks --repo /path/to/repository shows saved paths, issue/run IDs and locks for your authorized workspaces. It reads this Git repository’s local task registry, not the remote issue queue; [] means no matching local tasks. Failed tasks keep their diff and commits. Requeue the run in Velocity and restart the worker to resume it. Use repo recover --workspace YOUR_WORKSPACE --repo PATH --issue ISSUE_UUID --run RUN_UUID only after the worker is stopped; live locks cannot be reclaimed. Use the same options with repo cleanup to remove a clean inactive owned worktree. Dirty, ignored or untracked files and foreign paths/branches are preserved; branches and commits are retained.
Code lives in $XDG_DATA_HOME/velocity-agent/worktrees (default ~/.local/share/velocity-agent/worktrees). Dependencies and private environment files are not copied automatically. Repository links stay private and local. Add --project PROJECT_UUID to repo link for a project-specific mapping. Optional --write-context explicitly appends verified workspace context to VELOCITY.md and a reference to AGENTS.md, preserving existing instructions.
Models and execution controls
Worker 0.5.4 also exposes PRD, requirement and user-story context and manual planning tools. Apply only the changes selected by the operator; a model proposal or assignment never approves a PRD. Native Codex does not expose the platform AI proposal tools. Current workspace and run scopes still apply, and source-bound LandingBoost fixes cannot expand into unrestricted planning.
Omit --model and --effort to retain your native Codex defaults. Worker 0.5.15 reads the selected repository’s effective configuration and the exact execution runtime’s model catalog before claiming work. It checks the complete pair, including any inherited effort, and carries the verified model, effort and provider into the task worktree. Unsupported choices or unavailable metadata leave the run pending; correct the flags or native configuration and restart.
velocity-agent codex models --repo /path/to/repositoryThis local catalog command needs no Velocity sign-in, starts no thread and makes no inference call. It displays model/effort/default metadata and entitlementVerified: false. Catalogs may be cached; they are not proof of account access. Reads time out after 15 seconds and support cancellation. A custom VELOCITY_CODEX_BIN must support the app-server config/model methods for native execution, including inherited defaults.
Issue text and comments are treated as untrusted task data. Native execution is unattended, bounded to 30 minutes, and renews its server lease. If it stops, stale-run recovery marks the abandoned execution failed.
Emergency stop and concurrency apply to the Codex integration. A workspace requiring Velocity’s optional action checkpoint cannot use a native worker, because that runtime does not support the checkpoint. No checkpoint is required by default.
Use --once to process one batch, and --base-url consistently for another Velocity instance.
Choose a model for one issue
Worker 0.5.16 supports Agent model overrides in the issue detail panel. Choose Codex, Claude Code or the local Anthropic API worker, enter a model ID and, for native workers, an optional supported effort. Save the settings to use them for new attempts. Empty fields inherit defaults; Use defaults for all workers clears every override. Claude Code effort requires a model. The API worker accepts a model only; hosted agents keep the platform model policy.
Explicit worker --model and --effort flags override their corresponding issue fields. Issue settings override the worker/provider defaults. Shared workspace scope, concurrency, runtime, stop and delivery limits always apply; these settings do not authorize additional billing methods, tools or repositories. Model availability and effort support are checked with the exact execution runtime before Git fetches or claims. Invalid or unavailable choices leave the run pending. Correct the issue settings or worker configuration and retry.
Queued work reads current server settings at attempt start. Running attempts and API approval resumes retain their validated selection. Settings changes affect the next attempt. Older workers cannot claim issues with applicable overrides; upgrade them or clear the override. A pre-upgrade suspended API conversation without a saved selection may require recovery with its original worker.
Workspace members who can edit issues can manage these settings; guests and managed agents cannot change them. GraphQL Issue.agentModelOverrides, Issue.agentModelRevision and create/update inputs, the REST issue API and MCP create_issue/update_issue expose the same provider-specific object. Set it to null or {} to clear it. Management CLI 0.2.25 supports:
vel issues get ENGIN-123 --select '{ id agentModelOverrides agentModelRevision }'
vel issues update ENGIN-123 --input '{"agentModelOverrides":{"codex":{"model":"YOUR_MODEL_ID","effort":"high"}}}'
vel issues update ENGIN-123 --input '{"agentModelOverrides":null}'Use codex, claudeCode and anthropic keys for their respective workers. Enter model IDs from your worker’s catalog. These settings contain configuration IDs, never credentials.
Delivery authorization and recovered runs
Worker 0.5.36 names the issue and run when delivery is waiting and explains the current restriction. Allow delivery does not override a shared local-only policy, integration approval requirements, the connection that owns the attempt, or a human change to issue ownership or workflow. Review the specific setting named in the message rather than repeatedly enabling delivery.
Temporary restrictions are checked again after 30 seconds; unchanged waiting messages repeat at most every five minutes. An already closed issue or changed source, workflow or execution stops its original local continuation. The branch and worktree are preserved and the server’s original outcome is unchanged. If delivery finished elsewhere, open the original run’s delivery links. Restart an existing worker after installing an update to load its new code.
Minimum worker versions
Workspace owners and admins can set a minimum in Settings → Agents → Workers. Platform administrators set the system minimum in Admin → System. The stronger minimum applies. Both start unset, so existing installations remain eligible until an administrator configures a floor.
Preview the affected machines before applying a change. Enforcement is immediate for new tasks and delivery attempts; active attempts can finish safely, while expired or released leases require the current minimum before resuming. Policies require worker 0.5.27 or later to identify the version on every claim request. Earlier workers and unknown versions need an update whenever a minimum is configured. A version reported by another machine on the same account cannot authorize an old worker’s request.
Agents shows restricted workers and their actual reported versions, platform floor and workspace floor. Inbox records policy changes and deduplicated cutoff notices for workspace owners/admins and machine owners. Platform increases are announced even when a workspace’s higher minimum keeps its effective requirement unchanged. Credentials remain on the host; update the installed package and restart the worker to activate the new version.
When website settings are saved but a worker is waiting
Website settings save the required stop and checks. The worker also needs the corresponding validation, deployment and acceptance commands loaded on its machine. A deployment requirement with no host adapters keeps the issue queued; signing in again does not install those commands.
On Agents → Local workers, select Fix setup for a workflow problem, or expand the worker’s summary and select Edit settings → Delivery. In the dialog, open Deployment workflow and enable Configure workflow commands from this website. Only the machine owner can edit these executable commands. Choose the Default delivery stop, review Validation commands and configure Deployment and acceptance, then select Save and start.
The worker suggests validation scripts from the selected app’s package.json. Review the suggestions and add any checks required by the issue or profile. Use Name :: executable arguments for each validation line, with the exact required check names. Commands run in the task checkout without an implicit shell; use project scripts for pipelines. If no script is found, add a suitable command or an authorized validation waiver.
Choose Vercel for the built-in path. The worker retrieves the linked project and team IDs and production domains from the selected checkout’s .vercel/project.json and its local Vercel sign-in. Missing values in a new workflow can be filled automatically. Under Retrieve from Vercel, select Use discovered settings to copy the current details into your draft; choose a production domain first when several are available. If discovery is unavailable, follow its reported action or enter the IDs and production URL manually.
Review the suggested HTTP acceptance path, optional required response text and Vercel configuration path. A conventional health route is preferred; otherwise the default checks the home page. Stable response text is suggested only when it can be inferred; otherwise the default requires HTTP 200. These are editable suggestions, not proof that your application works. Saved values and your edits are preserved.
Install Vercel CLI and run vercel login on the host, or set VERCEL_TOKEN there. No provider credential is saved in Velocity. If the checkout is not linked, run vercel link there first. Save a changed repository selection before waiting for fresh discovery. The worker deploys a clean checkout of the merged commit, waits for Ready, checks that production has not changed during the build, promotes the project and verifies the same artifact around the HTTP acceptance check. An already Ready production artifact for that exact source can be reused. A known deployed descendant is never replaced by its older ancestor.
Vercel HTTP acceptance requires HTTP 200 and, when enabled, your chosen response text, in addition to the project, source, Ready and production-alias checks. Choose Custom commands or validation only for existing scripts, browser tests or another provider; use explicit deployment targets for a workflow spanning multiple projects. Commands execute from the installed worker, so a different velocity-agent earlier on PATH cannot replace the built-in verifier. The optional Vercel configuration path is relative to the repository root. The preset does not create projects or domains, change provider credentials or infer acceptance from issue completion.
Saved and applied revisions are separate. The worker acknowledges the loaded checks and deployment/acceptance capabilities before claiming its next task. Active attempts retain their pinned commands; changing a workflow does not replace an existing delivery’s evidence. Older workers show an upgrade message. Worker version is reported separately from the native Codex or Claude Code version.
Open Command inputs and required receipts for the deployment contract below. Use real release and acceptance scripts that verify the artifact and source SHA; a successful generic deploy command alone does not verify delivery. Credentials and provider sign-in stay on the host; never put tokens into website commands.
A private --workflow /absolute/path/workflow.json remains supported and takes precedence over website commands. Keep that file private (chmod 600); host-file changes require a restart. Explicit CLI delivery options also retain precedence, and protected policy always applies. Only the machine owner can change executable website commands, through their signed-in browser; issue text and managed executions cannot supply them.
Saved delivery profiles
Worker 0.5.24 adds saved native delivery profiles. Personal preferences belong to the connected worker’s signed-in account in the selected workspace.
Open Settings → Agents → Delivery defaults & overrides. Stable profiles are codex, claudeCode and anthropic. Codex and Claude Code support native delivery; Claude API does not support the native Git/CI/deployment adapters. Capabilities follow the installed worker release; there is no separate platform-admin delivery-defaults system.
Owners and admins set shared defaults and protected limits: the furthest permitted stop, required validation, deployment verification and named host checks. Members save only their own preferences and cannot authorize merge or deployment. Empty personal fields inherit shared defaults; clearing all personal fields restores inheritance. Model and effort choices remain separate.
Choose local implementation, tested PR handoff, merge after CI/review, or end-to-end deployment/release and verified Done. Host validation and deployment verification can be required individually. Commit/push, PR, exact-head CI/reviews, merge and verified closure have stage dependencies; a preference cannot disable a repository gate. Local and PR handoffs keep the issue unfinished.
To enable saved preferences once, add "profilePreferences": true beside "version": 1 in the private --workflow file, or enable inheritance in the website workflow editor. Keep credentials on the host. Assignments can then follow the saved authorized end-to-end stop without repeating --allow-delivery. Existing files remain explicit and existing local-only restrictions stay in effect until the operator opts in. An explicit --no-allow-delivery remains local-only; choose a workflow or a delivery flag, not both.
Protected system, workspace/provider and shared-profile constraints always apply. Within those limits: explicit CLI → per-issue settings/cues → personal preferences → shared defaults → host fallback. Host-required checks and deployment verification remain floors. A profile never supplies credentials, executable commands, repository authorization or GitHub access.
The worker fetches a next-attempt preview at connection, pins shared/personal revisions with the issue choice before claim, and revalidates relevant writes and delivery boundaries. Workers and run details show the selected stop, sources, revisions, unsupported stages and missing checks/adapters. GitHub/CI/release access is verified at the actual boundary. Any profile edit stops active delivery at its next authorization check; start a new attempt to adopt it. Retrying an existing prepared delivery preserves its original evidence. Older workers cannot ignore a configured shared profile and need upgrading. Settings show recent shared and caller-owned history.
MCP get_agent_delivery_profile takes profileId. update_agent_delivery_profile also takes scope (workspace or personal), expectedRevision, expectedSharedRevision and settings. Both revisions must match; conflicts require reload and review. Personal settings accept mode, validationRequired, deploymentRequired and requiredChecks. Shared settings wrap these in defaults and add limits with maxMode, validationRequired, deploymentRequired and requiredChecks. No user/workspace selector can replace authenticated ownership; managed executions cannot change their own profiles.
GraphQL exposes agentDeliveryProfile(workspaceId, profileId) and updateAgentDeliveryProfile(workspaceId, input). The management CLI provides velocity agents delivery-profile --profile-id codex and velocity agents update-delivery-profile --input @profile.json; select the authorized workspace normally. Run details expose the frozen workflowSelection separately from delivery progress.
Per-issue workflow choices
In issue details, open Agent workflow before choosing an assignee. Set the stop point and named host checks, or clear overrides to restore inheritance. The last attempt shows its pinned revision, resolved policy and value sources.
For a worker configured with --workflow, add "issueOverrides": true at the top level of the private configuration file to let issue choices replace its defaults. Without this operator opt-in, the explicit CLI workflow takes precedence. Required host checks, workspace policy and role restrictions still apply. Issues select check names; they cannot supply executable commands.
A user can add a top-level paragraph in an issue or a new comment containing one of these exact directives:
/agent-workflow implement and test only
/agent-workflow open a PR but do not merge
/agent-workflow complete delivery and mark Done after verificationUse one directive at a time, or /agent-workflow inherit. The first two resolve to local and PR handoffs with validation required. Complete delivery requests merge, deployment acceptance and Done; only owners/admins can request it and a deployment adapter is required. Structured issue controls take precedence over cues. Quotes, code blocks, attachments, agent comments, imports and API text cannot authorize delivery. Ambiguous directives block new work until resolved in the controls.
Queued work reads the latest revision. Running work keeps its pinned attempt: any workflow edit stops it at the next host authorization boundary before further delivery writes, and requires a new attempt. Once delivery is prepared, reassign the agent to start a new run after an edit; an ordinary retry retains its original evidence. Recover saved changes with velocity-agent repo tasks. Editing or deleting the latest recorded directive revokes it; newer directives are preserved. The issue controls also clear recorded directives. This is delivery steering, not arbitrary live model instruction updates.
Finish a delivery workflow
Worker 0.5.12 can validate changes, commit and link them, open a PR, wait for GitHub checks and required reviews, merge, and close the issue after any required deployment. Coding and delivery have separate recorded states in Agents → the run.
Use the website workflow editor, or --workflow /absolute/path/workflow.json with a private operator file (chmod 600). Existing commands keep their local-only behavior; --allow-delivery remains a PR-only handoff. Choose one delivery option.
{
"version": 1,
"policy": {
"mode": "merge",
"validationRequired": true,
"deploymentRequired": false,
"maxRepairAttempts": 1
},
"checks": [
{
"name": "Repository checks",
"argv": [
"pnpm",
"test"
]
}
]
}Replace the check with the appropriate commands for your repository. Arguments execute directly, without a shell. Supply credentials through your environment, never command arguments. For a low-impact change that needs no checks, set validationRequired: false and provide a meaningful skipValidationReason; the reason is recorded.
The stop modes are local, pr, merge and deploy. Local and PR modes leave an explicit handoff and keep the issue unfinished. Merge/deploy require a workspace owner or administrator. Current permissions, repository mapping, approval settings, emergency stop and delivery limits still apply. The CLI file cannot override a protected workspace limit.
For a product that requires release or deployment, choose deploy and deploymentRequired: true. Configure deployment.deploy and deployment.verify as argument arrays for your existing release and acceptance scripts. Each receives VELOCITY_DELIVERY_SOURCE_SHA. Deploy must print one JSON receipt with sourceSha, artifactId and an HTTPS url without credentials, query parameters or a fragment. Verify receives that receipt on stdin, checks the actual artifact and meaningful acceptance behavior, and prints the same identity plus acceptancePassed: true. Logs go to stderr. Failure or a different source/artifact keeps the issue unfinished. Merge-only mode does not claim a production release.
Use Stop delivery on the run page to stop an unfinished workflow, including after coding has completed; the runner owner or a workspace administrator can do this. CI waits release the coding session. Keep the same runner polling, or restart it with the same account, workspace, repository links and workflow file. A changed workflow does not upgrade a pinned job. Confirm a crashed process is stopped before using velocity-agent repo recover for its owned checkout lock; dirty work and branches are preserved.
If delivery continues elsewhere, open Delivery continuations on the original run and link the specific successor run, pull request or follow-up contact. Successor runs link back to their origins. A completed coding turn or an issue marked Done does not verify deployment; the original execution result remains visible alongside its continuation.
For a Vercel deployment completed outside the run, an owner or administrator can run the preset’s vercel-verify command with --external-receipt, then submit its successful receipt using velocity-agent workflow record-delivery --workspace WORKSPACE --run RUN_ID --pr PR_URL --receipt FILE. The server confirms the exact merged source, successful checks, required reviews and origin backlink. Artifact links identify the immutable deployment. Recording acceptance retains the original run result and does not close the issue.
When no new source changes are needed
Worker 0.5.40 can reuse a same-issue, exact-source accepted delivery after rechecking the merged PR’s checks, required reviews and pinned host acceptance verifier. No empty commit, duplicate PR or deployment is needed. Without sufficient proof, the run stays open with DELIVERY_NO_CHANGES.
Open Review existing work on the run, select its actual earlier delivery or linked PR, and run the displayed velocity-agent workflow verify-existing command from the linked repository on the original worker host. Add the original private --workflow file if one was used; its command digest must match. The command locks the preserved worktree, reruns pinned validation and only the acceptance verifier, then records fresh evidence. The original requester must explicitly accept in the browser within 15 minutes. Completion adds one comment and marks the issue Done together, preserving the coding outcome and earlier handoff with links to the actual delivery. Current permissions, requirements, ownership, policy and minimum worker versions still apply. Local and PR handoffs retain their selected stop.
Relevant validation and CI failures can queue up to maxRepairAttempts additional native turns (0–3, default 0). Repairs retain the original runtime deadline and use normal claim/concurrency checks. Exhausted repairs become Blocked with the reason and preserved work. A provider outage waits for a later poll. No request bypasses GitHub branch protection or required reviews.
An approval does not clear outstanding review findings. Delivery rechecks current conversations and standing change requests before merging, even when a reviewer check is neutral or skipped. Address the finding and resolve its conversation on GitHub; the worker rechecks the same PR. Unreadable review evidence waits for a complete read.
To require an automated reviewer such as Cursor Bugbot, list it under Required reviewers in the GitHub integration settings as app-slug/Check name, for example cursor/Cursor Bugbot. Delivery then waits, as Review required, until that app reports its own check on the pull request's current commit. A reviewer that never started or ran only on an earlier commit is never counted as skipped, and local-only validation does not waive it. A neutral or skipped result is accepted once its annotations are read and none is a warning or failure.
Done requires recorded validation or a skip reason, exact-commit CI/review evidence, a confirmed merge, any required verified deployment, and one completion comment committed together with the issue transition. Per-profile web configuration is tracked separately. Authorized per-issue choices can refine the operator file when it opts in with issueOverrides.
Live run progress
Worker 0.5.12 records safe activity summaries while it works. Open Agents → the run to see its phase, last worker contact, recognized test outcomes and delivery status. The latest 2,000 events survive refresh and reconnect. Older workers show contact and status without an execution stream. A completed coding turn does not mean its PR has passed CI or been deployed.
Command failures and retries
Worker 0.5.20 distinguishes a process that could not start, such as Text file busy, from a command that ran and exited unsuccessfully. Open Agents → the run and expand the failed event to see its command, reported exit code and bounded output. Long output is marked truncated; known credentials and terminal controls are removed before upload. Missing exit status remains unknown.
The native runtime controls retries. Each retry result is recorded separately, preserving the earlier failure. The worker does not automatically replay commands that may have completed side effects. Other raw tool output and private reasoning are omitted from saved progress.
Native model usage and cost
Worker 0.5.15 records resolved models and available cached-input, cache-write and output categories in the run detail page. API-equivalent estimates show their pricing source, verification date and missing data. Actual reported charges are separate; native subscription sign-in does not establish an additional invoice or marginal subscription charge. Native model usage does not consume Velocity AI credits. Unknown historical costs remain unavailable.
Configure a waiting worker on the website
Install the verified worker release linked in the worker installation guide, then run velocity-agent login, then velocity-agent run. You can focus on one approved workspace with --workspace ID_OR_SLUG. Account-wide consent is not required.
Open Agents → Local workers in your workspace. Expand your worker’s row for a short summary, then select Edit settings to open its settings dialog. Fix setup opens the relevant problem directly; View details opens the full read-only details. The same controls are in Settings → Agents → Workers.
In Setup, choose an execution method, team, linked repository/project and optional model/effort, then select Save and start. Delivery contains the host workflow; Profiles contains delivery preferences; Details shows versions and runtime checks. Claude Code, Codex, Grok Build, Muse Code, Cursor and Antigravity have local execution adapters. Each still needs a compatible installed CLI and its own authentication. If several runtimes are detected, select one. An unconfigured worker stays connected and waiting.
Native execution uses the runtime’s own sign-in. Sign in separately with codex loginor claude auth login; Velocity never signs you in automatically or uploads provider secrets. Anthropic API execution needs ANTHROPIC_API_KEY on the worker; supplying an API key for Claude Code selects its SDK execution path. Configured authentication is not proof of model access; catalog and execution checks still apply.
Explicit CLI flags override website values. Omitted flags preserve the selected provider and execution method. Fields marked CLI option show the explicit value and cannot be changed on the website. Remove the corresponding option when restarting to give the website control. Use --no-allow-delivery to keep commits local or --no-single-checkoutto require task worktrees. Shared workspace restrictions remain authoritative.
A save stays pending until the worker acknowledges the saved revision. Needs attention lists the reported setup problems. Open Fix setup to review the runtime’s reported cause and next action; detection or saved sign-in alone does not prove access or remaining quota. Idle workers apply updates on the next poll; active tasks keep their execution settings until they finish. An offline worker must reconnect before applying updates. Conflicting saves preserve your draft; Reload settings fetches the latest revision for review. Older workers display applied revision not reported until upgraded.
Link a new private checkout once with velocity-agent repo link. The website selects among declared links; private checkout paths and credentials stay on the machine. The machine owner can save executable workflow commands on the Delivery tab or use a private host workflow file. Commands execute on the worker, so keep secrets in its environment. Full delivery needs the required validation, deployment and acceptance adapters; delivery preferences alone cannot supply them. See the host workflow setup steps.
Each workspace has its own settings and heartbeat. The worker refreshes inventory every minute, heartbeats every 15 seconds and appears offline after 90 seconds without contact. Pause, Stop and configuration edits take effect between tasks. Missing sign-in, unsupported model/effort pairs, unavailable runtimes, disconnected servers and missing repository links leave work pending. Check the terminal, correct the selection or relink the checkout, and the worker retries automatically.
Shared workspace controls
Worker 0.5.7 reads Settings → Agents → Loops before starting work and before each claim. Emergency stop or a different provider or hosted execution preference leaves the local worker waiting. It keeps queued work pending and never switches your agent, model or billing method automatically.
Each authorized workspace has its own controls and event cursor. Committed policy changes are checked at five-second heartbeat and safe execution boundaries, with settings refresh within 30 seconds while polling. Unavailable or revoked controls prevent new work and interrupt an active task. Changes are preserved; current controls are checked again before committing, delivery and the final result. The server must support get_agent_loop_settings. Existing model and repository settings remain in force; disabling shared controls does not requeue stopped runs.
Require isolated worktrees to keep code changes away from a shared checkout. A worker using --single-checkout, an API worker or an older/hosted worker waits rather than bypass this requirement. Local changes only prevents managed GitHub delivery even with --allow-delivery. Existing delivery permissions never grant push access unless you also authorize it locally. The runner refreshes these limits before committing, pushing and opening a pull request; local branches and changes are preserved when access changes.
Reorder priorities in Loops to choose which eligible queued work agents take first. Local API, Claude Code, Codex and hosted queues apply the published order before their batch limit; due dates and age break ties. Changes apply on the next queue poll and leave running tasks alone. Disabling shared controls uses the default Urgent-to-None order and keeps your saved order for the next apply.
Continue owned work first
Before selecting new queued work, workers check for eligible runs on In Progress issues assigned to their agent. Pending owned work is returned first. Already leased work stays with its owning worker and preserves configured concurrency. Native workers stay within their selected team and execution method. The Todo-only setting selects new work; it also allows an existing queued assignment to continue its agent's In Progress issue. Explicit status lists, project/team scope, provider permissions, worktrees, runtime limits and emergency stop still apply.
Assign an issue to Codex or Claude, or mention the agent in a comment, to queue a run. Moving an unassigned issue to Todo does not queue it automatically. Blocked, review, waiting and terminal issues are skipped. Failed or cancelled runs require an explicit retry; polling does not restart them. Existing workers receive this server-side behavior without an upgrade.
Model defaults and protected limits
Loops supports separate defaults and allowed model IDs/effort levels for Codex, Claude Code and the local Anthropic API executor. Blank defaults preserve provider configuration. Explicit CLI flags take precedence over issue choices, then workspace defaults, then worker/provider defaults; every choice must satisfy the workspace allowlists. These controls never silently switch to another model. Local runtimes validate the selected model and effort before claiming; unavailable metadata, auth or choices leave work queued. Claude Code effort requires a model; API effort and hosted model policy are explicitly unsupported. Use resolved model IDs in allowlists.
Model policies require a compatible worker. Older workers wait when they cannot verify the protected receipt. Running and approval-resumed attempts keep their pinned model; tightening an allowlist stops incompatible active work at its next authorization check. Default-only edits affect future work. Provider credentials stay local or in their existing secret storage and never appear in policy responses.
Daily run quotas
Set an optional daily run cap for the whole workspace and for each provider. Blank means no additional cap; zero stops new claims. The server counts each run’s first successful claim once per UTC day under the shared workspace lock, across legacy, local and hosted workers. Failed runs still count; retries with a new run count again. Approval resumes and renewals do not double-count, and deleting a run or disabling controls does not refund usage. Existing work can finish when a quota is exhausted. Reload Loops to see current usage. Workers explain the quota wait and resume admission after UTC rollover or an authorized limit change.
Daily run quotas and elapsed runtime are resource budgets. They do not promise a hard provider charge or token ceiling: native subscription/API usage cannot provide that guarantee. Those capabilities remain explicitly unavailable, and hosted billing keeps its existing platform credit/budget authority.
Request protocolVersion: 5 to read or write modelPolicies and dailyRunLimits, including capability support and current UTC usage. Apply the complete settings with both revisions. The management CLI exposes the same contract through vel agents loop-settings --protocol-version 5 and vel agents update-loop-settings --input.
Runtime budget
Set Maximum elapsed runtime in Loops to 60–1800 whole seconds, or leave it blank to keep existing provider timeouts. Time starts when the run is claimed and includes approval pauses. Applying a shorter budget also bounds active runs. Raising, clearing or disabling the limit never extends a deadline already committed for a run. Provider timeouts can stop sooner.
The server rejects expired claims, renewals, managed actions and final results. Existing workers interrupt execution on their next five-second heartbeat; owned local changes are preserved. This is an elapsed-time limit, not a provider spending, token or quota guarantee. No worker upgrade is needed. Existing clients preserve the separately published budget.
Request protocolVersion: 4 with get_agent_loop_settings or the GraphQL settings query to include maxRunSeconds. To apply, send the complete protocol-4 settings and both current revisions; use a number from 60 to 1800 or null. For the CLI, use vel agents loop-settings --protocol-version 4and vel agents update-loop-settings --input with that complete JSON envelope. Protocols 1–3 keep their existing response shape and preserve the saved budget on writes.
API and MCP clients request protocolVersion: 2 to read or update execution controls, or protocolVersion: 3 to include priorityOrder, all five priorities in preferred order (0 Urgent, 1 High, 2 Medium, 3 Low, 4 None). Both current revisions are required for updates. Older clients retain the claim-only contract until execution restrictions are activated, then receive an upgrade error. Existing private worktree/delivery/priority drafts are never activated automatically. Older settings clients preserve the published priority order when editing their known fields. Existing workers follow server ordering without a worker upgrade. Protocols 1–4 preserve separately published model policies and daily quotas.