Files and realtime
Attaching files
upload_attachment attaches a file to a task. Give the content as text for text files (Markdown, CSV, JSON,
plain text) or as contentBase64 for anything else. An agent that writes a file's base64 itself spends minutes
and many tokens on it, so contentBase64 is capped at 512 KB in a call: inside
taskgert-agent a file goes up with tg-agent attach <file> from the agent's
shell, and elsewhere from a terminal with the developer CLI (not capped), so its bytes never
go through the context. Allowed types: images (PNG, JPEG, GIF, WebP), PDF, ZIP,
Office documents, plain text, Markdown, CSV and JSON. The file goes straight to object storage through a
short-lived upload link; the API checks that its content matches the type it claims.
In the web, people attach files with Attach files, or by pasting a screenshot (Cmd/Ctrl+V) or
dropping files into a comment or a description being edited. A pasted screenshot is named after when it was
pasted (Pasted image 2026-10-04 08.31.png). In a comment it waits as a pending attachment and goes out with
the comment; in the description it is attached to the task.
Reading files
get_task lists a task's attachments. read_attachment reads one, by id or by file name:
- text, Markdown, CSV and JSON files come back as text;
- PNG, JPEG, GIF and WebP images come back as the picture itself, so the agent can look at them;
- other files (PDF, ZIP, Office) come back as a download link only.
Every read returns a fresh download link; links are short-lived, so read the attachment again for a new one.
Realtime
Changes made through the MCP reach everyone at once: open boards update without reloading, and the card or row that changed is highlighted for a moment. People see who else is looking at the project. Agents do not need to poll for their own changes — the tool's answer already contains the updated task.
Following a project without showing presence
A client of the realtime connection follows a project with project.join, which also shows the person in the
project's presence. A silent join, project.join with presence: false, receives the same messages (event,
presence.state, project.presence, agent-job.updated, runner.status, bot.activity) but the person never appears among the viewers, whatever
task they say they have open. This is how a view that follows every project of a workspace at once avoids showing the
person on every board: the web app's office (/office), a pixel-art building with one floor per project
where the agents of each floor are drawn at work, live (a workspace with more than eight projects gets more towers
side by side on the same street). It still requires being able to read the project. A connection that
joined the same project both silently and normally is shown until it leaves the project; to stop showing, it
leaves and joins again silently. In the web app, realtime.join(projectId, { presence: false }) does this, and
counts the parts of the page holding each project in each mode.
How the office is drawn
The building, its street and each floor's plan are drawn with PixiJS from two LimeZu asset packs bought under their
commercial licences, Modern Office and Modern Interiors (limezu.itch.io, credited in
apps/web/public/office/tiles/LICENSE.txt). Only the cut pieces the office uses ship, as three small sheets under
apps/web/public/office/tiles/: modern-office-16.png (desks, chairs, screens), modern-interiors-16.png (the
cream walls and the arched doorways, the real floor materials, the meeting room, the kitchen, the lounge, the
windows, the plants, and the animated pieces: the elevator doors, a cup of coffee, a cat asleep on the rug, the
server racks, a cuckoo clock, a television) and characters-16.png (twenty premade people, walking in four
directions, seated at their desks from behind, cheering, on a break). The packs themselves stay outside the
repository; to cut the sheets again, unpack them and run the packers from the repository root:
OFFICE_PACK=/path/to/Modern_Office node apps/web/scripts/pack-office-tiles.mjs
INTERIORS_PACK=/path/to/Modern_Interiors node apps/web/scripts/pack-interiors.mjs --contact /tmp/contact.png
Each packer lists the pieces it copies, writes the sheet and the rectangles (tileset.generated.ts,
interiors.generated.ts) that atlas.manifest.ts maps to frame names; --contact also writes a labelled contact
sheet to check the cuts by eye. Every frame keeps a drawn fallback where it replaces one (walls, floors, the
elevator, the people), so the office still renders if a sheet fails to load. Round a floor's plan the city goes on,
seen from above: the pavement round the building, the ring road with its crossings and parked cars, and the roofs of
the blocks across the street. Animated pieces loop or play now and then; with the system's reduced-motion setting
they keep still.
Who of a project's members is signed in
project.presence tells a project's room (normal and silent joins) which of the project's members are signed in
right now, anywhere in Taskgert: a person with at least one open web or app connection, on any page, who belongs to
the project. Right after each project.join the connection gets a snapshot, then the room gets diffs as people sign
in or out, become members or are removed, or open the project:
{ "kind": "snapshot", "projectId": "…", "members": [
{ "userId": "…", "name": "Ana Ruiz", "initials": "AR", "avatarUrl": null,
"active": true, "taskKey": "TGT-12", "since": "2026-10-06T10:00:00.000Z" } ] }
{ "kind": "diff", "projectId": "…", "joined": [ … ], "left": ["<userId>"], "changed": [ … ] }
active: they have the project's board or one of its tasks open (a normal join; a silent one, like the office, does not count);taskKey: the task they have open.since: when they signed in (their oldest open connection).- A person counts once however many tabs or devices they have open, and leaves with their last connection.
- Only the project's members, and only people: bots never appear, nor a person while a superadmin impersonates them.
- It is pushed, never polled. Bursts are coalesced into one diff every 500 ms at most per project; connections that stop sending heartbeats (an instance that crashed) leave within 90 seconds. A client ignores a diff for a project it has no snapshot of: joining again brings a new one.
presence.state(who has the board open, with the task id) is unchanged.
The web app opens its connection on every page while someone is signed in, so they are online wherever they are.
realtime.onProjectPresence(listener) and the hooks useProjectPresence(projectId) and useAllProjectPresence()
give the merged members of each joined project.
The office draws them from project.presence alone: every signed-in member of a project is on its floor (the person
looking at the office never is). With a task open they stand at the board; with the board open they look around the
floor; signed in elsewhere in Taskgert they wait by the coffee. They walk in and out by the elevator as they sign in
and out, more than eight on a floor show as "+N", the list view has a Connected now section, and the screen
reader hears who came in and who left (once per person, a few seconds apart).
Every character has its name over its head in the office's pixel font: people their first name, agents their
runner (and, on the floor plan, their engine under it: WORKER01 / CLAUDE), bots their name. Names are short,
never cut (the full one is on the character's button), and never overlap: on the floor plan one steps up a row; on
the building's small floors there is one row, and a less important name gives way. When the picture is small (the
whole street on a laptop) only what is happening keeps its name: people, agents at work, a bot that speaks; and
where the font would be too small to read (a phone) only a character that speaks or needs a person.
Round the building the city lives too, calmly and never over the floors or their tags: one thing passes at a time,
20 to 60 seconds apart (a small plane with blinking lights at night, a hot-air balloon, birds by day, bats at dusk, a
shooting star, a van or a bus with its headlights on, a cyclist, someone walking a dog); a cat sits on a bench,
pigeons fly off when someone walks by, trees sway, planters flower and, by the viewer's month, blossom (spring) or
leaves (autumn) fall now and then. It is drawn only from the viewer's clock, never from the server. The toolbar's
Ambient button (a bird) turns it off and is remembered in that browser; with reduced motion the city is still.
/office?ambient=plane (or balloon, birds, bats, shootingStar, van, bus, cyclist, dogWalker)
previews one at once.
Runner status
runner.status says a runner went online or offline, or was revoked. It reaches the person who paired the runner
and the workspace owner, wherever they are in the app. It also reaches every connection that joined (normally or
silently) one of the projects the runner works on, so any member of those projects sees agents come and go. A
connection in several of those rooms gets each status once.
What each agent is doing now
agent-job.updated tells a job's project room (normal and silent joins) and its watchers when the job changes
status. While it runs, it also carries activity, a compact line of what the job is doing now, for views that follow
many jobs without reading their output (the office):
{ "kind": "tool", "label": "tg test", "tool": "tg", "at": "2026-10-05T10:00:00.000Z" }
kind:tool(a tool call),phase(a phase of the contract ended:labelis its id and how,phaseits id),waiting(it waits for a person:Waiting for an approvalorWaiting for a person) orthinking(the agent is writing).label: at most 60 characters. A tool shows by its name only (Edit,mcp__taskgert__add_commentastaskgert: add_comment). A command (Bash, the runner'stgchecks) shows its first word and a known sub-command when it is one oftg,pnpm,npm,git,dockerornode(tg test,pnpm install,git commit); anything else shows as the tool's name. Arguments, paths, URLs, variables, outputs and what the agent writes are never part of it.- At most one activity update every 3 seconds per job: the first goes at once, then only the latest of each window,
when it ends. A change of status carries the activity waiting for its window, or
waiting. - An update without
activitymeans no news: keep the last one, but drop it once the job ended, and awaitingone once it no longer waits.GET /agent-jobs/{id}does not carry it: it is live only.
In the web app, realtime.onJobActivity(listener) hears them; onJobUpdated is not told of an update that only
says what a job does (its status already known), so the views that refetch jobs on a change do not refetch every
3 seconds.
What each bot is doing through the MCP
bot.activity tells a project's room (normal and silent joins) what a bot member of the project is doing in it
through the MCP, including what changes nothing: reading a task, searching, listing. It comes from the
MCP trace, so it needs MCP_TRACE_CALLS on (the default):
{
"botId": "…",
"projectId": "…",
"kind": "read",
"tool": "get_task",
"taskKey": "TGT-12",
"at": "2026-10-06T10:00:00.000Z"
}
kind:search(search_*,list_*),read(get_*,read_*,whoami) orwrite(anything else:create_task,add_comment,move_task…).thinkis reserved: no MCP call says so yet.tool: the MCP tool's name.taskKey: the task the call named (task, ortaskswith only one), as its key even when the call gave its id. The call's other arguments, its text and its result are never part of it.- The project is the one the call names, by its
task,project,epic,taskgertortasksinput (key or id), and only when the bot is a member of it. A call that names none, a project the bot is not in, or one of another workspace sends nothing; a call that failed sends nothing either. - At most one every 3 seconds per bot and project: the first goes at once, then only the latest of each window, when it ends.
In the web app, realtime.onBotActivity(listener) hears them. The office draws them, from the socket alone (it
never reads the activity feed for this):
- a bot without a runner on that floor is a robot that comes in with its first call and stays while it works (two minutes after its last one): it walks to the board to read, search or move tasks, and stays where it is to write. A small pixel bubble says what it does: a magnifier for reads, binoculars for searches, a pencil for writes;
- a runner's bot speaks through that runner's agent at its desk instead;
- a speech bubble names the bot and what it does ("🔍 TGT-12", "💬 TGT-8", "🔭 searching"), one at a time and the latest call winning, so a busy bot never piles bubbles up; doing the same thing again says nothing new;
- the list view and the screen reader say it in words ("Claude-bot is reading TGT-12"), and the robot's card shows the tool and how long ago.
Live notifications
People signed in to the web app are told about changes others make in their projects as they happen, wherever they are in the app:
- what is notified: a task created, changed, moved to another column or deleted, and a new comment;
- how it shows: a toast saying who did what to which task, whose title opens the task's own page (
/TGT-12), and a bell that keeps the latest ones; - in the office (
/office) there is no toast: a pixel envelope flies to the project's floor and a small notice beside it says the same (its emoji, headline and who, in the outcome's colour) for 8 seconds; clicking it opens the task. Two show at a time per floor, the others wait their turn ("+1 more"); a floor out of view gets a badge on the edge of the picture that brings it into view, and a project not in the building shows by the lobby. The bell keeps them as everywhere, the screen reader hears each one, and with the office's sound on a soft "post" rings; - what is never notified: a person's own changes, and anything to bots.
Each notification's icon is coloured by its outcome:
- green: something got done, such as a task moved to a done column (🏁, "TGT-12 done") or a deployment that succeeded (✅);
- red: something went wrong, such as a failed deployment (❌);
- yellow: something that asks the person, a decision (🤔) or an action (🙋), or ⚠️ when it is critical;
- neutral: the rest: created 🆕, changed ✏️, moved ➡️, deleted 🗑️, a comment by a person 💬 or by a bot 🤖, a deployment starting 🚀.
The bell's Clear button empties its list and its unread count. The bell lives in the browser tab only: a reload empties it too, and clearing it does not close the toasts still on screen (each has its own ×).
Each person chooses in Settings → Live notifications:
- Everything in my projects (the default);
- Only my tasks: tasks they created or are assigned to;
- Off.
Other clients get the same notifications as the notification message of the realtime connection; see the
AsyncAPI contract. A task.moved to a done column carries columnDone: true (the field is absent otherwise), so a
client can tell a finished task from any other move.