Workflow
Interface layout, session lifecycle, slash commands, and data location.
Create a session, review its changes, then merge locally or publish a review request. See Keybindings for shortcuts by view.
Interface Layoutπ
Use Tab and Shift+Tab to move between tabs. Agentty restores the last tab on startup.
- Projects: Choose a repository; view activity, usage, and installed agent CLIs.
- Sessions: Create and manage work in merge-queue, active, and archive groups. Press
pto switch projects. Each row shows a short model name, such asopus-5.5, and its reasoning level. - Settings: Configure appearance, model defaults, and launch commands.
- Platform: Sign in to an Agentty Platform and pair a phone or browser through its relay; see Agentty Platform and Remote Control.
Press ?, shown as ?: help in the top bar, to list the shortcuts available on the current page. With NO_COLOR, selections use bold reverse video.
Session chat shows [size], the title, and added and removed line totals, plus any linked review request. Scroll history with j / k or the arrow keys; g jumps to the oldest output and G returns to the newest and follows updates. The composer border shows agent/model [reasoning], response style, speed when supported, and timers such as Timer: 2m 0s Β· Started 4m ago. The footer shows the active directory, branch, and ahead/behind counts.
Archiving a session while you type discards unsent drafts, partial answers, and attached images. Up to eight session turns run at once; others wait for capacity.
Projects and Discoveryπ
Agentty opens the repository you launch it from. Otherwise, choose or add one in Projects. Unavailable saved projects stay in your history and show an error when opened. Older projects saved as repository subdirectories remain selectable with their sessions and settings.
On first launch, a popup offers once to scan your home directory for repositories. No is the default, and Agentty remembers your choice. Scanning may trigger operating-system folder-access prompts.
In Projects, press a to add a repository root by path or d to discover repositories in a folder. Paths can be absolute, relative to the current project, or start with ~. Scans search up to five levels and 200 repositories, skipping hidden folders, Agentty worktrees, and directory symlinks. Select results with Space, then press Enter to save them.
Resource Usageπ
The list tab header shows Processes, CPU, and RAM (resident memory) for Agentty and its descendant processes, including session agents, refreshed about every two seconds. CPU can exceed 100%, and shared memory may be counted more than once. Detached processes are excluded.
Project Syncπ
New worktrees start from the local base branch. Press s from a list tab to pull remote changes first. Sync runs in the background; until it finishes, creating or starting sessions, merging, and rebasing against that project's base checkout must be retried. Other projects can sync at the same time. The top status bar shows the current project's sync progress.
Sync and the background fetch reach only the remote you confirmed for the project; see Confirming the remote.
Ahead/behind counts come from a background fetch of the confirmed remote about every 30 seconds. When fetches keep failing, for example because the remote is unreachable or rejects your credentials, Agentty retries less often, down to about every eight minutes, and keeps showing counts from the last successful fetch. A successful fetch or s sync restores the normal cadence.
A red [merge conflict] label means a session's committed branch conflicts with its base.
For a linked GitHub pull request, a green [ready] label means GitHub reports the open, non-draft request as cleanly mergeable under the repository's rules. [ready (bypass)] appears when you can bypass branch protections, every required check has passed, and either only a required approval is missing or a draft has no conflicts and no unresolved review comments. Labels refresh every minute; a request that stays unchanged for a few minutes is checked about every five minutes until it changes.
Session Lifecycleπ
| Status | Meaning |
|---|---|
| Draft | Prompt staging or workspace setup; work has not started. |
| InProgress | Agent is working. |
| Review | Changes are ready to inspect. |
| AgentReview | Focused review is running. |
| Watching | Review-ready; linked review request is watched. |
| Question | Agent is waiting for clarification. |
| Queued | Waiting in the Agentty or GitHub merge queue. |
| Rebasing | Session branch is syncing. |
| Merging | Changes are merging into the base branch. |
| Merged | Merged remotely; waiting for manual local target sync. |
| Done | Completed; worktree removed. |
| Canceled | Canceled; worktree removed. |
New sessions open the composer while their workspace is prepared; submit right away and the prompt waits for setup. When the platform you are signed in to offers Sync and the project names its Sync project, the first message also waits for the platform's answer, which holds the session back while another session works on the same task. If setup fails, press s in session view to retry. Prompts and images whose turns never began survive restart; review the transcript before retrying a turn interrupted during dispatch. Startup restores interrupted rebases to Review; storage or Git cleanup failures must be resolved before startup finishes.
Typical Transitionsπ
flowchart TD
Draft --> InProgress
InProgress --> Question
Question --> InProgress
InProgress --> Review
Review --> AgentReview
AgentReview --> Review
Review --> Watching
Watching --> Review
Watching --> InProgress
Watching --> Rebasing
Review --> Rebasing
Rebasing --> Review
Review --> Queued
Queued --> Merging
Queued --> Merged
Merging --> Done
Review --> Merged
Merged -->|Manual target sync| Done
Review --> CanceledActive Turns and the Message Queueπ
Press Enter during InProgress or Rebasing to queue a message. Messages, session sync (r), and publishing (p) run in submission order after the active work and are listed below the status. Repeated r presses queue one sync.
During InProgress, Ctrl+C removes the newest queued message; with none left, it stops the turn and cancels queued branch actions. Rebases cannot be interrupted. Queued chat survives project switching but not an Agentty restart.
Harnesses that accept input mid-turn, currently Claude and Codex, show Ctrl+s below queued chat. It sends the queued messages into the running turn, oldest first, so the agent reads them before it finishes; they then appear in the transcript as your prompts. Messages with images still wait for the next turn, and any message the agent does not accept stays queued with a notice. Stopping the turn discards them like the rest of the queue. Other harnesses keep queued chat for the next turn, and so do task and graph runs, which work in their own conversations.
While work runs, / offers only /model, /reasoning, /style, /fast, and /usage. /model and /fast changes wait until the active work and queue finish and appear as the last queued action; choosing the current value cancels the change. Pending changes are lost on restart.
While composing, Tab focuses chat for scrolling; from there, d previews changes and q returns to the list with the draft kept.
In Diff mode, add file, line, or range comments and press s to submit them with the draft and images. Leaving Diff mode with unsent comments asks whether to submit them; declined comments are kept until the next turn starts. Read-only sessions cannot submit comments. See Diff Mode.
An open diff of a live worktree re-reads it every 10 seconds, so edits made while it is open appear without reopening it. The selected file and line stay selected while they still exist; an update waits while you edit a comment or select rows.
Continuing Long Sessionsπ
Follow-ups keep the active goal and accepted decisions unless you cancel or replace them; a status question does not cancel work. Long sessions send opening and recent context with access to the full saved history. Agents reuse successful checks while their inputs are unchanged and still run repository-required checks.
Focused Reviewπ
Agentty reviews a changed diff automatically when a session enters Review; unchanged diffs and stopped turns are skipped. While an approved graph is running or waiting on you, the review waits until the graph finishes, fails, runs out of provider calls, is canceled, or pauses. When a turn, such as an automatic orchestrator turn, starts while the review prepares, the review waits until the turn ends. Press f to show the review, request one, or bring a running review's progress into view. Results stay visible until the next prompt. A conflict-free sync keeps them, and so does an automatic orchestrator turn, which changes no files: the review shows again once the turn ends.
Reviews read the diff, conversation, files, and history and may browse, but recommend checks instead of running them. Each finding is verified against source; findings whose cited code does not match the diff are marked unanchored. Coverage lists processed and unfinished files; a processed file is not guaranteed defect-free.
Each attempt has a 128-call budget and a 30-minute deadline. A Partial result keeps its findings and lists unfinished checks; an empty suggestion list does not mean the review completed. Press f and confirm regeneration to resume a partial review for unchanged inputs, including after restart. Completed reviews, changed inputs, and accepted syncs start fresh.
Reviews apply criteria for the changed file types and test code. They also flag added code that duplicates existing code or could be materially simpler, but not naming or formatting preferences. Add project criteria in .agentty/review-rules.json in the session worktree:
{
"rules": [
{
"path_prefix": "src/api/",
"extensions": ["rs"],
"instructions": "Check authorization before accessing tenant data."
}
]
}Both filters must match when present; omit one to match everything. Use relative path prefixes and extensions without dots; renames match old and new paths. Rules add to the standard review policy, and an invalid file stops the review with an error. The file is limited to 64 KiB and the selected criteria to 8,000 bytes; shorten instructions or narrow the review if they exceed it. Regenerate a review to apply changed criteria.
Use /apply to have the agent verify suggestions and apply those that remain valid. Agentty automates this for up to three iterations.
Session Output Markdownπ
Chat renders headings, lists, quotes, code blocks, and tables, keeping indentation when lines wrap. Tabs use four-column stops.
Mermaid code blocks render simple flowcharts (TD, TB, and LR), entity-relationship diagrams, and sequence diagrams; labels over 32 characters are truncated. Unsupported or oversized diagrams stay readable as code. Markdown file previews use the same renderer.
Forking a Review Sessionπ
Press F in a Review or AgentReview session to fork it after confirmation. The fork gets a new worktree from the source commit and a copy of the saved conversation; uncommitted changes are not copied. Publishing, review state, usage, and timing start fresh.
Commit and Merge Behaviorπ
After each file-changing turn, Agentty commits the changes. Until you publish the branch, it creates or updates one session commit, and reverting all changes removes the empty commit. After publishing, each file-changing turn adds a new commit instead, so reviewers can see what changed since their last look.
The project's Fast model writes each message, honoring the coauthor setting; that can be a harness model. The session commit message covers the cumulative changes, and a later commit covers only its turn. If message generation fails, auto-commit stops and the worktree stays intact.
Agentty never commits a Git repository nested in the worktree, such as one an agent created there; it stays on disk, untracked. Its diffs and status checks ignore submodules. An initialized submodule still works as before. While any other repository sits at a submodule path, Agentty stops committing and rebasing and says which path to clear.
The Fast model also refines session titles from the overall goal. Draft titles update as messages are staged, committed work uses the session commit title, and failed refinement keeps the provisional title. Commits added after publishing leave the title unchanged. Generated session titles, commit messages, and review-request titles and descriptions are in English unless the project's agent instructions specify another language. Harness models are the exception for session titles: Agentty sends them the title request without the project's instruction files or tools, so they refine titles in English.
A Git index lock is retried for five seconds, then reported as [Commit Error]. Agentty never removes the lock; wait for active Git operations to finish, and let only the repository owner remove a confirmed stale lock.
If the project has pre-commit configuration but no installed hook, session creation warns you: continue with Enter or cancel with Esc / q, and install the hook with prek install or pre-commit install. Commits without the hook show [Commit Warning]; failing hooks stop commits.
Session commits and session sync run the pre-commit hook inside Agentty's native sandbox for the session's worktree, with the grants of Harness session commands, because the hook or its configuration can come from files the session wrote. Where the sandbox cannot run, the hook runs without it and the session shows the sandbox warning. The squash merge (m) and conflict resolution during project sync (s) run the hook in a sandbox scoped to your checkout instead, and fail where the sandbox cannot run. Agentty's own Git commands run no other hooks, neither from the hooks directory nor defined in Git configuration (hook.<name>.command): commit-msg, prepare-commit-msg, and post-commit hooks are skipped, and pushes skip pre-push hooks, so run git lfs push <remote> <branch> yourself if the project stores files with Git LFS. Hook tools keep their caches in the sandbox's temporary directory, so a session's first commit and each squash merge set up hook environments again. Both sandboxes keep the repository's Git metadata read-only and give the hook a throwaway copy of the index and an empty object directory instead, so hook managers such as prek and pre-commit can set unstaged changes aside and restore them. Whatever the hook stages goes to that copy and is discarded. A session commit stages the worktree again after the hook passes, so files the hook rewrote are part of it; the squash merge commits only what was staged before the hook ran. Hooks that write references, such as git stash, still fail, and tools a hook starts must clear GIT_INDEX_FILE and GIT_OBJECT_DIRECTORY before running Git in another repository.
Agentty's Git commands also ignore some programs configuration names: fetches and pushes run Git's own git-upload-pack and git-receive-pack whatever remote.<name>.uploadpack or remote.<name>.receivepack say, a fetch without a remote fetches only the default one even with fetch.all, the squash merge's diffs use no external diff or text conversion, and logs check no signatures. With Git 2.45.0 or later, or a patch release of 2.39 to 2.44 from 2.39.4, 2.40.2, 2.41.1, 2.42.2, 2.43.4, or 2.44.1 on, no command fetches a missing object, including the native harness's read tool and, unless a command overrides the variable, its bash tool, so a partial clone (git clone --filter) cannot start sessions until it has every object they need. Older Git still fetches it.
For an unlinked session, m queues a local squash merge using the session commit message, followed by the titles of any commits added after publishing. The target checkout must be clean. A failed rebase or merge returns the session to Review. Linked review requests merge through their forge; see Review Request Sync.
Session sync (r) rebases onto the local base for unpublished sessions, or onto the fetched remote base for published ones. The session agent resolves conflicts; Agentty stages the repairs, runs the installed pre-commit hook, and continues. After three failed hook repairs, the rebase aborts with [Sync Error] and nothing is pushed. A conflict clears the focused review. In the session list, r confirms and then syncs every running or review-ready session of the active project; running sessions sync after their turn, and each rejected sync reports [Sync Error] in its own session.
[Main Checkout Warning] means tracked files in the main checkout changed during a turn and remain dirty. Inspect them before continuing.
Continuing a Terminal Sessionπ
Press c on Done or Canceled to confirm a new continuation draft. It uses the merged commit or saved conversation as context and leaves the original session unchanged.
Session Typesπ
Press a on Sessions and choose a type. Unavailable types are shown muted.
- Regular: The first
Enterstarts work. - Draft: Each
Enterstages a message;sstarts them together and creates the worktree from the current base branch.
Any session can switch to Agentty's built-in agent loop by choosing ag-harness in /model; see Harness Agent.
The orchestrator session type is retired. Former controllers and their children remain independent sessions with transcripts and workspaces intact; pending campaign work is stopped, and former controllers and research sessions stay read-only.
Stacked sessions are retired. Existing stacked sessions become independent sessions; unfinished ones target their root session's base branch.
Branch Publish Flowπ
Press p to publish a GitHub pull request or GitLab merge request. During a turn or rebase, publishing waits in the queue.
- When the session's remote is not confirmed yet, Agentty asks you to confirm the remote it pushes to; see Confirming the remote.
- Keep the default branch name or enter one that does not exist remotely. The name is fixed after publishing. A new review request targets the session's base branch, so publishing stops before pushing when that branch is missing from the remote. An open review request that already exists for the branch keeps its own target.
- Agentty pushes, then creates or refreshes an open review request. A first push under a name you entered expects that branch to be absent, and a later push expects it to hold exactly the commit the session last pushed. When the session has no record of the branch, as for the first push of the default name, or the branch moved since its last push, Agentty replaces it only when it holds a commit the session branch once had as its tip and has moved away from, the idea behind Git's
--force-if-includes, and otherwise pushes only if that adds to what the branch holds; if not, it stops and names the commit the remote branch holds, so you can bring that work into the session branch or publish under another name. On a remote that pushes to another URL than it fetches from, or to several, such a branch is created or fast-forwarded, never replaced. A remote branch deleted after its pull request merged is created again by the session's next push. - The request URL appears in chat. Later completed turns push their new commits to the same branch automatically when no chat or sync is queued. Retry failed pushes with
p.
A new review request takes its title from the session commit title, adjusted only to satisfy repository PR/MR title rules. Titles then stay stable unless the primary objective changes. Descriptions follow repository PR/MR instructions (AGENTS.md, CLAUDE.md, or GEMINI.md), skills, and templates, or else use Why?, What?, and Impact? sections. They compare the published branch with the request's current target branch and exclude uncommitted edits. Updates preserve existing content, notes, and checklists, and the coauthor setting adds one Agentty attribution footer. Generation failures are reported for retry. Agentty checks for concurrent remote edits before updating, but a later edit can still race.
Publishing requires Git credentials and an authenticated forge CLI: gh for GitHub or glab for GitLab. See Forge Authentication.
Addressing Review Commentsπ
Open linked comments with c, select actionable threads with Space, and press Enter to have the agent address them in one turn. Resolved threads and standalone comments are read-only; outdated unresolved threads stay actionable. While the session is busy, the batch joins the queue; while clarification is pending, it waits for your answers. Only one review-comment batch or watched follow-up can wait at a time.
After a successful commit and push, Agentty replies to each selected thread, in the language of its latest reviewer comment, and resolves those reported as fixed. Threads needing no change get an explanation and stay open; a reviewer follow-up makes them actionable again. Review targets survive clarification and restart.
[Review Comments Warning] reports failures, and failed or incomplete batches stay pending for the next turn. Later pushes retry saved replies while the fix commit is still the branch tip, without duplicating posted replies; if the branch has changed, continue the session to re-evaluate them. Stopping a review turn also stops its push and thread updates, which remain retryable.
Review Request Syncπ
Published review-ready sessions refresh forge status in the background:
| Indicator | Meaning |
|---|---|
β | Branch published; no request found. |
β <id> | Request is open. |
β <id> | Request was merged. |
β <id> | Request was closed. |
A GitHub pull request waiting in its merge queue shows Queued until GitHub merges it or removes it from the queue, which returns the session to Review or Watching. A remote merge moves the session to read-only Merged, keeping its transcript and diff in Active. Sync its local target branch with s from the list to move it to Done and remove the worktree; if that fails, follow the warning and retry. Closing an unmerged request cancels its session and removes its worktree.
Merging a Pull Requestπ
While a GitHub pull request shows [ready] or [ready (bypass)] and its session rests in Review or Watching with nothing running or queued, press m in session view and confirm with y:
[ready]: Agentty merges the pull request with the first method the repository allows: squash, then a merge commit, then rebase. If the base branch requires a merge queue, the pull request joins the queue instead and the session shows Queued.[ready (bypass)]: The confirmation asksBypass branch protections?. Agentty marks a draft ready for review, then merges with your administrator rights, skipping the missing approval and any merge queue.
The session shows Queued while Agentty merges, so no reply, sync, or watched follow-up starts meanwhile. Agentty reads the pull request again first and changes nothing when it is no longer ready, is already merged or queued, or is not at the session branch's commit; push or sync the session, then retry. [Merge Error] says why, and the session returns to Review or Watching. A merged pull request moves the session to Merged, as a remote merge does. A failure after a draft was marked ready leaves it ready for review. GitLab merge requests are merged on GitLab.
Watching a Review Requestπ
When you publish a branch that is not pushed yet, Agentty asks whether to watch the review request, with Yes preselected: Enter or y watches, n publishes without watching, and Esc cancels publishing. Press W in session view to start or stop watching later.
A watched session shows Watching instead of Review and keeps every review action. About once a minute, Agentty checks the request and starts at most one follow-up. A request that stays unchanged for a few minutes, with no checks running, is checked about every five minutes until it changes:
- Merge conflicts: Syncs the branch as
rdoes, unless the request now targets a different branch than the session. - Review comments: Addresses unresolved threads awaiting a response from you or a trusted author, as in Addressing Review Comments. Once all checks finish, failed checks join the same turn.
- Failing checks: Once all checks finish, starts a turn to fix the failures. If other work is running, it waits in the queue as
fix N failing checks: <names>. On GitLab, the head pipeline counts only when it ran on the request's latest commit or is a merged results or merge train pipeline, and acancelingpipeline has not finished yet.
Trusted authors are GitHub owners, members, and collaborators, GitLab project members with at least the Developer role, and review bots listed in .agentty/review-watch.json in the project folder:
{ "trusted_bots": ["greptile-apps"] }On GitHub, a listed login matches only a bot account; on GitLab, it matches the username. A trusted bot's own failed check is not fixed separately, because its findings arrive as comments. Without the file, no bot is trusted.
Each conflict or failed check is tried once per pushed commit, and each thread once per new reviewer comment. If a fix turn pushes nothing, Agentty reruns the failed GitHub Actions or GitLab pipeline jobs once; checks that still fail, or cannot be rerun, get one Leaving N failing checks to you notice. [Review Watch] notices record each follow-up and any failure, which is retried on the next check. Watching pauses during turns, sync, and focused review, ends when you press W or the request is merged or closed, and runs only while Agentty is open with the session's project active.
Clarification Interaction Loopπ
In Question, answer each question; Agentty sends all answers together as one follow-up turn.
Choose an option with j / k or the arrow keys and Enter, or move past the options to type a free-text answer; a blank answer means no answer. Free-text answers support @ file lookup and pasted images. Choosing a predefined option discards images pasted for that question.
A Harness session asks Run outside the sandbox? when its agent needs a command to leave the sandbox; only its predefined options allow the command. See running outside the sandbox.
Ctrl+C from the answer input ends the turn without replying; for graph questions it only closes the panel. q outside free-text input returns to the list, and reopening resumes the unanswered questions. See Question Input.
Prompt Input Extrasπ
Paste a clipboard image with Ctrl+V, Ctrl+Shift+V, or Alt+V; in a draft session, these also open the composer. Each image appears as [Image #n]; typing that text does not attach a file. You can keep typing while Pasting image... is shown, and Enter waits until the paste finishes. On Wayland, image paste uses wl-paste when available; unsupported clipboards show an inline error.
Up / Down browse prompt history, keeping attached images. Type @ to look up repository files; Rust and Python files show their module documentation summary. Unstarted drafts look up files in the project checkout. See Prompt Input for editing keys.
During a turn, the output shows a live timeline. Each message the model writes starts a β’ step, with its time since the turn started on the right, and a dim β» Thought line for its reasoning. Below the steps, the turn's tool calls stay compact: one line of totals, such as 52 tools Β· 1 failed Β· 1 running Β· 38 commands Β· 9 reads followed by MCP, skill, and other tool names with their counts, then only the call that finished last and the calls still running. Each call row shows β, β, or a spinner, a verb such as Ran or Edit, what the call acted on, and its result, such as exit 0, +38 β4, or rejected Β· <reason>. A failed call keeps its last output lines, a running call shows how long it has run, and a finished call that took 5 seconds or more shows its duration. A status line above the composer leads with a word, such as Deep-diving, that changes every 30 seconds of the turn. After it, a muted detail shows what the turn does now and for how long, such as Running a command 12s or a reasoning title, then the step count and the turn's time. The detail names only the kind of a running call, because the call's row already shows what it acts on.
When a turn that called tools ends, a summary replaces the timeline above its saved answer or error notice: Edited lists each changed file with its added and removed lines and edit count, Failed lists failed calls with β and how the turn recovered, such as β rerun exit 0 or β retried after re-reading, or β when it did not, Explored counts reads, searches, and commands, and Used counts MCP, skill, and other tool calls. A β Worked rule ends it with the turn's time, steps, tool calls, and failures. A Codex patch that changes several files is listed under its first file with the whole patch's line counts. Older sessions keep their Tools, MCP, and Skills lines. Codex, Claude, Antigravity, and Harness report this activity. Provider failures show a short error and captured output where available.
Session Sizesπ
Sizes reflect lines changed against the base branch, committed or not, and refresh while a turn edits files:
| Size | Changed lines |
|---|---|
| XS | 0β10 |
| S | 11β30 |
| M | 31β80 |
| L | 81β200 |
| XL | 201β500 |
| XXL | 501+ |
Slash Commandsπ
Type / in the composer to open a fuzzy-matching command picker. From session view, / opens a fresh composer, replacing any saved draft.
| Command | Action |
|---|---|
/apply | Verify and apply valid focused-review suggestions. |
/graph | Request a graph proposal. |
/model | Choose a backend and model, including ag-harness models. |
/reasoning | Set reasoning effort for this session. |
/style | Choose concise, balanced, or detailed answers. |
/fast | Toggle normal or fast responses for Claude or Codex. |
/usage | Show this session's token usage and estimated cost. |
/apply requires a completed focused review. Chat turns always run with editing permissions; see Permissions.
See Agents & Models for speed costs and model compatibility.
Agentty verifies and applies focused-review suggestions automatically, for up to three turns per message; a new prompt resets that limit. A notice in the chat explains this after a session's first message. Turn off Auto Address Comments in the project's Settings to disable it.
/style applies to later turns: Concise keeps essential results, caveats, and verification; Balanced adds useful context; Detailed explains decisions and trade-offs. Explicit prompt instructions take precedence, and style never changes permissions or required output.
Session Usageπ
/usage, or u in session view, opens the session's token usage; Esc closes it, and j / k or PgUp / PgDn scroll it when it is taller than the terminal. It reads only what Agentty recorded, plus each running turn's usage after every completed model request, refreshes when new usage is saved, and never calls a model. A failed or stopped turn keeps the usage its agent reported before it ended, including a request cut off at its output limit. After a failed Claude Code turn, the next turn counts only its main conversation at list price, leaving out subagents, so the failed turn's usage is not counted twice.
The panel sums the estimated cost, tokens, turns, and requests, shows the latest and largest context fill, and lists one row per model and purpose. Utility work such as titles, commit messages, reviews, and rebases appears dimmed after the model. Input includes cached tokens and Output includes reasoning. Narrow terminals drop the cache-write, reasoning, context, and cached columns first; the cost column stays.
Figures carry a mark when they are not exact, and a note under the table names the cause:
| Mark | Meaning |
|---|---|
β₯ | Lower bound: some requests reported no tokens or had no price, or the run predates detailed usage. |
β€ | Upper bound: cached input priced at the input price, with no cache price. |
~ | Both a lower and an upper bound. |
β | API-equivalent: plan-billed usage priced at API list prices; no per-token charge. |
? | Unreported: no request of that model reported token counts. |
unknown | Unpriced: no price for that model; a total over other priced models leaves it out. |
β | Not recorded: the backend does not report it, or the run predates detailed usage. |
A lower-bound cost below half a cent reads β₯$0.00. Costs are estimates from built-in list prices, configured prices, the agent's own report, or the cost a model endpoint reports with each response; the provider's bill is authoritative. On a subscription login, the panel title names the login, and costs are API equivalents: what the same tokens would cost at the provider's API list prices. They are never added to charged estimates; a total with both shows them side by side, such as $1.20 + β$5.03. A plan model without an API twin reads unknown. See subscription logins for how each backend is detected.
A live usage readout follows each turn. While a turn runs, the right of its status line shows what fits in at most 40 columns of the turn's input (cache included) and output tokens, the latest context fill, and the turn's estimated cost, such as ctx β°β°β±β±β± 38% Β· $0.24 turn once a long prompt's tokens no longer fit. A pane 80 columns wide or narrower leaves the status line no room for it. Between turns the composer shows only the timer; open /usage for the session's context and estimated cost. The readout updates after each completed model request, never per streamed token. The gauge turns to the warning tone from 75% and the danger tone from 90%; without a known window the readout shows the prompt size, such as ctx 71.2k. It uses the panel's marks, reads $? for a cost without a price and local for a local model, and as space narrows drops the tokens, the gauge cells, and the turn cost in that order.
Session Trajectoryπ
T in session view opens the trajectory of an ag-harness session: every settled turn as a collapsible tree beside an inspector. Each turn shows its duration, tokens, and tool calls; expanding it lists, in order, the prompt envelope (CONTEXT), your prompt (USER), reasoning (THINKING), assistant text (ASSISTANT), each tool call with its target (TOOL CALL) and nested result (RESULT), and the final answer (ANSWER). The inspector shows the selected node in full: arguments, the whole tool output, and the turn's token usage. / filters the tree to nodes whose text matches. Terminals narrower than 100 columns show one pane at a time; Enter on a leaf opens the inspector.
The page reads the session's durable harness history in the background, showing Reading the trajectory⦠meanwhile, and never calls a model. It shows settled turns only, so a running turn appears once it ends. The history keeps no tool durations or exit statuses, so a result reads as answered or, when the turn stopped first, NO RESULT; the session's system prompt is not part of it. Sessions on other agents have no harness history, and the page says so.
Agent Definitionsπ
Generated graph proposals and the Task API choose agents from a catalog of bundled planner and implementer definitions plus repository definitions in .agents/agents/<id>/agent.md. A repository definition with a bundled ID overrides it. Global definitions are not loaded.
Definitions use simple key: value frontmatter followed by Markdown instructions:
---
id: planner
name: Project Planner
description: Plans changes for this project
enabled: true
permission-mode: read-only
---
Inspect the project and propose a concrete plan, including validation.id defaults to the directory name; name, description, and the instruction body are required. enabled: false hides an agent, including a bundled one. permission-mode accepts inherit (default) or read-only and cannot expand session permissions. Definitions inherit the session's provider and model (model: inherit is accepted). Other model overrides, tool lists, hooks, MCP configuration, and Claude-specific fields are unsupported and produce a diagnostic, so convert Claude YAML subagents to this subset. Proposals capture the definitions they use, so later edits affect only new proposals.
Settings Scopeπ
Move the selection with j / k, then press Enter to open or edit a setting.
Global settings control the theme, the subagent limit, which applies after restart, and two graph limits that apply at once. Graph Writers caps how many graph nodes that change files run at the same time across all sessions: Auto, the default, allows half your cores, at least two and at most eight, or choose 1, 2, 4, or 8; it also sizes their build job caps. Lowering it lets running nodes finish and starts no new one until fewer run than the limit. Free Disk Floor, 20 GiB by default, is the free space a new standalone worktree needs, or twice the largest one of the project when that is more; 0 GiB keeps no fixed amount, so only twice the largest measured worktree, and as much again for each one not measured yet, counts. Project settings include model, reasoning, speed, and style defaults, commit trailers, launch configurations, and automatic review addressing. Defaults affect new sessions; use slash commands to change an existing one. Share Host Caches is not a default: it applies from the next turn of every session in the project and has no slash command. It lets sandboxed Harness sessions write your dependency caches, which every build on your machine uses. See Backend Defaults for the Smart, Fast, and Review roles.
Launch Configurations is a command list: add with a, edit with e or Enter, delete with d, and reorder with J / K. When Agentty runs in tmux, session-view o runs a configured command in the worktree, or opens a selector if there are several.
Generated Graph Proposalsπ
In a prepared idle session, select /graph, describe the task, and press Enter; Esc disarms it and keeps your draft. The composer title shows Graph, and pasted images reach generation and every proposed node. Generation reads the workspace; no node runs until you approve. A session can hold several graphs: generation either starts a new graph or adds work to one the session already has.
Chat and questions stay in the left pane. The right pane, at most 35% of the width, shows the proposal version and how many nodes are done in its title. Below the overall status, a progress bar fills green for finished nodes and blue for working ones, with a highlight sweeping through active work. Status glyphs spin while a preview generates or nodes work. Nodes form a timeline: each node's status glyph leads its name, with the status (Waiting, Working, Needs your input, Done, Failed, Uncommitted, or Canceled) on the right and its model and the reasoning effort it runs at, such as claude-opus-5-5 [high] (the session's current effort for task conversations, high for fresh nodes), then its objective wrapped underneath, up to 128 characters. The rail between nodes names what each one waits for, such as after inspect or needs report accepted, in a highlighted label; it is dotted (β) while blocked and solid (β) once satisfied. When space runs out, objectives shrink to one row and are then hidden along with models; when the graph is still taller than the pane, a one-row-per-node summary prioritizes nodes needing attention, each parent with its children, and counts hidden nodes. Proposals are restored when you reopen the session or restart Agentty.
A node can have children: steps of the same deliverable that share its workspace, such as tests for the change it makes. Children appear indented under their parent, in the order they were proposed; in the summary, a parent comes first and the child that needs you most follows it. Below the parent's name, a line such as 1 of 2 children working or 2 of 2 children done, with Β· 1 failed in red when a child failed, shows how its children are doing. Children cannot have children of their own, and they run like any other node: a node waits only for the nodes it depends on, so a child waits for its parent only when it depends on it, and nothing waits for a parent's children unless it depends on them. The inspector preview numbers children under their parent, such as 1.2.
While a proposal is generated or a reply is being decided, a Draft or Review session shows InProgress, starting as soon as you send the message. A running graph keeps the session InProgress while any of its nodes runs, including between a node and the next node it unblocks; it returns to Review once the graph finishes or waits for you. A message sent meanwhile starts at once. Ctrl+C cancels generation or drops an undecided reply.
Independent read-only nodes run at the same time. Nodes that change files run one at a time, and never while a read-only node or a chat turn uses the workspace. Across all sessions, at most the Graph Writers setting of them run at once; one that waits for a slot shows a reason such as Waiting for build capacity (2 of 2 writers running) in the inspector and starts when a slot frees. Their build and test commands run with capped parallel jobs.
When your request asks for separate branches or separate pull requests, the proposal can make a node standalone: it and its children then work in a worktree of their own beside the session's, so standalone nodes run at the same time as each other and as your chat. Each is created when its node starts, which the chat reports, such as [Worktree] Created wt/1a2b3c4d-5e6f7a8b for node api from main (2 of 10 worktrees in use); it starts from the branch of the work its node depends on, or from your base branch. The node commits there, on its own branch, which is never pushed and does not reach the session's branch; the chat names the node and branch of each such commit. When a node works in its own worktree, Agentty writes each mention and issue reference in that commit's message with a space after its sign, such as @ alice, # 12, ! 12, and GL- 12, so the message is meant to notify nobody and close nothing once the branch is published. The message also loses leading draft markers such as Draft: and [WIP] from its subject, reads fixup ! for a fixup! or squash! there, shows a CI skip marker such as [skip ci] as [ skip ci], and escapes a body line that starts with /, such as \/usr/bin, so a forge runs no quick action from it. A session keeps at most 10 worktrees; the inspector header shows the use and the space they take, such as Worktrees 2/10, 3.4 GiB, and a node that would need another shows Waiting for a worktree (10 of 10 in use).
Once Agentty has recorded a pull request for a standalone node's branch, the inspector shows it in a row under the node, in the forge's words: PR #12 draft or MR !12, then merged or closed when it ended, what Agentty last read about an open one, and, after problem:, the reason publishing is stuck, or, after worktree kept: on a merged one, why its worktree was not removed. The row is not a node, so j and k skip it. The node's details give the address and the branch it merges into, and v opens the address in your browser, but only when it is the one your repository's origin remote gives that number on that forge; otherwise a notice says it was not opened. v reads the remote from the session's folder, so once the session has merged or been canceled and that folder is gone, the row stays but v says it cannot read the remote. A node whose worktree Agentty has not decided to publish shows no row.
When the checks of a node's pull request fail on the commit Agentty pushed, Agentty adds a fixer node under it, such as fix-1a2b3c4d-1-1, which works in the same worktree once the node is done. Its changes are committed there and pushed to the same pull request, and its checks are read again. The fixer gets the failed checks as data, and its request tells it not to commit, push, merge, or run gh or glab; Agentty commits and pushes its changes. Each step is one line in the chat, in the forge's words, such as Fixing 1 failing check: test of draft #12 for node "api" with node "fix-1a2b3c4d-1-1". At most three fixers run per pull request. Checks a fix left failing are rerun once when the forge can rerun them, and then left to you with one line naming them. While the graph is paused, one line asks you to resume it, and the fix starts once it runs. When the fixer is added but its graph cannot run it, the line says so and asks you to resume the graph. When the graph was canceled, its worktree is gone, or the session's graphs already hold 32 nodes still to run, one line says no fixer is added. A conflict with the base branch is said once per commit.
When a draft's checks have all finished on the commit Agentty pushed, with none failed, running, cancelled, or waiting for a person, at least one succeeded, and no conflict, Agentty marks the draft ready for review once per commit and says so, such as Draft #12 for node "api" passed its checks and is ready for review. Merge it on GitHub. Agentty never merges: that stays with you. A draft whose checks are held, all skipped, or missing stays a draft with one line saying why, and you can mark it ready yourself. Right after a push the forge may not list every check yet, so Agentty acts only when two reads in a row show the same finished checks: a check that is queued or running, or one that joins the list, makes it wait for the next read, and "no check ran" is never said on the first read. When the forge refuses or still shows a draft, one line says so and Agentty does not ask again for that commit.
A pull request of a node built on another node's work targets that node's branch. Once both are open, Agentty links the line they form into a GitHub stack with gh stack link, and again whenever another node's pull request joins the line; publishing never waits for it. The row and the details then say stack 7, or in a stack when gh stack names no number. When the link cannot be made, such as without the gh-stack extension, the pull requests keep the bases Agentty set when it opened them and say base set by hand, and the chat says once per session and reason why, with the gh stack link command that links them yourself. A GitHub stack is one line, so when two nodes build on the same node, the second one's says not in a stack: GitHub stacks are a line and keeps its base. GitLab has no stacks: the details say the merge request targets the branch it builds on, and the chat says nothing. Checks may not run on a pull request whose base is not your base branch.
When the pull request below a node's merges, Agentty moves the node's branch onto the branch it merged into, as it does for a branch whose base was pushed again, and says so, such as Rebased node "ui" onto main after draft #12 merged. It then changes the base of the node's own pull request to that branch, unless the forge already did, pushes the rebased branch to the same pull request, and links the pull requests above it into a stack again; the pull request keeps its number and its text, and its row shows the base the forge shows. When the forge refuses to change the base, the row and the chat say so, the pull request keeps its old base, and Agentty tries again the next time it publishes the session's branches. The merged node's worktree is removed once the merge proves nothing in it is missing.
When a branch conflicts with the branch it moves onto, Agentty adds a fixer node under the node, such as fix-1a2b3c4d-1-1, and says so, such as Rebasing node "ui" onto main conflicts in 1 file: node "fix-1a2b3c4d-1-1" resolves them (attempt 1 of 3). The node's worktree then holds the new base with the node's changes applied again and the conflict markers left in the files, and the fixer resolves them keeping both sides' intent; its request tells it not to commit, push, or run Git or forge commands. Nothing is pushed while the fixer works. Once it is done and its changes are committed with no conflict markers left, the branch is pushed to the same pull request, and one line says Resolved the conflicts of node "ui" with main; its pull request is updated. When the fixer fails, is canceled, or leaves markers or nothing to commit, the branch goes back to where it was and one line says the conflicts were not resolved and the pull request is left as it is. The fixers share the limit of three per pull request with the fixers of failed checks. When none is left, the graph is paused or canceled, or the session's graphs have no room, the branch stays where it is, with one line saying it conflicts.
Discarding a node's worktree, canceling a node, a graph, or the session, and a cancel the chat asks for never close a pull request or merge request, change its record, or delete or push a branch on the remote; they remove only what is on your machine. Each confirmation names the open ones of the work it removes, as The draft pull request #12 stays open and its remote branch is not deleted. or, on GitLab, with merge request !4. Close it on the forge yourself when you no longer want it.
Agentty keeps the space these worktrees take in check:
- A new worktree is created only while the disk keeps
Free Disk Floorfree, or twice the largest worktree of the project when that is more; otherwise its node showsWaiting for disk space (5.0 GiB free, 60 GiB needed)and starts once there is room. Worktrees still being created or not yet measured count as large as the largest one, or, while none is measured, asFree Disk Flooror 20 GiB, whichever is less, so nodes ready at once do not all start on the same free space; the waiting reason says how many it counts, such ascounting 3 worktrees not measured yet, and Agentty measures them in the background, at startup too. The chat says once that the node waits; Agentty looks again every minute, and whenever another node settles, and deletes nothing on its own. - After nodes settle, Agentty measures each worktree in the background with the harness directories of its nodes' attempts, where their dependency caches live. The inspector shows the size beside a node's worktree; a size starting
at leastcomes from a walk stopped early in a very large directory. - Press
fin the graph inspector to see what you can free: after a short measuring step it lists, for each of the session's worktrees whose nodes are not running and that hold no uncommitted or untracked files, the ignored directories of at least 1 MiB that your repository's committed.gitignorefiles name, such astarget/, with their sizes and the total. Everything it would delete is on screen; when more than fits, the rest is left out, and the list says how many, for another round. Typereclaimto delete them for good; Agentty deletes only listed directories still ignored that way, stops once a waiting node has room, and says in chat what each worktree freed. Files, directories that only your personal or per-clone ignore rules ignore, and directories with a Git repository inside are never listed. - An attempt's harness directory goes once a later attempt of the same node finishes, and with the worktree its node worked in.
A graph whose node waits for a worktree or for disk space no longer holds the session's automatic review, as one out of provider calls does.
Agentty never drops a worktree's uncommitted changes or commits unless a confirmation said so. A worktree gives its place back when:
- you cancel its running standalone node with
c, or its graph withx; both confirmations say that the worktree goes with the changes it has not committed, and a worktree whose branch holds commits stays. Stopping a turn or quitting Agentty stops the node without dropping anything; - its creation fails, or its node fails or succeeds and the worktree holds nothing;
- you press
don its stopped standalone node in the inspector, or on any node that owns one once the session has merged or been canceled, which deletes the worktree and its branch in the background and reports in chat how it went; when the worktree holds commits or uncommitted changes you typediscardfirst. While the session runs, a worktree stays as long as a node of a running graph that works in it, or that starts from its branch and has no worktree of its own yet, is pending, a pending retry included, or waits for answers; withdrawing those nodes or canceling their graph frees it; - the session merges, for each worktree that holds nothing;
- the pull request of its node merged, and Agentty finds the forge showing it merged at the commit Agentty pushed last, its node stopped, its branch still at that commit, its checkout on the branch, and no uncommitted change. The worktree and its branch go, the chat says
Removed the worktree of node "api": draft #12 was merged, andWorktrees 1/10becomesWorktrees 0/10. Otherwise the worktree stays and the pull request's row says why afterworktree kept:, for exampledraft #12 merged from a commit Agentty did not push, and Agentty tries again after nodes settle and at startup; - Agentty restarts after a crash cut its creation short.
So a session sits at 10 of 10 only while its worktrees hold work you have not discarded. A removal that keeps failing, for example because Git keeps the worktree's record locked, is reported in chat once; fix the cause, then press d on its node to try again, or delete the session.
These worktrees have limits for now:
- A standalone node's work stays on its own unpushed branch: Agentty has no way yet to merge or publish it.
- Canceling the session in the terminal removes its worktrees and their branches, and with them that work; its confirmation says how many it keeps. A cancel from anywhere else, such as a paired device or a closed pull request, removes only the worktrees that hold nothing and says in chat how many it kept; press
don their owners' nodes in the session's graph view (w) to discard them.
Reply in chat to act on a pending proposal. The session model decides what your reply means:
- Clear approval, such as "run it", approves the displayed version and starts it.
- A clear request to discard, such as "cancel", cancels the proposal.
- Anything else, including answers and requested changes, generates a new version within the generation limit.
When unsure, it revises. Wait for each decision before replying again. Images in a revision reply carry over to every later version; a reply with images always revises, so send a text approval afterward. At the generation limit, it approves without the images and says so.
Questions from a pending proposal or running node open in the same panel as clarification questions, and answers go to the exact version or node that asked. Ctrl+C closes the panel; reopen the session to show it again, or reply in chat. A paused graph continues once you resume it from w.
Approval does not accept later outputs. When a node waits for another node's output to be accepted, the producer shows Awaiting your approval, and chat shows its output with a prompt to approve it. A chat reply to it accepts it, as with "start implementing", or sends revision guidance; replies with images always revise. Outputs already consumed by a started dependent, or from nodes without a task conversation, can only be accepted. A paused graph, such as one restored after a restart, still shows the output as awaiting approval, and your reply resumes the graph before acting on it. This applies to the session's newest graph only: an older paused graph's output needs a resume from w first, and the panel says so instead of counting it as waiting for your reply.
When several items wait for a reply, such as outputs of two graphs, a node's questions, and a pending proposal, replies answer them one at a time in the order they arose. The composer title names the item your next reply answers, such as Reply to research βΊ inspect (1/2) or Reply to proposal; press n in session view to move to the next waiting item. In a session whose chat orchestrates its graphs, your message reaches the chat's model instead until n moves it to an item. A reply goes only to the item the composer named: if that item stopped waiting, or a new item started waiting before the title showed it, the reply is refused and keeps its draft so you can check the title and send it again.
Messages from a remote device answer only what the device shows, never what you chose with n: the pending proposal first, then the node whose questions it shows, then an output of the graph its summary shows. When only other items wait, the message is refused and names the item to answer in the terminal, or whose output to accept from the graph view. See reply order for the exact rule.
Once you approve a session's first graph proposal, the session's chat orchestrates its graphs: each message you write reaches the session's model with a status of the session's graphs, so it can say what runs and why a node waits, such as Waiting for a worktree (10 of 10 in use), and act on them for you. Prompts Agentty writes for you, such as /apply or an automatic fix, carry no status. While items wait, the composer title reads Chat (2 waiting) and your message still reaches the model; press n to move it to a waiting item for a direct reply, and again to move back.
While the orchestrator is on, its chat only plans and delegates: each turn on your messages reads the session worktree but never edits, commits, or pushes; the nodes it starts do the writing. Such a turn runs beside graph nodes that only read, and waits, saying so, while a node writes in the session worktree. The first such turn says once that the chat now delegates. Prompts Agentty writes for you, such as /apply or an automatic fix, still edit as before. Press O in the graph view for an ordinary chat that edits.
From your message, the model can withdraw a node that never started, answer a node's waiting question (marked as its answer, or forwarding your own words, which it can do only with the message you just wrote, not with answers to its questions), accept an output you asked it to accept, resume a paused graph, add calls to a graph's budget from the session's pool, add nodes to one of the session's graphs, or start a new one. A new graph is approved on the model's word and takes its calls from the pool, up to 48 and at least one per node; at most 2 graphs are started or extended per message, with 8 nodes each and 32 nodes in the session still to run, and every writer works in the session's own worktree. /graph still shows you a proposal to approve. Each action shows a [Graph] notice, and anything the host refuses, such as a node that started since the model saw it, shows [Graph Refused] with the reason. A cancel of a running node never happens on the model's word: the terminal asks you to confirm it once, and declining keeps the node running; if the node stops on its own first, the question is closed instead. The inspector header shows the session's pool, such as Calls 20/200: the calls the chat has allotted to graphs, not the calls graphs spend from budgets you approved. Press b in the graph view, with no spent budget selected, to raise it. When a node of an orchestrated session's graph succeeds or fails, or a graph completes, the chat shows it once, as nodes settle, such as [Graph] api of writers succeeded. or a failure with its error; a node's question, or an output awaiting your approval, shows its own notice instead, and a canceled or withdrawn node shows none. Work that ran before the session's chat began to orchestrate its graphs is never announced. Your next message's status tells the model what settled since then. Once nothing in the session runs or waits for you, an automatic turn acts on what settled in the last hour on its own, also right after Agentty starts; what settled earlier waits for your next message. It is shown as [Automatic Turn] 1 of 3, started by 2 settled events: β¦. An automatic turn never edits files, commits, pushes, or uses the web; it can only direct graphs: start or extend one, resume one, or raise a budget within the pool. The nodes of a graph it starts edit, commit, and push as any node does. Canceling, withdrawing, answering, and accepting outputs stay with you. Stop one with the same key as any turn; a message you send meanwhile waits behind it. After three automatic turns in a row that changed something, the chat says once that the orchestrator has settled work it has not acted on; send a message to continue. When the pool has fewer than 3 calls left, it says so once; press b in the graph view to raise the pool, and once what settled is more than an hour old, raising the pool says so and leaves it for your next message.
Press O in the graph view to switch the session's orchestrator off, and again to switch it on; the chat says which with a [Graph] notice, and while it is off the graph view's header shows Orchestrator off. While it is off, your messages carry no status of the graphs and no automatic turn starts. The graph actions of a turn that finishes while it is off are not applied, even when the turn started before you switched it off, and the chat says so. Actions still waiting, including a cancel waiting for your confirmation, are dropped, and the off notice says how many. The chat stops announcing nodes and graphs that succeed or fail. Running graphs keep running, and /graph still works without switching it back on. A message you type answers the first node question or output that waits, as in a session without an orchestrator; it reaches the chat's model only when nothing waits. Switching it on again shows what had settled before you switched it off, never what settled while it was off, and work still running then is announced and followed up when it settles.
Several Graphs in a Sessionπ
A session can hold several graphs, such as one or more research rounds and then an implementation built from what they found. /graph names no graph: generation sees the graphs earlier /graph requests launched that can still take work, up to eight with those that can still run first, each with its label, status, and nodes, and either starts a new graph with a short label, for a separate deliverable or a new round of work, or adds nodes to one of them, for more work toward that graph's deliverable. Canceled graphs, focused reviews, and graphs that ran before provider-call spending was recorded are never offered. When the choice is unclear or names a graph it was not shown, generation asks which one you mean instead of guessing. /graph is hidden while a node runs, so use it when the graphs are paused, wait for you, are between nodes, or have finished. Graphs run at the same time when their nodes allow it: read-only nodes of different graphs overlap, and nodes that change files still run one at a time.
When a proposal adds work to a graph, the preview lists only the new nodes and names the graph; you approve, revise, or cancel it by replying in chat as usual. New nodes can wait for that graph's nodes and use their outputs; nodes that already ran or wait for you keep their state. A completed graph can take more work too: Completed means every node the graph has now finished, and the added nodes run while the graph shows running again. Approval runs the new nodes from the graph's remaining provider calls, and resumes the graph if it is paused or completed. If the graph changed after you asked, approval fails; ask again. Canceled graphs take no more work.
Beside the chat, a session with one graph shows it with its label in the panel title. With several graphs, the panel lists each one by label, or graph N without one, with its status and how many of its items wait for your reply; running and waiting graphs show their nodes, completed and canceled ones stay one line, and a pending proposal follows them. N is the graph's place among the graphs your /graph requests launched, canceled ones included, so it never changes; two graphs with the same label show it beside the label, as research (graph 2). The inspector, the composer, and the proposal's questions and preview use the same names.
Duplicate approvals do not launch again. Pending proposals and undecided replies, to a proposal or to an output awaiting approval, survive a restart or project switch. A recovered proposal reply loses its images; a recovered output reply keeps them and resumes its graph. Stopping the session abandons an undecided reply. Approved graphs keep the limits fixed at approval and resume after restart with their remaining provider calls.
Execution Graph Inspectorπ
Press w in session view to inspect the latest proposal or saved execution graphs, including branches and joins. It shows the proposal version, model, captured agent instructions, objectives, access, dependencies, output gates, limits, execution state, blocked reasons, questions, and output versions. The node list shows children indented under their parent, with the parent's progress across them when the column fits it. It opens on the first row, and j / k move through it in that order; a node's details name its parent or its children. The header names the selected graph's position among the session's graphs, its name, revision, status, how many of its items wait for your reply, and how many outputs await approval after a resume; [ and ] move between graphs. Opening it never starts work. See Keybindings for navigation.
Available controls appear below the graph. a accepts the displayed output, e sends revision guidance to that node's task conversation, t retries a failed node, s resumes paused dispatch, and x cancels the whole graph permanently after you type cancel. d withdraws a node that has not started, together with the nodes that depend on it; a parent also takes its children. A child takes only its own dependents, which include its parent, and through it the other children, when the parent depends on it. Nothing that started can be withdrawn: if any of these nodes started, the inspector says which one and through which nodes, and withdraws nothing. A withdrawal of one node that leaves other work pending happens at once; one that takes more, or that leaves nothing to run, first lists what it takes and asks you to press Enter. The notice lists the children, then the other nodes it took.
Withdrawal is permanent. Once nothing is left to run, the graph completes: its driver stops and a deferred automatic review can start. A later /graph request can still add work to it, as to any completed graph, but no new node can depend on or join a withdrawn one. To replace a step, approve its replacement first, then withdraw the old step.
c stops one running task node after you type cancel, while the rest of the graph, including that node's children, keeps running; its dependents then wait until you retry it. A fresh utility node stops only with its graph, which the controls say. A node stopped after its turn applied changes leaves them in the session worktree, and a retry runs on top of them. Answer node questions in session chat. Retry and answers record intent; they do not resume a stopped graph, unlike a chat reply to an output awaiting approval. A rejected reply keeps its draft: press Ctrl+r to refresh and resubmit, or Esc to discard it.
A node whose turn finished but whose commit failed does not fail its graph. It waits as Uncommitted, its work left in its worktree, and its details name the error. Fix the cause, such as a failing hook, then press t to commit again: only the commit runs, and the turn does not. A hook that cannot run because a tool is missing from the commit environment is reported as such at once, without commit assistance; install the tool, then retry. Press e to run the turn again with guidance instead. A retry that only commits adds none of the turn's session notes.
Provider-call limits are fixed when a graph first launches, and resuming continues from the calls that remain; a node whose budget is spent stays blocked. To continue it, press b and type how many calls to add, from 1 to 1000. Each increase is recorded and never happens on its own; completed and canceled graphs cannot get more. Nothing replays automatically on restart; only a chat reply you sent before it is still applied. Focused-review graphs can be inspected and canceled here; regenerate them with f.
Session Notesπ
Graph nodes share notes through one document per session, kept across all its graphs: each node that runs a task conversation reads it when it starts and can add up to five short findings, decisions, or hand-offs for the nodes after it. A node's notes are added once its commit or other follow-up step succeeds and it asked you no question, just before the node finishes; a node stopped or failing in that last moment can leave its notes in place, and a retried or continued node may add similar notes again. Press N in session view or the graph inspector to read it; entries are listed oldest first with their version and author, and the panel refreshes as nodes add notes. A note can be at most 2 KiB and the whole document 32 KiB; notes that do not fit are not added, and one [Session Notes Warning] in chat says why. You cannot edit notes, but x clears the whole document after you type clear; if a note arrives while you type, the confirmation closes so you can look again. Clearing hides every note from the nodes that start afterwards, including hand-offs meant for nodes that have not started yet; the panel keeps the history.
Programmatic integrations can track outcomes through the Task API and query, answer, retry, resume, extend, or cancel graphs, and withdraw or stop their nodes, through SessionService; see Execution Graph.
Telemetryπ
Agentty has two independent telemetry channels:
| Channel | Default | Destination | Contents | Control |
|---|---|---|---|---|
| PostHog events | Enabled | Agentty PostHog project | The usage events below | --disable-telemetry |
| OTLP export | Disabled | Your --otlp-endpoint collector | Session traces, metrics, usage events | --otlp-endpoint URL |
PostHog telemetry sends events to the Agentty PostHog project at https://us.i.posthog.com. Release builds bundle its public, write-only project token; debug builds, including tests, send nothing. Pass --disable-telemetry to turn it off for a launch:
agentty --disable-telemetry--disable-telemetry does not affect OTLP export; see Local Usage Events and Session Traces.
Every event includes app_source (cli), app_version, and install_method (npm, sh, cargo, or unknown).
| Event | When sent | Additional properties |
|---|---|---|
agentty_launch | After the database opens | ci, interactive |
agentty_failure | When startup after the database opens or the terminal UI fails | failure_category, stage, ci, interactive |
agentty_session_start | When new session metadata is reserved | session_type, agent, model |
agentty_turn_start | When a first or follow-up message begins execution | agent, model |
agentty_turn_finish | When a turn and its post-processing complete successfully | agent, model |
agentty_turn_interrupt | When an executing turn is stopped by the user | agent, model |
ciistruewhenCI,GITHUB_ACTIONS,TF_BUILD,JENKINS_URL, orCODEBUILD_BUILD_IDis set to a value other than empty,0, orfalse.interactiveistruewhen standard input and output are both terminals.failure_categoryissession,database,git,one_shot,no_agent,terminal, orworkflow;stageisstartuporruntime. Failures before the database opens send nothing.session_typeisregular,draft, orfork.agentandmodelidentify the selected provider and model; any local model is sent asopenai-compatible, never by name.
Each event carries a random installation ID, created on the first launch with telemetry or --otlp-endpoint enabled and stored in Agentty's database, and sets $process_person_profile=false. PostHog receives the request's IP address and derives an approximate location from it. Agentty does not send error messages, stack traces, project paths, session IDs, or prompts. The install method is inferred from the npm package path, the shell install receipt, or Cargo install metadata, and describes launches, not installations.
Local Usage Eventsπ
When --otlp-endpoint ends in /v1/traces, Agentty also exports each event above as an OTLP log record to the sibling /v1/logs URL, keeping any path prefix and query; for example, http://localhost:4318/v1/traces sends events to http://localhost:4318/v1/logs. This mirror is independent of PostHog, so it also runs in debug builds and with --disable-telemetry.
Records use the event name as their body, INFO severity, and the PostHog properties, plus service.name, service.version, a per-launch service.instance.id, and the installation ID as user.id. Collectors without a logs pipeline reject them. For authenticated endpoints, set OTEL_EXPORTER_OTLP_LOGS_HEADERS, falling back to OTEL_EXPORTER_OTLP_HEADERS.
With a collector that forwards logs to Loki, count turns by model in Grafana with:
sum by (agent, model) (count_over_time({service_name="agentty"} |= "agentty_turn_start" [$__auto]))Export Failuresπ
OTLP export never changes a session's result. When the collector did not accept a signal, Agentty prints one line to standard error on exit that names each signal, the reason, and how often it happened:
OTLP export failed: logs (HTTP 404) Γ3, traces (timeout) Γ1; some traces, metrics, or usage events may be missing.| Reason | Meaning |
|---|---|
HTTP <status> | The collector answered with that status |
timeout | The collector did not answer within two seconds |
connection failed | The collector could not be reached |
partial success | The collector rejected part of a request, with the count if any |
other | Another exporter failure, such as a dropped batch |
For example, logs (HTTP 404) means the collector has no logs pipeline, and HTTP 401 usually means a missing authentication header. other SDK warnings counts exporter warnings that belong to no signal. The line never contains the endpoint, headers, or response bodies.
Session Tracesπ
Session traces are separate from PostHog analytics and disabled by default. Pass a complete OTLP HTTP/protobuf traces endpoint to enable them, including in debug builds:
agentty --otlp-endpoint http://localhost:4318/v1/tracesAgentty uses the URL as given, and endpoint environment variables cannot enable tracing. For authenticated endpoints, set OTEL_EXPORTER_OTLP_TRACES_HEADERS, falling back to OTEL_EXPORTER_OTLP_HEADERS.
When the traces URL ends in /v1/traces, Agentty also exports content-free Harness request metrics, such as gen_ai.client.operation.duration and gen_ai.client.token.usage, to the sibling /v1/metrics URL, authenticated with OTEL_EXPORTER_OTLP_METRICS_HEADERS or OTEL_EXPORTER_OTLP_HEADERS.
Each turn has its own trace, correlated by session and operation identifiers. Spans cover queue and capacity waits (agentty.queue.wait_ms on the root span), workspace and context preparation, agent attempts, response validation, persistence, and post-processing. Utility calls record their agentty.purpose, such as commit message. Provider operations appear beneath agent.attempt:
| Provider | Operations exposed |
|---|---|
| Codex | Tools, responses, reasoning, compaction, subagents |
| Claude | Tools, subagents |
| Antigravity | Tools, responses, reasoning, compaction, checkpoints, subagents |
| Harness | Turns, model requests with token usage, tools |
Provider operations depend on the CLI version and are not necessarily individual model requests. agentty.timing.source is lifecycle for paired events, provider for intervals reconstructed from a reported duration, or completion for observations without a start. Harness invoke_agent, chat <model>, and execute_tool <tool> spans nest beneath agent.run and time each model request exactly. A bash tool span carries process.exit.code and, when the command ended in a pipeline, each stage's status as the integer array agentty.tool.exit_code.pipeline. A nonzero exit is not marked as an error, since commands such as grep exit nonzero as an ordinary answer.
Usage appears on these spans; any figure a backend does not report is left out, never exported as zero:
session.turn,agent.run, andutility.runcarry the totals: thegen_ai.usage.input_tokens,output_tokens,cache_read.input_tokens,cache_creation.input_tokens, andreasoning.output_tokenscounts,agentty.usage.requestsandagentty.usage.unreported_requests, andagentty.context.peak_tokens.- Harness
chat <model>spans and app-serveragent.attemptspans carrygen_ai.usage.cache_creation.input_tokens,agentty.context.input_tokens, andagentty.context.window_tokensfor each request or attempt. - Each of these spans carries the estimated cost only when every model involved has a known price. Metered usage reports its charge as
agentty.usage.cost.micro_usd, withagentty.usage.cost.basis(list,host,agent_reported,endpoint_reported, ormixed) andagentty.usage.cost.upper_bound, which istruewhen cache reads were priced at the input price. Subscription usage reports what it would cost at API prices underagentty.usage.api_equivalent.*instead, with the planloginwhen known; the two are never summed. A harnesschat <model>span carries the cost of a metered model's request or the cost its endpoint reported, and none for a plan-billed model.
Metrics add the agentty.usage.cost counter ({micro_usd}, by gen_ai.request.model, agentty.usage.cost.basis, and agentty.usage.cost.upper_bound), whose API equivalents count under the basis api_equivalent, and the agentty.usage.cache_tokens counter (by model and agentty.cache.op, read or write). gen_ai.client.token.usage keeps only the input and output token types. Costs are estimates; the provider bill is authoritative. PostHog usage events never include token counts or costs.
Git and forge CLI work inside a traced workflow appears as content-free spans:
git.command: one per Git subprocess, with an allowlistedgit.subcommand(others areother),process.exit.code,agentty.timed_out, andagentty.output.bytes.git.commit.attempt:agentty.git.commit.resultiscommitted,hook_modified,nothing_to_commit, orfailed; onlyfailedmarks the attempt failed.forge.command: one perghorglabsubprocess, withagentty.forge.kind, the clientagentty.forge.operation,process.exit.code, andagentty.timed_out. The authentication check before each client call nests its command inforge.auth_check.
Nonzero exits complete their command span; spawn failures and timeouts fail it with error.type not_found, spawn, or timeout. Arguments, branch names, commit messages, paths, and command output are never exported.
The trace resource carries the installation ID as user.id. By default, traces contain execution identifiers, provider and model selections, token counts, outcomes, tool names, call identifiers, executable basenames, exit codes, and output byte counts, but no command arguments, tool output, or project paths. Tool spans repeat the run's agentty.harness, agentty.session.id, agentty.purpose, agentty.run.id, and gen_ai.request.model attributes for grouping.
Separate traces cover startup (app.startup), each background remote-status pass (sync.refresh), manual project sync (project.sync_main), and foreground cycles that take at least 50 ms between waking and drawing (ui.slow_cycle), with per-phase durations to help diagnose unresponsive frames.
Add --otlp-capture-content to also export tool commands, arguments, and results as previews of at most 4 KiB per attribute, keeping their beginning and end. Oversized structured values use agentty.tool.input.preview and agentty.tool.output.preview instead of gen_ai.tool.call.arguments and gen_ai.tool.call.result. Values with common credential markers or URL credentials become [REDACTED], but other secrets and project paths may still appear, so enable this only for a receiver you trust. Prompts, transcripts, reasoning, and subagent prompts are never exported.
Content previews cover Codex command, MCP, and dynamic-tool items and Claude tool messages; Antigravity exports tool identities only. Codex command executions and file changes report gen_ai.tool.name as command_execution and file_change; patches are never captured. Export is asynchronous and best effort, so a full queue or unavailable receiver may lose spans. Agentty prints a diagnostic summary after restoring the terminal and waits at most three seconds for the final flush.
Auto-Updateπ
Agentty checks the npm registry at startup and hourly. When a newer version exists, it updates through the installer that owns the running binary. Agentty finds that installer from where the binary lives and what the installer itself reports or records, never from the path name alone:
| Installation | Update | Recognized when |
|---|---|---|
Global npm, Bun, or pnpm | The same package manager installs agentty@latest. | Exactly one manager's global installation is the running binary. |
| Shell installer | The latest installer reruns for the recorded install directory. | Its receipt names the running binary, with this version or a newer one. |
cargo install | cargo install agentty --locked into the same root. | Cargo's install record in the root holding the binary lists Agentty from crates.io, at this version or a newer one. |
cargo-binstall | cargo-binstall installs the latest release. | As for Cargo, and cargo-binstall lists Agentty too. |
| Homebrew | brew upgrade agentty-xyz/tap/agentty. | The binary is in the cellar brew reports for that formula. |
npx | Nothing: npx agentty fetches the latest release on each run. | The binary is in the _npx directory of the npm cache. |
Updates never change PATH. The status bar shows progress and asks you to restart; a cargo install update compiles Agentty and can take a while. Any other binary, such as a local build or a Cargo install from a path, a Git repository, or another registry, updates manually, as does an update that fails: rerun your original installation command. Shell installs of v0.19.5 or earlier used an older installer: rerun the shell installer once to enable automatic updates. See Installation for update commands.
A failed automatic update is retried after an hour, then after twice as long for each further failure in a row, up to one day, so a build that keeps failing does not rerun every hour. A newer release or a successful update ends the wait, and restarting Agentty tries again at startup. agentty self update always tries at once.
agentty --no-updateThis disables automatic installation but keeps update checks and hints. See Backend Selection for agent CLI refresh. Use agentty --help for launch options and agentty --version for the installed version.
Update on Demandπ
agentty self update updates without opening the terminal UI, for scripts and for runs started with --no-update. It looks up the latest release and says so when this one is already the latest. Otherwise it updates through the same installer as the table above and prints the old and new versions, then asks you to restart Agentty:
agentty self update| Code | Meaning |
|---|---|
0 | Agentty was updated, is already the latest, or runs through npx, which needs no install. |
1 | The latest release could not be looked up. |
2 | The arguments are invalid. |
3 | This installation cannot be updated in place: rerun your original installation command. |
4 | The installer failed or did not finish; the end of its error output is printed. |
Data Locationπ
Agentty keeps its database, logs, and worktrees in its data root, normally ~/.agentty/. Worktrees are removed when sessions finish, are canceled, or are deleted; if quitting or a crash interrupts that cleanup, the next startup removes what is left in the background. Set AGENTTY_ROOT to use another root; each root allows one running Agentty instance. Session state, including staged draft attachments, stays in the data root, so a project's .agentty/ folder holds only configuration you can commit.