Skip to main content

CommitsPreview

Commits

The agent queue is a commit queue when commits.enabled is absent, or a proposal queue when commits.enabled is true.

Desktop Commit and Mobile Review display that queue as read-only. The installed CLI is agent-up.

  1. Choose the queue shape

  2. Enqueue a vertical-slice entry

  3. A human runs agent-up commits next

Which queue?

Proposal queue

commits.enabled is true. Enqueue records a Server-owned proposal in a managed worktree. Agents continue at the returned worktree path.

Legacy local queue

The setting is absent. This is a local queue file in the platform config directory, scoped to the current Git repository, with no Server dependency.

Command

agent-up commits enqueue

Where it differs

MCP

Agents use enqueue_commit, then get_commits_status. They never run commits next, git add, git commit, or git stash.

CLI

commits next is developer-only. It stages the first queued entry and prints the suggested git commit command.

Commands

Do not edit the queue file directly. Agents and developers interact with it through the CLI or MCP.

  1. commits enqueue

    Adds a proposed commit entry. Intended for coding agents that modify multiple vertical slices in a single task.

  2. commits status

    Shows the current queue. Warns about modified files that are not assigned to any queued entry. --format json is for integrations.

  3. commits changes

    Shows working-tree files with queue assignment. Use this instead of scripting around git status.

  4. commits inspect

    Shows one queued entry by index or ID. --patch includes the saved patch.

  5. commits edit

    Applies one queued entry back into a clean working tree. edit save rejects changes outside that entry's file list. edit abort keeps the original patch.

  6. commits message, tests, files

    Updates queued entry metadata. Files can only belong to one queued entry at a time.

  7. commits remove and restore

    Archives a queued entry without staging it. Restore by ID.

  8. commits guard

    Fails while queued entries, active edit sessions, staged changes, or unassigned working-tree changes remain.

  9. commits next

    Developer-only. Stages the first queued entry, pops it, and prints the suggested git commit command.

  10. commits clear

    Archives all entries without staging anything.

commits enqueue

agent-up commits enqueue \
--slice UbuntuInstallation \
--message "fix(UbuntuInstallation): cover tray autostart boundary" \
--files AgentUp.Installers.Tests/Features/UbuntuInstallation/Provider/UbuntuInstallerPlatformAdapterTests.cs \
--tests "dotnet test AgentUp.Installers.Tests --filter UbuntuInstallerPlatformAdapterTests"
FlagRequiredDescription
--sliceyesLogical name for the vertical slice (e.g. UbuntuInstallation)
--messageyesConventional commit message scoped to this entry's slice
--filesyesOne or more file paths to stage (space-separated, until next -- flag)
--testsnoOne or more test commands to run before committing (space-separated)

--tests is merged with any build and test commands agent-up.json's commits configuration resolves for --files, including commands for projects that transitively depend on a touched project. See the agent-up.json reference. When agent-up.json has no commits configuration, only the explicitly passed --tests are recorded.

commits next

Agents should stop after commits status or commits guard; they must not stage or pop queued entries.

agent-up commits next
# then: git commit -m "<message from output>"

Use agent-up commits next --format json for integrations that need the staged entry's commit message. Blocked results use structured JSON with staged: false, blocked: true, and a human-readable message.

State ownership

The CLI owns no runtime or orchestration state. The legacy local commit queue file is the documented exception until commits.enabled migration finishes. MCP is the primary automation interface.

Next in this slice

Git Review

Where humans see the queue.