Accepted command forms
Check options, status meanings, and local state locations.
Open this resource →Task handbook
Complete procedures for multiple agents, optional resources, MCP authorization, local improvements, and verification evidence.
Use these recipes after the team publishes compatible signed rules. Keep native provider sign-in and hook trust within the selected agent.
01 / Task handbook
Use this recipe when you alternate between Claude Code and Codex. The device connection is shared. Each agent needs its own provider authentication and observed activation.
Run the supplied setup command with both agents selected. Complete native sign-in in each agent. For Codex, open /hooks. Read and trust the Betterloop hooks.
npx @betterloop/setup setup --harness claude-code --harness codexOpen a fresh session in each agent. Use the same approved working repository for the initial comparison. Inspect each connection independently.
betterloop doctor --harness claude-code --project /path/to/repository
betterloop doctor --harness codex --project /path/to/repositoryReview native authentication, signed policy, activation, and required controls in each result. A working Claude Code session cannot establish Codex hook trust.
If one agent lacks a mandatory control, withhold acceptance for that agent. Review compatibility with the administrator. Retain the other agent’s independent result.
For Harbor Search, this means recording two search-api inspections. Shared enrollment establishes the device relationship; the separate records establish what each agent reports.
02 / Task handbook
Use this recipe when startup reports several matching project knowledge maps. Obtain the intended project identifier from the administrator. Confirm the affected repository.
A repository can appear in multiple signed maps. Choose the project that owns the intended knowledge. Do not select an unrelated project merely to clear a diagnostic.
betterloop sync --harness codex --project /path/to/repository --knowledge-project PROJECT_IDOpen a new session in that repository. Inspect doctor and knowledge retrieval diagnostics. The choice is remembered for this repository and enrollment.
Confirm that the selected knowledge index belongs to the intended project. If a referenced source still fails, inspect its separate authorization.
External Git, HTTPS, and MCP access remain source-specific. A knowledge match does not supply private credentials or automatically ingest the referenced document.
03 / Task handbook
Use this recipe for a resource approved for developer self-service. Approval makes that version available for selection. It does not install the resource everywhere.
Team-required resources remain controlled by reviewed rules. Personal selections can tighten restrictions. Shared resource identities and permission limits still apply to those personal selections.
betterloop library browser
betterloop library list
betterloop library show org.reviewThe read-only catalog session lasts ten minutes. Read the actual instructions, supporting files, dependencies, and exact version before copying the prepared local command.
For hooks, inspect the executable script and supported lifecycle event. For an MCP connection, inspect account authorization requirements before installation.
betterloop library install org.review --version 1.0.0 --harness claude-code,codex
betterloop library statusRead the result for each agent. Complete any native sign-in or trust step it requires. Open fresh sessions if activation changed. Run doctor afterward.
The selection applies across repositories on this device for those agents. Library status describes local selection state. Later execution requires separate activity evidence.
betterloop library update org.review --version 1.1.0 --harness claude-codeSelections remain pinned until an explicit update. Approved dependencies also use exact versions. Optional resources require Mimir 0.26.0 when Mimir is selected.
An organization approval change becomes available after reviewed team baseline adoption and publication. Run sync to receive that release.
If Claude Code succeeds and Codex fails, keep the working selection. Repair the Codex requirement. Repeat the resource operation only for Codex.
04 / Task handbook
Use this recipe after installing the connection definition. Obtain its exact approved server key. Select the agent whose account connection you need to inspect.
betterloop mcp-auth-status --harness codex --server KEY
betterloop mcp-login --harness codex --server KEYComplete the supported external sign-in. Check authorization status. Run sync. Run doctor. Repeat the resource update when its reported state needs refreshing.
Account authorization establishes access to the provider account. Tool permission and verified discovery still require their own checks under the applicable rules.
On macOS, the shared proxy stores OAuth tokens in Keychain. If Keychain fails, repair that issue. The connection does not use plaintext token fallback.
Authorization cannot be reused after its endpoint, issuer, resource, or approved scopes change. Complete the required new authorization rather than retaining incompatible account state.
betterloop mcp-logout --harness codex --server KEYFor example, Harbor might replace an approved service endpoint. Existing account access cannot establish authorization for the changed connection. Review and authorize its new definition.
05 / Task handbook
Use this recipe with Claude Code or Codex native optimization. Drafts remain private and scoped to repository, runtime, and enrollment.
A draft can qualify through two distinct tasks. A correction with an existing explicit verification receipt can also qualify. Duplicate observations and candidates are deduplicated.
betterloop optimize --harness codex --action list
betterloop optimize --harness codex --candidate UUID --action reviewRead the draft exactly as presented. Inspect its evidence and intended applicability. Decide whether it belongs only locally, should be dismissed, or merits shared review.
betterloop optimize --harness codex --candidate UUID --action keep
betterloop optimize --harness codex --candidate UUID --action dismissKeeping or dismissing a candidate suppresses further notices for that candidate. A submitted revision remains immutable. A changed draft receives a new identity.
betterloop contribute --harness codex --candidate UUIDRead the displayed public content separately from the private draft. Type submit only when you intend to upload those displayed fields.
The MCP bridge cannot make that submission automatically. Public fields exclude script bytes, private instructions, source, local paths, commands, and transcripts.
Assessment alone does not publish a lesson. A different human must approve the exact eligible revision. Signing and staged delivery follow that review.
06 / Task handbook
Use this recipe only when the candidate has script and test files. Inspect inputs, dependencies, outputs, and side effects before running code.
Keep credentials out of script bytes and parameter defaults. Use the repository’s scripting runtime. Choose a test that evaluates the intended behavior.
betterloop optimize --harness codex --candidate UUID --action stage
betterloop verify --harness codex --candidate UUID -- node tests/check.test.mjsStage copies the files into .betterloop/optimizations/UUID/revision-N/. It does not stage Git changes. It preserves different existing content rather than overwriting it.
Verification runs the explicit program directly in that directory. It does not invoke a shell. The two-minute timeout limits execution.
File bytes are checked before and after the run. Inspect the real result. A passing receipt binds the candidate digest to that verification.
A failed candidate check stays neutral. It is not reported as an attributed fleet failure. Script-backed submission requires a passing verification receipt.
Human reviewers still inspect the actual scripts through the ordinary repository pull request. A passing local command does not replace that review.
Review the script files in the repository. Merge them after approval. Generate the Team Rules variant from the reviewed candidate.
betterloop optimize --harness codex --candidate UUID --action referenceAdd the variant through the existing Team Rules Git review process. References pin repository identity, commit, path, digest, runtime, and parameters.
The server validates eligibility judgment and confirms that the digests match. Publication still requires review and signing. Script profiles require setup 0.5.0 or later.
07 / Task handbook
Use this recipe only for a learning entry actually delivered in the current session. Exposure is neutral. It does not establish that the task succeeded.
Obtain the entry identifier and matching session identifier. Select a local check that evaluates the intended outcome of the work.
betterloop verify --harness codex --entry ENTRY_ID --session SESSION_ID -- npm testRun the verification command. Read its outcome. A passing receipt can support a later success report tied to that existing exposure.
An unrelated passing command cannot verify the task. Finishing a model turn cannot verify it either. A failed check alone does not establish lesson causality.
Describe the check that passed and its actual scope. These receipts are client evidence. They do not supply independent device attestation.
For Harbor search-api, the selected check should exercise the changed search behavior. A generic command that exits successfully would not substantiate that result.
08 / Task handbook
betterloop sync --harness codex --project /path/to/repository
betterloop doctor --harness codex --project /path/to/repositoryRead expiry, revocations, required controls, and resource readiness. Valid unexpired caches can continue during outages. Required invalid policy can deny supported actions.
Bounded queued events retry delivery. A delivery result cannot establish observation of every action during the outage. Keep that limitation in the incident record.
Obtain fresh enrollment for the intended connection. Explicitly disconnect the existing device authorization. Run the approved personal command for the replacement connection.
Open new agent sessions. Background work and MCP subprocesses retain their captured installation identity. Inspect each selected agent before resuming work.
Personal rules cannot relax shared restrictions. Catalog browser commands cannot install resources by themselves. Successful verification does not publish an improvement.
For an interrupted library operation, confirm process exit before clearing an abandoned empty lock directory. Rerun the operation only after that check.
Prepare your first rollout
Bring a repository and a concrete requirement. Agree on the checks that will determine your next step.