Run an agent on your machine
taskgert-agent runs coding agents (Claude Code or opencode) on your projects' tasks, in Docker on your own machine, driven from the web: "Run with agent" on a task, watch the console live, answer its decisions and approve what it asks before a guarded action. What runners are, and how jobs go, is in Concepts.
What you need
- Docker with Compose (Docker Desktop on macOS or Windows, Docker Engine on Linux), amd64 or arm64 (Apple Silicon included), and about 10 GB free for the image and the projects' own containers.
- Access to the image, in Taskgert's registry: nothing to set up. The command from the Agents page brings the pull login (see below).
- A brain for it to think with: a Claude plan or an Anthropic API key, a model provider's key, or a server of
your own such as llama.cpp. You enter it on the Agents page (Engine credentials); the
runner's
.envstays the fallback. - The project's repository set in Taskgert (Settings → Repository & contract; see below), so the agent can clone it.
Start it
One command
On the Agents page, Add a machine: choose a brain (verified, or one only the runner can check; add one right there if you have none), optionally name the machine, and press Get the command. Run it on the new machine, and the dialog waits and tells you when the machine comes online:
curl -fsSL https://taskgert.com/agent/install.sh | sh -s -- --enroll tge_…
The code works once and lasts an hour. The installer redeems it: the runner is created already approved and bound to
that brain, with access to your projects in the workspace, the registry pull login comes with it (issued at that
moment and written to the runner's own .env, never shown on the page), and the runner starts paired. There is no
file to edit, no registry token to paste and no code to approve. Run it again with a new code for another runner.
Step by step
To install without starting the runner (to start it yourself later), the dialog shows Install without starting
it: the same command with --no-start.
curl -fsSL https://taskgert.com/agent/install.sh | sh -s -- --enroll tge_… --no-start
- Engine credentials only go in
~/taskgert-agents/.env.sharedif you keep them on the machine instead of a brain. Every runner of the machine uses it. - Each run sets up one more runner, in
~/taskgert-agents/agent-N(or… -- my-name), logs in to the registry with the pull login of its code and starts it. It also shows what the machine has (the CPUs and memory Docker can use) against what its runners may each take, and warns before it oversubscribes. … | sh -s -- --listlists the runners of the machine;cd ~/taskgert-agents/agent-2 && docker compose down -vremoves one (pair it again to bring it back).
By hand, it is the same files in a directory of their own: compose.yaml, empty-auth.json and a .env from
env.example (all at https://taskgert.com/agent/), docker login registry.taskgert.com -u [email protected], and
docker compose up -d && docker compose logs -f agent.
Several runners on one machine
Any machine with Docker and internet can serve, and as many runners as it has room for: each directory is one
runner, isolated from every other on the machine. Its compose project is its own (the installer names it
taskgert-<name>; by hand it is the directory's name, or -p), and with it its containers, network, volumes
(state, work, certs, dind), Docker-in-Docker and updater, which only ever updates its own runner. Nothing
is published on the machine's ports, so their projects' stacks never clash. Adding, removing or updating one does
not touch the others; on the Agents page each is a runner of its own (named <machine>-<runner> unless
TG_AGENT_NAME says otherwise), with its own projects and jobs.
How many fit: a job runs an engine and, often, the project's own stack. TG_AGENT_CPUS and TG_AGENT_MEMORY (4 CPUs
and 8 GB by default) cap each runner, and runners share the machine fine while idle; for runners busy at once, keep
their sum within the machine (on Docker Desktop, what its settings give Docker).
A runner set up before this (in ~/taskgert-agent, say) keeps working: its compose project was its directory's
name all along. One started from a directory with another name and name: taskgert-agent in an older
compose.yaml keeps its volumes with COMPOSE_PROJECT_NAME=taskgert-agent in its .env.
Each machine gets its own pull login when its command runs: Agents → Settings → Registry access lists them
(the section is hidden on a Taskgert with no registry). Revoking one there stops that machine from pulling at once;
the others keep theirs. These logins only pull: publishing the image is for superadmins, who can also create a
push token there (and over the LAN with pnpm agent:publish, see the deployment notes).
compose.yaml starts three containers: the runner, a Docker-in-Docker sidecar where the projects' own
docker compose runs, and the updater, which keeps the runner up to date (see Updates). The agent
never sees your machine's Docker socket: what it starts lives and dies in the sidecar, and the projects' services
answer it at docker:<port>.
The .env file:
| Variable | What |
|---|---|
TASKGERT_URL | Your Taskgert's API: https://api.taskgert.com. A local stack: http://host.docker.internal:4000. |
TG_AGENT_NAME | The name it suggests when you pair it. |
CLAUDE_CODE_OAUTH_TOKEN | Claude with your plan (see below). |
ANTHROPIC_API_KEY | Claude (and opencode) with an API key instead. |
OPENCODE_AUTH | The path of your opencode auth.json, mounted read-only. |
TG_AGENT_OPENCODE_MODEL | opencode's model, as provider/model. |
TG_AGENT_NETWORK_ALLOW | Hosts agents may reach without asking, comma separated (see Guarded actions). |
TG_AGENT_CODEGRAPH, TG_AGENT_CODEGRAPH_TIMEOUT | 0 turns the code graph off on this runner; how long indexing may take before a job goes on without it, in seconds (default 300). |
TG_AGENT_CPUS, TG_AGENT_MEMORY | Limits of the runner's container (default 4 CPUs, 8 GB). |
TG_AGENT_REGISTRY_USER, TG_AGENT_REGISTRY_PASSWORD | Your e-mail and the machine's registry token (Agents → Settings → Registry access), for the updater to see new images (see Updates). |
TG_AGENT_UPDATE_INTERVAL | How often the runner, while idle, asks the updater for a new image, in seconds (default 300). |
TG_AGENT_MAX_UPLOAD_MB | The largest file tg-agent attach sends: the API's UPLOAD_MAX_MB (default 25). |
TG_AGENT_STORAGE_PUBLIC_URL, TG_AGENT_STORAGE_INTERNAL_URL | Only when the storage's address in upload links is not reachable from the runner (a local stack's http://localhost:9100): uploads to the first go to the second. |
Engine credentials
Brains, from the web
On the Agents page, Settings → Brains holds what thinks for your runners. Add one, and Taskgert checks it at once; Add a machine offers the brains that work (or that only the runner can check, below), and lets you add one right there. The model is a picker of the models that exist now, newest first, the recommended one preselected: for a saved brain Taskgert asks the provider for its list with the brain's own key (kept an hour), and when it cannot (a Claude plan token, a provider that is down) it shows a curated list kept with each release. A model that is not listed can be typed with Other model…. Secrets are write-only: Taskgert keeps them encrypted, shows only their last four characters, and hands them to your runners inside each job, never stored by the runner and masked in the job's output. Brains are yours: nobody else in the workspace, and no bot, can read or use them.
| Brain | What it needs |
|---|---|
| Claude Code — your plan | The token claude setup-token prints (sk-ant-oat…); a model only to override Claude's own. |
| Claude — API key | An Anthropic API key. |
| OpenAI | An OpenAI key and the model (gpt-5); runs opencode. |
| OpenRouter | An OpenRouter key and the model (anthropic/claude-sonnet-4.5). |
| Gemini | A Google AI Studio key and the model. |
| Kimi for Coding / Moonshot | Their key and the model. |
| llama.cpp / OpenAI-compatible | The server's URL (ending in /v1) and its model; a key only if the server asks for one. |
| opencode credentials | A native V2 /api/credential JSON export or legacy V1 auth.json, and the model (openai/gpt-5). |
- Checked live. Taskgert calls the provider (a models list, at most 10 s) and marks the brain Verified or Failed with the reason. Verify checks it again.
- Servers only your machine reaches. Taskgert cannot reach a private address (a llama.cpp on your LAN, or on the
machine itself), nor tell whether an auth.json works: such a brain is Checked by the runner. Your runner probes
it when it starts (
GET <url>/models, with the latency and the models it lists), and again when you press Verify while it is online; the result shows on the Agents page at once, with the runner that checked it. - llama.cpp on the agent's machine: use
http://host.docker.internal:8080/v1(the compose file mapshost.docker.internalto the host, on Linux too). Start the server listening beyond localhost (llama-server --host 0.0.0.0 --port 8080 …). - A local server (llama.cpp, llama-swap, vLLM, a model of your own on the LAN). Choose llama.cpp /
OpenAI-compatible and give:
- the URL,
http://<host>:<port>/v1(for examplehttp://192.168.33.66:9292/v1), and the key if the server asks for one (Authorization: Bearer …); - the model id exactly as
GET <url>/modelslists it (the model step offers what the runner found); - under Advanced, the limits the CLI cannot guess: Context window and Max output (tokens, for
example
262144and32768; the input budget is the context minus the output), Timeout (seconds a request may take; blank is 600) and Reasoning if the model thinks before it answers. Without them the CLI uses its defaults, and may compact too late or cut an answer short. - A local server usually has one slot: requests queue. Pair that runner with one job at a time, and give the brain a long timeout (a cold prompt can take 45 s or more to the first token).
- The brain runs opencode, and pi in a session too: for pi the runner writes a
models.jsonfor the job in its own private folder (never in the repository), and the key travels only in the job's environment.
- the URL,
- Which brain a runner uses: your default brain (the star), or the one chosen on its row. Each job of that engine brings it; the runner adds the provider's host to the job's allowed network.
The runner's own .env (fallback)
A runner also runs with credentials of its own, for a job whose runner has no brain from the web (and for runners older than protocol 3). The runner checks them when it starts, the same way, and the Agents page shows each engine with where its credentials come from (own .env or brain from Taskgert) and what the check said; values never leave the machine.
- Claude with your plan. On your machine, run
claude setup-tokenand put the token it prints inCLAUDE_CODE_OAUTH_TOKEN. On macOS, Claude Code keeps its own login in the Keychain, which a container cannot read: mounting~/.claudeis not enough, the token is the way. - Claude with an API key.
ANTHROPIC_API_KEY. - Claude through Bedrock or Vertex.
CLAUDE_CODE_USE_BEDROCK=1with the AWS variables, orCLAUDE_CODE_USE_VERTEX=1with the Google ones, as for Claude Code itself. - OpenCode V2. The image pins the native
@opencode/[email protected]package. Connect with/connecton your machine, export its active credentials withopencode api get /api/credentialinto a private JSON file (useumask 077), and setOPENCODE_AUTHto that file. The export contains secrets: never commit or share it. Legacy V1auth.jsonfiles remain accepted; OAuth imports require an unambiguous integration method. Alternatively give a provider's key (OPENAI_API_KEY,OPENROUTER_API_KEY,GEMINI_API_KEY…). Choose the model withTG_AGENT_OPENCODE_MODEL; a provider of your own goes inTG_AGENT_OPENCODE_CONFIG(JSON, merged into opencode's configuration).
Each OpenCode job starts its own authenticated loopback V2 server, with a private database/config/cache/state
under /state/opencode-data/taskgert-v2/<worktree-sha256>/. The stable worktree identity permits resuming that
job without sharing a runner or another tenant's credential database. Brain-backed jobs never import the runner's
auth export or provider configuration. Existing V1 sessions cannot resume through the V2 API; a missing session
starts anew with the task's original prompt and reports that fallback.
Runtime session permission rules require approval checks even when an agent definition allows a tool.
Agent deny rules are preserved before applying runner guards, so readonly agents cannot gain write access.
Selected global permissions, including legacy V1 maps, are preserved too. Brain jobs use only their own config;
runner configuration and provider credentials remain isolated.
Each permission request resolves the owning session's current directory before checking relative edits against
the unchanged job worktree boundary, including after a root or child session moves.
Native children inherit these rules; the runner verifies ancestry and routes guarded permission requests for all owned
descendants. Permission replies are once or reject, never durable blanket approvals. Human approval does not
block event streaming or interruption. A lost or malformed stream stops execution rather than running unguarded.
After building an agent image locally, run node /app/smoke-opencode.mjs in a disposable container to verify the
pinned native server, unauthenticated rejection, credential API, custom agent discovery and inherited child
guards overriding an agent's allow rules. The smoke uses a local fake model and proves that a rejected shell
command never executes; it needs no external provider key and does not publish or deploy anything.
A job with a brain uses the brain's credentials only, never the .env ones. The first lines of
docker compose logs agent say which engines it can run, where their credentials come from and what their check
said.
Pair it
- The runner prints a code such as
BDKM-QRTWand a link (/agents/pair?code=…). - Open it, check the code, name the machine and choose the projects it may work on.
- It receives its token by itself and shows as online on the Agents page, tab Autonomous agents
(
/agents?tab=autonomous), with what its autonomy allows. The token is kept in thestatevolume: restarting the runner does not pair it again. Revoking it in the web disconnects it at once; it then forgets the token and asks to be paired again.
Updates
The runner updates itself: nobody has to pull the new image and restart it by hand.
- Every
TG_AGENT_UPDATE_INTERVALseconds (default 300), while it holds no job (none running, waiting for a person or suspended), the runner asks the updater (theupdaterservice ofcompose.yaml, Watchtower) to look for a newer image. When the runner's image (latest, by default) has one, the updater pulls it and re-creates the runner's container from it, with the same settings and volumes: the pairing, the repositories and the engines' sessions are kept, and the Agents page shows the new version once it reconnects. A job that arrives in the seconds the swap takes is suspended and resumed by the new version (Reliability). - The updater is the only container given your machine's Docker socket. It does nothing by itself: it answers the
runner on the compose network only (with the token
TG_AGENT_UPDATER_TOKEN), and only touches containers of its own scope that ask for it (the runner): never the sidecar, the projects' containers or other runners. - It needs your registry login to pull: from
.env(TG_AGENT_REGISTRY_USER: your e-mail;TG_AGENT_REGISTRY_PASSWORD: the machine's registry token), or else the machine's owndocker loginwhen Docker keeps it in~/.docker/config.json(Linux), which the updater reads read-only (TG_AGENT_DOCKER_CONFIGfor another directory). Docker Desktop keeps it in the system keychain, where a container cannot read it: there, the.envlogin is the only way. Without either, the updater cannot see new images and skips the runner without a word (scanned=0 skipped=1in its log);install.shwarns about it. - Several runners on one machine: each has its own updater, scoped to its compose project, so each updates only its own runner.
- To stay on a version: set
TG_AGENT_IMAGEto a tag (registry.taskgert.com/taskgert/agent:0.35.0), or stop the updater (docker compose stop updater).docker compose logs updatershows what it checked and did; the runner's log says when it cannot reach the updater. - Do not
docker compose pullwithoutup -d: the running container's image then loses its tag, and the updater can no longer tell what it runs.docker compose up -dputs it right.
Claude Code's version
The runner runs Claude through the Agent SDK (@anthropic-ai/claude-agent-sdk), which bundles the matching Claude Code
binary; nothing is downloaded at run time. Its start log says what it runs (claude: Claude Code 2.1.296 (SDK 0.3.296)), and the Agents page shows the Claude Code version. The SDK is pinned exactly in the lockfile, so each
release image carries one Claude Code; to move it, pnpm agent:bump (on develop, clean tree) asks npm for the
latest SDK and, when the pin differs, updates it and the lockfile, runs the agent tests and commits
chore(agent): bump claude-agent-sdk to X. With the pin already at the latest it changes nothing; with failing
tests it leaves the change uncommitted and exits 1. It runs before tg release, never from the image build (the release image is
built from the tag, where a bump could not be committed); a project can make tg release run it by itself with
release.before (wiki "Project contract"): the runners then pick the new Claude Code up with the image, as in
Updates above.
A runner set up before the updater existed is updated by hand once: download compose.yaml and env.example again
(add the new variables to your .env), then docker compose pull && docker compose up -d.
The repository
In the project, Settings → Repository & contract: the URL, the default branch and the access. With the default, Taskgert
makes a deploy key: add its public half to the repository on GitHub, Gitea or GitLab, with write access so the
agent can push its branches. Check access tells you whether it can read and push. A git host behind Cloudflare
Access is set with the SSH connection Through Cloudflare Access (the image has cloudflared).
Each job works on its own branch, agent/<TASK-KEY>, in its own worktree, and pushes it when it is done. What it
may do with main and develop follows agent.merge of the project's taskgert.yml; with none (the default) the
runner opens the job's pull request into develop when it ends, with the API token for pull requests of the
Repository card (Gitflow and pull requests).
The code graph
Before the agent starts, the runner indexes the job's worktree with CodeGraph
(MIT, pinned in the image), a graph of the repository's symbols, imports and calls. The agent gets it as an MCP server,
codegraph, next to taskgert, with one tool, codegraph_explore. That tool returns the code that answers a question,
the call paths through it and what a change reaches, in one call instead of many greps and file reads. The agent is told
to use it first.
- First job of a repository:
codegraph initbuilds the index, which takes seconds to a few minutes on a large repository. The runner keeps it beside the repository's clone (/work/repos/<repo>.codegraph). - Later jobs: they start from that copy, and
codegraph synconly reads what changed. A resumed job syncs its own. - Never committed: the index lives in the worktree's
.codegraph/, whose contents the runner adds to the repository's git exclude (all but.codegraph/.gitignore, which the kit commits). - Time-boxed and optional: indexing stops after
TG_AGENT_CODEGRAPH_TIMEOUT(300 s by default). If it fails or runs out of time, the job's console says so and the job goes on without it. Jobs without a repository do not get it. - Local: CodeGraph sends no usage statistics, checks for no updates and reaches no host, so the network guard never asks about it.
- Turning it off: set
agent.codegraph: falsein the project'staskgert.yml(project contract), orTG_AGENT_CODEGRAPH=0for the runner.
Project checks
Before a job starts, Taskgert runs the project's checks (Settings → Checks, or check_project): the repository, the
environments and the runners of the project. When the runner connects it reports its machine (whether docker version answers against DOCKER_HOST, the free disk of its work directory, whether cloudflared is installed), and
the checks re-run. A job is refused while the repository or a runner fails (no repository, no push access, no runner,
a runner without an engine, cloudflared missing for a repository behind Cloudflare Access); the reason is shown in
the Run with agent dialog.
Guarded actions
Each project chooses, under Settings → Repository & contract, what an agent must ask a person before doing:
- Push to main and Push to develop (with a
taskgert.yml, these follow itsagent.merge; the old Push to the default branch guards whichever of the two is the default branch), - Deploy (
docker push,kubectl,coolify,fly deployand the like; always, with ataskgert.yml), - Write outside its worktree,
- Network: reach a host outside the allowlist (GitHub, the package registries, your Taskgert,
TG_AGENT_NETWORK_ALLOWand thepermissions.networkoftaskgert.yml).
The job then waits; the person who started it and the runner's owner get a notice in the app and Approve or Deny in the job's console, with a note for the agent. A denied action is not tried another way.
An autonomous job (staging or full, see Autonomy) asks nobody for most
of them: pushing to develop, writing outside its worktree, the network, and tg deploy to an environment its level
reaches (with that environment's credentials, from its assignment) go ahead, each said in its output ("Approved
without asking a person (…)"). Pushing to main and deploying anywhere else still wait for a person.
Project memory
A job starts knowing the project's memory (TSKGT-208): the server adds the project's pinned memories and the ones
most relevant to the job's task (its title and description) to the job's assignment, up to about 3,000 characters
(around 750 tokens; pinned first, then the relevant ones, each cut to its first paragraph of at most 400
characters), and the runner puts them in the prompt under "Project memory". It needs no scope on the
runner or the brain's token. A question gets them too, to answer with. The agent is told to search_memory when
it needs more and to save_memory what it discovers or fixes that the whole project should know, never a task's
progress; both tools need the engine's Taskgert token to carry memory:read / memory:write. A project admin can turn the memory off for agents: the assignment then carries
no memories and memoryEnabled: false, and the runner leaves out both the section and the search_memory /
save_memory line. A runner or server without this feature just starts without the section.
Memory curation jobs
A MEMORY_CURATION job (TSKGT-212, Curate the memory) is read-only like a
question: the assignment has readOnly: true, no token for pull requests, supervised autonomy, and the runner opens no
pull request. Its worktree is the repository's default branch (never develop), with no kit files added and
nothing pushed; without a repository the job runs without one and its curation.hasRepository is false. Besides
reading, the engine may call only propose_memory_changes of the "taskgert" MCP server: the guards refuse file
writes, commits, pushes, every other write tool and any command that writes. The assignment's curation carries the
memories to review (id, type, title, content trimmed to 1,500 characters, tags, pinned, updatedAt, verifiedAt),
least recently verified first within about 40,000 characters, and how many are leftOut; the prompt lists them,
states the quality rules and asks for one proposal per memory, in batches of 20, and for a closing Markdown summary,
which the server keeps as the report's summary. While its curation runs, the job's runner token may also read the project's memory (search_memory, get_memory) without a memory:read scope, for that project only. The proposals go with the runner's own token (agents:run), which
needs no memory scope: only the job's own runner may propose, and nothing changes until a person approves the report.
Phases
A job on a task goes through the project's phases (those of its taskgert.yml,
or the standard ones without one), and the runner, not the agent, drives it through them:
- Its branch: a new
agent/<KEY>starts from the gitflow's develop branch (git.developof thetaskgert.ymlon origin, or the job's gitflow) when origin has it, else from the repository's default branch; a branch already pushed carries on from where it was. - Before the agent starts, the runner opens the task with its own token: it assigns its bot, puts the Phases checklist on it if it lacks those items, moves it out of the first column, and, when the task is in a running Taskgert, claims it there (renewed while the job lives, released with its usage when it ends).
- An Idea is only refined (TSKGT-121): a job on a task of type Idea gets no phases. The agent reads the repository, writes the goal, design and plan into the description and ends; the job is then DONE. An answered decision that means "do not do it" or "stop" ends the work without running the remaining steps.
- The agent works phase by phase and ends each one with the line
PHASE DONE: <id>(Markdown marks and trailing punctuation aside). An optional phase that does not apply ends withPHASE SKIP: <id> — <reason>. It never ticks those items itself.PHASE DONEchecks the phase it names only: while a required phase before it is still open, the agent is told which ones; optional ones passed over are skipped, said so. - Memory (after Merge): the agent is told what to record, in the memory's quality rules (durable, about the whole
project, about 800 characters at most, no secrets, machine data or session progress), to search first and update
an existing memory rather than add a copy, and to save a few at most or none. It ends with a one-line note and
PHASE DONE: memory, which the runner ticks. While the project's memory is off for agents the runner passes the phase itself, with the note "memory off". - Releasing and deploying stay with a person in a supervised job: the runner never runs
tg releasenortg deployas a check. The Release and Deploy phases are skipped (PHASE SKIP: release — left to a person), even when the contract does not mark them optional; aPHASE DONEon them is answered that way. - An autonomous job (
stagingorfull, chosen when it starts, up to the contract'sagent.autonomy) has the runner do Merge, Release and Deploy itself, at once when they come; they are never passed over (a laterPHASE DONEis refused while one is open): they pass, or the job fails.- Pre-flight, before anything moves: every environment it will deploy to has its credentials, and the
worktree's
taskgert.ymldeploys each one to the application and compose file of the contract synced from the default branch, with the samecommands.release. Otherwise the job ends Failed before develop or main move. - Merge: only a branch that already holds
origin/develop(else the agent merges develop in and the command checks before Merge run again), into develop with--no-ff, pushed (through the job's pull request, opened and merged, whengit.pris set; a conflict goes back to the agent). - Release:
tg releasefrom develop with a minor bump after afeat, a patch otherwise (a project's own release command only when it is the synced contract's), in a private clone of its own, one release of a repository at a time on the runner; never twice (a resumed job knows it released). - Deploy:
tg deploy <env> --tasks <KEY>to each environment its level reaches, in order (stagingstops before production), with that environment's credentials, each only when the worktree deploys it where the synced contract says.tg deployverifies and rolls back; the first that fails ends the job Failed and nothing goes on to a later environment; an environment deployed once is not deployed again on resume. - Verify is told the last environment reached. Its failed checks ask nobody: after six of the same phase the job
ends Failed. With no environment within its level, Deploy is left to a person as above; a
stagingjob without a staging environment leaves Release to a person too (a release could reach production). - Guarded actions: writing outside the worktree and the network go ahead; pushes to develop or main, force
pushes, MCP deploy tools and anything the repository's
permissions.denylists still ask a person. The agent's own deploy goes ahead only as a command that is exactlytg deploy <env>(with--json,--tasks,--version,--dry-run, nothing else on the line) to an environment its level reaches; it gets the provider's credentials only, never the runner's token. OpenCode does not support rewriting an approved deployment command with scoped credentials: directtg deployis refused with guidance to use the autonomous runner-owned Deploy phase, or a person in supervised jobs. Approval never exposes credentials to its session.
- Pre-flight, before anything moves: every environment it will deploy to has its credentials, and the
worktree's
- Check ownership: in phased jobs, the agent implements, fixes and commits, then signals
PHASE DONE. The runner executes and reports the full gates; the agent must not run the same full gates beforehand. Targeted failure diagnosis remains allowed. Standalone/unphased checks retain their usual workflow. - Slow commands: full phased E2E runs under the runner's check timeout, not an agent's ten-minute shell
call. Long agent-side diagnostic commands may run in the background; their completion wakes the agent.
Never poll with
sleepor Monitor. - The runner checks it: a command phase runs
tg <command> --jsonin the worktree (its output goes to the console); an evidence phase needs an attachment added to the task since the phase started (2 minutes of clock difference allowed; the agent attaches it withtg-agent attach <file>, see Attaching files); a manual one is reported on the agent's word. Plan is checked in the task itself (TSKGT-142): the runner reads the task and passes it only when the description holds## Goal / Gap,## Designand## Workflowwith a```mermaidfence, and was rewritten during the phase (changed since the job opened the task, and after the phase started by the server's clock). Otherwise the agent is told what is missing and the phase stays open. With the Plan phase (and when it refines an Idea) the agent is told the plan template and its rules: acceptance goals with one scenario each, tested once at the cheapest level; a Performance and a Security line; a workflow of the task's real steps, with a batched release drawn as waiting. A Plan ticked before the job opened the task (a planner wrote it) counts as it is. Code also needs a commit on the branch ahead of develop (what the agent left uncommitted is committed first), or verified already-merged task work: clean current HEAD, integration ancestry, actual prior runner Code/Merge events for the same task and branch, and a matching exact-commit runner build report. Checklist-synthesized phase states are not provenance. Without either, the agent is told what proof is missing. A task that changes no code (an investigation, an operation) skips Code saying why:PHASE SKIP: code — <why>. A pass ticks the item and comments the proof on the task, such as✔ Lint & test — tg lint ✔ 12.3s, tg test ✔ 41.0s. Then the work is checkpointed: changes to tracked files the agent left uncommitted are committed (untracked files are not: they are listed in the console) and the branch is pushed. Only a work branch (agent/,feature/,fix/) is checkpointed, never main, master or develop. - A failed check goes back to the agent with the end of its output. After 3 failures of the same phase (in a supervised job) the person who started the job is asked (a decision on the task: Keep trying or Stop the job) and the job waits. Answered while the runner was stopped, the answer is read from the task when the job resumes; an answer taken back leaves it waiting.
- A turn without a PHASE line is asked once which phase it is in; a second one ends the job Failed, with the phases left unchecked. A turn that answers a person (a prompt, an answer) is not held against it: it is asked again. The job is Done only when every phase passed or was skipped.
- Cancelled, suspended or failed while a check runs: the check receives SIGTERM and a bounded cleanup grace period before forced termination, and the runner does nothing more on the task: no tick, comment, commit or push. E2E's interrupted command, diagnostics and teardown have a combined 180-second shutdown bound; the outer command allows 210 seconds, the runner drains executions for up to 225 seconds, and the bundled Compose configuration allows 240 seconds to stop (the updater waits 250 seconds). Existing installations must refresh their runner Compose configuration on the next authorized rollout; updating the image alone does not change these container/updater settings. No live runner configuration is changed by a repository merge.
- Where a job stands is what it checked itself. When it first opens the task, manual and evidence phases already
ticked (by people, or an earlier job) can count where appropriate, but command gates are revalidated: legacy
reports lack historical clean-worktree attestation. Release, Deploy and Verify are not restored merely from
checklist ticks. Prior runner event provenance can establish that Code already landed without demanding a
synthetic new commit, but cannot replace its current build gate. Once it
opened the task, an item ticked by anyone else (the agent through the MCP, say) counts for nothing. A resumed job
carries on where it left off. The console shows a row per checked phase, and
get_agent_joblists them with their status.
Running a Taskgert
Run with agent on a Taskgert with the claude engine opens one lead session (mode LEAD): the lead
launches the subagents, the runner works on the integration branch taskgert/<TASKGERT KEY>, merges each finished
task branch into it, runs the gates and lands it in develop as the job's autonomy allows; see
Taskgerts. With mode: PER_TASK (the other engines) the
Taskgert's job dispatches its tasks, in plan order, as ordinary task jobs on the runner and engine you chose, up to its Agents at once (dependencies,
decisions and areas respected, as claim_next_task does). The runner sees nothing new: each is a task job with its
phases, its claim in the running Taskgert and its pull request. A task's job that fails pauses the run until you
retry it (or take the task out); once every task is done you are told to attach the target's evidence and finish
the Taskgert. See Taskgerts.
What you can send it
A runner takes five kinds of job, and every one says plainly what it runs, by a badge (own icon and colour) and a title in the console, the Agents page and the MCP:
- Task:
TGT-12 · title. On an Idea the badge reads Refining idea (the agent writes its design, never code). - Taskgert:
TGT-G2 · name, with the step and the task it is on. - Action: the first line of the prompt; a prompt that lists several (one per bullet or number) shows as N actions, the list one click away.
- Question: the question itself, with its context chip (a task, a Taskgert, the project) or "no context". It is read-only whatever its autonomy: supervised, with no token for pull requests and no deploy credentials, and the runner refuses every tool that writes (files, commits, pushes, Taskgert changes, deploys) in both engines, ahead of any permission mode. It ends with its answer, shown on top of the console and kept with the job.
- Taskgertize:
Taskgertize · owner/repo, with its own badge. The agent installs the Taskgert kit in the repository, asks when it needs to, proves it works and delivers it for review (see below). - Check:
E2E check · develop @ a3200e0, with the suite and a link to its quality run. No model runs: the console shows a status line (install, build, stack, tests, report; the test progress such as 82/119) instead of "Thinking", and takes no prompts.
start_agent_job takes intent: question and context (a task key, a Taskgert key or project) with a prompt; the
Run dialog on the web offers Task or Idea, Taskgert, Action(s) and Question. The context must be something you can
see (otherwise 404).
Sharing a runner with project admins
By default only the person who paired a runner (or the workspace owner) can start jobs on it. The owner can share it with a project: on the Agents page, tick the project under the runner ("Share with the admins of these projects"). Sharing is the runner's bot being a member of the project; only its owner (or the workspace owner) can add or remove it.
Admins of that project (agent.dispatch) can then pick the runner in Run with agent (marked "shared by <owner>")
and with start_agent_job (runner), and steer the jobs they started. They cannot rename, revoke, move or change the
brain of the runner. They choose the autonomy as usual (agent.autonomy and the project's ceiling still apply) and
a brain among those the owner marked Shareable on the brains card (list_runner_brains, then brain of
start_agent_job); the brain's secret is never shown, only used by the runner. Without a choice the runner's own brain
is used. A Taskgert's tasks always use the runner's own brain.
When the owner stops sharing a runner with a project, the jobs other people had queued on it for that project are cancelled ("no longer shared"); the ones already running finish.
Taskgertize a project
A Taskgertize job (kind: SETUP; Taskgertize with an agent on the project's repository settings, or
start_agent_job with kind: SETUP) does the manual guide Taskgertize a git project
for you, in six phases the runner checks itself. The job works a task the server creates for it ("Taskgertize ·
owner/repo"), so its questions, comments and checklist are that task's.
- Inspect: the stack, package manager, scripts, compose file and branches.
- Kit:
taskgert init(with--updatewhen.taskgert/kit.jsonexists). The runner checks that the kit andtaskgert.ymlwere written;.taskgert/kit.jsonrecords the kit version that wrote them. - Contract:
taskgert.ymlfitted to the repository's real commands. The runner runstg --validate. - Checks:
tg --validate, lint, test, build and, when the contract maps it and a compose stack exists, e2e. Each is recorded as a quality run on the task; one that fails does not stop the others, and the failures go back to the agent together. After three attempts a person is asked: Keep trying, Deliver, with the failing checks as follow-ups (not offered whiletg --validatefails) or Stop the job. - Deliver: the runner makes the branch
taskgert/kit-v<kit version>from the repository's default branch (notdevelop), pushes it, and opens a pull request into the default branch titled "Taskgert kit v<kit version>", whose body is the report. Running it again on a newer kit makes a new versioned branch and pull request; a branch that exists on origin is never reused, and nothing is ever force-pushed. - Sync: the project checks run and what is left for a person becomes a follow-up. The contract is read from the default branch (it holds the autonomy ceiling), so the Sync of the Way of working card is done after a person merges the pull request.
It asks, and waits. When the repository does not answer (which script is the real test, whether there is an
e2e, which environments and deploy provider, whether to create develop, which secrets .env needs), the agent asks
with add_decision (options, a recommended one, critical when a wrong pick is costly) or ask_person (a secret, a
credential, an access) on its task. The job is Waiting with the question in the console and resumes when it is
answered; it never invents an answer.
Safe by design, enforced by the runner where the tools run, whatever the engine or permission mode:
- always
supervised; merging the pull request stays with a person; - it never pushes
main,developor the default branch, and never force-pushes, deletes or mirrors a branch; - it writes no secrets: before delivering, the runner looks through the files for token shapes and values given to
secret-like names (
.envfiles may hold placeholders only) and refuses to deliver, naming paths and reasons, never contents.
The result is a report, kept with the job and in the pull request: each check passed, failed or skipped (with its reason), the files written, the decisions taken and the follow-ups (secrets, deploy credentials, a missing healthcheck, the sync). The job is Done when the kit is valid and delivered, even with failing checks, which are listed as follow-ups.
Watching it
- In the web: the job's console (from the task, or the Agents page) shows the output live and takes prompts.
- Now: what the job does and for how long (
Running tg test · 1m20s, thinking, or waiting for you), its phase, tokens and cost so far, its branch with the commits ahead, and its pull request. - Phases: a stepper of the task's phases: pending, running, passed (its proof on hover), failed or skipped.
- Commands: each tool call is a terminal of its own, open while it runs (its output streamed, about four
times a second), then folded with its exit code and duration; a failed one stays open. The runner's own
tgchecks show the same way. A call cut short by Interrupt or a runner stopping says interrupted or suspended, not failed. A call streams up to 64 KB; past that, the console shows its end. Output is redacted (credentials masked); the terminal keeps the commands' ANSI colours and highlights warnings (yellow), errors (red), passes (green) and$commands (cyan), in both themes. A runner's own output (a check's install and tests) is one terminal block per command that follows the tail while you are at the bottom, not a line per divider; only real runner notices stay centred dividers. With Claude, a command's output arrives when it ends (the Agent SDK gives no live output); with opencode, as it runs. - Changes: after each checkpoint, the files the branch changed against where its work goes (
+/−lines) and its commits. - What the agent says reads as Markdown. A prompt sent while it works is queued until it finishes its step.
- Interrupt and Cancel show only while the job can still be stopped.
- Now: what the job does and for how long (
- In the project's room: Taskgert derives from the job's events what it does now (the tool it calls, by name
only,
tg testfor a known command, a phase that ended, waiting, thinking) and sends it onagent-job.updatedto everyone following the project, at most every 3 seconds per job, never with arguments, paths or output. See Realtime. - On the task the section Agent jobs shows the current job live (status, what it does now, its phases) above the earlier ones. On the board a card has a pulsing agent dot while an agent works on it, an amber waits while it waits for you. The Agents page lists the jobs of a project, filtered by status.
- Runners: the Agents page lists each runner as a card (status, machine icon, who paired it and its version, engines
and brain with their brand icons, up to three project keys and +N). Its name opens its own page,
/agents/runners/<id>: the machine (CPUs, memory, architecture, Docker, free disk), each engine with its version, credential source and last check, the brain, the shared projects, what it works on now, its speed per check kind and its whole job history. Job History on the Agents page also takes a Runner instead of a project. Both readGET /api/v1/agent-runners/{runnerId}/agent-jobs(status,open,limit,cursor): the runner's jobs across projects, engines and models, newest first, only those of projects you may read. - Notices: the person who started a job hears when it waits for them, is done, failed or was lost: in the app, on their phone and by Telegram. A job waiting for them always reaches them; the others follow their notifications preference (none when it is off).
- Through the MCP:
get_agent_jobshows how each command ended (exit code, time, the end of a failed command's output, or the error line of any other failed call) rather than its streamed output, and the branch's changes as one line.interrupt_agent_jobstops the agent's current step (the job waits for a prompt) andcancel_agent_jobends the job, with an optionalreasonleft as a comment on its task; both refuse a job that already ended and say what to do instead (retry_agent_job). They take the same rights as starting a job. - On your machine:
docker compose logs -f agentis the runner's coloured log.docker compose exec agent tg-agent attachopens a live console with a prompt line: what you type goes to the current job;/jobs,/job <KEY>,/interruptand/canceldo what they say.tg-agent statuslists the jobs and exits.
See your runner's jobs in Orca
Every runner also runs (on by default since 0.75; TG_AGENT_ORCA=0 in its .env turns it off) Orca's
headless runtime: one per runner, which its owner adds once to the Orca desktop app. Every job of the runner with
a repository then shows there as a worktree of that repository, named after its task (TSKGT-12 · Fix the login) or
session (Session · claude · 1a2b3c), while it runs, and leaves by itself when it ends. You watch its terminals live
and type into them from Orca.
- On the Agents page, on your runner, press Open in Orca (
Abrir en Orca); or View in Orca (Ver en Orca) in a job's console, which also says where the job is; or ask your agent foropen_orca_session { runner }/{ job }. It shows the environment's name, a pairing code (orca://pair?code=…) and the command that uses it. - Add it once in the Orca desktop app (Settings → Runtime environments), or run
orca environment add --name <environment> --pairing-code "<code>". From then on the runner's jobs appear and go in it; nothing is left behind when they end.
How it works: the runner stays outbound-only. It keeps a connection open to Taskgert's relay, and the relay splices your Orca app with it. The traffic is end-to-end encrypted between Orca and the runner's runtime, so Taskgert only moves bytes it cannot read. Taskgert keeps the code sealed (never logged) and only a hash of the ticket in the relay address.
- The pairing code is a credential that reaches every job of the runner, so only the runner's owner gets it
(or a bot that person made, through the MCP); anyone else gets
403. Opening it is audited. - The runtime's keys and the ticket live in the runner's state directory: the pairing survives restarts and image
updates. Replace code (
Cambiar código, orrotate_orca_pairing { runner }) revokes it at once (the Orca apps connected now are cut and the relay refuses the old code) and the runner restarts Orca with a new one; add it again. It is refused (409 orca-busy) while a job of the runner is in Orca. - A session opens only on a runner of your own: its Orca is yours. Jobs others send to a runner you share still show in your Orca.
list_runnersshowsorca: on;get_agent_jobshows where a job is (in <environment>'s Orca as "<name>").- If Orca stops, the runner starts it again; while it is down, jobs run without it (the runner's log says why).
- The runner's connection to the relay comes back by itself: when the relay closes it (the log says
Orca relay closed (<code>)), when the relay has not pinged it for 75 s (Orca relay silent…), and whenever the runner's link to Taskgert reconnects. If the Orca app is refused with4503 runner not connectedwhile the runner is online, its connection to the relay was lost on Taskgert's side only; it is reopened within that time. - The relay lives in the API process: a deployment with several API instances would need sticky routing by runner.
Before TSKGT-239 each job had its own environment, and an ended one stayed in Orca (4409: job not available); remove
those leftovers in Orca's Settings → Runtime environments (or orca environment rm --environment <name>).
Visible en Orca
By default the agent runs headless (the Agent SDK for claude, a server for opencode) and Orca shows only the job's worktree. Visible en Orca is an extra, optional mode: the job's agent runs as its own TUI in an Orca terminal of the job's worktree, so you watch it and type to it from the Orca app, while the web console keeps showing the same session.
- Choose it with the Visible en Orca switch of the Run with agent dialog (tasks, Taskgerts and prompt
actions), or
visibleInOrca: trueinstart_agent_job.get_agent_jobshowsvisible in Orca. A Taskgert's job passes it on to the task jobs it dispatches. Questions, SETUP and memory curations refuse it (400). - claude runs Claude Code's TUI in an Orca terminal titled with the task key, with the same MCP servers,
instructions, model and session resume as the headless engine. Hooks (
tg-agent hook, through the runner's attach socket) apply the same guards as always, so the TUI never shows a permission prompt, and the runner tails the session's transcript to give the web console the same text, tools, usage and decisions. What you type in Orca shows in the web console as a system line (In Orca: …); prompts sent from the web reach the TUI. - opencode runs as today and also opens its TUI on the same server session in an Orca terminal.
- It needs Orca on the runner (on unless
TG_AGENT_ORCA=0). Without Orca (or if Orca fails to start) the job runs as usual and the console says so. - Trade-offs: the TUI draws its own updates, and a claude job in Orca reports usage without a cost figure.
Remote session from Orca
A session opens a CLI on one of your machines and keeps it open until you close it, so a small computer can develop remotely: the heavy work runs on the runner's machine, you work in its Orca terminal.
- Requirements: a runner of your own with Orca running (on by default; the API refuses a session on a runner that
reports no Orca)
and, for pi, a brain of a kind pi can use (Claude plan or API key, OpenAI, OpenRouter, Gemini, Kimi or an OpenAI-compatible server). One open
session per runner, whoever opened it and in whichever project: the New session dialog shows a machine that has
one as
<name> (session open in <KEY>)and offers another;list_runnerssayssession: open in <KEY>. The Agents page shows such a machine In a session · <KEY>, and the office draws its agent on that project's floor only. The runner image pins pi1.2.0(@earendil-works/pi-coding-agent); the agent in a pi session gets the same MCP servers as in a job (Taskgert and, when its index is ready, CodeGraph), registered for that session only. - Open it: on the Agents page press New session (
Nueva sesión) and choose the project, machine, CLI (claude,opencodeorpi: only those the machine reports), brain, base branch and, optionally, a first prompt. Or ask your agent forstart_agent_job { kind: "SESSION", runner, engine, brain, baseBranch }. It shows in your runner's Orca (added once, see above) asSession · <cli> · <id>. The CLI starts in an Orca terminal with the brain you chose; the web console shows the same session. - Branch:
agent/session-<last 8 of the job id>, made fromdevelop(or the base branch you gave). Nothing lands ondevelop. - How it ends: Close session (
Cerrar sesión) in the console orclose_agent_session { job }(the starter or a project admin); the CLI exiting (/exit); or no Orca client connected and no activity for 2 hours (TG_AGENT_SESSION_IDLE_MINUTES). The branch is pushed if it has commits and the job ends DONE. A session is never retried on another runner.
Taskgert tasks in Orca (prototype)
The jobs above are what runners do. To start work yourself from a Taskgert task, use the Orca plugin
(apps/orca-plugin). It adds a Taskgert tab to Orca's Tasks page with the tasks of your projects (search,
project, stage and type filters) and each task's description, checklist and decisions. Start opens Orca's Create
workspace with these filled in:
- the workspace
<KEY>-<title>; - the base branch (
developby default); - the Orca project whose git remote is the Taskgert project's repository;
- a draft prompt for the agent to work the task with the
taskgert-taskskill.
Ideas, and tasks waiting on others or on a critical decision, say why they cannot start yet. The plugin reads with a
bot token (projects:read tasks:read), which it keeps in its encrypted vault.
It relies on Orca's plugin task sources, still an open pull request (stablyai/orca#26282). Until it ships, the plugin needs an Orca built from that branch. Installation and settings are in the plugin's README.
Attaching files
An agent attaches a file to its task (a Playwright screenshot or video, a report, a log) from its shell:
tg-agent attach .playwright-mcp/e2e-shot.png # to the job's task
tg-agent attach /tmp/trace.zip --task DEV-14 --name e2e-trace.zip
# Attached e2e-shot.png to DEV-12 (01a1…)
The command sends the file's path to the runner over a Unix socket (/run/tg-agent/attach.sock, in the
container's tmpfs); the runner reads the file and uploads it with its own token through the API's upload links,
then attaches it to the task. The file's bytes never go through the agent's context, so a screenshot takes seconds
instead of minutes of base64 written by the model (the agents are told so: never base64 through a tool call; the MCP's
upload_attachment refuses contentBase64 over 512 KB).
- Who asks. Each job's engine gets
TG_AGENT_JOB(its id) andTG_AGENT_JOB_SECRET(random, per job) in its environment; the runner answers only a running job's id with its own secret. A job that ended, or a request with another job's secret, is refused. The runner's token never reaches the agent. - What. Only a file inside the job's own worktree or
/tmp, its links resolved (a link that leads out of them, another job's worktree, the runner's/stateand/run/tg-agentare refused). The types Taskgert takes: PNG, JPEG, GIF, WebP, WebM, MP4, PDF, ZIP, Office documents,.txt/.log, Markdown, CSV, JSON (zip an HTML report). At mostTG_AGENT_MAX_UPLOAD_MB, the API's limit: over it, a clear error. - Where. The job's task by default;
--task <KEY>attaches to another task of the same project only. A Taskgert or prompt job, which has no task of its own, names one with--task. - The attachment is a normal task attachment: it counts as the evidence of an evidence phase.
tg-agent attachwith a job key or nothing (outside a job) is still the live console;tg-agent console [JOB]is the same, by its own name.
Reliability
The runner is made to lose nothing when the network drops or the machine restarts.
- Outbox. What a job prints, its statuses and its permission requests are written first to
/state/outbox/<job>.jsonl(in thestatevolume), then sent in order. Taskgert acks them; what it did not ack (a timeout, a disconnection, a restart) is sent again from there. Output events are numbered per job, so Taskgert keeps each once. A job's outbox holds 20 MB at most: past that, output is dropped behind one marker in the console, but its statuses never are. - Acked commands. What Taskgert tells the runner (a job, a prompt, an answer, a cancel) carries an id. The runner acks it and ignores one it has seen; Taskgert sends what is not acked again after every reconnection, and every 30 seconds while the runner is online. A job whose assignment never reached the runner waits for it.
- Job files. Each job the runner holds has its state in
/state/jobs/<job>.json(its branch, worktree, session and the commands it got), without the repository's credential, which only ever lives in memory. - Graceful stop.
docker compose stop(ordown, or a reboot) gives the runner 30 seconds (stop_grace_period). It takes no new jobs, interrupts each agent at a safe point, sends what it still owes, and reports its jobs Suspended, keeping their worktrees. A suspended job holds its slot on the runner and is not given up after 24 hours; cancel it from its console if you no longer want it. Prompts and answers sent meanwhile wait for it. A runner that comes back without a job it had (its state volume removed) fails it. - Resume. When the runner starts again (after a stop or a crash) it lists the jobs it keeps, and each one
resumes: the same worktree, the same engine session (Claude Code's and opencode's data live in the
statevolume,/state/claudeand/state/opencode-data), and a message telling the agent it was interrupted, followed by what people said meanwhile. A job resumes on its own up to 3 attempts (shown as Attempt 2/3); then it fails, and a person can Resume it once more from its console while the runner is online. - Lost. A job whose runner has been offline for more than 15 minutes (
AGENT_JOB_LOST_AFTER_MINUTESon the API) is Lost: it frees the slot and the people of the job are told. It still resumes if the runner comes back with it; or Requeue it on another runner, as a new job on the same branch that carries on from what was pushed. Retry does the same for a job that failed, was cancelled or is done. - Branches. A job that resumes gets its own worktree back. A new job on the same branch never resets it over commits an earlier job did not push: those are pushed first, or the branch is kept as it is (the job's output says so).
- Old runners. A runner older than this protocol is still accepted, but shows Update the runner on the Agents page: it loses output and jobs when it disconnects. It was set up before the updater: update it by hand once (Updates).
Inside the agent
The image has git, Node 22 with pnpm, ripgrep, jq, ffmpeg, the Docker CLI with Compose and buildx (talking to the sidecar),
cloudflared, CodeGraph, and Playwright's Chromium, so agents can run a project's tests and record
evidence (pnpm evidence uses that browser there). Within the agent localhost is the
container itself; your machine is host.docker.internal.
Troubleshooting
| What you see | What to do |
|---|---|
pull access denied for the image | docker login registry.taskgert.com -u <your e-mail> first, with a live login (Agents → Settings → Registry access). |
| The runner never updates itself | The updater has no registry login (docker compose logs updater says skipped=1): set TG_AGENT_REGISTRY_* in .env, then docker compose up -d. |
unauthorized from docker login | The token was revoked, or the e-mail is not the one of the token's owner: create a new one. |
Cannot reach Taskgert | Check TASKGERT_URL. For a stack on your machine, use host.docker.internal, not localhost. |
no credentials for claude on a job | Add a brain on the Agents page (or set CLAUDE_CODE_OAUTH_TOKEN in .env and docker compose up -d again). |
| A brain stays Checked by the runner | No runner using it is online: start one, then Verify. A key the server asks for is only sent with Verify. |
| A llama.cpp brain Failed: cannot be reached | From the container, the host is host.docker.internal, not localhost; start llama-server with --host 0.0.0.0. |
A Claude job fails with 401 | The token is wrong or truncated: run claude setup-token again and paste it whole. |
| The repository check cannot push | The deploy key was added without write access. |
| Run with agent says the checks fail | Open Settings → Checks: each ✖ says what to fix. Then try again (the checks run again). |
| The job stays Queued | The runner is offline or busy, or not paired with that project (Agents → its projects). |
| The job is Suspended | Its runner was stopped. Start it again (docker compose up -d), or cancel the job. |
| Update the runner on the Agents page | It has no updater yet: download compose.yaml again, then docker compose pull && docker compose up -d (Updates). |
| The runner keeps an old version | docker compose logs updater: registry credentials missing (TG_AGENT_REGISTRY_*), a pinned TG_AGENT_IMAGE, or a job held. |
This runner was revoked | Someone revoked it in the web: restart it to pair again. |
The project's docker compose cannot be reached | Its services answer at docker:<port> (the sidecar), not at localhost. |
tg-agent attach: the storage cannot be reached | The upload links name an address the runner cannot reach: set TG_AGENT_STORAGE_PUBLIC_URL and TG_AGENT_STORAGE_INTERNAL_URL. |
To start over, docker compose down -v removes the runner, the sidecar and their volumes (the token included).