UserProfileFull
userobject · requiredsettingsobject · requiredonboardingobject · requiredPer-user onboarding state. Stores draft user input + wizard progress. Step "completion" is derived from real product state, not stored here. No secrets — vault tokens stay in AppSettings.vaultProviders.
UserProfile
idstring · requiredlastProjectIdstring · requiredmanualBalancenumber · requiredsubscriptionBalancenumber · required
stripeCustomerIdstringprojectIdToAgentIdobjectConstruct a type with a set of properties K of type T
zdrOnlybooleanZDR account (admin setZdrOnly): only models with an EU zero-data-retention endpoint run.
AppSettings
idstring · requiredthemestring · requireddiffControlstring · requiredshellExecutionstring · requiredemailNotificationsboolean · requiredpushNotificationsboolean · requireddataAnalyticsboolean · requiredplaySoundOnTaskCompleteboolean · requiredshowTodoCompletionToastboolean · required
previewAutoColumnsnumberPreferred column count used by the automatic preview-window layout. Defaults to 3.
todoListThemeautoCompleteTodosbooleanLet the agent tick a todo DONE when it judges the task complete (end-of-turn check). Off = it stays READY until the user ticks it; the composer's Auto-Done toggle still works. Default on.
showOpenElsewherebooleanOpt-in: board cards show which of my other frontends (tab / desktop app / phone) have the todo open. Off = this frontend neither reports nor tracks presence.
tabNotificationModeHow the browser-tab red "done" dot behaves after a TODO finishes.
todoOpenModeWhat opening a TODO from the board does: a floating preview window over the board (default, the advanced workspace) or the full-page chat.
boardSortKeyThe time key board groups order their todos by (newest first).
boardGroupByStatusbooleanBoard groups bucket rows by status first (needs you → running → open → done), then by the time key.
disabledMentionSourcesstring[]Disabled
modelFavoritesarrayLegacy picker favorites; read once to seed
modelList, never written anymore.modelListarrayThe user's model list (picker + editor): models and routers in the user's order. Unset = Auto + the legacy favorites (effectiveModelList).
keyboardBindingsobjectConstruct a type with a set of properties K of type T
keyboardShortcutsEnabledbooleandefaultViewModestringmodelMentionAliasesstring[]Enabled model-mention aliases (e.g. 'claude', 'gpt') for
showDiffMergeControlsbooleanShow accept/reject chunk controls in the diff (merge) view. Off by default — with auto-apply the diff is just a record of what got applied, so the controls are unnecessary noise.
showAgentColorsbooleanshowAgentNameInComposerbooleanShow the selected agent's name (with an expand chevron) on the collapsed composer trigger instead of the plain settings cog icon.
showAllowAllButtonbooleanshowAutoDoneButtonbooleanShow the Auto-Done toggle in the message toolbar. When the toggle is on, the next run's successful completion lands the todo in DONE instead of READY.
strikeDoneTodosbooleanStrike through the title of done todos. Default off.
showTodoDeadlinebooleanBoard rows: the deadline chip right of the title. Default on.
showTodoNotesbooleanBoard rows: the comments chip (count; opens them). Default on.
showLatestNotebooleanBoard rows: the latest comment as a line under the title. Default off.
showTimeViewOnMobilebooleanOffer the Time view on phones (web and app). Default off: board and list only.
showSystemPromptbooleanShow the agent's system prompt (and its diffs) inline in chat. Also makes the backend ask the agent for it: the prompt is only attached to a finished message when this is on (or an x-tfa-debug turn), since it is tens of KB per message.
developerModebooleanDeveloper mode: reveals the Developer group in View settings (debug-only toggles). Purely cosmetic — it gates no capability, every toggle inside works on its own. Staff-granted:
adminUser.setDeveloperModeis the only writer — updateUserSettings drops the key, so no client can reveal the group for itself.showAgentJsonExportbooleanShow the JSON export button in the agent settings modal header.
surfaceModeHow much of the machine layer the UI exposes — see
SurfaceMode. Unset meansbasicfor accounts with no paired machine andadvancedonce one exists, so existing users never lose their cards.detailedBuiltinToolManagementbooleanShow detailed built-in tool permissions in resource settings. Default off; visibility only.
useDeviceWallpaperbooleanPaint each device card with that machine's real desktop wallpaper, captured by the bridge when it reconnects. Off keeps every card on the built-in OS-themed gradient. Individual devices can still opt out on their own via
Device.metadata.wallpaper.mode. Default off — the wallpaper is a personal image, so uploading it is opt-in.showProjectPickerInSidebarProject picker at the top of the todo sidebar (team plan only).
offhides it,autoshows it only when you have more than one project,alwayskeeps it pinned. Defaults toauto.toolDisplayVerbosityDesktopTool-block display density, resolved per viewport.
collapsedkeeps non-essential tool blocks collapsed (one-line summary, click to expand).normalopens them by default.debugadditionally surfaces internal fields (pid, timeout, …) on shell/bash blocks. Desktop defaults tonormal, mobile tocollapsed.toolDisplayVerbosityMobiletoolGroupingFold the agent's runs of commands and thinking into one line. Default 'recent' (its last operations stay visible). Independent of verbose tool display.
showThinkingTracesWhich finished reasoning ("Thinking") blocks stay in chat. Default 'last'; hidden reason blocks render nothing, which also lets more consecutive tool messages collapse into a single group.
showShellFileChangesbooleanShow the files a shell command touched (edge/bridge git tracking) under Shell blocks. Default off: the heuristic can pick up unrelated concurrent edits. When on, each diff still renders collapsed.
showContextUsageComposer context-usage ring: 'auto' (default) = only once the context fills up (>=60%) or a compaction runs; 'always'; 'never' (compaction state still shows).
vaultProvidervaultConfigvaultProvidershostDesktopItemsobjectPer-host desktop layout, keyed by host id (device/edge id, or "cloud"). An ordered list of items; array index IS the order. Items absent from a host's list are appended (in the host's default order) on render, and items whose key no longer exists are dropped.
todoContributorFilterobjectPer-project people filter for the todo list, keyed by project id: user ids whose todos are shown. Absent key = everyone.
sidebarWidgetsobjectPer-project widgets and notes pinned to the sidebar, keyed by project id: refs (
<todoId>:<alias>, a todo id, an url,note:<surfaceId>; isSidebarPinRef) in sidebar order. Personal (each member arranges their own) and independent of the board: a pin needs no board card. Absent key = none pinned. (Early pins were board surface ids: the frontend rewrites them to their refs.)sidebarHiddenobjectPer-project workspace pins (WorkspacePin refs) the user took off their own sidebar, keyed by project id.
aiDataConsentAtnumberWhen the user agreed that their content is sent to the provider of the AI model they pick.
attentionobjectPer-user attention channels (urgent / work / quiet): deliveries and hours. See attentionChannels.ts.
storagePlacesobjectThe user's notes on their storage places and which one is Home (Files tab). Sent to the agent.
companyNamestringvatNumberstringaddressLine1stringaddressLine2stringcitystringstatestringpostalCodestringcountryISOstringaddressValidbooleanvatStatusRead-only: set from Stripe, never accepted from the client.
groupToolDisplayboolean · deprecated · required
FavoriteModel
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type, family | |
| type = object · requires: type, model |
typeconst · requiredConst value: familyfamilystring · required
ModelListEntry
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: id, kind, model | |
| type = object · requires: id, kind, name +1 more |
idstring · requiredkindconst · requiredConst value: modelmodelrequiredA user favorite: follows a family (default) or pins one concrete model.
RouterCategory
idstring · requirednamestring · requiredwhenstring · requiredWhen to pick it — goes verbatim into the decider prompt.
modelrequiredA user favorite: follows a family (default) or pins one concrete model.
thinkingisDefaultbooleanThe "if unsure" category: used when the decider is unsure, slow or fails. Exactly one per router.
RecordstringArrayHostDesktopItem
keystring · requiredTile identity.key (e.g. "filesystem", "gh") or widget id (e.g. "widget:activity").
wnumberColumn span (default 1).
hnumberRow span (default 1).
kindDiscriminates render path. Defaults to 'tile' when omitted.
HostDesktopItem
keystring · requiredTile identity.key (e.g. "filesystem", "gh") or widget id (e.g. "widget:activity").
wnumberColumn span (default 1).
hnumberRow span (default 1).
kindDiscriminates render path. Defaults to 'tile' when omitted.
AttentionPrefs
timezonestringIANA zone the hours are read in; written by the client that last saved. Absent = UTC.
channelsobjectMake all properties in T optional
AttentionChannel
deliverarray · required
hoursobjectAbsent = always open. Outside the window the channel delivers nothing (the row still lands).
AttentionDelivery
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
AttentionHours
fromnumber · requiredLocal hour the channel opens (0–23, inclusive).
tonumber · requiredLocal hour it closes (1–24, exclusive).
weekdaysOnlyboolean · required
Onboarding
idstring · requiredid === userId
versionnumber · requiredSchema version for future migrations
updatedAtnumber · requiredLast server-side write timestamp (last-write-wins)
startedAtnumbercompletedAtnumbertodoIdstringThe board's setup todo (ONBOARDING_AGENT); kept (DONE) after finishing, '' on restart.
currentStepstringStepper step id the user is on
websiteUrlstringboardModePersonal board (no brand UI) or business board (brand card, analyzer, voice).
painsstring[]What takes most of their time (the pain question's picks, in click order); decides the first things handed over.
AccountDataExport
exportedAtstring · requireduserrequiredprofilerequiredsettingsrequiredonboardingrequiredauthSessionsarray · requiredauthAccountsarray · requiredprojectsarray · requiredprojectSettingsarray · requiredtodosarray · requiredmessagesarray · requiredagentSettingsarray · requirededgesarray · requireddevicesarray · requiredapiKeysarray · requiredtasksarray · requiredusagearray · requiredtransactionsarray · requiredexternalDataSourcesarray · requiredtodoCostsarray · requiredhexGridsarray · requiredgridTilesarray · requiredattachmentsarray · requiredbusinessContextsarray · requiredvaultobject · required
SendFeedbackInput
kindrequiredmessagestring · minLength: 1 · maxLength: 4000 · required
contextobjectClient diagnostics (url without query, version, viewport, recent errors…). Entry count capped server-side.
DailyUsage
dayTSnumber · requiredtotalSpentnumber · requiredtotalAddednumber · requiredmessageCountnumber · requiredmcpUsageCountnumber · requiredmodelUsageobject · requiredConstruct a type with a set of properties K of type T
updatedAtnumber · required
todoCountnumberTodos started this day. Missing on records from before the counter existed.
toolCallCountnumberTool blocks completed this day. Missing on records from before the counter existed.
TeamUsageQueryInput
startDatestringendDatestringownerIdstringTeam to act on, identified by its owner's user id.
TeamUsageResponse
startTSnumber · requiredInclusive day range actually covered, ms timestamps at day start.
endTSnumber · requiredtotalSpentnumber · requiredSum of
members[].spent— what the team pool paid out in the window.membersobject[] · required
TeamMemberUsage
userIdstring · requiredemailstring · requiredrolerequiredRole of a user within a team (IAM). owner: billing + full control; admin: manage members; member: belongs only.
spentnumber · requiredSpend funded by the team pool in the window, in $.
messageCountnumber · required
namestringformerbooleanSpent from the pool while on the team, but no longer a member.
TeamRole
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
ProjectIntakeSettings
enabledboolean · requiredtokenrequiredurlrequiredautoStartboolean · requiredmaxSubmissionsnumber · requiredsubmissionCountnumber · requiredpostIpLimitnumber · requiredplaceholderstring · requiredagentSettingsIdrequiredresultEmailAtrequired
flow
IntakeUpdate
projectIdstring · requiredgroupTagstring · pattern:^[a-zA-Z0-9_-]{1,36}…· required
enabledbooleanflowThe workflow (id) a submission starts. null: a plain todo in this group.
agentSettingsIdstringautoStartbooleanresultEmailAtEpoch ms when submitters who left an email get the result; null disables email collection.
maxSubmissionsinteger · min: 1 · max: 10000postIpLimitinteger · min: 1 · max: 1000placeholderstring · maxLength: 500
ProjectFull
projectobject · requiredA project organizes todos.
settingsobject · requireddoneCountnumber · requiredCount of todos in the DONE stage — O(1) ZCARD, kept accurate independent of what the paginated todo list has loaded.
boardCountnumberTodos the board list (
todo.list) can actually page: shared, visible, not dismissed — any status. Optional for older backends.supportsPrivateTodosbooleanRuntime server capability, response-only (never persisted): this backend enforces group membership visibility. Clients MUST fail closed — hide the personal group when absent — so a new frontend against an old backend can't create shared "private" todos.
Project
idstring · requirednamestring · requireddescriptionstring · requiredprojectSettingsIdstring · requiredownerIdstring · requiredownerEmailstring · requiredisPublicboolean · requiredreadAccessIdsstring[] · requiredUser IDs with read access
writeAccessIdsstring[] · requiredUser IDs with write access
readAccessEmailsstring[] · requiredwriteAccessEmailsstring[] · requiredstatusrequiredisDefaultboolean · requiredcreatedAtnumber · requiredupdatedAtnumber · required
teamOwnerIdstringThe team this project belongs to, identified by its owner's user id. Set = a shared team project: every member of that team holds write access, and AI spend inside it is billed to that team's pool. This is the switch that decides WHOSE quota a member burns, so a project belongs to at most one team (enforced atomically in setTeamProjectAtomic).
Being replaced by
organizationId: the migration writes both, and once every reader is on organizationId this field goes away.organizationIdstringThe organization (better-auth organization plugin) this project belongs to. Same semantics as teamOwnerId — members get write access, spend bills to the org owner's pool — but keyed by the org's own id, so an org can outlive / change its owner. At most one per project.
businessContextIdstringThe project IS the brand: this is the attachment id of its brand page (markdown). Absent = a personal board (no brand card, analyzer or voice).
logostringThe project's own logo: an image URL (a public attachment or any https image). Unset = the brand website's favicon (
brandDomain), else a plain project glyph.iconstringThe workspace's icon: one emoji (e.g. a department's 🏭). Shown before the logo fallbacks.
brandDomainstringThe brand website's hostname, derived from the brand page whenever it is written; '' = checked, the page names none. Read-only for clients.
killSwitchobjectThe latch that applies TO THE CALLER, projected per request: the project-wide one if the owner pressed it, otherwise this user's own. A teammate's personal latch is never visible here — it stops their runs, not the board.
archivedAtnumberdeletedAtnumber
todoIdsstring[] · deprecated · required
ProjectStatus
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
KillSwitch
scoperequireduser:by's own runs, latched inby's own slot — invisible to teammates, released byby.project: everyone's runs (owner presses and releases).bystring · requiredatnumber · required
autoconstLatch tripped by the running limit rather than by a person.
Const value:
KillSwitchScope
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
ProjectMember
idstring · requiredemailstring · required
onlinebooleanHas a recently connected frontend, not necessarily actively interacting.
namestringimagestringAvatar attachment id (same as the profile picture).
tagsstring[]Their tags on the team this project belongs to (a group can be shared with a tag).
ProjectUpdateInput
projectIdstring · required
namestringdescriptionstringisPublicbooleanstatuslogostringhttps image URL; '' clears it (back to the brand favicon).
iconstring · maxLength: 16One emoji; '' clears it.
ShareProjectInput
emailstring · email · requiredprojectIdstring · requiredcanWriteboolean · required
CreateTodoInput
projectIdstring · requiredcontentstring · requiredagentSettingsobject · requiredAI AgentSettings configuration including model, system prompt, and MCP tools.
sourceAttachmentIdstringStable source file identity for document-bound tasks; working copies keep this binding.
attachmentsobject[]scheduledTimestampnumbertodoIdstringgroupTagstringGroup slug. Empty/absent means ungrouped. The caller's
personalGroupSlugis created on first use (private to them).groupNamestringOptional display name to upsert for groupTag.
visiblebooleanVisible in the project's default todo list. Defaults to true; subagent runs (tfa-*) pass false. Hidden todos are still accessible by id.
autoDonebooleanWhen true, successful completion lands in DONE (strikethrough/terminal) instead of READY. For plumbing todos that don't need user ack.
parentTodoIdstringTodo whose agent shell spawned this one (tfa-cli reads $TODOFORAI_TODO_ID).
kind'orchestrator' forces visible:false and manual start (no agent run).
originHow the first message was produced (orchestrator threads).
forkFromobjectFork: copy the source todo's messages (the first
upTo, default all) into the new todo beforecontent, which then starts the run with that history.
AgentSettings
idstring · requirednamestring · requiredownerIdstring · requirededgesMcpConfigsobject · requiredEdge device MCP configurations by edgeId
createdAtnumber · requiredupdatedAtnumber · required
systemMessagestringCustom system prompt for the agent
modelstringLLM model identifier (e.g., 'claude-3-opus')
refusalFallbackModelstringModel to continue the turn with when
modelrefuses a request on safety grounds (stop_reason refusal / content_filter). Opt-in: agent ⋮ → "More settings…" ortfa-cli agent update <agent> refusalFallbackModel=…. Every switch is announced by a toast + the run meta records the model that actually answered; unset = the refusal is shown as an error.refusalRetryEverynumberWhile on the refusal fallback, give the refused
modelone call after every N fallback calls: it answering ends the fallback, it refusing again stays on it. Each probe re-sends the conversation uncached. Unset/0 = never. Experimental, CLI/API only.modelFamilystringFollow this model family (MODEL_FAMILIES key): at each run start
modelis moved to the family's current version. Unset =modelis pinned.keepProviderbooleanRun-only (never stored):
modelis an explicit per-chat pick, so it runs on exactly itsprovider:— the team's "EU by default" does not re-point it to the EU sibling. Hard rules (eu_only / zdrOnly) still apply.thinkingLeveltemperaturenumbersystemMessageMode'default_coder' uses built-in coding prompt, 'custom_w_tools' uses systemMessage + auto-injected capability sections, 'raw' uses systemMessage verbatim (no global prepend, no tool/routing/workspace sections).
smartSystemPromptbooleanAuto-enhance system prompt based on context
memoryEnabledbooleanPut the project's memory files (
projects/<id>/memory/, plusme/memory/in private todos) in the system prompt. Default on.searchOffstring[]Search sources switched off for this agent (Knowledge → Searchable):
chats(tfa-memory),cloud(TODOforAI files, tfa-files),gdrive,onedrive,find:<machineId>:<folder>(a tfa-find folder). Unset/empty = everything on.knowledgeOffstring[]Knowledge switched off for this agent, by uri: memory files (kept out of the prompt), context entries (not listed),
todoforai:projects/<id>/context= all Documents,…/context/brandand…/context/voice. Unset/empty = all on.autoCompactionbooleanAutomatic context compaction (summarize older messages near the limit). Default on; false = only manual compaction + overflow recovery. Set in the agent's "More settings…".
contextLimitnumberContext limit in tokens that compaction is measured against. Unset/0 = auto (model window, capped at 200K).
contextDocumentsobject[]Reference files (PDF, images, text/office docs) pinned to every conversation of this agent: sent natively as the first user message (PDF/image as document/image blocks), prompt-cached. Metadata only — the agent fetches bytes by attachment id.
devicesConfigobjectBridge device workspace + cwd config by deviceId. Parallel to
edgesMcpConfigs.permissionsobjectTool permission allowlist
toolProfilesobjectPer-tool login profile: tool key → profile name. The tool's credentials live in
~/.todoforai/profiles/<name>/on every host instead of the shared default, so only agents naming the profile see those accounts. Unset (the normal case) = shared login.promptOverridesobjectDeveloper-mode only (prompt/tool-schema experiments without a deploy). Applied agent-side:
sysmsgreplaces the system message;tools.<name>.description/tools.<name>.params.<param>replace that tool's description / parameter description.{{orig}}= the original text.judgeSysmsgstringApproval policy in plain language (e.g. "Block sending email", "Block files outside the workspace", "Block only dangerous commands"). When set, a tool call that would ASK is judged by a fast LLM against it and the call's workspace paths: ALLOW runs, ASK prompts the user. Unset = inherit the global policy; '' = no judge for this agent (every ASK prompts the user); set = replaces the global policy.
specIdstringSpec this agent was created from
colorstringHex color (e.g. '#10b981') used to tint todos assigned to this agent
iconstringIcon key from the frontend's agent icon set (unset = robot).
AttachmentFrame
idstring · requireduristring · requiredResource URI - always required. Format: "todoforai:todos/{todoId}/{id}"
originalNamestring · requiredmimeTypestring · requiredfileSizenumber · requiredIn bytes
metadataobjectOptional resource metadata; independent of the file content or format.
createdAtnumberisPublicbooleanstatusmodifiedAtnumberLast modified time (mtime), milliseconds epoch
permissionsnumberUnix permission bits (e.g. 0o644 = 420 decimal)
blockIdstringBlock ID that produced this attachment (for mapping tool results back to tool_calls)
toolCallIdstringLLM tool_call ID — for stamping results back to the originating tool call
textstringAgent → backend only: small text results travel inline here instead of a separate binary frame. Consumed at registration; never persisted.
MCPEdgesSettings
deviceTypeEdge device type — used by the Julia agent for capability checks (e.g. has_shell).
installedToolsobjectConstruct a type with a set of properties K of type T
enabledbooleanPer-agent edge on/off.
falseremoves this edge from the agent's tool spec at run time (filtered in AgentSettingsService.prepareForAgent). Undefined/true = on.namestringEdge identity surfaced at submit time (enrichWithOnlineEdges) so the agent can use it for the tool-alias suffix (bash_
) and the ### <name>heading in## Available Machines. TODO: revisit — questionable whether this belongs here. (1) For real edgesnameis an auto-generated junk label (e.g. "PC_8814" = {deviceType}_{rand}), which gives the agent no useful alias/heading; only bridge devices have a meaningful user-given name. (2) name/metadata duplicate Edge.* and bloat every per-agent record. Consider passing identity out-of-band instead of stuffing it into edgesMcpConfigs.metadataobjectConstruct a type with a set of properties K of type T
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = string | |
| type = boolean | |
| type = object | |
| type = object |
MCPSettings
deviceTypeEdge device type — used by the Julia agent for capability checks (e.g. has_shell).
installedToolsobjectCatalog tool states injected by the backend at submit time.
enabledbooleanPer-agent edge on/off.
falseremoves this edge from the agent's tool spec at run time (filtered in AgentSettingsService.prepareForAgent). Undefined/true = on.namestringEdge identity surfaced at submit time (enrichWithOnlineEdges) so the agent can use it for the tool-alias suffix (bash_
) and the ### <name>heading in## Available Machines. TODO: revisit — questionable whether this belongs here. (1) For real edgesnameis an auto-generated junk label (e.g. "PC_8814" = {deviceType}_{rand}), which gives the agent no useful alias/heading; only bridge devices have a meaningful user-given name. (2) name/metadata duplicate Edge.* and bloat every per-agent record. Consider passing identity out-of-band instead of stuffing it into edgesMcpConfigs.metadataobjectConstruct a type with a set of properties K of type T
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = string | |
| type = boolean | |
| type = object | |
| type = object |
RecordstringCatalogToolState
installedboolean · requiredWhether the binary is found on PATH
versionstringOutput of versionCmd (e.g. "v1.2.3"), undefined if not run or no versionCmd
statusOutputstringOutput of statusCmd (e.g. logged-in user), undefined if not run or no statusCmd
authenticatedbooleanWhether statusCmd exited 0 (authenticated/ready)
wasAuthenticatedbooleanA status probe succeeded at least once. Sticky; not a verdict about why auth failed.
requestedbooleanThe user explicitly asked for this tool on this device (Connect / Add). Hosts with a preinstalled catalog (cloud VMs) list only requested or connected tools — the rest is clutter — and a requested tool that later lost its credentials stays visible as "Not linked" so it can be fixed. Sticky across rescans; cleared by the
forgettool op.descriptionstringUser description override from the edge's ~/.todoforai/custom_tools.json, folded into the scan result edge-side. Takes precedence over the catalog description in the agent's bash tool CLI list, and lets non-catalog binaries (found on PATH) be advertised. Deliberately ONE field for both audiences, unlike the catalog's summary/description pair: the user writes this line themselves, in their own words, about their own binary — asking them for two takes of the same sentence buys less than it costs. It is shown as-is in the tile and sent as-is to the agent.
labelstringUser label override (custom_tools.json), same mechanism as
description.
CatalogToolState
installedboolean · requiredWhether the binary is found on PATH
versionstringOutput of versionCmd (e.g. "v1.2.3"), undefined if not run or no versionCmd
statusOutputstringOutput of statusCmd (e.g. logged-in user), undefined if not run or no statusCmd
authenticatedbooleanWhether statusCmd exited 0 (authenticated/ready)
wasAuthenticatedbooleanA status probe succeeded at least once. Sticky; not a verdict about why auth failed.
requestedbooleanThe user explicitly asked for this tool on this device (Connect / Add). Hosts with a preinstalled catalog (cloud VMs) list only requested or connected tools — the rest is clutter — and a requested tool that later lost its credentials stays visible as "Not linked" so it can be fixed. Sticky across rescans; cleared by the
forgettool op.descriptionstringUser description override from the edge's ~/.todoforai/custom_tools.json, folded into the scan result edge-side. Takes precedence over the catalog description in the agent's bash tool CLI list, and lets non-catalog binaries (found on PATH) be advertised. Deliberately ONE field for both audiences, unlike the catalog's summary/description pair: the user writes this line themselves, in their own words, about their own binary — asking them for two takes of the same sentence buys less than it costs. It is shown as-is in the tile and sent as-is to the agent.
labelstringUser label override (custom_tools.json), same mechanism as
description.
ServerSettings
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = boolean | |
| type = array | |
| type = object |
ToolConfiguration
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = null | |
| type = string | |
| type = number | |
| type = boolean | |
| type = array | |
| type = object |
ToolConfigurationValue
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = null | |
| type = string | |
| type = number | |
| type = boolean | |
| type = array | |
| type = object |
DevicesConfig
workspacePathsstring[] · required
enabledPer-agent device state. For ordinary devices, false disables and every other value enables. The hosted cloud VM additionally supports: false → Off. 'auto' → use only when no local desktop is online. 'on' → explicitly always on (overrides global Auto/Off). true / undefined → enabled, inheriting the per-user global cloud mode.
trueremains the inherited state for compatibility with existing agent records, where it was written before explicit cloud modes existed.
DeviceConfig
workspacePathsstring[] · required
enabledPer-agent device state. For ordinary devices, false disables and every other value enables. The hosted cloud VM additionally supports: false → Off. 'auto' → use only when no local desktop is online. 'on' → explicitly always on (overrides global Auto/Off). true / undefined → enabled, inheriting the per-user global cloud mode.
trueremains the inherited state for compatibility with existing agent records, where it was written before explicit cloud modes existed.
ToolPermissions
allowstring[] · requiredTools/patterns that auto-execute without approval
askstring[]Tools that require user approval (default if not in any list)
denystring[]Tools/patterns blocked from execution
Todo
idstring · requiredprojectIdstring · requiredstatusrequiredagentSettingsIdstring · requiredcontentstring · requiredmessageIdsstring[] · requiredmessagesobject[] · requiredcreatedAtnumber · requiredlastActivityAtnumber · requiredscheduledTimestampnumber · required0 if immediate
sourceAttachmentIdstringgroupTagstringProject-scoped group slug.
publicIntakebooleanServer-authored provenance; no public project access is granted.
publicSubmitterNamestringEmpty for anonymous public intake; absent on ordinary todos.
parentTodoIdstringParent todo: the one whose agent shell spawned it (via tfa-cli), or set by hand (todo.update).
assigneeIdstringThe one project member it is assigned to.
kind'orchestrator': a per-tab orchestrator thread — the tab runs the agent loop itself and authors the assistant turns over the frontend socket. Always created with visible:false (off the board); listed via todo.listOrchestrators.
systemMessageIdstringcheckedBlockIdsstring[]User-checked blocks
actionableBlockIdsstring[]Blocks with code, commands, etc.
archivedAtnumberdeletedAtnumberdismissedAtnumberWhen the proposal was dismissed — bounds the analyzer's feedback window.
starredAtnumberStar/favorite timestamp; absent/0 = not starred
startDatenumberPlanned start: a day (UTC midnight, ms) — or, with
startTimed, an exact moment. Set from the ⋯ menu. Informational only.startTimedbooleanstartDatecarries a time of day, not just a day.endDatenumberDeadline: a day (UTC midnight, ms) — or, with
endTimed, an exact moment. Nothing runs on it.endTimedbooleanendDatecarries a time of day, not just a day.noteCountnumberHow many comments the todo itself has (comments without a message). Only the count rides on board rows; the text stays in comment.list.
contributorIdsstring[]Users who sent messages into the todo, in order of first appearance ([0] = creator).
workflowVersionstringFor optimistic concurrency
visiblebooleanVisible in default project listings; defaults to true.
isPublicbooleanPublicly viewable (read-only) by anyone with the link, no login required.
commentsEnabledbooleanSigned-in non-members may comment on a public todo. Members can always comment.
autoDonebooleanPre-finished: the user checked it while the agent was still working, so the run's READY lands as DONE. Cleared once the todo reaches a terminal status.
statusRevnumberPer-todo transition counter at
status— travels WITH it, so a client knows which transition it holds.workobjectWhat its runs touched (files, outside tools), refreshed at each run's end — the card's icons.
pendingobjectWhile WAITING_FOR_USER: the question/approval it is parked on (see TodoSummary).
rowHtmlAtnumberSee TodoSummary.rowHtmlAt.
workflowIdstringSee TodoSummary.workflowId / workflowNode / workflowTrail.
workflowNodestringworkflowTrailobject[]sectionstringSee TodoSummary.section.
statestringSee TodoSummary.state.
hasMoreMessagesbooleanTrue when
messagesholds only the newest page — older ones via todo.getMessages.importSourceobjectSet on todos created by
todo.importSession— the external session they mirror.sourceobjectWhere a dispatched todo/info came from (set by the trigger that filed it: FeedRouter.ingest).
sourcesobject[]See TodoSummary.sources.
priorityFeed priority of a dispatched row: high = Urgent, absent/medium = Normal (low info = FYI).
routedobjectThe router's pick for this todo, pinned at its first run (see modelRouting.ts).
TodoStatus
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
Message
idstring · requiredtodoIdstring · requiredcontentstring · requiredrolestring · required'user', 'assistant', or 'system'
agentSettingsIdstring · requiredstop_sequencestring · requiredStop sequence that ended AI response, if any
createdAtnumber · requiredblocksarray · requiredParsed content blocks (code, tool calls, text)
scheduledTimestampnumber · required0 if sent immediately
attachmentsobject[] · required
originflowMoveobjectSet on the flow line of a move: where it left, where it went (see FlowMove).
projectIdstringProject the todo belongs to (denormalized for search; absent on legacy messages).
userIdstringWho this turn belongs to: the submitter for a user message, the submitter of the turn being answered for an assistant/tool message. Together with
agentSettingsIdthis is the run's identity — continuations (flushToolMessage) MUST resolve from here, never fromtodo.agentSettingsId, which is last-writer-wins and gets overwritten when a second user joins the todo. Absent on legacy messages (pre multi-user attribution) — callers fall back to the project owner.queuedbooleanSent into an already-running turn, so it sits in the agent's internal queue until the turn drains it. While true the user can still retract it (Front2Agent.TODO_QUEUE_CANCEL); cleared on Agent2Server.TODO_MSG_DEQUEUED.
feedbackobjectThe user's like/dislike on this AI response (set via todo.messageFeedback).
runMetaobject[]Token usage, model info, etc.
systemPromptstringSystem prompt used for this assistant message (dev mode / debug-dump turns)
toolSchemasstringDebug-dump turns (x-tfa-debug): native tool schemas of the LLM request that produced this assistant message, JSON-stringified.
predictedReplystringPredicted next user message (ghost text), computed once per finished assistant turn by reusing the warm prompt cache. Set only on assistant messages; throwaway, never fed back.
parentBlockIdstringIf set, this message belongs to a sub-agent spawned by the given block
fileHistoryobjectWorkspace files the agent turn ending at this message changed (hidden history, see workspaceHistory.ts).
FlowMove
fromstring · required
tostringAbsent: the run ended here.
outcomestringflowstringThe workflow it went on in, where the line left its own.
agentconstThe next node's agent started on it.
Const value:
MessageBlock
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +3 more | |
| type = object · requires: type, id, content +3 more | |
| type = object · requires: type, id, content +3 more | |
| type = object · requires: type, id, content +3 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, server_name, method +4 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, id, content +2 more | |
| type = object · requires: type, tool_name, id +3 more |
typeconst · requiredConst value: readidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
limitnumberoffsetnumberresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
pathstringlanguagestring
ReadBlock
typeconst · requiredConst value: readidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
limitnumberoffsetnumberresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
pathstringlanguagestring
BlockStatus
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
RunResultMeta
timestampnumbertool_namestringsuccessbooleanerrorstringtextstringOrchestrator (JARVIS) tools: the result text the model read.
displayTextstringOrchestrator tools whose
textis a bulk payload: the one-line transcript chip.elapsednumberargumentsinputTokensnumberoutputTokensnumber
RunMeta
costnumber · requiredtimestampnumber · required
typestringdescriptionstringelapsednumberextrasobject
CreateBlock
typeconst · requiredConst value: createidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
pathstringlanguagestringoriginalContentstringmodifiedContentstringinitialOriginalContentstring
WriteBlock
typeconst · requiredConst value: writeidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
pathstringlanguagestringoriginalContentstringmodifiedContentstringinitialOriginalContentstring
EditBlock
typeconst · requiredConst value: editidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
changesstringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
pathstringlanguagestringoriginalContentstringmodifiedContentstringinitialOriginalContentstring
ModifyFileBlock
typeconst · requiredConst value: modify_fileidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
changesstringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
pathstringlanguagestringoriginalContentstringmodifiedContentstringinitialOriginalContentstring
BashBlock
typeconst · requiredConst value: bashidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
cmdstringtimeoutnumberlanguagestringfileChangesobject[]Files changed by this command (edge git tracking; overwritten on re-run).
targetstringcwdstringpidnumberOS PID of the persistent shell inside the bridge PTY. Surfaced on RUN_STARTED so the UI can address the session for stdin / force-kill. SIGINT is delivered as
\x03through the regular stdin path — the kernel TTY line discipline forwards it to the foreground process group, so no separate fg pid is needed on the block.awaitingInputbooleanBridge reported STEP_AWAITING_INPUT — foreground command parked in n_tty_read, waiting on stdin. The shell itself is alive.
passwordPromptbooleanOnly meaningful when
awaitingInput === true: PTY slave has ECHO disabled (sudo / getpass / ssh / git credential). UI should mask input.timedOutbooleanOnly meaningful when
awaitingInput === true: the bridge parked the run because the step deadline hit, not because it saw a stdin wait (Windows/ConPTY has no such signal). The command may just be slow.backgroundobjectThe command became a background task on the bridge (
pidis its id). Running/awaiting-input until it exits; then exitCode/killed are set.subTodoIdsstring[]Sub-agent runs spawned by the command as real (hidden) todos — tfa-* CLIs stamp these via POST /todos/{id}/blocks/{id}/subtodo. One command can spawn several (
a & b & wait), so each gets its own nested trace in the UI, in link order.resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
titlestring
subTodoIdstring · deprecated · required
FileChange
pathstring · required
diffstringUnified diff pre → post (
git diff -U3 --no-prefix, hunks only, no file header). Created/deleted files: the whole content as +/- lines. Absent whenomittedor on legacy blocks.preShastringGit blob id of the pre-command content (as stored in the repo's object store / HEAD — i.e. after clean filters); absent when created.
postShastringGit blob sha of the post-command file's RAW bytes (
hash-object --no-filters): what a reader of the file gets, hence what the frontend hashes to verify the file is still the one the diff was made against. Absent when deleted.statusWhat happened to the file (resolved from git pre/post state).
omittedWhy there is no diff/content even though the file exists on that side.
sizenumberBytes of the post-command file (pre-command size when deleted).
originalContentdeprecated · requiredmodifiedContentdeprecated · required
GrepBlock
typeconst · requiredConst value: grepidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
patternstringpathstringglobstringignore_casebooleanheadnumbermax_countnumbertimeoutnumberoutputstringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
ListBlock
typeconst · requiredConst value: listidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
pathstringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
SkillBlock
typeconst · requiredConst value: skillidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
namestringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
ApiBlock
typerequiredidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
titlestringtool_namestring
ApiToolType
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
ImageGenBlock
typeconst · requiredConst value: image_genidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
promptstringmodelstringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
attachment_idstringattachment_idsstring[]
ShowBlock
typeconst · requiredConst value: showidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
filenamestringOriginal filename, shown in the block header.
titlestringShort label shown in the block header, overriding
filename.aliasstringStable short address within the todo (
<todoId>:<alias>), for later update/lookup.mimestringMimetype of the shown bytes — decides how the block renders.
urlstringLive target for
todoforai-cli open <url>(rendered as a preview instead of bytes).connectobjecttfa-cli connect <key>…: a sign-in card for these connectors on the machine that ran it (no bytes). Several keys = one choice (e.g. Google or Microsoft mail).askobjecttfa-question: a question card raised from a shell. Answering posts the answer as the user's next chat message (which resumes the agent), then records it here (once).machineSizeobjecttfa-cli machine sizefrom an agent shell: a cloud machine size change for the user to approve (it costs credit and restarts the machine). Approving applies it with the user's own session and posts one chat message, which resumes the agent. resources null = plan size; userId: whose machine (the proposer's own unless ownerId names the paying workspace, as in sandbox.setUpgrade).refstringtfa-cli show ref <ref>: re-surface an existing show (<todoId>:<alias|blockId>, any todo) here; renders it live, so it always shows that show's latest version.cardRefstringName of a project-scoped card (reusable HTML renderer) to render the shown bytes through (
tfa-show data.json --renderer <name>). Resolved live per-project at render time, so updating the card updates every instance. Legacytfa/onboarding-*values (old setup-todo cards) render as an "Open setup" link.displayconstPresentation hint: 'link' renders a compact file chip (name + size + download) instead of inline content; click expands to the normal render. Absent = render inline by mimetype as usual (
todoforai-cli show --link).Const value: linkwidthconsttfa-show --wide: full message column instead of the prose-width cap (html).Const value: widebareconsttfa-show --bare: no header; the file menu appears on hover (interactive html, like html_snippet).Const value:cwdstringShell cwd of the run that showed it (with
deviceId): relative src/href in html resolve there.versionsstring[]Every version this block has shown (attachment ids, oldest first; the current one is
results[0]). A re-shown alias appends.shareTokenstringSet while publicly shared (
show share):show.todofor.ai/<token>serves the latest version,/<token>/<version>a frozen one. Absent = private to whoever can read the todo. Unshare drops it; a re-share mints a new token.resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
QuestionItem
idstring · requiredheaderstring · requiredquestionstring · requiredoptionsobject[] · required
multiSelectbooleanSeveral options may be picked (answer = labels joined with ", ").
HtmlSnippetBlock
typeconst · requiredConst value: html_snippetidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
htmlstringBare HTML fragment authored by the LLM (no doctype/html/head/body).
titlestringShort label shown in the block header.
widthwide= full message column; omitted = prose-width cap (inlineonly on blocks from older agents).cwdstringShell cwd of the run's last tool call (with
deviceId): local refs resolve there.resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
LivePreviewBlock
typeconst · requiredConst value: live_previewidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
urlstringA directly-openable URL. For a remote target it's the http(s) URL the agent was given; for a tunnel it's https://
.preview.todofor.ai once the frontend has lazily minted a session. localUrlstringDirect URL (http://127.0.0.1:
) for an edge-local target. The frontend probes it first and, only if unreachable, mints a tunnel session (see edgeId/port) via POST /preview/session. edgeIdstringEdge + port backing localUrl — the frontend needs them to lazily mint a tunnel session when the direct URL isn't reachable.
portnumbertitlestringShort label shown in the block header.
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
TextBlock
typeconst · requiredConst value: textidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
cwdstringShell cwd of the run's last tool call (with
deviceId): local refs resolve there.resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
ReasonBlock
typeconst · requiredConst value: reasonidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
ErrorBlock
typeconst · requiredConst value: erroridstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
error_messagestringstacktracestringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
CompactBlock
typeconst · requiredConst value: compactidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
keepnumbermodestringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
QuestionBlock
typeconst · requiredConst value: questionidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
questionsobject[]answerstringPre-formatted user response (set by backend on approval).
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
OpenBrowserBlock
typeconst · requiredConst value: open_browseridstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
urlstringFirst page to load (the tool's
urlarg).cdp_urlstringagent-browser CDP connect URL of the enrolled resource (set on approval → tool result).
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
LoginBlock
typeconst · requiredConst value: login_promptidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
reasonstringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
BusinessOnboardingBlock
typeconst · requiredConst value: business_onboardingidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
reasonstringwebsitestringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
ConnectDeviceBlock
typeconst · requiredConst value: connect_deviceidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
reasonstringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
WebFetchBlock
typeconst · requiredConst value: webfetchidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · requiredurlstring · required
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
GoogleSearchBlock
typeconst · requiredConst value: google_searchidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · requiredquerystring · required
sourcesobject[]Raw search hits pushed via BLOCK_UPDATE as soon as the search API returns, before the summarizer sub-agent finishes — lets the UI show sources live.
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
WebSearchBlock
typeconst · requiredConst value: web_searchidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · requiredquerystring · required
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
VaultSearchBlock
typeconst · requiredConst value: vault_searchidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · requiredquerystring · required
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
VaultResolveBlock
typeconst · requiredConst value: vault_resolveidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
refstringVault reference being resolved (e.g.
vault://path#field)resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
VaultWriteBlock
typeconst · requiredConst value: vault_writeidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
schemestringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
titlestring
VaultWriteBatchBlock
typeconst · requiredConst value: vault_write_batchidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
schemestringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
VaultUpdateBlock
typeconst · requiredConst value: vault_updateidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
uristringVault item URI being updated
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
McpBlock
typeconst · requiredConst value: mcpserver_namestring · requiredmethodstring · requiredidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
namestringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
titlestringtool_namestring
ExploreBlock
typeconst · requiredConst value: exploreidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
promptstringsubTodoIdstringWhen the sub-agent runs as a real hidden sub-todo, its todoId.
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
PlanBlock
typeconst · requiredConst value: planidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
promptstringresultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
ReviewBlock
typeconst · requiredConst value: reviewidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
promptstringsubTodoIdstringWhen the sub-agent runs as a real hidden sub-todo, its todoId.
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
DeviceListBlock
typeconst · requiredConst value: device_listidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
NamedToolBlock
typeconst · requiredConst value: named_tooltool_namestring · requiredidstring · requiredcontentstring · requiredstatusrequiredBlockStatus - lifecycle states
generationCompletedboolean · required
argsobjectConstruct a type with a set of properties K of type T
resultstringresultsobject[]runMetaobject[]generalized_patternGeneralized permission pattern for "remember" feature (e.g., "BASH(cmd: npm *)")
judgeReasonstringWhy the approval judge asked for confirmation (AWAITING_APPROVAL)
askRulestringThe permission rule that asked for confirmation (AWAITING_APPROVAL) — removable from the approval bar
toolCallIdstringLLM API tool_call id — durable mapping from block to the tool_call that created it
parentBlockIdstringParent block ID — present on sub-agent child blocks (e.g., read blocks inside explore)
deviceIdstringDevice that executed this tool call (text / html_snippet: the run's last tool call's device, so their local refs read from it). Edges and bridges both map to a device id. Stamped from internal routing context, not provided by the LLM.
_issuestringRead-time schema issue: set by the tRPC soft-output validator when this block failed output validation (e.g. legacy/malformed data). Derived on every read from the failing typia path — NEVER persisted to Redis.
approvalContextobjectEdge approval context — present when edge requests tool install approval
TurnFileHistory
deviceIdstring · requiredrootstring · requiredbeforestring · requiredSnapshot ids: workspace before the turn's first write, and at turn end.
afterstring · requiredfilesnumber · requiredpathsstring[] · requiredChanged paths relative to root (first 50).
undonebooleanUndo applied (Redo re-applies).
TodoPending
messageIdstring · requiredblockIdstring · requiredkindrequiredaskstring · requiredThe question as asked, or one line of what the tool wants to do.
headerstringQuestion header (prefixes the answer the agent receives).
optionsstring[]choiceonly: option labels, in order.
WorkflowTrailStep
workflowstring · requirednodestring · requiredatnumber · required
outcomestringbyHandconstA person sent it on (a button,
tfa-cli todo next): a loop's step limit counts from here.Const value:outobjectWhat the step gave the next one. A step without it (a person, a timer) passes its input on.
WorkflowOutput
textstringBounded (WORKFLOW_LIMITS.output).
filesobject[]Files of the run (its attachments).
PickAttachmentFrameidmimeTypeurioriginalNamefileSize
idstring · requiredmimeTypestring · requireduristring · requiredResource URI - always required. Format: "todoforai:todos/{todoId}/{id}"
originalNamestring · requiredfileSizenumber · requiredIn bytes
TodoImportSource
kindrequiredWhich external agent a session was imported from.
pathstring · requiredsha256string · requiredimportedAtnumber · requiredmessageCountnumber · requiredRows written by the import; more rows on the todo means it was continued in TODOforAI.
cwdstring
ImportSourceKind
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
TodoSource
labelstring · requiredrefstring · requiredSource-native thread/item id (Gmail threadId, Slack ts…).
urlstringfromstring
TodoRoute
routerIdstring · requiredcategoryIdstring · requiredmodelstring · requiredCatalog id that runs, e.g.
anthropic/claude-opus-5.5.
thinking
TodoGroup
slugstring · requirednamestring · required
colorstringCard tint as a six-digit hex color. Absent = default.
descriptionstringOne-line strategic intent of the group.
pinnedbooleanPinned cards sort first on the wall.
archivedbooleanArchived cards leave the wall (still listed here so the picker can offer them).
ordernumberExplicit wall position (ascending). Unset groups trail in listing (creation) order.
totalnumberTodos in this group (ZCARD of the group index) — accurate regardless of what the paginated list loaded.
memberIdsstring[]Who sees this group and its todos. Absent = every project member.
subjectsstring[]What a restricted group was shared with: user ids and
t:<tag>team tags (memberIdsis these, resolved).sectionsstring[]Its sections, in order: named piles inside the group. A todo is in at most one (
section), put there by hand or by whatever sorts the group, and stays until it is moved.
TodoStateDef
slugstring · requiredStable id (a-z, 0-9, -), what
Todo.stateholds.namestring · requirediconstring · requiredA lucide icon name (https://lucide.dev/icons), e.g. "thumbs-down".
baserequiredThe status a todo takes in this state: one of TODO_STATE_BASES.
colorstringSix-digit hex tint (#rrggbb). Absent = the base status' color.
RendererCardInfo
namestring · requiredattachmentIdstring · requiredAttachment id of the card's HTML body.
updatedAtnumber · required
titlestringdescriptionstringbuiltinbooleanShipped with the app (
builtin-cards/), not stored in the project. A project card of the same name replaces it there; removing that copy brings the built-in back.
ProjectGroupUpsertInput
projectIdstring · requiredslugstring · required
namestringcolorstringSix-digit hex card tint; empty string clears it, omitted = unchanged.
descriptionstringOne-line strategic intent; empty string clears it, omitted = unchanged.
pinnedbooleanToggle pinned; omitted = unchanged.
archivedbooleanToggle archived; omitted = unchanged.
ordernumberExplicit wall position; omitted = unchanged (a new group lands first, after Unsorted and pinned groups).
memberIdsstring[]Who sees the group: project members' ids and
t:<tag>team tags; empty array = everyone; omitted = unchanged (a new group on a shared board starts with only its creator).sectionsstring[]Its sections, in order (replaces the list); omitted = unchanged. Todos of a section that is gone leave it.
renameSectionobjectWith
sections: this one got a new name there, its todos keep it.
ProjectBin
sincenumber · requiredWhen purging started: anything trashed earlier is purged TRASH_RETENTION_DAYS after this, not after its deletedAt.
groupsobject[] · requiredtodosobject[] · requiredTrash: todos deleted one by one (a deleted group's todos come back with the group, see
groups).surfacesobject[] · required
ProjectBinGroup
slugstring · requirednamestring · requiredtodoCountnumber · requiredTodos that come back with it.
colorstringdeletedAtnumberTrash only: when the group was deleted.
TodoSummary
idstring · requiredprojectIdstring · requiredstatusrequiredagentSettingsIdstring · requiredmessageCountnumber · requiredNumber of messages in the thread (O(1) LLEN); the ids themselves come with the full Todo.
createdAtnumber · requiredlastActivityAtnumber · requiredscheduledTimestampnumber · required0 if immediate
sourceAttachmentIdstringgroupTagstringProject-scoped group slug.
publicIntakebooleanServer-authored provenance; no public project access is granted.
publicSubmitterNamestringEmpty for anonymous public intake; absent on ordinary todos.
contentstringarchivedAtnumberWhen it was archived (status ARCHIVED).
deletedAtnumberWhen it went to the Trash (status DELETED); purged TRASH_RETENTION_DAYS later.
starredAtnumberStar/favorite timestamp; absent/0 = not starred
startDatenumberPlanned start: a day (UTC midnight, ms) — or, with
startTimed, an exact moment. Set from the ⋯ menu. Informational only.startTimedbooleanstartDatecarries a time of day, not just a day.endDatenumberDeadline: a day (UTC midnight, ms) — or, with
endTimed, an exact moment. Nothing runs on it.endTimedbooleanendDatecarries a time of day, not just a day.noteCountnumberHow many comments the todo itself has (comments without a message). Only the count rides on board rows; the text stays in comment.list.
contributorIdsstring[]Users who sent messages into the todo, in order of first appearance ([0] = creator).
parentTodoIdstringParent todo: the one whose agent/orchestrator spawned it, or set by hand (todo.update).
assigneeIdstringThe one project member it is assigned to.
kindsourceobjectsourcesobject[]Items of other sources merged into it later (a Slack message joining a Gmail row), oldest first.
priorityautoDonebooleanPre-finished: the user checked it while the agent was still working, so the run's READY lands as DONE. Cleared once the todo reaches a terminal status.
statusRevnumberPer-todo transition counter at
status— travels WITH it, so a client knows which transition it holds.workobjectWhat its runs touched (files, outside tools), refreshed at each run's end — the card's icons.
pendingobjectWhile WAITING_FOR_USER: the question/approval it is parked on, answerable from the row.
rowHtmlAtnumberWhen its row HTML (todo.rowHtml) was last set; absent = none. The html itself is fetched per row.
workflowIdstringThe workflow it is a run of (workflow.ts); independent of its board group.
workflowNodestringThe node the run is at; absent = the run ended.
workflowTrailobject[]The nodes it already left, oldest first.
sectionstringThe section of its group it was sorted into (TodoGroup.sections).
statestringThe project's own state it is in (TodoStateDef.slug): drawn instead of its status while the status is the state's base.
ProjectSurface
idstring · requiredcreatedAtnumber · required
refstringWhat it shows; absent = a note.
titlestringbodystringNote text (markdown).
colorstringHex accent, like a group's color.
iconstringA widget's own icon: an emoji today (the format may grow; one frontend renderer, WidgetIcon, draws it). Absent = its kind's icon (file type, site favicon).
sizeA widget's tile height on the board; absent = 'm'.
groupstringGroup slug it renders inside; absent = its own wall card.
ordernumberWall / tile position (ascending); unset trails in creation order.
showobjectRead-only, for a show ref: the show as it is now (from the project's show index), so the title, icon and "updated" time stay live without loading its chat.
createdBystringupdatedAtnumberupdatedBystringarchivedAtnumberArchived: off the board, listed under Archived until unarchived.
deletedAtnumberIn the Trash (only project.trash lists it); purged TRASH_RETENTION_DAYS later.
SurfaceShowInfo
titlestringfilenamestringmimestringurlstringcardRefstringshownAtnumberWhen it was last shown (ms).
ProjectWidgetShowsInput
projectIdstring · requiredrefsstring[] · requiredAt most 100; extra ones are ignored.
WorkspacePinsView
canEditboolean · requiredMay change them: the workspace owner, or the owner / an admin of its team (canManageProject).
reachingstring[] · requiredThe pins on the caller's sidebar, in order: they are in its audience and may open its source.
pinsobject[]Editors only: every pin with its reach.
WorkspacePinseenBystringblockedstring
refstring · requiredisSidebarPinRef.
seenBystring[] · requiredHas it on their sidebar.
blockedstring[] · requiredIn its audience, but may not open its source (its group is not shared with them): it skips them.
subjectsstring[]
WorkspacePinsSetInput
projectIdstring · requiredpinsobject[] · requiredThe whole list, in sidebar order (replaces it).
ProjectSurfaceUpsertInput
projectIdstring · requiredsurfaceIdstring · requiredClient-chosen id (like a group slug): unknown creates, known patches (omitted = unchanged).
refstringA ref or a body is required on create.
titlestringEmpty string clears.
bodystringNote text; empty string clears.
colorstringHex color; empty string clears.
iconstringEmoji; empty string clears (back to the kind's icon).
sizegroupstringEmpty string detaches it into its own wall card; the caller's personal group keeps it private to them.
ordernumberarchivedbooleanArchive (true) / unarchive (false); omitted = unchanged.
ProjectGroupReorderInput
projectIdstring · requiredslugsstring[] · requiredWall order of the movable cards; index = order. A group by its slug, a standalone note/widget as
surface:<id>(SURFACE_CARD_PREFIX; a colon is never in a slug): one order across both.
StartFromSpecInput
projectIdstring · requiredProject to create the TODO in
specIdstringOptional spec ID — if provided, the spec is the base
proposebooleanCreate as a PROPOSED todo (analyzer suggestion): first message queued like a draft, not yours until accepted (Start) or dismissed. Requires specId.
notestringWhy this is proposed — folded into the todo content as a "Why this matters" line (propose only; no dedicated field on the todo).
titlestringProposal title override — becomes the content's first line, i.e. the ✧ row title (propose only; defaults to the spec name).
priorityProposal priority — folded into the content's "Why this matters" line when not medium (propose only).
groupDescriptionstringOne-line strategic intent to upsert for groupTag (propose only).
contentstringUser message / TODO content. Falls back to spec name+description if omitted
systemMessagestringSystem message override. If omitted and specId provided, uses the spec's body
agentNamestringAgent name for on-the-fly TODOs (no specId). Defaults to "Custom Agent"
modelstringComposer model pick for this run only (session override) — the agent keeps its own.
thinkingLevelscheduledTimestampnumberScheduling: omit for immediate start
attachmentsobject[]Attachments
groupTagstringGroup slug. Empty/absent means ungrouped.
groupNamestringOptional display name to upsert for groupTag.
autoDonebooleanPer-run: successful completion lands in DONE instead of READY (see CreateTodoInput).
PartialOmitAppSettingsid
modelListarrayThe user's model list (picker + editor): models and routers in the user's order. Unset = Auto + the legacy favorites (effectiveModelList).
themestringpreviewAutoColumnsnumberPreferred column count used by the automatic preview-window layout. Defaults to 3.
todoListThemediffControlstringshellExecutionstringemailNotificationsbooleanpushNotificationsbooleandataAnalyticsbooleanplaySoundOnTaskCompletebooleanshowTodoCompletionToastbooleanautoCompleteTodosbooleanLet the agent tick a todo DONE when it judges the task complete (end-of-turn check). Off = it stays READY until the user ticks it; the composer's Auto-Done toggle still works. Default on.
showOpenElsewherebooleanOpt-in: board cards show which of my other frontends (tab / desktop app / phone) have the todo open. Off = this frontend neither reports nor tracks presence.
tabNotificationModeHow the browser-tab red "done" dot behaves after a TODO finishes.
todoOpenModeWhat opening a TODO from the board does: a floating preview window over the board (default, the advanced workspace) or the full-page chat.
boardSortKeyThe time key board groups order their todos by (newest first).
boardGroupByStatusbooleanBoard groups bucket rows by status first (needs you → running → open → done), then by the time key.
disabledMentionSourcesstring[]Disabled
modelFavoritesarrayLegacy picker favorites; read once to seed
modelList, never written anymore.keyboardBindingsobjectConstruct a type with a set of properties K of type T
keyboardShortcutsEnabledbooleandefaultViewModestringmodelMentionAliasesstring[]Enabled model-mention aliases (e.g. 'claude', 'gpt') for
showDiffMergeControlsbooleanShow accept/reject chunk controls in the diff (merge) view. Off by default — with auto-apply the diff is just a record of what got applied, so the controls are unnecessary noise.
showAgentColorsbooleanshowAgentNameInComposerbooleanShow the selected agent's name (with an expand chevron) on the collapsed composer trigger instead of the plain settings cog icon.
showAllowAllButtonbooleanshowAutoDoneButtonbooleanShow the Auto-Done toggle in the message toolbar. When the toggle is on, the next run's successful completion lands the todo in DONE instead of READY.
strikeDoneTodosbooleanStrike through the title of done todos. Default off.
showTodoDeadlinebooleanBoard rows: the deadline chip right of the title. Default on.
showTodoNotesbooleanBoard rows: the comments chip (count; opens them). Default on.
showLatestNotebooleanBoard rows: the latest comment as a line under the title. Default off.
showTimeViewOnMobilebooleanOffer the Time view on phones (web and app). Default off: board and list only.
showSystemPromptbooleanShow the agent's system prompt (and its diffs) inline in chat. Also makes the backend ask the agent for it: the prompt is only attached to a finished message when this is on (or an x-tfa-debug turn), since it is tens of KB per message.
developerModebooleanDeveloper mode: reveals the Developer group in View settings (debug-only toggles). Purely cosmetic — it gates no capability, every toggle inside works on its own. Staff-granted:
adminUser.setDeveloperModeis the only writer — updateUserSettings drops the key, so no client can reveal the group for itself.showAgentJsonExportbooleanShow the JSON export button in the agent settings modal header.
surfaceModeHow much of the machine layer the UI exposes — see
SurfaceMode. Unset meansbasicfor accounts with no paired machine andadvancedonce one exists, so existing users never lose their cards.detailedBuiltinToolManagementbooleanShow detailed built-in tool permissions in resource settings. Default off; visibility only.
useDeviceWallpaperbooleanPaint each device card with that machine's real desktop wallpaper, captured by the bridge when it reconnects. Off keeps every card on the built-in OS-themed gradient. Individual devices can still opt out on their own via
Device.metadata.wallpaper.mode. Default off — the wallpaper is a personal image, so uploading it is opt-in.showProjectPickerInSidebarProject picker at the top of the todo sidebar (team plan only).
offhides it,autoshows it only when you have more than one project,alwayskeeps it pinned. Defaults toauto.toolDisplayVerbosityDesktopTool-block display density, resolved per viewport.
collapsedkeeps non-essential tool blocks collapsed (one-line summary, click to expand).normalopens them by default.debugadditionally surfaces internal fields (pid, timeout, …) on shell/bash blocks. Desktop defaults tonormal, mobile tocollapsed.toolDisplayVerbosityMobiletoolGroupingFold the agent's runs of commands and thinking into one line. Default 'recent' (its last operations stay visible). Independent of verbose tool display.
showThinkingTracesWhich finished reasoning ("Thinking") blocks stay in chat. Default 'last'; hidden reason blocks render nothing, which also lets more consecutive tool messages collapse into a single group.
showShellFileChangesbooleanShow the files a shell command touched (edge/bridge git tracking) under Shell blocks. Default off: the heuristic can pick up unrelated concurrent edits. When on, each diff still renders collapsed.
showContextUsageComposer context-usage ring: 'auto' (default) = only once the context fills up (>=60%) or a compaction runs; 'always'; 'never' (compaction state still shows).
vaultProvidervaultConfigvaultProvidershostDesktopItemsobjectPer-host desktop layout, keyed by host id (device/edge id, or "cloud"). An ordered list of items; array index IS the order. Items absent from a host's list are appended (in the host's default order) on render, and items whose key no longer exists are dropped.
todoContributorFilterobjectPer-project people filter for the todo list, keyed by project id: user ids whose todos are shown. Absent key = everyone.
sidebarWidgetsobjectPer-project widgets and notes pinned to the sidebar, keyed by project id: refs (
<todoId>:<alias>, a todo id, an url,note:<surfaceId>; isSidebarPinRef) in sidebar order. Personal (each member arranges their own) and independent of the board: a pin needs no board card. Absent key = none pinned. (Early pins were board surface ids: the frontend rewrites them to their refs.)sidebarHiddenobjectPer-project workspace pins (WorkspacePin refs) the user took off their own sidebar, keyed by project id.
aiDataConsentAtnumberWhen the user agreed that their content is sent to the provider of the AI model they pick.
attentionobjectPer-user attention channels (urgent / work / quiet): deliveries and hours. See attentionChannels.ts.
storagePlacesobjectThe user's notes on their storage places and which one is Home (Files tab). Sent to the agent.
companyNamestringvatNumberstringaddressLine1stringaddressLine2stringcitystringstatestringpostalCodestringcountryISOstringaddressValidbooleanvatStatusRead-only: set from Stripe, never accepted from the client.
groupToolDisplayboolean · deprecated · required
BillingInfoInput
companyNamestringvatNumberstringaddressLine1stringaddressLine2stringcitystringstatestringpostalCodestringcountryISOstringaddressValidboolean
BillingUpdateResult
successboolean · required
addressValidbooleanmessagestringvatNumberstringThe VAT number as Stripe stored it — normalized, so the user sees the country-prefixed value that will actually appear on the invoice.
vatStatus
ProjectSettingsFull
idstring · requiredprojectIdstring · required
llmModelstringllmConfigobjectConstruct a type with a set of properties K of type T
workspacePathsstring[]skillsobjectConstruct a type with a set of properties K of type T
diffstringpreferencesobjectConstruct a type with a set of properties K of type T
ProjectSettingsUpdateInput
projectIdstring · requiredsettingsobject · requiredConstruct a type with a set of properties K of type T
ApiKey
namestring · requiredidstring · requiredNot the secret key itself
createdAtnumber · requiredisDefaultboolean · required
lastUsedAtnumberLast successful auth with this key (hour resolution); absent = not used since tracking began.
TodoListInput
projectIdstring · required
sourceAttachmentIdstringOnly tasks bound to this accessible source file.
limitnumberPage size (default 25, max TODO_LIST_MAX_LIMIT).
cursornumberSort-key value (
lastActivityAtorcreatedAt, persort) of the last item from the previous page (exclusive). Omit for first page.sincenumberInclusive lower bound (epoch ms) on the same sort field: only todos with
lastActivityAt(orcreatedAtwhensort=created) >= since. Withcursorit forms a [since, cursor) window; the last page simply has nonextCursor.excludeClosedbooleanHide CLOSED_STATUSES (DONE, ARCHIVED, DELETED), filtered in the index.
sortOrder, newest first:
activity(default) =lastActivityAt,created=createdAt. Same keys as the board'sboardSortKeysetting.searchstringOptional content/status substring filter; switches to a full-project scan.
starredOnlybooleanIf true, only return starred/favorite todos.
agentSettingsIdstringOnly todos run by this agent; served from the per-agent index.
groupTagstringOnly todos in this board group (slug); served from the per-group index.
workflowIdstringOnly the runs of this workflow (todos in it); with
workflowNode, the ones at that step.workflowNodestringcontributorIdsstring[]Only todos opened or written into by any of these users.
includePrivateboolean · deprecated · required
TodoPage
itemsobject[] · required
nextCursornumberlastActivityAtof the last item; pass ascursorfor the next page. Absent = last page.
TodoGetInput
todoIdstring · required
messageLimitnumberIf set, include only the newest N messages (
hasMoreMessagessignals older ones). Omit for the full conversation.
MessageSearchInput
querystring · requiredSearch text (punctuation ignored).
projectIdstringRestrict to one project (must be accessible). Omit to search all accessible projects.
todoIdstringRestrict to one todo.
roleRestrict by message role.
limitnumberMax hits (default 20, max 50).
modeRanking mode.
lexical(default): all words must match, newest first.semantic: all-word matches first, then embedding KNN (relevance-cut) for paraphrases (~100ms).fused: any word may match (BM25) ∪ KNN uncut, reciprocal-rank fused — best recall, for agents that read and verify.excludestringMessage ids to leave out (already read), comma-separated.
MessageSearchPage
hitsobject[] · requiredtotalnumber · requiredTotal matches (may exceed hits.length). Fused: the lexical count.
lexicalCountnumberFused mode: how many messages contain at least one query word (index count, before
exclude). Tells the reader whether a set is larger than the page.
MessageSearchHit
messageIdstring · requiredtodoIdstring · requiredprojectIdstring · requiredrolestring · requiredcreatedAtnumber · requiredsnippetstring · requiredLeading portion of the message's searchable text (content + block texts/commands) (truncated).
scorenumberSemantic search only: cosine distance to the query (0 = identical, 2 = opposite). Absent on full-text hits.
tierMatch quality on the full message text: 2 = verbatim phrase, 1 = every query word, 0 = partial/meaning only. Fused hits are ordered by it first.
UnifiedSearchInput
querystring · requiredSearch text.
projectIdstringRestrict retrieval to this project's board: TODO titles + messages, fused ranking.
limitnumberMax displayed results after parent collapsing (default 5, max 50).
sincenumberProject scope only: epoch ms lower bound — messages by createdAt, title hits by lastActivityAt.
contributorIdsstring[]Project scope only: keep TODOs with any of these contributors (board People filter), applied before the limit.
UnifiedSearchPage
hitsobject[] · required
todosobject[]Project-scoped board rows for the displayed visible TODOs, without messages.
warningsstring[]Partial-search warnings (e.g. title index unavailable).
UnifiedSearchHit
kindconst · requiredConst value: todosnippetstring · requiredMatching text excerpt.
createdAtnumber · required
scorenumberSemantic hits only: cosine distance to the query (0 = identical).
tierBoard search: match quality (see MessageSearchHit.tier); the primary key of the TODO ranking.
todoIdstringTodo containing the matching message.
projectIdstringProject of the displayed todo (rowTodoId ?? todoId).
statusstringStatus of the displayed todo.
titlestringFirst line of the displayed todo's content; falls back to the match snippet.
rolestringRole of this matching message.
messageIdstringrowTodoIdstringThe board row this hit is shown on, when it is not
todoIditself: the nearest visible ancestor of a hidden subagent match (hidden ancestors skipped). todoId/messageId still identify the original match. Not a parent link: see the todo's own parentTodoId.addressstringMessage address
todo/<todoId>:<messageId>, as tfa-memory prints it.
parentTodoIdstring · deprecated · required
TodoMessagesInput
todoIdstring · required
limitnumberPage size (default 50, max 200).
beforestringFetch messages strictly OLDER than this messageId (the oldest already loaded). Omit for the newest page.
MessagesPage
messagesobject[] · requiredhasMoreboolean · requiredTrue if older messages exist before this page.
MessagesAroundInput
todoIdstring · requiredmessageIdstring · required
beforenumberMessages before the pivot (default 2, max 200).
afternumberMessages after the pivot (default 2, max 200). A large value enumerates the rest of the todo.
MessagesAround
messagesobject[] · requiredindexnumber · requiredPosition of the pivot in the todo (0-based) and the todo's message count.
totalnumber · required
MessageFileHistoryOutput
restorednumber · requiredskippedstring[] · requiredFiles edited since the turn — left as they are.
MessageFeedbackInput
todoIdstring · requiredmessageIdstring · requiredratingrequired
reasonsstring[] · maxItems: 10commentstring · maxLength: 4000shareChatbooleanUser allows our review agent to read the chat up to this message.
TodoPublicMeta
idstring · requiredtitlestring · requiredcreatedAtnumber · requiredlastActivityAtnumber · requiredmessageCountnumber · requiredsubagentCountnumber · requiredTodos spawned from this one (parentTodoId === id).
contributorsobject[] · requiredMessage senders in order of first appearance ([0] = creator).
projectNamestringOnly set when the parent project is itself public (private project names stay private).
agentNamestringfileChangesobjectFiles touched by file tools / shell file tracking, deduped by path. Absent when none.
TodoUpdateInput
todoIdstring · requiredThe unique identifier of the todo to update
contentstringNew content/prompt for the todo
scheduledTimestampnumberUnix timestamp to schedule the todo (0 or omit for immediate)
agentSettingsIdstringID of the agent settings to use for processing
groupTagstringGroup slug. Pass an empty string to make the todo ungrouped.
starredAtnumberStar/favorite timestamp; pass a timestamp to star, 0 to unstar
startDatenumberPlanned start: UTC midnight of the day, or the exact moment with
startTimed; 0 clears bothstartTimedbooleanendDatenumberDeadline: UTC midnight of the day, or the exact moment with
endTimed; 0 clears bothendTimedbooleanisPublicbooleanMake the todo publicly viewable (read-only) by anyone with the link
commentsEnabledbooleanLet signed-in non-members comment on the public todo
autoDonebooleanPre-finish a running todo: its READY will land as DONE. false cancels.
kindPromote an 'info' row to a 'task' (or demote a task to info). 'orchestrator' is never settable here.
sectionstringOne of its group's sections (TodoGroup.sections); an empty string takes it out. A move to another group leaves it.
statestringOne of the project's todo states (project.todoStates, by slug); it also sets the todo's status to the state's base. An empty string clears it.
parentTodoIdstringParent todo (same project; not itself or one of its own descendants). An empty string detaches it.
assigneeIdstringThe one project member (user id) it is assigned to; they must see its group. An empty string unassigns.
ValidatedTodoRowHtmlInput
todoIdstring · minLength: 1 · requiredhtmlstring · maxLength: 65536 · required
TodoStatusUpdateInput
todoIdstring · requiredThe unique identifier of the todo to update
statusrequiredThe new status. Run statuses (TODO, WAITING_AGENT, RUNNING, COMPACTING, WAITING_FOR_USER) can't be set by hand; a live run only accepts CANCELLED/STOPPING/ARCHIVED (= Stop) or DELETED; a
_CHECKEDstatus only follows its base (READY → READY_CHECKED).
TodoMoveToProjectInput
todoIdstring · requiredprojectIdstring · requiredDestination project; the caller needs write access to both.
ImportSessionInput
projectIdstring · requiredagentSettingsIdstring · requiredtitlestring · requiredTodo title.
messagesobject[] · requiredsourceobject · required
ImportedMessage
rolerequiredcontentstring · required
timestampnumberOriginal epoch ms; missing = ordered after the previous message.
ImportSessionOutput
todoIdstring · requiredoutcomerequiredcreated = first import; updated = changed content, re-imported as a new todo; unchanged = same sha256.
messageCountnumber · required
AddMessageInput
todoIdstring · requiredprojectIdstring · requiredcontentstring · requiredagentSettingsobject · requiredAI AgentSettings configuration including model, system prompt, and MCP tools.
idstringClient-generated message id (UUID): the sender renders the bubble optimistically under it, and the server's echo confirms that same row. Omit → server generates.
attachmentsobject[]Attachments metadata (content arrives separately via binary WebSocket frames or current attachments buffer).
scheduledTimestampnumberafterMessageIdstringautoDonebooleanWhen true, the next successful agent completion lands in DONE (strikethrough) instead of READY. Per-run flag — does not persist on the todo.
originOrchestrator threads: how this turn was produced.
UpdateMessageInput
todoIdstring · requiredmessageIdstring · requiredagentSettingsIdstring · required
contentstringattachmentsobject[]scheduledTimestampnumber
UpdateAndStartMessageInput
todoIdstring · requiredagentSettingsobject · requiredAI AgentSettings configuration including model, system prompt, and MCP tools.
messageIdstringThe message to update and run. Omit for an unstarted draft — the server then starts the todo's own first (and only) message, so callers that just want "press Start" don't have to fetch it first. Required when targeting a specific turn (e.g. a scheduled message).
contentstringattachmentsobject[]autoDonebooleanWhen true, the next successful agent completion lands in DONE (strikethrough) instead of READY. Per-run flag — does not persist on the todo.
TodoBlockSubTodoInput
todoIdstring · requiredmessageIdstring · requiredblockIdstring · requiredsubTodoIdstring · requiredTodo id of the sub-agent run to nest inside the block.
ContinueLastTurnInput
todoIdstring · required
modelstringModel for this continuation only (a session override) — the agent keeps its own.
thinkingLevel
TodoWorkflow
workflowMetarequiredworkflowVersionrequired
lastContextSummaryThe most recent context summary (if any compaction occurred)
ContextSummary
outputTokensnumber · requiredToken count after compaction
timestampnumber · requiredWhen compaction happened
messageIdsstring[] · requiredWhich messages were summarized
summarystringPlain summary text. Kept so the divider can display the compaction result directly.
summaryAttachmentobjectThe summary as an attachment frame, ready to be attached to a message
statusStatus: 'ready' = waiting to be used, 'used' = already attached to a message
WorkflowUpdateInput
todoIdstring · requiredworkflowMetastring · requiredworkflowVersionstring · required
contextSummaryUsedbooleanSet to true to mark the pending context summary as 'used'
TransactionPage
transactionsobject[] · requiredtotalnumber · requiredpagenumber · requiredlimitnumber · requiredtotalPagesnumber · required
Transaction
idstring · requiredtyperequiredamountnumber · requireddescriptionstring · requiredcreatedAtnumber · required
totalAmountnumbersourcestringplanFundedbooleanRecorded at charge time: this movement belongs to an active PAID plan's pool — either usage drawn from it or the allowance being reset. Such rows are presented as pacing (% + reset), never as a $ figure: the pool is denominated in credits, not in money the user bought. Deliberately NOT derived from
subSpent(free tiers draw a pot too, and a mixed charge would hide its real-money half) nor from the user's current tier (which would rewrite history on cancel/upgrade).
TransactionType
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
Invoice
idstring · requiredinvoiceNumberstring · requiredtotalAmountnumber · requiredcurrencystring · requiredstatusstring · requireddueDatenumber · requireditemsstring · requiredcreatedAtnumber · requiredupdatedAtnumber · required
stripeInvoiceIdstringstripeInvoiceUrlstringpaidDatenumbernotesstring
PaymentIntent
clientSecretstring · requiredsubtotalnumber · requiredtaxAmountnumber · requiredtotalAmountnumber · required
SubscriptionInfo
subscriptionIdrequiredtierrequiredstatusrequiredcurrentPeriodEndrequiredusageThisMonthnumber · requiredusageLimitrequiredbillingCycleStartrequiredeverPaidboolean · requiredEver made a real Stripe payment (top-up or paid plan) — lifetime full model catalog.
intervalrequiredHow the active subscription is billed; null for free/none. Plan changes must stay on this interval, so the pricing toggle follows it.
endsAtrequiredA free time-boxed grant (e.g. a claim-link trial) ends here; null when the plan renews or is open-ended.
cancelsAtrequiredThe paid subscription is scheduled to cancel here (Stripe cancel_at); null when it renews.
welcomeTrialEndsAtrequiredWelcome-gift trial (full catalog) ends here; null when no gift was claimed.
SubscriptionTier
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
SubscriptionPlan
tierrequirednamestring · requiredpriceMonthlynumber · requiredpriceYearlynumber · requiredusageLimitnumber · requiredMonthly credit pool, in USD. Equals what the plan costs — a $100 plan grants a $100 pool, so the invoice and the UI can never disagree.
featuresstring[] · required
costMultipliernumberCredits burned per $1 of real model cost — the margin. 1 = at cost. Rises up the ladder on purpose: the heavy-usage tiers are where the model spend is, so that's where the margin sits; Starter stays the cheapest way in. Effective real usage = usageLimit / costMultiplier.
descriptionstringisFreebooleanmaxSeatsnumber
SubscriptionResult
successboolean · required
subscriptionIdstringclientSecretstringcheckoutUrlstringmessagestring
CreateSubscriptionInput
tierrequiredintervalrequired
couponCodestringOptional Stripe promotion code (customer-facing, e.g. "LAUNCH100") to pre-apply at checkout.
currencyCheckout currency; default usd. huf = the Hungarian pricing page.
BillingInterval
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
UpdateSubscriptionInput
newTierrequired
intervalcouponCodestringOptional promo code — only applied when upgrading from a free tier to a first paid plan.
currencyCheckout currency when coming from a free/local plan; a live subscription keeps its own.
UsageStatusInput
projectIdstringProject the work would run in. Omitted = the user's personal balance.
UsageStatus
totalBalancenumber · requiredmanualBalancenumber · requiredsubscriptionBalancenumber · requiredtierrequiredhasActivePaidSubscriptionboolean · requiredallowExtraSpendboolean · requiredcreditLimitnumber · requiredmonthlyTopUprequiredpercentUsednumber · requiredusageThisMonthnumber · requiredbillingCycleStartrequiredsessionrequiredweeklyrequired
fundedByTeamOwnerIdstringSet when this is a TEAM's pool, not the user's own: the paying team's owner id. Undefined = the user's own account funds work here.
TeamInfo
ownerIdstring · requiredThe team is addressed by its funding owner on this API.
organizationIdstring · requiredThe organization row behind it (better-auth organization plugin / SSO).
ownerEmailstring · requiredisOwnerboolean · requiredmyRolerequiredRole of a user within a team (IAM). owner: billing + full control; admin: manage members; member: belongs only.
canManageboolean · requiredactiveboolean · requiredpromoBoostboolean · requiredmembersobject[] · requiredinvitesobject[] · required
ownerNamestringownerOnlinebooleanownerTagsstring[]The owner's team tags (members carry theirs on
members).namestringOrganization display name.
logostringThe company logo (https image URL): every team workspace without its own icon or logo shows it.
tierThe owner's subscriptionTier: tells a free team from a paid/legacy one (with
activefor dormant).maxSeatsnumberTotal seats including the owner; undefined = no cap (paid plans: each person's machine is charged from the credit).
welcomeTrialEndsAtnumberThe owner's welcome-gift trial (full catalog for the whole team) ends here.
guestsobject[]People outside the team with access to its projects — managers only.
requestsobject[]Coworkers at the company domain asking to join — managers only.
joinDomainstringEmail domain that auto-joins this team on signup/sign-in; undefined = off.
eligibleDomainstringDomain the owner is eligible to enable (their own, when not a public mail provider).
spendLimitobjectCap for every member without their own; undefined = none.
poolCreditsnumberThe owner's monthly credit the limit percentages are taken of; undefined = no plan credit.
providerPolicyobjectOwner's provider restriction for work in this team's projects (Team/Scale); undefined = any. Visible to all members.
teamProjectIdsstring[]The team's shared projects: every member holds write access, and work inside one of them is billed to THIS team's pool. Empty = not set up yet. Optional until the multi-team backend lands.
teamLandingProjectIdstringThe team project a new member lands in on join (their
/). One of teamProjectIds; managers may re-point it. Unset when the team has none.
teamProjectIdstring · deprecated · required
TeamMemberInfo
idstring · requiredemailstring · requiredrolerequiredRole of a user within a team (IAM). owner: billing + full control; admin: manage members; member: belongs only.
machinerequiredEvery person in a workspace has their own cloud machine: small or large.
onlinebooleanHas a recently connected frontend, not necessarily actively interacting.
namestringtagsstring[]Team tags they carry: a board group shared with a tag is seen by everyone who has it.
spendLimitobjectTheir own cap on the team credit; undefined = the team default (
spendLimiton TeamInfo). Managers and the member only.spentobjectTeam credit they spent today and this credit month. Managers and the member only.
MachineSize
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
MemberSpendLimit
monthlyPercentnumberMax share of the monthly credit per credit month.
dailyPercentnumberMax share of the monthly credit per day, so one day can't burn the month.
TeamInviteInfo
emailstring · requiredrolerequiredRole of a user within a team (IAM). owner: billing + full control; admin: manage members; member: belongs only.
invitedAtnumber · requiredexpiresAtnumber · required
TeamGuestInfo
idstring · requiredemailstring · requiredprojectsobject[] · requiredThe team projects they are named on.
owns: they own it, so it cannot be taken from them here.devicesobject[] · requiredMachines of the team's people shared with them.
namestring
TeamProviderPolicy
moderequiredany = no restriction; eu_default = new chats start on an EU provider, members may switch per chat; eu_only = EU providers only, enforced at dispatch.
zdrOnlybooleanZero-data-retention providers only, enforced at dispatch.
TeamProviderMode
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
TeamAddMemberInput
emailstring · required
roleownerIdstringTeam to act on, identified by its owner's user id.
CompanyTeam
namestring · requiredThe company email domain (never a project, owner or member name).
requestedboolean · requiredThis user already asked to join.
joinedProjectIdstringApproved: the team board their setup continues on.
TeamJoinRequestInput
userIdstring · required
ownerIdstringTeam to act on, identified by its owner's user id.
TeamRevokeInviteInput
emailstring · required
ownerIdstringTeam to act on, identified by its owner's user id.
TeamSetProjectInput
projectIdstring · requiredProject to attach/detach — must be owned by the team owner. Required: a team may hold several projects, so there is no "the" one to infer.
isTeamProjectboolean · requiredtrue = shared team project (members get write access, spend draws the pool).
ownerIdstringTeam to act on, identified by its owner's user id.
TeamSetLandingProjectInput
projectIdstring · requiredMust already be one of the team's projects.
ownerIdstringTeam to act on, identified by its owner's user id.
TeamSetJoinDomainInput
enabledboolean · requiredtrue = auto-join on the owner's verified email domain, false = off.
ownerIdstringTeam to act on, identified by its owner's user id.
TeamSetProviderPolicyInput
moderequiredany = no restriction; eu_default = new chats start on an EU provider, members may switch per chat; eu_only = EU providers only, enforced at dispatch.
zdrOnlyboolean · required
ownerIdstringTeam to act on, identified by its owner's user id.
TeamRenameInput
namestring · minLength: 1 · maxLength: 60 · required
ownerIdstringTeam to act on, identified by its owner's user id.
TeamSetLogoInput
logostring · maxLength: 2048 · requiredhttps image URL; '' removes it.
ownerIdstringTeam to act on, identified by its owner's user id.
TeamInvitePreview
ownerEmailstring · requiredMasked (
j***@acme.com) — a forwarded link must not leak the owner's address.emailstring · requiredFull invited address — the invite email already contains it, and the sign-in form prefills from it.
rolerequiredRole of a user within a team (IAM). owner: billing + full control; admin: manage members; member: belongs only.
teamNamestring · required
TeamSetRoleInput
memberIdstring · requiredrolerequiredRole of a user within a team (IAM). owner: billing + full control; admin: manage members; member: belongs only.
TeamSetTagsInput
memberIdstring · requiredtagsstring[] · requiredThe full list;
[]removes them all.
ownerIdstringTeam to act on, identified by its owner's user id.
TeamSetSpendLimitInput
limitrequired
memberIdstringownerIdstringTeam to act on, identified by its owner's user id.
TeamRemoveMemberInput
memberIdstring · required
ownerIdstringTeam to act on, identified by its owner's user id.
TeamRemoveGuestInput
guestIdstring · required
ownerIdstringTeam to act on, identified by its owner's user id.
EdgeData
idstring · requireddeviceTyperequiredmetadataobject · requiredKnown metadata fields. Additional client-reported keys are not part of the public contract. No unknown index signature: tRPC's JSON serialization would erase the optional field types.
namestring · requiredworkspacepathsstring[] · requiredLocal filesystem paths the agent can access
ownerIdstring · requiredstatusrequiredcreatedAtnumber · required
installedToolsobjectCatalog tool states (installed, authenticated) reported by the edge
mcp_jsonobjectRaw MCP config JSON
mcp_config_pathstring
DeviceType
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
MachineMetadata
identityobjectinstalledToolsobjectConstruct a type with a set of properties K of type T
osstringarchstringhostnamestringuserstringshellstringhomestring
EdgeStatus
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
EdgeUpdateFields
namestringworkspacepathsstring[]installedToolsobjectConstruct a type with a set of properties K of type T
DeviceData
idstring · requirednamestring · requireduserIdstring · requiredOwner. A device shared with the viewer has
userId !== viewer.deviceTypestring · requiredmetadataobject · requiredworkspacepathsstring[] · requiredFilesystem roots the user has authorized AI shell sessions to operate within.
statusrequiredcreatedAtnumber · requiredlastSeenAtnumber · required
accessIdsstring[]Users the owner shared the device with (use access). Owner-facing views only.
sharedBystringSet for non-owner viewers: the owner's label ("Name
").
DeviceMetadata
identityobjectinstalledToolsobjectConstruct a type with a set of properties K of type T
osstringarchstringhostnamestringuserstringshellstringhomestringhostDeviceobjectLive, owner-validated browser host projection. Never persisted; absent means unknown.
wallpaperobjectCaptured desktop wallpaper, stored at
Device.metadata.wallpaper.etagispath + mtime + size(not a content hash) — the bridge re-derives it with a singlestaton every reconnect, so an unchanged wallpaper costs no file read, no encode and no transfer. The backend passes the etag it holds down to the capture script, which answersSAME <etag>when the wallpaper still matches (conditional-GET shape). One etag, one attachment: a wallpaper change replaces both, so nothing accumulates.keepAwakeobjectcloudSshobjectcloudSshDisabledbooleancdpTokenstringbrowserstringautoNamestringscopeTodoIdstringmayflybooleanrealDeviceIdstringworkspacePathstringuserAgentstringversionstringcdpModestringmodelstringreadinessobjectMake all properties in T optional
pairedWithstringANDROID: the bridge device that ran the last successful
adb pair— the computer that can surely reach the phone.attachedTabsobject[]
DeviceWallpaper
moderequiredauto= follow the device's real wallpaper.off= this device stays on the built-in gradient and capture is skipped entirely.
attachmentIdstringAttachment holding the image currently shown.
etagstringetag of the image
attachmentIdholds.urlstringRead URL for
attachmentId, DERIVED at projection time and never persisted. It is the ordinary authenticated attachment route: the card'sis a same-origin request that carries the session cookie, so the image needs no share link and stays private. Owner projection only.
PartialPhoneReadiness
sdknumbersupportedbooleanmanufacturerstringmodelstringdevOptionsbooleanadbEnabledbooleanwirelessDebuggingbooleanrestrictedbooleanmanagedbooleanpairingbooleanadbd's "Pair device with pairing code" dialog is open right now.
autoEnableboolean"Always on" is chosen and the app holds WRITE_SECURE_SETTINGS: it switches Wireless debugging back on itself.
tcpipbooleanadbd also listens on its legacy TCP port ("Ultra" level): reachable on mobile data too, until reboot.
DeviceStatus
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
RunMachine
idstring · requirednamestring · requireddeviceTypestring · requiredstatusstring · requiredONLINE, or STOPPED: the sleeping cloud VM (boots on first use).
metadataobject · required
sharedBystringSet for someone else's machine: the owner's label.
edgebooleanA legacy edge client rather than a bridge device.
workspacestringShell machines: the agent's first workspace path there.
cdpUrlstringBrowsers:
agent-browser connect '<cdpUrl>'.
DeviceExecInput
idstring · requiredcmdstring · requiredShell command to run on the device. Frontend is responsible for quoting/escaping.
cwdstringOptional working directory for the command.
timeoutMsnumberPer-call timeout (ms). Defaults to 10s server-side.
outputBridge output policy.
raw= no line cap and no head/tail cut — required for machine-parsed output (base64 blobs, JSON) where the default 300-char line cap silently corrupts long lines. Defaults tosafe.projectIdstringProject the run acts in: the bridge exports it as TODOFORAI_PROJECT_ID, so tfa-cli children land there instead of the device's cached default project.
detachedbooleanFire-and-forget: launched outside every bridge-managed lifetime, resolves at once with no output. For long-lived helpers (OAuth callback servers).
todoIdstringThe todo the run acts for (exported as TODOFORAI_TODO_ID):
tfa-cli showlands there and the run's token carries it as its memory/output todo, as for an agent shell. Must be a todo the caller can access.frontendIdstringThe caller's tab (TODOFORAI_FRONTEND_ID), so
tfa-surfacedrives that tab.toolProfilesobjectRun these tools with an agent's separate login (AgentSettings.toolProfiles shape): the tool panel signs in / lists accounts of that profile. Owner's runs only.
DeviceExecOutput
stdoutstring · requiredCombined stdout/stderr, merged at the bridge PTY.
exitCoderequiredProcess exit code, or null if the run was killed/timed out before exit.
truncatedboolean · requiredTrue iff output exceeded the transport's output cap and was truncated.
timedOutboolean · requiredTrue iff the run hit
timeoutMsand was killed.
DeviceScanToolsInput
idstring · required
keysstring[]Re-probe only these TOOL_CATALOG keys (merged into the stored map); omit for a full scan.
DeviceToolMap
installedboolean · requiredWhether the binary is found on PATH
versionstringOutput of versionCmd (e.g. "v1.2.3"), undefined if not run or no versionCmd
statusOutputstringOutput of statusCmd (e.g. logged-in user), undefined if not run or no statusCmd
authenticatedbooleanWhether statusCmd exited 0 (authenticated/ready)
wasAuthenticatedbooleanA status probe succeeded at least once. Sticky; not a verdict about why auth failed.
requestedbooleanThe user explicitly asked for this tool on this device (Connect / Add). Hosts with a preinstalled catalog (cloud VMs) list only requested or connected tools — the rest is clutter — and a requested tool that later lost its credentials stays visible as "Not linked" so it can be fixed. Sticky across rescans; cleared by the
forgettool op.descriptionstringUser description override from the edge's ~/.todoforai/custom_tools.json, folded into the scan result edge-side. Takes precedence over the catalog description in the agent's bash tool CLI list, and lets non-catalog binaries (found on PATH) be advertised. Deliberately ONE field for both audiences, unlike the catalog's summary/description pair: the user writes this line themselves, in their own words, about their own binary — asking them for two takes of the same sentence buys less than it costs. It is shown as-is in the tile and sent as-is to the agent.
labelstringUser label override (custom_tools.json), same mechanism as
description.
DeviceToolOpInput
idstring · requiredtoolKeystring · requiredTOOL_CATALOG key.
kindrequiredforgetclears the user's request flag without uninstalling.
operationIdstring
DeviceToolOpOutput
okboolean · requiredcmdstring · requiredoutputstring · required
errorstringtoolsobjectCatalog tool state map (
installedTools), keyed by tool key.
AgentWorkspaceEnsureInput
workspacePathsstring[] · minItems: 1 · maxItems: 20 · required
deviceIdstringedgeIdstringnamestring · maxLength: 200Defaults to the first folder's name.
AgentWorkspaceEnsureOutput
agentobject · requiredAI AgentSettings configuration including model, system prompt, and MCP tools.
createdboolean · required
GlobalAgentSettings
systemMessageBase prompt prepended to every agent. Unset/null → default prompt; '' → none.
modelstringthinkingLeveltemperaturenumberpermissionsobjectjudgeSysmsgstringDefault approval policy; used by every agent that has no
judgeSysmsgof its own.memoryEnabledbooleanDefault for agents without their own
memoryEnabled; unset = on.edgesMcpConfigsobjectdevicesConfigobject
PromptSizes
sizesobject · requiredConstruct a type with a set of properties K of type T
atnumber · requiredEpoch ms of the build.
AgentUpdateInput
agentSettingsIdstring · requiredupdatesobject · requiredMake all properties in T optional
PartialAgentSettingsUpdate
namestringmodelstringLLM model identifier (e.g., 'claude-3-opus')
colorstringHex color (e.g. '#10b981') used to tint todos assigned to this agent
permissionsobjectTool permission allowlist
systemMessagestringCustom system prompt for the agent
refusalFallbackModelstringModel to continue the turn with when
modelrefuses a request on safety grounds (stop_reason refusal / content_filter). Opt-in: agent ⋮ → "More settings…" ortfa-cli agent update <agent> refusalFallbackModel=…. Every switch is announced by a toast + the run meta records the model that actually answered; unset = the refusal is shown as an error.refusalRetryEverynumberWhile on the refusal fallback, give the refused
modelone call after every N fallback calls: it answering ends the fallback, it refusing again stays on it. Each probe re-sends the conversation uncached. Unset/0 = never. Experimental, CLI/API only.modelFamilystringFollow this model family (MODEL_FAMILIES key): at each run start
modelis moved to the family's current version. Unset =modelis pinned.keepProviderbooleanRun-only (never stored):
modelis an explicit per-chat pick, so it runs on exactly itsprovider:— the team's "EU by default" does not re-point it to the EU sibling. Hard rules (eu_only / zdrOnly) still apply.thinkingLeveltemperaturenumbersystemMessageMode'default_coder' uses built-in coding prompt, 'custom_w_tools' uses systemMessage + auto-injected capability sections, 'raw' uses systemMessage verbatim (no global prepend, no tool/routing/workspace sections).
smartSystemPromptbooleanAuto-enhance system prompt based on context
searchOffstring[]Search sources switched off for this agent (Knowledge → Searchable):
chats(tfa-memory),cloud(TODOforAI files, tfa-files),gdrive,onedrive,find:<machineId>:<folder>(a tfa-find folder). Unset/empty = everything on.knowledgeOffstring[]Knowledge switched off for this agent, by uri: memory files (kept out of the prompt), context entries (not listed),
todoforai:projects/<id>/context= all Documents,…/context/brandand…/context/voice. Unset/empty = all on.autoCompactionbooleanAutomatic context compaction (summarize older messages near the limit). Default on; false = only manual compaction + overflow recovery. Set in the agent's "More settings…".
contextLimitnumberContext limit in tokens that compaction is measured against. Unset/0 = auto (model window, capped at 200K).
contextDocumentsobject[]Reference files (PDF, images, text/office docs) pinned to every conversation of this agent: sent natively as the first user message (PDF/image as document/image blocks), prompt-cached. Metadata only — the agent fetches bytes by attachment id.
edgesMcpConfigsobjectEdge device MCP configurations by edgeId
devicesConfigobjectBridge device workspace + cwd config by deviceId. Parallel to
edgesMcpConfigs.toolProfilesobjectPer-tool login profile: tool key → profile name. The tool's credentials live in
~/.todoforai/profiles/<name>/on every host instead of the shared default, so only agents naming the profile see those accounts. Unset (the normal case) = shared login.promptOverridesobjectDeveloper-mode only (prompt/tool-schema experiments without a deploy). Applied agent-side:
sysmsgreplaces the system message;tools.<name>.description/tools.<name>.params.<param>replace that tool's description / parameter description.{{orig}}= the original text.specIdstringSpec this agent was created from
iconstringIcon key from the frontend's agent icon set (unset = robot).
judgeSysmsgnull = clear the agent's own policy (inherit the global one again).
memoryEnablednull = clear the agent's own memory switch (follow the global default again).
AgentEdgeMCPInput
agentSettingsIdstring · requirededgeIdstring · requiredmcpNamestring · requiredconfigobject · required
AgentDeviceConfigInput
agentSettingsIdstring · requireddeviceIdstring · requiredconfigobject · requiredPartial — merged over the existing per-device entry, so callers can flip a single field (e.g.
{ enabled: false }) without re-sending paths.
PartialDeviceConfig
workspacePathsstring[]enabledPer-agent device state. For ordinary devices, false disables and every other value enables. The hosted cloud VM additionally supports: false → Off. 'auto' → use only when no local desktop is online. 'on' → explicitly always on (overrides global Auto/Off). true / undefined → enabled, inheriting the per-user global cloud mode.
trueremains the inherited state for compatibility with existing agent records, where it was written before explicit cloud modes existed.
BusinessContextInfoResponse
projectIdstring · requiredidstring · requirednamestring · requiredcreatedAtnumber · requireduristring · required
QuickLook
domainstring · requirednamestring · requiredsummarystring · requiredfindingsobject[] · required
VoiceSourcesInput
projectIdstring · required
scopeWhose voice:
mine(default) — the caller's private voice within this project — orproject— shared with its members.
VoiceSourcesOutput
sourcesobject[] · required
profileobjectA learned company/personal writing voice — the distilled output of the voice refinement loop. Used to make agents write in the user's style.
VoiceSourceSummary
labelstring · requiredPublic page URL that was read (crawl), or the connected page name (Graph API).
postsnumber · requiredchannelstring · requiredviarequiredHow the text was obtained.
manual= the user's own answers to the style questions (MANUAL_CHANNEL).charsnumber · requiredfetchedAtnumber · requiredpreviewstring · required
accountstringWhich account on that platform: the connected Facebook Page id (also for its linked Instagram account — the token lives on the Page), or the normalised profile URL that was crawled. A brand holds one source per (channel, account), so several Pages / handles on the same platform sit side by side; the set of stored sources is the brand's channel selection. Unset for device text — one such bucket per platform.
warningstringSet when the fetch yielded nothing usable (login wall, no captions, …).
samplesstring[]
VoiceProfile
profilestring · requiredOne-paragraph description of the voice (tone, formality, quirks, do/don't).
matchnumber · required0–100 how well the final draft matches the target style.
sourcerequiredWhere the voice was learned from:
- 'answers' the user's own answers were usable and drove the profile
- 'company' the answers were too thin, so the profile is inferred from company info
- 'social' inferred from a (mock) connected social account
iterationsobject[] · requiredThe refinement passes, oldest → newest, so the UI can show the loop converging.
updatedAtnumber · required
notestringWhen source==='company': a short note explaining why the answers weren't used.
channelstringOptional label of the mock social channel this came from (source==='social').
answerFeedbackobjectPer-answer feedback (question → hint) for answers too weak to learn a style from.
sourcesobject[]What fed this profile: channel → posts/chars. Lets the user see what the style was learned from.
channelsobjectHow the voice differs per platform, only for channels that genuinely diverge (channel → one clause).
evidenceobject[]Which sources each learned trait was observed in — so the user can see what drove the style.
formatobjectMeasured writing format per channel (length, sentences, emoji/hashtag/link habits) — facts, not the LLM's guess.
movesRecurring devices the brand actually uses per channel (openers, closers, structures) — concrete, imitable. Keyed like
format; 'default' when learned without social posts. Legacy profiles hold a flat string[].skeletonSkeleton of a typical post per channel, line by line (e.g. "1: one-line claim · blank · 2–3: detail · blank · link alone"). Voice structure does not transfer between unalike platforms, so it is never global. Legacy profiles hold a string.
neverstring[]Things the brand never does.
addsstringWhat they put in beyond the bare facts (aside, joke, opinion, stray detail) and how often — quoted.
quirksstring[]Surface idiosyncrasies to reproduce rather than sand off (typos left in, non-native grammar, ":D", dangling "Try it at:" lines…).
correctionsstring[]What the author told the learner was off ("too polished", "I never use exclamation marks"), oldest first. Durable: applied on every re-learn and shown to agents as the highest authority.
stylesobjectVoice name ('X@todoforai') → the one style block its file holds: what an agent reads before writing there.
writtenobjectVoice file → sha256 of what the learner last wrote there. A file whose content no longer matches was edited by hand: a relearn keeps it as is (the edit IS the correction).
VoiceIteration
samplestring · requiredSample line rewritten in the learned voice for this pass.
matchnumber · required0–100 self-assessed match to the target style after this pass.
critiquestring · requiredWhat changed / what was still off this pass (one short sentence).
VoiceProfileSource
channelstring · required'answers', 'company', or a voice name: a platform ('X', 'LinkedIn', …) or one account on it ('Facebook@acme').
postsnumber · requiredcharsnumber · required
accountsstring[]Account labels merged into this channel (Page names, handles) when there were several.
handlestringThe handle as the user knows it ('x.com/todoforai'): the voice's title and file description.
VoiceEvidence
traitstring · requiredchannelsstring[] · requiredSource channels ('X', 'LinkedIn', 'answers', …) where this trait shows up.
RecordstringVoiceFormat
postsnumber · requiredcharsobject · requiredTypical post length in characters: 25th–75th percentile, plus the longest seen.
sentencesobject · requiredTypical sentence count per post (p25–p75).
emojinumber · requiredShare of posts (0–1) using each device.
hashtagsnumber · requiredlinksnumber · requiredquestionsnumber · requiredexclamationsnumber · requiredlineBreaksnumber · requiredShare of posts with a paragraph/line break.
endsWithBareLinknumber · requiredShare of posts whose last line is only a link / arrow+link.
headlineOpenernumber · requiredShare of posts whose first line is short (≤ 60 chars) and followed by a break — a headline opener.
casingrequired'lower' when most posts start lowercase, 'sentence' otherwise.
charDecilesnumber[]The length distribution itself, as deciles p10…p90 — a generator matching only the median collapses the spread, which is the single biggest tell (real CV 0.65 vs generated 0.40). Optional: profiles learned before this field existed have none.
linesobjectTypical number of lines (p25–p75) when the post is multi-line.
capsEmphasisnumberShare of posts with an ALL-CAPS emphasis word (FINALLY, BEST — not acronyms ≤3 letters).
emoticonsnumberShare of posts with a text emoticon (:D ;) :) xD).
VoiceFormat
postsnumber · requiredcharsobject · requiredTypical post length in characters: 25th–75th percentile, plus the longest seen.
sentencesobject · requiredTypical sentence count per post (p25–p75).
emojinumber · requiredShare of posts (0–1) using each device.
hashtagsnumber · requiredlinksnumber · requiredquestionsnumber · requiredexclamationsnumber · requiredlineBreaksnumber · requiredShare of posts with a paragraph/line break.
endsWithBareLinknumber · requiredShare of posts whose last line is only a link / arrow+link.
headlineOpenernumber · requiredShare of posts whose first line is short (≤ 60 chars) and followed by a break — a headline opener.
casingrequired'lower' when most posts start lowercase, 'sentence' otherwise.
charDecilesnumber[]The length distribution itself, as deciles p10…p90 — a generator matching only the median collapses the spread, which is the single biggest tell (real CV 0.65 vs generated 0.40). Optional: profiles learned before this field existed have none.
linesobjectTypical number of lines (p25–p75) when the post is multi-line.
capsEmphasisnumberShare of posts with an ALL-CAPS emphasis word (FINALLY, BEST — not acronyms ≤3 letters).
emoticonsnumberShare of posts with a text emoticon (:D ;) :) xD).
SuggestBrandVoiceAnswerInput
projectIdstring · requiredquestionstring · required
scopeThe voice to answer in (default
mine, private within this project).
CollectVoiceSourceInput
projectIdstring · requiredchannelstring · requiredPosts: 'X' | 'LinkedIn' | 'Facebook' | 'Instagram'. Threads: 'Gmail' | 'Outlook' | 'Slack' | 'Teams'. Own words: MANUAL_CHANNEL (with
samples).
scopeWhose voice:
mine(default) — the caller's private voice within this project — orproject— shared with its members.urlstringPublic page URL, read by the paid scrapers (also for Facebook/Instagram). Omitted on Facebook/Instagram → the connected Pages (Graph API).
accountstringFacebook/Instagram: the connected Page id to read (NOT_FOUND if not connected). Omitted → refresh the Pages the voice already holds (never a Page it did not pick). With
samples: the mailbox they were read from (Gmail), stored as that mailbox's own source and voice.samplesobject[]Samples collected on the user's own device by
tfa-cli brand voice collect <channel>(zele, outlook-api, tfa-memory, ...): signed-in data, so it wins over url / Graph API.
VoiceSample
textstring · required
promptstringThe message this replied to. Absent for standalone posts.
atstringISO date or whatever the source gives.
urlstringWhere it came from (post URL,
gmail:<account>/<thread>#<n>, memory address).
RemoveVoiceSourceInput
projectIdstring · requiredchannelstring · required
scopeWhose voice:
mine(default) — the caller's private voice within this project — orproject— shared with its members.accountstringThe account's source (Page id / crawled URL); omitted → the channel's device bucket.
allboolean
RefineBrandVoiceInput
projectIdstring · required
scopeWhose voice:
mine(default) — the caller's private voice within this project — orproject— shared with its members.sourceconstLearns from EVERY collected source (see collectVoiceSource) — social channels plus the Manual answers — producing one global profile. Set to 'company' to ignore all of that and derive the voice from company info alone.
Const value: companycorrectionstringOne new correction from the author ("too polished", "never exclamation marks"). The server appends it to the stored profile's list — so two tabs or the CLI can never overwrite each other — and runs a single cheap correction pass instead of a full re-learn.
RefineBrandVoiceOutput
profilestring · requiredmatchnumber · requiredsourcerequirediterationsobject[] · required
notestringchannelstringanswerFeedbackobjectPer-answer feedback (question → hint) for answers the arbiter judged too weak to learn a style from — why it fell short + how to make it usable. Only present when some answers were provided but not used.
sourcesobject[]What fed this profile.
channelsobjectConstruct a type with a set of properties K of type T
evidenceobject[]formatobjectConstruct a type with a set of properties K of type T
movesobjectConstruct a type with a set of properties K of type T
skeletonobjectConstruct a type with a set of properties K of type T
neverstring[]addsstringquirksstring[]correctionsstring[]stylesobjectConstruct a type with a set of properties K of type T
ContextInfo
todoIdstring · requiredThe todo ID this context info belongs to
modelstring · requiredThe model being used
contextWindownumber · requiredMaximum context window size in tokens
usedTokensnumber · requiredCurrent tokens used
utilizationPercentnumber · requiredPercentage of context window used (0-100)
messageCountnumber · requiredNumber of messages in the conversation
shouldCompactboolean · requiredWhether context compaction is recommended
compactingboolean · requiredA compaction request is in flight (agent not yet answered); persisted so it survives reloads
warningLevelrequiredWarning level based on utilization
breakdownobject · requiredDetailed token breakdown
ContextTokenBreakdown
inputTokensnumber · requiredoutputTokensnumber · requiredcacheReadTokensnumber · requiredcacheWriteTokensnumber · required
CompactInput
todoIdstring · required
dryRunbooleanIf true, only simulate compaction without making changes
targetUtilizationnumberTarget utilization percentage after compaction (0-1, default 0.5 = 50%)
CompactResult
successboolean · requiredoriginalMessagesnumber · requiredcompactedMessagesnumber · requiredsavedMessagesnumber · required
summarystringmessagestring
AddContextSummaryInput
todoIdstring · requiredoutputTokensnumber · requiredToken count after compaction
timestampnumber · requiredWhen compaction happened
messageIdsstring[] · requiredWhich messages were summarized
summarystringPlain summary text
summaryAttachmentobjectThe summary as an attachment frame
statusStatus: 'ready' = waiting to be used, defaults to 'ready'
Attachment
metadataobject · requiredStorage metadata (checksum, etc.)
idstring · requireduristring · requiredResource URI - always required. Format: "todoforai:todos/{todoId}/{id}"
originalNamestring · requiredmimeTypestring · requiredfileSizenumber · requiredIn bytes
userIdstringOwner user ID
agentSettingsIdstringScoped to agent settings
todoIdstringScoped to todo
symlinkTostringIf this is a symlink share, the attachment ID of the owner's original file
createdAtnumberisPublicbooleanstatusmodifiedAtnumberLast modified time (mtime), milliseconds epoch
permissionsnumberUnix permission bits (e.g. 0o644 = 420 decimal)
blockIdstringBlock ID that produced this attachment (for mapping tool results back to tool_calls)
toolCallIdstringLLM tool_call ID — for stamping results back to the originating tool call
textstringAgent → backend only: small text results travel inline here instead of a separate binary frame. Consumed at registration; never persisted.
AttachmentMetadata
descriptionstringchecksumstringfieldnameTruncatedbooleanvalueTruncatedboolean
ResourceUriInput
uristring · required
projectIdstringProject whose brand
todoforai:business-context/voice-profileresolve to.
ResourceCreateFolderInputparentUristringMinLength1namestringMinLength1
parentUristring · minLength: 1 · requirednamestring · minLength: 1 · required
ResourceSetDescriptionInputuristringMinLength1descriptionstringMaxLength1000
uristring · minLength: 1 · requireddescriptionstring · maxLength: 1000 · requiredEmpty clears it.
projectIdstring
ResourceMoveInputfromstringMinLength1tostringMinLength1
fromstring · minLength: 1 · requiredtostring · minLength: 1 · required
FileSearchInputquerystringMinLength1MaxLength1000
querystring · minLength: 1 · maxLength: 1000 · required
projectIdstringRestrict to one project's files (must be accessible).
limitnumberMax files (default 10, max 50).
FileSearchPage
hitsobject[] · requiredstatusobject · requiredWhere the caller's file index stands.
scanning: listing what changed;indexing: embeddingdoneoftotalchanged files.
FileSearchHit
uristring · requiredRead it with
tfa-cat <uri>.namestring · requiredsnippetstring · requiredmodifiedAtnumber · required
projectIdstringscorenumberPresent when found by meaning: cosine distance (0 = identical).
FileIndexStatus
staterequireddonenumber · requiredtotalnumber · requiredfilesnumber · requiredFiles in the index the caller can search.
indexedAtnumberEpoch ms of the last finished sync.
errorstringerror: why it stopped;idle: what the last sync could not index (retried next time).currentstringindexing: the uri being read and embedded now.
RecordstringFileIndexState
uristring · requiredHow search hits name it (
tfa-cat <uri>): a project file's path, else its id address.staterequired
chunksnumbererrorstring
FileIndexState
uristring · requiredHow search hits name it (
tfa-cat <uri>): a project file's path, else its id address.staterequired
chunksnumbererrorstring
TodoSpecPublic
namestring · requireddescriptionstring · requiredidstring · requiredbodystring · requiredThe agent prompt body (markdown) — split into system/user via splitTemplateBody.
sourcerequiredWho owns a spec's content. 'builtin' = seeded from todo-registry.json and refreshed on deploy; editing copies-on-write to 'authored' (user-owned, never reseeded). Fork provenance lives in
forkedFrom, not here.categoriesstring[] · requiredcreatedAtnumber · requiredupdatedAtnumber · required
shortstringrequirementsstring[]Capability requirements, e.g. "cli:gh", "extension:chrome".
agentConfigobjectModel/thinking/permissions the spec's agent runs with; omitted = user defaults.
forkedFromstringSpec id or todo id this was forked from (set by share / save-as-template).
TodoSpecSource
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
SpecAgentConfig
modelstringLLM model identifier (e.g., 'claude-3-opus')
permissionsobjectTool permission allowlist
refusalFallbackModelstringModel to continue the turn with when
modelrefuses a request on safety grounds (stop_reason refusal / content_filter). Opt-in: agent ⋮ → "More settings…" ortfa-cli agent update <agent> refusalFallbackModel=…. Every switch is announced by a toast + the run meta records the model that actually answered; unset = the refusal is shown as an error.thinkingLevelsystemMessageMode'default_coder' uses built-in coding prompt, 'custom_w_tools' uses systemMessage + auto-injected capability sections, 'raw' uses systemMessage verbatim (no global prepend, no tool/routing/workspace sections).
namestringcolorstringHex color (e.g. '#10b981') used to tint todos assigned to this agent
privatePromptboolean
SpecCreateInputnamestringMinLength1MaxLength120descriptionstringMinLength1bodystringMinLength...
namestring · minLength: 1 · maxLength: 120 · requireddescriptionstring · minLength: 1 · requiredbodystring · minLength: 1 · requiredThe agent prompt body (markdown).
shortstringcategoriesstring[]requirementsstring[]agentConfigobjectAgent settings a spec pins on the agent it starts with (applied by startFromSpec on every start).
name/colormake it a named agent (default name: the spec name).privatePrompt: the spec's system part stays server-side — stripped from public spec responses and never copied onto the agent; injected at run time via agent.specId.visibility
TodoSpec
idstring · requirednamestring · requireddescriptionstring · requiredcategoriesstring[] · requiredbodystring · requiredThe agent prompt body (markdown) — split into system/user via splitTemplateBody.
sourcerequiredWho owns a spec's content. 'builtin' = seeded from todo-registry.json and refreshed on deploy; editing copies-on-write to 'authored' (user-owned, never reseeded). Fork provenance lives in
forkedFrom, not here.visibilityrequiredcreatedBystring · requiredcreatedAtnumber · requiredupdatedAtnumber · required
shortstringrequirementsstring[]Capability requirements, e.g. "cli:gh", "extension:chrome".
agentConfigobjectModel/thinking/permissions the spec's agent runs with; omitted = user defaults.
forkedFromstringSpec id or todo id this was forked from (set by share / save-as-template).
SpecPatchInput
idstring · required
namestringdescriptionstringbodystringshortstringcategoriesstring[]requirementsstring[]agentConfigobjectAgent settings a spec pins on the agent it starts with (applied by startFromSpec on every start).
name/colormake it a named agent (default name: the spec name).privatePrompt: the spec's system part stays server-side — stripped from public spec responses and never copied onto the agent; injected at run time via agent.specId.visibility
RegistryPack
idstring · requirednamestring · requireddescriptionstring · requiredtodoIdsstring[] · requiredcreatedAtnumber · requiredupdatedAtnumber · required
shortstringcategoriesstring[]
RecordstringTodoStats
idstring · requiredstartsnumber · requiredTimes started/forked
likesnumber · requiredcompletionRatenumber · required0-100
avgCompletionTimenumber · requiredIn milliseconds
isLikedboolean · requiredCurrent user has liked
TodoStats
idstring · requiredstartsnumber · requiredTimes started/forked
likesnumber · requiredcompletionRatenumber · required0-100
avgCompletionTimenumber · requiredIn milliseconds
isLikedboolean · requiredCurrent user has liked
RecordstringSpecMetaPublic
idstring · requiredtodoCountnumber · requiredHow many TODOs created from this spec
messageCountnumber · requiredTotal messages across all TODOs
totalCostnumber · requiredTotal cost across all TODOs (USD)
totalDurationnumber · requiredTotal AI processing duration across all TODOs (ms), summed from RunMeta.elapsed
SpecMetaPublic
idstring · requiredtodoCountnumber · requiredHow many TODOs created from this spec
messageCountnumber · requiredTotal messages across all TODOs
totalCostnumber · requiredTotal cost across all TODOs (USD)
totalDurationnumber · requiredTotal AI processing duration across all TODOs (ms), summed from RunMeta.elapsed
BenchVoteCountsInput
taskstring · maxLength: 100 · pattern:^[a-z0-9-]+/[a-z0-9-…· requiredslugsstring[] · maxItems: 100 · required
BenchRunKey
^[a-z0-9-]+/[a-z0-9-…Run key = <bench>/<task>/<slug> as on /bench (e.g. threejs-bench/lava-lamp/anthropic_claude-opus-5.5_high).
BenchProposalAddInput
benchstring · maxLength: 50 · pattern:^[a-z0-9-]+$· requiredtitlestring · minLength: 5 · maxLength: 200 · required
TodoCommentsOutput
commentsobject[] · requiredthreadsobject[] · requiredauthorsobject[] · requiredcanCommentboolean · requiredWhat the caller may do — the UI renders from this, never re-derives the ACL.
canNoteboolean · requiredMay comment on the todo itself: anyone signed in who can see it.
canModerateboolean · requiredcommentsEnabledboolean · required
TodoComment
idstring · requiredtodoIdstring · requiredauthorIdstring · requiredcontentstring · requiredcreatedAtnumber · required
messageIdstringThe thread: a comment belongs to exactly one message. Absent = a NOTE on the todo itself (why it is here, where it stands) — team members only, not shown to link visitors.
viaconstWritten by an agent from its shell (tfa-cli todo comment), on behalf of
authorId.Const value: agentquoteobjectWhere in a message a comment points. Quote-anchored (W3C TextQuoteSelector), not offsets: survives markdown re-rendering; if the quote no longer matches, the comment falls back to the whole message.
editedAtnumber
ValidatedCommentAddInput
todoIdstring · minLength: 1 · requiredcontentstring · minLength: 1 · maxLength: 2000 · required
messageIdstring · minLength: 1Omit for a note on the todo itself.
quoteobject
ValidatedCommentQuote
exactstring · minLength: 1 · maxLength: 500 · required
prefixstring · maxLength: 64suffixstring · maxLength: 64blockIdstring · maxLength: 128
ValidatedCommentEditInput
todoIdstring · minLength: 1 · requiredcommentIdstring · minLength: 1 · requiredcontentstring · minLength: 1 · maxLength: 2000 · required
ClaimMintInput
seedProjectIdstring · requiredPublic project recipients fork on claim (must be owned by the caller).
emailsstring[]One link per email (attribution only, not a gate). Omit for a single anonymous link.
ttlSecnumberLink lifetime in seconds.
ClaimPreviewResponse
seedProjectIdstring · requirednamestring · required
descriptionstringemailstringAttribution email the link was minted for, if any.
brandMarkdownstringThe seed's brand page markdown (growth-plan block included), if it has one.
cardsobject[]The seed's suggested recommendation cards.
giftobjectWelcome gift this link carries, so the claim page can advertise it.
activationPackageServer-minted package; never accepted by public claim minting.
ClaimPreviewCard
specIdstring · requiredtitlestring · required
notestringprioritygroupstringBoard group slug (strategic workstream) the card belongs to, if any.
ClaimGift
creditUsdnumber · requiredCredit granted on explicit package activation (USD).
inviteBonusUsdnumber · requiredExtra credit per teammate who accepts an invite (USD).
capUsdnumber · requiredTotal gift ceiling, initial credit included (USD).
ActivationTier
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
ActivationInterval
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
TrialTier
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
ClaimRedeemResponse
newProjectIdstring · required
activationOfferIdstringPending activation, separate from workspace ownership.
trialEndsAtnumberSet when claiming started a no-card Team trial: when it ends (ms).
giftobjectThe gift that was just applied, when the link carried one and this account was eligible.
ClaimGiftOutcome
creditGrantedUsdnumber · requiredManual credit actually loaded (USD).
teamWorkspaceActivatedboolean · requiredWhether the free team workspace tier was activated for this account.
inviteBonusUsdnumber · requiredExtra credit per teammate who joins (USD).
capUsdnumber · requiredTotal gift ceiling (USD).
AdminAccountOverview
userIdstring · requiredemailstring · requiredcreatedAtnumber · requiredisAnonymousboolean · requiredblockedboolean · requireddeveloperModeboolean · requiredWhether the Developer group shows in their View settings (adminUser.setDeveloperMode).
tierrequiredtierNamestring · requiredsubscriptionSourcerequiredWho owns the plan record.
stripe= Stripe writes it via webhooks and admins must not overwrite it;apple= App Store subscription (iOS IAP, same rule);admin= a comp/trial grant;free= the default free tier;none= no subscription at all.planLimitrequiredThe plan's monthly allowance — what a reset restores to.
subscriptionBalancenumber · requiredmanualBalancenumber · requiredtotalBalancenumber · requiredusageThisCyclenumber · requiredpercentUsednumber · requiredsessionrequiredweeklyrequiredprojectCountnumber · requiredtodoCountnumber · requireddailyobject[] · requiredSpend per day over the last 30 days, oldest first.
recentTransactionsobject[] · requiredMost recent transactions, newest first.
adminAuditobject[] · requiredAdmin actions taken on this account, newest first.
namestringstatusintervalstripeSubscriptionIdstringcurrentPeriodEndnumberbillingCycleStartnumberfirstPaidAtnumberseatsUsednumberTeam accounts only (the owner's view of their pool): people on it, owner included.
joinDomainstringmembersobject[]Per-member spend this billing cycle — includes the owner and former members.
teamOwnerEmailsstring[]Set when this user SPENDS from someone else's pool: that owner's email.
onboardingobjectThe setup as they went through it: one row per step reached, oldest first (last 30 days).
AdminAccountTransaction
createdAtnumber · requiredtyperequiredamountnumber · requiredsourcestring · requireddescriptionstring · required
OnboardingTrailEntry
atnumber · requirednodestring · requiredclientstring · required
painstringwithSitebooleanmemberboolean
AdminAuditEntry
idstring · requiredatnumber · requiredactorstring · requiredAdmin API key prefix or 'unknown'.
actionstring · requiredRouter procedure name, e.g. 'setSubscription'.
userIdstring · requiredemailstring · requiredinputobject · requiredConstruct a type with a set of properties K of type T
beforeobject · requiredSubscription/balance fields captured before the mutation ran.
okboolean · required
afterobjectSame fields after (absent when the mutation threw).
errorstring
AdminResetCreditResult
userIdstring · requiredemailstring · requiredtierrequiredpreviousBalancenumber · requirednewBalancenumber · required
PrewarmJobOutput
idstring · requiredstatusrequiredclaimLinksstring[] · requiredlogstring[] · required
projectIdstringerrorstring
AdminCreateUserResult
userIdstring · requiredemailstring · requiredcreatedboolean · requiredfalse: the account already existed and was left as is.
AdminAddCreditResult
userIdstring · requiredemailstring · requiredpreviousBalancenumber · requirednewBalancenumber · requiredamountnumber · required
AdminSetSubscriptionResult
userIdstring · requiredemailstring · requiredtierrequiredsubscriptionBalancenumber · required
AdminSetDeveloperModeResult
userIdstring · requiredemailstring · requireddeveloperModeboolean · required
AdminUser
idstring · requiredemailstring · requiredcreatedAtstring · date-time · requiredupdatedAtstring · date-time · requiredisAnonymousboolean · required
namestringimage
AdminStats
totalUsersnumber · requiredregisteredUsersnumber · requiredanonymousUsersnumber · requirednewUsers7dnumber · requireddailyobject[] · requiredrecentSignupsobject[] · requiredgeneratedAtnumber · required
AdminSignup
userIdstring · requiredemailstring · requiredcreatedAtnumber · requiredsourcestring · requiredbalancenumber · requiredtierstring · requiredpaidboolean · requiredonboardedboolean · required
websiteUrlstringlastStepstringFurthest setup step recorded ("pain · mobile"); absent before the trail existed.
AdminFunnel
daysnumber · requiredstepsstring[] · requiredrowsobject[] · requiredcomputedAtnumber · required
AdminFunnelRow
sourcestring · requiredlandedboolean · requiredSaw the landing page (the rest came straight to the app, an invite, the mobile app...).
herostring · requiredHero copy seen first; '' = before hero tagging (the "next-gen AI workspace" hero) or never landed.
personsnumber · requiredreachednumber[] · requiredPeople who reached each step, in FUNNEL_STEPS order.
AdminLlmUsage
daysobject[] · requiredtotalCostnumber · requiredtotalMessagesnumber · requiredgeneratedAtnumber · required
AdminLlmUsageDay
datestring · requiredcostnumber · requiredmessagesnumber · requiredmodelsobject[] · required
AdminModelUsage
modelstring · requiredinputTokensnumber · requiredoutputTokensnumber · requiredcostnumber · required
ProviderAccountQuota
providerstring · requiredaccountstring · requiredwindowsobject[] · required
planstringerrorstringauthFilestringcooldownUntilnumber
ProviderQuotaWindow
labelstring · requiredusedPercentnumber · requiredresetsAtrequired
windowMsnumber
ProviderLoginStartInput
providerrequiredOAuth providers CLIProxyAPI can enroll via its management API.
ProviderLoginProvider
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
ProviderLoginStart
providerrequiredOAuth providers CLIProxyAPI can enroll via its management API.
urlstring · requiredstatestring · required
userCodestring
ProviderLoginCompleteInput
redirectUrlstring · minLength: 1 · maxLength: 4000 · requiredThe
http://localhost:<port>/callback?code=…&state=…URL the browser was redirected to. NoFormat<'url'>: typia's url pattern rejects localhost / private IPs, which is exactly what every loopback OAuth callback is. Shape is validated in ProviderLoginService.
ProviderCooldownResetInput
namestring · minLength: 1 · maxLength: 300 · pattern:^[^/\\]+\.json$· requiredCLIProxyAPI auth file name, e.g.
codex-<id>-<email>-<plan>.json.
AdminOpsAlertInput
keystring · minLength: 1 · maxLength: 100 · requiredThrottle key, e.g.
serper-keys-exhausted; one email per key per hour.subjectstring · minLength: 1 · maxLength: 200 · required
detailstring · maxLength: 4000
AdminAgentIssueInput
kindstring · minLength: 1 · maxLength: 50 · requiredbad_args|unparseable_args|unknown_toolmessagestring · maxLength: 1000 · requiredtoolstring · maxLength: 200 · requiredmodelstring · maxLength: 200 · requiredrawArgsstring · maxLength: 8000 · requiredThe exact argument string the model produced (redacted, capped).
rawArgsLengthinteger · min: 0Byte length of the original raw args (> rawArgs length = truncated).
todoIdstring · maxLength: 100userIdstring · maxLength: 100envstring · maxLength: 50
Challenge
idstring · requiredchallengestring · requiredcreatedAtstring · date-time · required
emailstring
HexGrid
idstring · requiredprojectIdstring · requirednamestring · requiredcreatedAtnumber · requiredupdatedAtnumber · required
descriptionstring
GridTile
idstring · requiredgridIdstring · requiredqnumber · requiredrnumber · requiredcreatedAtnumber · requiredupdatedAtnumber · required
todoIdstringlabelstringmetadataobjectConstruct a type with a set of properties K of type T
GridTileCreateInput
gridIdstring · requiredqnumber · requiredrnumber · required
labelstringmetadataobjectConstruct a type with a set of properties K of type T
GridTileUpdateInput
gridIdstring · requiredqnumber · requiredrnumber · required
labelstringmetadataobjectConstruct a type with a set of properties K of type T
GridTileMoveInput
gridIdstring · requiredqnumber · requiredrnumber · requirednewQnumber · requirednewRnumber · required
GridTileAttachTodoInput
gridIdstring · requiredqnumber · requiredrnumber · requiredtodoIdstring · required
GridTileSwapInput
gridIdstring · requiredq1number · requiredr1number · requiredq2number · requiredr2number · required
RecommendationGenerateInput
projectIdstring · required
directionstringFree-text steer sent to the analyzer as a chat message (e.g. "focus on TikTok", "more B2B leads").
PlacementCreateInput
projectIdstring · required
kindconstConst value: recommendationspecIdstringReuse an existing registry spec as-is. Exactly one of specId / template.
templateobjectWrite the proposal inline: the spec is created as part of this call and rolled back if the proposal fails, so no orphan template is left behind.
titlestringnotestringprioritygroupstringBoard group slug (strategic workstream) for the card; upserted on creation.
groupNamestringOptional display name to upsert for
group.groupDescriptionstringOne-line strategic intent to upsert for
group(routes future todos into it).
PickSpecCreateInputnamebodycategoriesshortdescriptionstringundefined
namestring · requiredbodystring · requiredThe agent prompt body (markdown).
categoriesstring[]shortstringdescriptionstring
FeedIgnoredItem
atnumber · requiredtitlestring · required
sourceobjectwhystringThe dispatcher's one-line reason.
OnboardingUpdateInput
patchobject · requiredMake all properties in T optional
expectedUpdatedAtnumberClient's last known updatedAt; reject if server doc is newer
PartialOmitOnboardingversionidupdatedAt
startedAtnumbercompletedAtnumbertodoIdstringThe board's setup todo (ONBOARDING_AGENT); kept (DONE) after finishing, '' on restart.
currentStepstringStepper step id the user is on
websiteUrlstringboardModePersonal board (no brand UI) or business board (brand card, analyzer, voice).
painsstring[]What takes most of their time (the pain question's picks, in click order); decides the first things handed over.
OnboardingTrackInput
nodestring · requiredThe step entered: a graph node (team/start/business/pain/access/first) or an action (start:
, skip, done).
painstringwithSitebooleanmemberboolean
SandboxRecord
idstring · requireduser_idstring · requiredtemplatestring · requiredstaterequiredSandbox lifecycle state change. Published by sandbox-manager on Redis (
sandbox:events:<userId>), re-emitted by backend to subscribed frontends.- On create/pause/resume/error/terminate:
sandboxholds the full record. - On delete:
deleted: trueandsandboxis omitted; frontend drops the row.
- On create/pause/resume/error/terminate:
ip_addressrequiredtap_devicerequiredpidrequiredcreated_atnumber · requiredlast_activitynumber · requirederrorrequired
kindDefaults to 'vm' for legacy records that pre-date the field.
sizeVmSize tier; not modelled in TS — frontend passes through as-is.
device_idstringId of the backend Device row representing this sandbox's bridge. Lite: set at create time. VM: set after the bridge enrolls and the backend calls
attach-device. Absent when not yet linked.
SandboxStateValue
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
VmUpgradeOutput
planobject · requiredupgraderequiredpendingDiskrequireddailyUsdnumber · requiredmonthlyUsdnumber · requiredpayerIdstring · required
MachinesInfo
ownerIdstring · requiredbilledboolean · requiredFalse on the free plan: machines come with the plan, nothing to change.
includedrequiredThe owner's machine size the plan includes (charged only above it).
peopleobject[] · requiredcovered: the size their own plan or an earlier workspace already pays for (charged only above it).upgrade: bought resources above the machine (VmUpgradeService), what they cost a month, and whether this workspace pays it (else the person's own credit or another workspace).pricesobject · requiredThis workspace's monthly price per machine size.
monthlyUsdnumber · requireddailyUsdnumber · required
paidUntilnumberPaid until (ms); past it the machines fall back to each person's own plan size.
upgradesMonthlyUsdnumberUpgrades this workspace pays on top of
monthlyUsd(charged daily by VmUpgradeService).
MachinesSetInput
userIdstring · requiredWhose machine; the owner's own id for their own.
machinerequiredEvery person in a workspace has their own cloud machine: small or large.
ownerIdstring
CodexImageGenInput
contentarray · requiredsizerequiredRequired for billing —
autois rejected since we can't price the result deterministically.
modelstringqualitybackgroundoutputFormatinstructionsstring
CodexImageGenContent
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type, text | |
| type = object · requires: type, imageUrl |
typeconst · requiredConst value: input_texttextstring · required
CodexImageSize
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
CodexImageGenOutput
imagestring · requiredBase64-encoded image bytes (no data URL prefix).
formatstring · requiredOutput format: png | webp | jpeg
costnumberelapsednumberrevisedPromptstringimageModelstringImage model the upstream actually used (e.g. "gpt-image-2-codex") — Codex picks it, we can't pin it.
WaitUpdate
waitIdstring · requiredpatchobject · requiredEditable fields of a wait (the engine's PATCH /wait/:id). Unset = keep.
WaitPatch
exprstringmessagestringnamestringrepeatbooleanstartbooleanuntilMsnumberforeverbooleantimeZonestringwatchobjectpausedbooleantrue = pause (nothing fires until resumed), false = resume.
WaitCreateInput
exprstring · requiredmessagestring · required
todoIdstringprojectIdstringgroupstringnamestringrepeatbooleantimeZonestringagentSettingsIdstring
FeedLinkSource
idstring · requiredprojectIdstring · requiredplatformrequirednamestring · requiredgroupstring · requiredlabelstring · required
flowstringurlstring
Workflow
idstring · requirednamestring · requiredonboolean · requirednodesarray · requiredlinksobject[] · requiredupdatedAtnumber · requiredupdatedBystring · required
groupstringDefault destination of new runs; absent = the owner's personal group.
WorkflowNode
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · kind="trigger" · requires: on, id, title | |
| type = object · kind="run" · requires: script, id, title |
kindconst · requiredConst value: triggeronrequiredidstring · requiredtitlestring · required
groupstringStarter override; ignored on continuation triggers.
descriptionstringwhoobject[]askBeforestring[]Approval rules the judge enforces on every agent run while the todo is at this node.
WorkflowTrigger
kindconst · requiredConst value: triggeronrequiredidstring · requiredtitlestring · required
groupstringStarter override; ignored on continuation triggers.
descriptionstringwhoobject[]askBeforestring[]Approval rules the judge enforces on every agent run while the todo is at this node.
WorkflowTriggerSpec
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: kind, expr | |
| type = object · requires: kind, expr | |
| type = object · requires: kind, expr, cmd +2 more | |
| type = object · requires: kind | |
| type = object · requires: kind, source | |
| type = object · requires: kind | |
| type = object · requires: kind, buttons |
kindconst · requiredConst value: timeexprstring · required
timeZonestring
WorkflowSource
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
WorkflowRunNode
kindconst · requiredConst value: runscriptrequiredidstring · requiredtitlestring · required
descriptionstringwhoobject[]askBeforestring[]Approval rules the judge enforces on every agent run while the todo is at this node.
WorkflowScript
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: kind, prompt | |
| type = object · requires: kind, cmd, machine | |
| type = object · requires: kind, builtin, mode | |
| type = object · requires: kind, builtin, mode | |
| type = object · requires: kind, builtin, mode |
kindconst · requiredConst value: aipromptstring · required
agentstring
WorkflowSetInput
projectIdstring · requirednamestring · requiredonboolean · requirednodesarray · requiredlinksobject[] · required
idstringgroupstring
WorkflowDraftInput
projectIdstring · requiredaskstring · requiredcurrentobject · requiredA workflow as it is edited, before it is saved (the editor's draft,
tfa-cli workflow get --jsonwithout the id).
idstring
WorkflowDraft
namestring · requiredonboolean · requirednodesarray · requiredlinksobject[] · required
groupstring
WorkflowDraftOutput
draftobject · requiredA workflow as it is edited, before it is saved (the editor's draft,
tfa-cli workflow get --jsonwithout the id).summarystring · required
TodoWorkflowPosition
workflowIdstring · requiredworkflowNamestring · requiredstepsobject[] · requireddone: what it gave on (
out; absent = its input went on); here: what came in (input).movesobject[] · requiredWhat sending it on does from here: plain first.
toabsent = the end.
nodeobjectAbsent: the run ended.
pendingstringPicked during a live run; taken when the run ends. '' = plain.
FrontendMarks
todoIdstring · requiredrunIdstring · requiredsentAtnumber · requiredClient Date.now() when this request was sent — corrects client clock skew.
marksobject[] · maxItems: 50 · required
FeedPage
itemsobject[] · requiredunseennumber · requiredEvents after the reader's cursor — the unread count, whatever the page size.
seennumber · requiredThe reader's scalar base cursor. Rows carry
unreadthemselves: category cursors can advance past this.
nextCursornumberunseenByTierobjectCounts across all categories, independent of the page/category filter.
FeedEvent
idstring · requiredscopestring · requiredA projectId, or 'acct' for news about the person rather than a board.
kindrequiredONE feed, one row shape, whatever the news is.
team_inviteis account-scoped and acted on from the bell; thetodo_*kinds are project-scoped and drained by the voice agent. Kind decides scope, audience and rendering — not which store it lives in.subjectstring · requiredWhat it's about — a todo id, an invite token. Dedupe and resolution match on this.
messagestring · requiredOne line, already human-readable: a digest never re-derives prose from fields.
seqnumber · requiredMonotonic position in the stream. Ordering and cursors use THIS, not
createdAt: timestamps tie when a run finishes several todos in one millisecond, and a cursor over tied scores silently skips events.createdAtnumber · required
detailstringTodo outcomes: what happened, in one plain line — the agent's last words, or what it waits on (the question, the command to approve). Shown under
message;messagestays the label.titlestringHeadline, when the row is rendered in a list (the bell).
hrefstringIn-app route that acts on the subject (e.g.
/join/<token>).urlstringAuthored notes: what a tap opens on the phone (PHONE_URL).
actionsTodo outcomes: what can be answered from the notification itself.
blockIdstringThe pending block those actions settle — nothing else may be settled from this push.
expiresAtnumberPast this the subject is dead; the row renders as expired.
resolvedAtnumberresolutionreadAtnumberWhen the user opened this row (bell click, toast, push tap) — read regardless of the cursor.
senderobjectWho authored a
platform_message: the team, or the user's own agent giving a tip. Rendered, never inferred.channelAttention channel override (the dispatcher's priority); absent = the kind's default.
unreadbooleanPer-row human read state; category cursors cannot be represented by a single
seen.statusRevnumberTodo outcomes: the todo's
statusRevat this transition — the same rev its live status event carried.heardbooleanOrchestrator drain only: already relayed live (feed.markHeard covers this rev) — ack it, don't replay it.
FeedKind
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria | |
| No specific criteria |
Recordactivitypriorityuser_messagesnumber
activitynumber · requiredprioritynumber · requireduser_messagesnumber · required
ValidatedPlatformMessageInput
subjectstring · minLength: 1 · maxLength: 120 · requiredtitlestring · minLength: 1 · maxLength: 120 · requiredmessagestring · minLength: 1 · maxLength: 4000 · required
hrefstring · maxLength: 500 · pattern:^/(?![/\\])\S*$In-app path only: no scheme (javascript:, https:) and no protocol-relative
//host.urlstring · maxLength: 2000 · pattern:^(https://|tel:|sms:…Mirrors PHONE_URL (@shared/fbe): web (maps links too), call, text, mail — never an app-private scheme.
FeedEventcreatedboolean
idstring · requiredscopestring · requiredA projectId, or 'acct' for news about the person rather than a board.
kindrequiredONE feed, one row shape, whatever the news is.
team_inviteis account-scoped and acted on from the bell; thetodo_*kinds are project-scoped and drained by the voice agent. Kind decides scope, audience and rendering — not which store it lives in.subjectstring · requiredWhat it's about — a todo id, an invite token. Dedupe and resolution match on this.
messagestring · requiredOne line, already human-readable: a digest never re-derives prose from fields.
seqnumber · requiredMonotonic position in the stream. Ordering and cursors use THIS, not
createdAt: timestamps tie when a run finishes several todos in one millisecond, and a cursor over tied scores silently skips events.createdAtnumber · requiredcreatedboolean · required
detailstringTodo outcomes: what happened, in one plain line — the agent's last words, or what it waits on (the question, the command to approve). Shown under
message;messagestays the label.titlestringHeadline, when the row is rendered in a list (the bell).
hrefstringIn-app route that acts on the subject (e.g.
/join/<token>).urlstringAuthored notes: what a tap opens on the phone (PHONE_URL).
actionsTodo outcomes: what can be answered from the notification itself.
blockIdstringThe pending block those actions settle — nothing else may be settled from this push.
expiresAtnumberPast this the subject is dead; the row renders as expired.
resolvedAtnumberresolutionreadAtnumberWhen the user opened this row (bell click, toast, push tap) — read regardless of the cursor.
senderobjectWho authored a
platform_message: the team, or the user's own agent giving a tip. Rendered, never inferred.channelAttention channel override (the dispatcher's priority); absent = the kind's default.
unreadbooleanPer-row human read state; category cursors cannot be represented by a single
seen.statusRevnumberTodo outcomes: the todo's
statusRevat this transition — the same rev its live status event carried.heardbooleanOrchestrator drain only: already relayed live (feed.markHeard covers this rev) — ack it, don't replay it.
ValidatedMemberMessageInput
projectIdstring · minLength: 1 · maxLength: 100 · requiredtostring · email · requiredsubjectstring · minLength: 1 · maxLength: 120 · requiredtitlestring · minLength: 1 · maxLength: 120 · requiredmessagestring · minLength: 1 · maxLength: 4000 · required
hrefstring · maxLength: 500 · pattern:^/(?![/\\])\S*$In-app path only: no scheme (javascript:, https:) and no protocol-relative
//host.urlstring · maxLength: 2000 · pattern:^(https://|tel:|sms:…Mirrors PHONE_URL (@shared/fbe): web (maps links too), call, text, mail — never an app-private scheme.
ValidatedAdminPlatformMessageInput
emailstring · email · requiredfromstring · minLength: 1 · maxLength: 80 · requiredsubjectstring · minLength: 1 · maxLength: 120 · requiredtitlestring · minLength: 1 · maxLength: 120 · requiredmessagestring · minLength: 1 · maxLength: 4000 · required
hrefstring · maxLength: 500 · pattern:^/(?![/\\])\S*$In-app path only: no scheme (javascript:, https:) and no protocol-relative
//host.urlstring · maxLength: 2000 · pattern:^(https://|tel:|sms:…Mirrors PHONE_URL (@shared/fbe): web (maps links too), call, text, mail — never an app-private scheme.
RcloneOauthStartInput
providerstring · requiredCatalog key — must be a registered OAuth provider (see
rcloneProviders.ts).deviceIdstring · requiredDevice the remote is configured on — the host whose rclone panel opened the flow. Must be owned by the caller and online.
RcloneOauthStartOutput
authUrlstring · requiredProvider's authorization URL — open in a popup.
remoteNamestring · requiredThe rclone remote name we'll create on success — frontend can pre-display it.
flowIdstring · requiredPoll
rcloneOauth.status({ flowId })for the outcome.
loopbackbooleanProvider uses rclone's own OAuth client, so the browser ends on a dead
http://127.0.0.1:53682/?code&statepage: the user pastes that address into the app, which callscompletewith its query.
RcloneOauthCompleteInput
codestring · requiredAuthorization code from the provider's redirect.
statestring · requiredSigned state token — verified, replay-checked, and decoded server-side.
RcloneOauthCompleteOutput
remoteNamestring · requiredThe rclone remote name now configured on the target device.
providerstring · requiredCatalog provider key, echoed so the frontend can invalidate the right queries.
OauthFlowStatus
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: status | |
| type = object · requires: status | |
| type = object · requires: status | |
| type = object · requires: status, error |
statusconst · requiredConst value: pending
MetaOauthStartOutput
authUrlstring · requiredFacebook Login dialog URL — open in a popup.
flowIdstring · requiredPoll
metaOauth.status({ flowId })for the outcome.
MetaPagesListOutput
configuredboolean · requiredFalse when the server has no Meta app configured — hide the Connect UI.
pagesobject[] · required
ToolOauthStartInput
toolstring · requiredTOOL_CATALOG key with a registered OAuth provider (see
toolOauthProviders.ts).deviceIdstring · requiredDevice whose CLI receives the token. Must be owned by the caller and online.
instagrambooleanMeta only: explicitly request access to linked Instagram accounts.
ToolOauthStartOutput
authUrlstring · requiredProvider's authorization URL — open in a popup.
flowIdstring · requiredPoll
toolOauth.status({ flowId })for the outcome.
ToolOauthAdminConsentOutput
urlrequirednull = Microsoft 365 sign-in isn't configured on this server.
ResourceTokenInputttl_numberMinimum60Maximum86400_undefined
ttlnumber · min: 60 · max: 86400Token lifetime in seconds. Defaults to 3600.