Skip to content

Results from this documentation version only.

    ← Alcubi Delegator

    Development preview · These guides describe unreleased source code.

    Run your first ticket

    By the end of this walkthrough, an agent will have made a small change in its own worktree, and you will have reviewed and merged it. First complete installation and agent setup.

    Enter an existing Git repository with at least one commit. Use a clean primary checkout on the branch where you want to receive the change.

    Terminal window
    cd /path/to/your/repository
    git status --short
    git branch --show-current

    Commit or set aside your existing work before continuing. The example below asks for a documentation change so its scope is easy to inspect.

    Terminal window
    dg ticket

    This opens your editor. Use the first line as the ticket title, then add any additional details below it. For example:

    Document local development
    Add a Local development section to README.md.
    Use the repository's existing build and test commands, and check them
    against the project configuration. Keep the change limited to
    documentation; do not change application code.

    Save and close the editor to create the ticket. dg ticket prints its ID and triggers scheduling: when the queue is unpaused and has capacity, an agent starts automatically. You do not need to leave the inbox open.

    Terminal window
    dg

    Run dg again to see current state. The ticket moves from QUEUED to RUNNING, then to READY when the agent reports a commit.

    If it stays queued or fails, use the troubleshooting guide before creating another ticket.

    Once the ticket is READY, inspect it:

    Terminal window
    dg show

    Without an ID, dg show defaults to the first ready ticket for the current project. It shows the branch, worktree, session, dependencies, and run history.

    From your primary checkout, compare the ticket’s branch with your current branch. The inline command selects the branch of the first ready ticket automatically:

    Terminal window
    git diff HEAD...$(dg show --branch-only)

    Read the full diff to review the agent’s work. If you want to make changes yourself, open the ticket’s worktree:

    Terminal window
    cd $(dg show --worktree-only)

    You can edit files and run tests there. Commit your changes, then return to your primary checkout before merging.

    More substantial changes needed? See continue the agent session.

    From your primary checkout, merge the branch after review:

    Terminal window
    git merge $(dg show --branch-only)
    dg accept
    dg

    Like dg show, dg accept without an ID selects the first ready ticket for the current project. If you have several ready tickets, make sure it is the one you just reviewed and merged, or supply its ID explicitly.

    If Git reports conflicts, resolve and complete the merge before accepting. dg accept verifies the branch is incorporated into the project’s current HEAD and that its worktree can be removed, marks the ticket DONE, and removes that worktree. It also starts eligible queued work when capacity is available.

    You have completed the full workflow. Next, learn to write tickets with useful acceptance criteria or link a sequence of changes.