Workflows
Get oriented first
Agents work best when they look before they act: list_projects, then get_board for the project at hand.
The board shows columns in order with their tasks, so the agent learns the team's flow (for example
To do → In progress → Review → Done) before moving anything.
Keep the task as the source of truth
A task can carry the whole state of a piece of work, so that anyone — a person or another agent session — can resume it from its key alone:
- the description holds the plan, in three sections (the
taskgert-taskskill's template):## Goal / Gap: what is missing or wrong, and its acceptance goals: observable outcomes, one scenario each, each tested once at the cheapest level that proves it (unit, integration or end to end), never the same scenario at several levels;## Design: the contract change (or "no change" and why), the code and the UI affected, a Performance line (what it costs at scale, or "none, because…") and a Security line (tenant isolation, permissions, secrets, input limits, or "none, because…");## Workflow: a```mermaidflowchart of the task's real steps only: phases it skips are left out, and a release, deployment and verification batched for a run are drawn as waiting for that release;
- the checklist holds the steps, each ticked live by whoever ran its check, as soon as it passes; a step that comes up on the way (a fix, a missing piece) goes in with
add_checklist_itemandposition: "next", right after the last done step, and is shown as added live; - comments hold the evidence: what was changed, test results, links;
- attachments hold files: logs, screenshots, reports.
Taskgert itself is built this way: every change is a task in the TSKGT project, worked through a fixed
checklist (plan → API → MCP → tests → local end-to-end → release → deploy → verify) by an agent that comments
after each step.
Use the project's memory
The project keeps a shared memory of what is worth knowing again: discoveries, decisions with their why, problems with their solution, conventions and gotchas.
What belongs in it: durable, project-level knowledge, short (about 800 characters: one idea and its why). What
does not: secrets (a token, password or key is refused with 422 sensitive-content), details of one machine (hosts,
IPs, local paths, server ids) and the dates or progress of one session; those belong in the task. Every memory is read
by agents at the cost of their context, so fewer, sharper memories beat many long ones.
- Before non-trivial work,
search_memory(query,type,tag); read one in full withget_memory. - After a discovery or a fix the whole project should know,
save_memorywith a cleartitle, thecontentand atype. Give atopicKey(deploy/coolify-uuids) to what evolves: saving it again updates the same memory. - If similar memories exist, the save is refused and lists them: update one with
save_memoryandmemory, or passforce: trueif yours is really different.delete_memoryremoves a wrong or outdated one. - Several at once (consolidating a run, an import):
save_memoriestakes up to 20, each assave_memorywould, and answers one result per memory (saved, updated, unchanged or refused, with why): a refused one, such as one holding a secret, never stops the others.
To start from the memory a repository already has (engram, Claude Code), run tg memory import once or as often as
you like: it never duplicates (Developer CLI).
Never save progress, status or details of one task or Taskgert: those go in the task (comments, decisions). Needs
the scopes memory:read / memory:write, and the editor role to write.
A project admin can turn the memory off for agents (Settings, general page, "Memory for agents"; memoryEnabled on
the project). Off, bots and runners neither read nor write it (409 memory-disabled, and the memory tools say that a
project admin turns it on in Settings) and agents are not told about it; admins and owners keep browsing and editing it
in the Memory tab, where a banner reminds them, and other members do not see the tab. Nothing is deleted: turned on
again, agents find what the admins curated meanwhile.
The memory in the workflow
The memory is part of the phases, not an extra: recall at Plan (search_memory
with the task's subject; the plan cites what it relies on and flags a memory that looks wrong), record in the
Memory phase after Merge (only what is durable and about the whole project; update the existing memory rather than
adding a copy; correct a wrong one), consolidate when a Taskgert finishes (one memory per
lesson, and "memory: N saved, M updated" in the verdict) and review with a curation below when many memories are
unverified or a run changed a lot. A review is never launched without a person, unless the project's autonomy allows it.
Curate the memory
A memory left alone drifts: duplicates, facts the code has outgrown, notes about one machine. A memory curation
(TSKGT-212) is an agent job that reviews the project's memory against its repository and proposes how to improve it;
a person approves the result. Start it from the Memory tab ("Curate", project admins), or with start_agent_job
(kind: MEMORY_CURATION; POST /api/v1/projects/{id}/memory-curations). It needs memory.write (project owners and
admins; a bot with memory:write and the editor role), the memory turned on, and one curation at a time per
project (409 curation-running).
- The agent gets a read-only checkout of the repository's default branch (it commits and pushes nothing and writes no
files; without a repository it reviews the memory alone and the report says so) and the memories to review, least
recently verified first, up to about 40,000 characters (each trimmed to 1,500). The rest wait: the report says how
many are
leftForNextRun, so repeated runs walk the whole memory, and a memory a person or agent edits becomes unverified again. - For each memory it verifies the claim against the code and ends it with exactly one proposal, sent with
propose_memory_changes(20 per call, each with areasonand, when it relies on code,evidence: path and a snippet; each memory named by itstopicKeywhen it has one, or its id): verify (still true; only stampsverifiedAt), update (corrected text), merge (duplicates: the first stays, rewritten, the others are deleted), delete (obsolete, environment-specific, task progress) or create (important durable knowledge evident in the code and missing; few). Proposals pass the same secret guard as any memory. It ends with a Markdown summary. - When the job ends the report is READY and the person who launched it is told (live notification, with a link to
the report). Read it with
get_memory_report(curationor the latest of the project) or in the Memory tab: each proposal with its before and after, reason and evidence, and the counts per action and status. - A person approves or rejects the whole report (
POST .../memory-curations/{id}/approve|reject,memory.write). Approving applies every pending proposal in order through the memory rules, each in its own transaction: one whose memories changed since it was made becomesSTALE, one that fails (a taken topic key, a secret) isFAILEDwith its error, and the others still apply; the report endsAPPLIEDorPARTIALLY_APPLIED. Rejecting discards them all. Both are audited (memory.curation.approved|rejected, beside the usual memory audit rows).
Autonomous mode (autonomous: true) applies each proposal as soon as the agent sends it, still recorded and
audited. Only a person with memory.write may start it, and only when the project's agent.autonomy ceiling is above
supervised (422 autonomy-not-allowed). It runs manually only: there is no schedule.
Run checks with a compact report
Run every check as tg <check> --report --task <KEY> (lint, test, int, build, e2e): the output stays in a file, the
run is recorded on the task, and the agent reads only the failures, each as file:line — test — message with a
snippet (Quality reports). A long tg e2e runs in the
background: the agent is woken when it ends instead of polling it. get_quality_run gives more of one run when it is
needed, list_quality_runs a task's or a project's runs, and get_task the latest run of each kind.
get_quality_insights reads what to improve in a project (also the Quality tab's top): the health, the pass rate
and the first-attempt pass rate against the previous period, and insights with their evidence: flaky tests, a
failure or lint rule that keeps coming back, a check that often fails at the first attempt, a slower check, runs
that ended in ERROR and tasks at their 3rd failed attempt. Read it before planning improvements, at the Memory
phase (a recurring rule is a convention to save with save_memory) and when a check keeps failing. To track an
insight, create_task with quality-insight:<id> in its description (the tab's Create task does it): the next
read says "Tracked by".
Inside a runner-owned phased job, signal readiness with PHASE DONE instead of running the full gate first:
the runner executes and reports it once per attempt. Targeted debugging is still allowed. E2E can declare
commands.e2e.prepare for host test prerequisites and uses a fresh disposable Compose project for each run;
it seeds that fresh storage rather than reusing a previous test run's edited data.
A check can also run on a runner (tg <check> --remote, or run_quality): push the branch first, then wait with
tg quality wait <run id>, which is answered when the run ends without polling. Where tg e2e runs by default is
the task's setting, shown by get_task with the level it comes from (task, Taskgert, project, taskgert.yml), and
tg e2e --suite <name> picks a suite of quality.suites (Checks on a runner).
Each failed run of a check on a task is an attempt. The answer says which (Attempt 2 of 3 failed: fix the failures and run tg test again.); after the 3rd failed attempt, stop and ask_person with what fails and what
was tried. A test that passes on its single retry is flaky: the run passes and counts no attempt.
Example prompts
- "Triage the To do column of TGT: set a priority on every task that has none, and comment why."
- "Pick the most urgent task assigned to me in TGT, move it to In progress and outline a plan as a checklist."
- "Summarise what changed on the TGT board today, from the tasks' comments."
- "Attach the test report in ./report.md to TGT-42 and move it to Review."
Hand work to an agent, and how far it goes alone
start_agent_job (and create_taskgert or start_taskgert for a whole run) take an optional autonomy:
supervised(the default): guarded actions ask a person; releasing and deploying stay with one;staging: the job merges into develop, releases (tg release) and deploys to staging (tg deploy staging) alone; production still asks;full: it goes through every environment of the contract, in order, production included.
The project's agent.autonomy in taskgert.yml is the ceiling (get_contract shows it, and what it reaches). A
level above supervised needs a project admin (a bot needs that role and the agents:autonomy scope); one above the ceiling is
refused with the ceiling and how to raise it. get_agent_job and get_taskgert show the level when it is not
supervised.
Ask a question, read-only
start_agent_job with a prompt, intent: question and optionally a context (a task key, a Taskgert key or
project) starts a job that only answers: whatever autonomy says, it runs supervised and cannot write, merge,
release or deploy (its runner refuses it, and gets no token for pull requests). get_agent_job returns its answer
once it is DONE. Every job has a title that says what it runs (TGT-12 · title, 3 actions, the question,
E2E check · develop @ a3200e0).
Taskgertize a project
start_agent_job with kind: SETUP and the project (no task, Taskgert or prompt) hands the agent the guide
"Taskgertize a git project": it installs the kit, fits taskgert.yml, proves it with
tg; the runner then merges it into develop and releases it with tg release. It needs a project with a
repository (422 repository-not-configured otherwise) and runs one at a time per project.
get_agent_job shows its phases (Inspect, Kit, Contract, Checks, Merge, Release, Sync) and, at the end, its
report: each check passed, failed or skipped (with its reason), the files written, the decisions taken and the
follow-ups. When the repository does not answer something, the agent asks with add_decision or ask_person on its
task and the job is WAITING until a person answers.
Where a task came from
Every task records where it was created, as its origin, set by Taskgert itself (never by whoever creates it) and
shown as a badge on the card and the task page:
origin | Created |
|---|---|
WEB | by a person on the web app |
MOBILE | by a person on the mobile app |
EXTENSION | by a person in the Chrome extension |
TELEGRAM | by a person through the Telegram bot |
APP | by an app with one of the project's intake keys |
AGENT | by a bot: an agent through the MCP, or a runner |
API | with a person's token from anywhere else (a script, curl) |
Tasks created before Taskgert recorded it have none. When the description is a transcribed voice note (from the
extension or Telegram), the task also has transcribed: true, a microphone on its badge: names and code terms may
be misheard. list_tasks filters by origin.
Refine Ideas sent by Telegram
Ideas people send to the Taskgert Telegram bot are marked origin: TELEGRAM (a "Telegram" badge on the board), and
the ones sent from the Chrome extension origin: EXTENSION. Their description is the person's raw words alone; a
voice note's transcript also has transcribed: true. To refine them:
- Run
list_taskswithtype: IDEAandorigin: TELEGRAM(orEXTENSION). - Read each one for its intent and contrast it with the code.
get_taskreminds you innext. - Write the goal, design and checklist.
- Set the type to
TASK. The person is then told on Telegram that their idea is now a task.
"Refine the Telegram ideas of TGT against the code" is enough of a prompt.
Work alongside people
Everything an agent does appears live on the board and is signed with the bot's name. Assign tasks to the bot
("me" in tools) to make its work visible, and use comments to hand over: people can answer in the same thread.
Avoid overwriting
update_task takes the version that get_task returned. Pass it when editing something a person may be
editing too: if the task changed in between, the tool fails and the agent can read it again instead of
overwriting.