Run again only appeared on a failed reply's notice, so a stopped run or a
finished answer could not be repeated. It now sits on the bot's last word
whatever it was (answer, stopped notice, task failure), and a failed reply
keeps Retry worded for the failure.
The thinking row was also drawn from the thread's own guess, so a user
message left unanswered by a stopped or pruned run showed it forever with no
Stop beside it. The row now follows the conversation's read, and when the
thread ends on the user's message with nothing on its way it says "No answer
came." with the same button under it.
The coordinator's last two replies ended with [suggestion:11] and
[suggestion:12], refs the model wrote itself after seeing a real
[suggestion:10] in an earlier message. Neither run called
suggest_next_steps, so no rows existed and the user read "next steps 11
(not available)". The reply review checked file, task and setting refs
but not the cards the app adds itself.
The review now faults any [suggestion:ID], [question:ID] or [plan:ID]
found in the model's raw answer: the app appends those refs after the
review, from the tool that made the card, so one already in the text is
made up or copied. The fault note tells the bot to take the ref out and
call suggest_next_steps, ask_user or create_plan if the card should be
there (AppCardRefTools, pinned to the declared tools by
tool-name-lists.test.ts). A [graphic:ID] is a ref the model is told to
write, so only one that doesn't exist for the user is faulted, through
grabBotGraphic.
Tests: a new review-bot-reply.test.ts covers each fault and the passing
cases; reply-ref-ids and reply-claim-problems tests grew with the new
kinds. The run-text-loop review test now mocks logError, so its "db
down" case stops writing error rows into the dev database.
A crew request closed on the asked bot's first reply, so an answer that
acknowledged the brief and kicked off a task was faulted as "only said the
work was under way" and the task's real result never reached the asker.
The request now stays working while any run it started is still open: the
ack is not relayed as the outcome, each started run carries the ask_id and
its result comes back to the asking bot's own conversation as it lands, and
the last result closes the request answered. The under-way fault uses the
reply review's exemption, so an answer that really called start_task or
delegate_task is not faulted for saying so; a promise with no tool call still
fails. A new update_requester tool lets the asked bot send an interim word to
the asker while the request is open, without opening another ask or session.
Stopping now reaches the visible answer session and any job carrying the
ask_id, and a follow-up ask from an answer session links as a child so the
depth and loop caps apply.
Image generation: DashScope/Model Studio hosts take references as the image
extension field on /images/generations (no multipart edits endpoint) and
answer with URLs, ignoring b64_json. A call that only reaches benched models
records a failed-call row per resting candidate so the message shows why
nothing was tried, and the error names Settings > Models.
Work through the harness audit (.tmp/harness-audit-17-11-2026) in four
phases, with typecheck and the full test suite green after each.
High: bound the closing-tool loop and tell a mixed turn from a failed card
(H1); fire the over-quota warning that never could (H2); keep a crew-request
child task out of the user's browsers and propagate the run kind (H7); stop
a redacted image reading being served from the unredacted cache (H3); refuse
a member secret that repoints a wider-scope env and a templated MCP URL host
(H6); validate provider image URLs (https, internal-host refusal, redirect
re-check, byte cap, HarnessError wrapping) (H4); pin browser URLs to their
validated IPs, fail closed on the docker lookup, and cover IPv6 and every
IPAM config while keeping the LAN allowance (H5).
Medium: growth-only write quota (M7); empty /models no longer wipes the
catalog (M1); re-check a repaired answer before sending it (M3); stop
re-trimming a head+tail result to a stub (M4); place embeddings by index
(M5); header-only provider timeout with classified body aborts (M2); redact
key-shaped tokens from provider errors (M8); cap MCP pagination and HTTP
bodies, refuse redirects (M11); key the stdio pool per env and kill the
process tree (M12); close read-only classifier gaps (M13); snapshot every
repo a destructive command touches, ignored files for clean -x, and surface
a failed snapshot (M6); one shared video deadline and a download cap (M9);
check image dimensions before decode and honour abort (M10).
Low: explicit tool ok flag (L1); Retry-After floor (L2); forever-rest
sentinel in failure rows (L3); coordinator ignores workspace harness rows
(L4); task empty-report guard, plan-step open-work count, defensive turn
copy, exact truncation count (L5); encoding-aware secret redaction (L6);
quoted restore paths, unique snapshot names, prune by patch, room===0 guard
(L7); SHA-256 media keys, empty-transcript error, finite vectors (L8); gate
the image_edit hand-over on fallback and label failures per candidate (L9);
disambiguate long MCP tool names, redact setup logs, own-mode usage scope
(L10); doc corrections (L11).
Also close the latent reviewer findings reached along the way: an
already-aborted computer command (R2, bumps the computer image to 1.4.3),
the reference-blob URL path (R7), the never-throw usage guard (R11), core
chat fields spread first (R12), hardened tar import (R13), and a prompt
custom tool filling a secret value into the model's input - secret envs now
fill as their [KEY] marker there (R1).
Align the user-bubble clamp test with the bubble's 24rem height.
A custom provider's /models lists ids only, so its models advertise no
parameters. The old rule read unknown support as accepts-everything, so a
temperature saved on another model rode to one that rejects it and every
reply failed. A model now takes only what its provider advertises: the form
hides Model settings for such models, the wire sends only advertised values,
and switching the model or provider clears the saved settings and voice.
A failed reply's notice carries its job (bot_messages.failed_job_id) and shows
Retry while it still needs you. Retrying re-queues a reply with params.retry_of,
clears the notice's needs_you, and bypasses the silent-finish gate. Failure
notices are the app's record, never the bot's words, so they stay out of history.
Replies only.
A review of the queue, the turn loop and the consent gates found 29 ways a
run could go silent, act on nobody's word, or lose what it produced. Each
one is fixed here.
Stuck and lost work:
- A task claim took three jobs for one computer, so every task slot sat
waiting in `computer_lock` behind the one running, and replies stalled
with them. A claim now takes one job per computer and skips a computer
that already has one (`claim-bot-jobs`).
- A send stored the prompt and then enqueued in the same try: a throw left
a message with no job behind it, so the thinking row stayed up for good.
The insert, the enqueue (which deletes the message if it fails), the
attachments and the push are now separate steps, and `client_id` makes a
resend idempotent instead of posting the prompt twice.
- `open_jobs` in the catch-up read tells the thread whether a reply is
still to come, so a job that ends without a message can't leave the row
up (`grab-session-open-replies`, `useReplyCatchUp`).
- A completed job inserted its answer after marking itself done: a throw
lost it, with no notice. The answer lands first (and is taken back if
the completion fails), and nothing in the way of clearing up can lose it.
- A failed plan step left the plan active with nothing to advance it: it
is paused now (`pause-failed-plan-step`).
- Deleting a bot left its open crew requests `working` forever, costing
the asker its cap: they end with a reason and wake the asker
(`end-asks-for-bot`).
- A deferral refunded the attempt even when the run had spent real tool
work; cancelBotJob failed a possibly-running job without aborting it or
fixing the face; a face stayed `working` while only pending jobs were
left; a failed row with no bot was rescanned every poll. All four are
fixed, and the face now has one place that decides it
(`bot-face-after-job`, `answering-ask-face` keeps a crew request's
answer on show).
Acting without consent:
- `set_workspace_computer` was the one workspace mutation with no role
check.
- Any run could rewrite a bot's core instructions and core memory: those
are the admin's now, and a refusal says what to use instead.
- Schedules and irreversible crew deletion are off for a hook call (whose
payload is someone else's words) and for any run nobody is following.
- A hidden session no longer gets secret cards or questions nobody can
answer; `can_ask` checks `isHiddenSession` too.
- Answering a secret card no longer closes it on a swallowed failure: the
user gets a button that sends the bot the message it never got.
- Redaction skipped values under four characters, and `read_message_usage`
answered for any job id, not the run's own session.
Silently lost or wasted work in the loop:
- A reply is cleaned before review (unresolved `[setting:]` refs, app
record lines, work claims), and a refused closing tool or a card with no
text no longer ends the run on a sentence that promises something that
isn't there.
- The wrap up no longer marks a message answered, a session carry-over
takes queued replies with it, and a trimmed remembered result is read
again instead of answered with "its output is above".
- An oversized newest result is cut last instead of sent whole, an empty
answer fails with a reason rather than an empty bubble, orphan question
cards are deleted, a reply that ran out of steps marks its task
exhausted, and a throwing review is logged instead of swallowed.
AGENTS.md's two drifted lines are corrected (the crew request's face and
the task run's `can_ask`).
Verification: bun run typecheck clean; bun run test 2117 pass, 0 fail.
Replies that tried to do everything at once came out long and hard to
follow. A bot can now lay the work out as a plan instead.
`create_plan` stores one plan per conversation (`bot_plans`) and the reply
shows it as a card: its steps, where they stand and what it is for. The plan
goes nowhere until the user acts on it there, and they can rewrite its steps
first (steps already done stay as they are, `planStepsRewriteProblem`).
Once approved, each step is its own reply job (`params.plan_id`) with the
bot's tools, memory and browsers, one step per reply with a short report,
and `continueBotPlan` queues the next one: nothing follows while the user is
being asked something, while work was handed off (`WorkStartingTools`), or
when the plan was paused, ended or a reply already waits in the conversation.
A routine gets its plan approved at once and works it to the end in the run
(`ScheduledPlanNote`).
Bots are also told to keep a plan in memory when the same work comes back,
so a way of working survives as a runbook.
The card is built from spans, since its ref sits inside the message's
paragraph.
The gate ran once per run, so a model that repeated itself word for
word had its claim delivered: a reply said a run was under way, was
sent back for it, and came back identical to the user.
Review now checks every answer the run writes, a bounded number of
times (AppData.HarnessReviewRewrites), tells a model that wrote the
same message back that it did (repeatedAnswerNote), and past the
bound returns review_note instead of the text: the reply job fails and
says so (BotJobFatalError), so nothing the app knows is wrong goes out.
A worker that needs another bot's work calls `ask_bot` with one brief. The
coordinator reviews it in one turn with no tools (`runAskReview`) and answers
bounded JSON: approve, redirect to a better bot, or refuse with a reason
(`AskDecisionSchema`, `applyAskDecision`). An approved request becomes one
reply job in a new session of the target's conversation for the request's
workspace (`enqueueAskAnswer`), so the run keeps its workspace context; the
brief lands there as a crew message naming that workspace, and the answer
comes back to the bot that asked as a message that wakes it (`finishAsk`).
The gate fails closed, and the app owns reach, membership, depth and the open
cap while the coordinator's instructions own the judgement.
The user can follow it: the target's row says which bot is answering whose
request, an outcome carries an `[ask:ID]` pill that opens the session it ran
in, and that session has a bar back to the conversation the request
interrupted. Requests read their status with `list_asks` instead of guessing
ids, and files the asker can't reach are copied into its folder.
Chatrooms are gone: the tables, the hidden room sessions, the pages, the
tools (`ask_crew`, `ask_member`, `answer_requester`, `refuse_request`), the
relay and the rail section. Ended requests are pruned after `ask_keep_days`
and `ask_max_per_place`, and the sessions of old chatrooms are deleted at
boot (`migrateChatroomsToAsks`).
One production task run ended with three fixes written and none of them in
the tree: it had stashed its own work, run `git checkout -- .` and popped
the stash, and the pop restored the untracked files but not the tracked
edits. It spent the rest of the run re-reading the same file and reported
from memory, because the work it described was gone and nothing said so.
A command that would throw uncommitted work away (`isDestructiveGit`:
`git checkout --`, `restore`, `reset --hard`, `clean`, `stash`,
`switch -f`, `rm`, `worktree remove`) is now snapshotted first, into the
bot's own folder rather than the repository (`.cobble/pre-destructive/`,
newest 40 kept): the tracked diff, the index, and each untracked file as a
new-file diff, since a new module is what a run creates most often and what
`git clean` deletes. The tool result names the patch and how to apply it,
so a run that discarded its own edits can get them back instead of
rediscovering the loss. Verified against a real repository: modified file,
new file and nested new file all came back with `git apply` after
`git checkout -- .` and `git clean -fd`.
Repeats: `computer_bash` was never a repeat, so forty `cat` and `grep`
calls re-ran and re-entered the transcript every turn. It is keyed now
when the command provably only reads (`isReadOnlyCommand`: a read-only
program, no redirect, no `tee`/`xargs`, no writing git subcommand),
which also stops it clearing what was remembered.
Trimming was invisible: `fitTranscriptToContext` cuts old tool output down
to 60% of the working context, and the run kept asking again for what had
been cut. It is told now, every `AppData.HarnessTrimNoteEvery` trimmed
turns (`contextTrimmedNote`, traced as `trimmed`).
The wrap up is told what is on disk: a task run passes
`Params.wrap_up_note`, which runs `worktreeSummary` over the run's folders
(`git status --porcelain` and `git diff --stat` per repository, nested ones
included) and puts the machine's own account in front of the wrap-up
prompt. `TaskRunNote` also says the tree wins over the brief, and that
handing the rest on with `start_task` is finishing the task.
Debug view: `capTraceText` keeps a tool argument's `path` whole past
`BotTraceArgumentsMaxChars` (`toolArgumentPath`), so a trimmed write still
names the file it wrote.
A 30,000 character prompt is refused by default (bot_message_max_chars
is 20,000) and, once allowed, is stored and sent whole: nothing clips
user text. Two places then paid for it silently.
- name-bot-session.ts sent the session's opening verbatim, so a pasted
brief cost a second copy of itself in the naming call. Each message
is cut to BotSessionNameMessageChars (2,000) with a note that the
opening goes on.
- fitTranscriptToContext never trims user messages (the request must
not be lost mid-run), so a prompt over the working context was sent
anyway and the run was never told. It now reports over_budget, and
run-text-loop pushes oversizedRequestNote once: work in pieces, stop
pasting whole files in, say what it could not reach.
A bot's thinking row now carries a bug button beside Stop: it opens a
250px strip under the row that streams the run's steps as they happen
and remembers being open per user, so it follows them across bots.
Hovering a line opens that step whole, from what the model reasoned
to what a tool was sent and answered.
Every step is kept in the new bot_job_traces table (turns, tool calls
and the loop's own events: wrap up, redraft, review, incoming, steps
running out), capped per entry and per run, redacted of env secrets,
and pruned after bot_trace_keep_days (7 by default, Settings >
General). A finished run's entries are tied to the message it ended
in, so that message's Details modal has a Debug logs tab, and its own
Copy debug logs.
The provider's reasoning is now read (reasoning, reasoning_content or
think tags) and kept for the debug view alone, never shown as the
answer. Tool calls report how long they took, and a read that was
answered from an earlier answer says which step answered it.
A bot's bash command was capped four times over, silently: 270 seconds in
`ComputerCommandMaxSeconds`, ten minutes by the harness's per-tool
deadline, two hours per task attempt, and an hour inside the agent. Long
scripts (a build, an install, a sweep) were cut with no way to ask for
more.
`computer_bash` now has no limit unless the bot names `timeout`, and then
that is what it asks for (`commandTimeoutSeconds`; `ComputerCommandMaxSeconds`
0 means no cap). A tool can name its own deadline now
(`HarnessTool.timeout_ms`, `null` for none) and `run-tool-call.ts` leaves
such a call to the run's signal. A task run has no attempt deadline
either (a reply keeps its two hours): Stop, a lost lock and the process
ending are what end it, and Stop still kills the command's whole process
group.
The agent has no ceiling left to hit. Measuring it turned up a last one:
Bun's `fetch` drops a connection that stays silent for about six minutes
(`TimeoutError` at 360s, whatever the `AbortSignal` says), so a long
command lost its output on the way home. The agent now opens the answer
and writes a space every `CommandHeartbeatMs` while the command runs, then
the JSON, which `JSON.parse` still reads.
A worker told to hand its tasks to another bot had no tool for it: it asked
the crew instead, the coordinator answered over the Software Engineer's
still-running job (closing the room cancels it), and the answer said the
tasks were picked up. Nothing had moved.
hand_over_task passes an open task of the worker's own list to a bot it
could already ask, reporting back in its session. answer_requester and
refuse_request now refuse over a live job unless close_anyway says
otherwise. ask_user and suggest_next_steps stay out of hidden sessions,
where no card exists to answer and a bare ref reached the coordinator.
Every run limit was a number, so an install that wanted a bot to work
until the job was done had to guess at one, and the guess was wrong in
both directions: 300 steps cut long work short, and raising it to 10,000
made every short reply look like it had room to ramble.
- Each limit of Settings > General > Run limits can now be unlimited, and
the three step limits are unlimited by default: a task, a chat reply and
a routine or hook call run until their work is done, bounded by the
job's own deadline and the run's prompt-token budget, which always
holds. A failed model can rest for good too, until the setting changes
or the app restarts.
- `RunLimit` (`src/utils/run-limit.ts`) is a number or `"unlimited"`, read
by `read-run-limit` and saved as `-1` from the form (still `0` for the
code's default), so no caller has to tell 0 from "no limit" any more.
- `run-text-loop` drops its step ceiling to Infinity, skips the low-steps
warning and the notes that count steps left, and spends the model's own
window when the working context is unlimited; a task run is told it has
no step limit rather than "at most N steps", always plans first, and
never ends exhausted.
- A rest with no end stays benched until the setting changes or the app
restarts: saving the run limits clears the cooldowns, and the failure
log and the "every model is resting" error say so instead of promising
a retry in a minute.
- `token_usages` and `harness_call_failures` record `"unlimited"` as what
the run was allowed, and the usage chip, the message details and the
bot's own report say it rather than showing a number nobody set.
- The form labels each field (twui only draws its label with `showLabel`),
reads a limit that's off as `Unlimited`, and fills in the default, or
the number that was there, when its switch goes off.
- `BotStepLimitMax` is 10,000, so a limit the user picks can be as wide as
the work needs.
A bot that hit a limit could only say "in Settings > General", and a
user asking why one answer cost so much got a guess: nothing told the bot
which page held the value, and the limits a run worked under were never
written down.
- `[setting:<section>:<field>]` renders as a pill naming the group and the
field, opening `/admin/settings/general/<section>#<field>`
(`src/dict/general-settings-dict.ts`, `SettingRefChip`), and every group
of that page now has a page of its own with the same section in it:
whoever may change it gets the form, everyone else reads the live values
and who can raise them, since that is what a member sent there needs.
- `read_settings` gives every run the values, who may change them and the
ref to write; `SettingsNote` tells it to name the setting, its value and
its ref rather than pointing at a page in prose. `reviewBotReply` sends
back a ref the app can't resolve, like a made-up file.
- `read_message_usage` reads a message's or a job's calls: the model, the
prompt and cached tokens, what ran, and the cost drivers (steps resend
the whole transcript, a long session re-reads it every reply), with the
refs for the limits and for starting a session sooner.
- Every model call records the limits it ran under
(`HarnessCallSettings.limits`, from `run-text-loop`), so a diagnosis
compares then against today instead of assuming, and the message's
details show them.
A task run used to work out what the task was while spending its steps:
the same file read again to see it once more, the same folder listed
twice, a plan formed turn by turn at the price of a model call each.
- `planBotTask` spends one turn before the first step on the very system
prompt the run then sends, so the provider's cache serves it and it
costs little more than the plan. The bounded JSON plan
(`BotTaskPlanSchema`) opens the run as `taskPlanNote` and shows as its
first step line. `shouldPlanBotTask` keeps it off short runs and
chatroom turns, and a plan that can't be written starts the run the way
it always did.
- `runTextLoop` answers a read it already made from that answer
(`RepeatableToolNames`, `repeatToolCallKey`, `alreadyRanToolNote`)
instead of running it again; any non-read tool clears what was
remembered, so a file read, edited and read again is read again.
Five honest "I did nothing" reports in a row left nothing to notice them
by, so the app now has an opinion of its own:
- A reply's wrap up offers start_task beside write_file and import_file,
so work it can't finish in 20 steps is handed on with a brief instead of
being promised for later.
- A run that used every step it had blocks the task it was handed
(trackerTaskEnding), rather than leaving it open under a "run finished"
note.
- A full workspace names the folder holding the space and whether the run
can clear it (computerWorkspaceSpace), the agent reports the folder
sizes with its usage, a failed measurement no longer reads as 0, and a
daily cron logs a computer past 80% of its quota.
- A message's details count its run's calls by tool (MessageToolsRollup),
so 242 calls read as one line rather than 242 rows.
A production coordinator was asked only to create two bots. It placed
both in a workspace and handed each a task, then explained the extra
steps as the user's saved preference that new bots get put to work.
- RequestScopeNote, injected into every reply and task, says the request
sets the scope, that memory, habits, routines and initiative never
widen it, and that crew changes (create, place, remove, assign a
computer, change a role) and handing work out (delegating, handing over
a task or routine) happen only after the user asked for them: one
ask_user card in a reply or task, and a proposal in the report where
nobody watches (routine, hook call, chatroom).
- A decline is dropped, not done smaller and not re-offered.
- The memory sections of composeBotPrompt say memory shapes how the bot
does the work, never what it does beyond the request.
- The default coordinator prompt says a request to create a bot is a
request for that bot alone; existing installs keep their stored prompt
and get the rule from the note.
A reply was handed the files of the latest messages that have any, so in a
long conversation the last upload never aged out: one screenshot stayed
attached for session upon session, and since the text model is catalogued
text only it was read by the vision harness on every reply (7 calls, about
1,500 output tokens and 35 seconds each, in production).
- liveAttachmentMessages bounds an attachment by how far back it is too
(BotReplyAttachmentMaxAgeMessages), then by BotReplyAttachmentMessages:
older files are named, not attached.
- Readings are kept across runs in MediaReadings (HarnessMediaReadingsCached)
keyed by imageReadingKey, so an image the conversation carries is read
once rather than once per reply; a reading made to redact a secret is
never kept there.
- The Models page says when the text model is listed as taking text only
while "Use the model's own media reading" is on, which was silently
useless for a provider that lists bare ids (guessModelModalities).
A crew manager can now write who a user is in one workspace: plain text,
separate from the user's bio, which the user never sees or sets.
workspace_user_roles holds one role per user per workspace. Every bot in
that workspace reads the role in its prompt whenever it works for that
user, in chat replies, tasks, routines and hooks. The role never appears
in a bot's own chat or in another workspace.
The super admin can set anyone's role, their own included. An admin can
set anyone's except a super admin's (canSetWorkspaceUserRole, checked
again in setWorkspaceUserRole). Roles are set from the workspace's
settings (People: everyone who works there) and from the user's settings
(Roles in workspaces). The coordinator can set them too, through
list_workspace_people and set_user_workspace_role. Its saves count as
made by the run's user and are read back to check they took.
A role is kept when the user loses access to a workspace and comes back
with it. Deleting the workspace or the user deletes it explicitly.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Which tasks a message concerns is now the app's record, not the bot's
word: a run's task tools report every task they read in full, add, move
along or hand over, plus a handed-over job's task, into
bot_messages.task_ids (also on its failure notice and the report relayed
to the requester). The thread shows them under the message as chips with
title and status, read per viewer and only for tasks they reach, on
loads and live pushes alike.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A production run kept a verdict the user had overruled while it worked,
and the reply to the correction queued a second run that redid the first.
- Task runs the user follows take in what they write in the conversation
since the run was queued: at the start, between steps, past a report
not yet out, and by the wrap up (no steps left: the report says what it
changes). A correction changes the work; anything else is left to the
chat, and crew messages to the reply they wake. Routines, hook calls
and rooms are unchanged.
- runTextLoop takes the caller's notes for what came in (incoming_notes)
and, with a wrap_up note, reads it before the wrap up too.
- A reply is told which of the bot's runs are open in its session and
hear the user, so a correction never starts another; start_task's
open-run refusal says the same.
- The reply's message-to-turn reading is shared (messagesToTurns).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A production chat took three chatrooms to get two files from one bot,
hit the step limit twice with the report unwritten, and spent three runs
on hand-overs that only said they were waiting.
- A room's answer copies every file it names that the asking bot can't
read (a member saves to its own folder) into the asker's folder under
crew/room-<id>/, and points the refs at the copies.
- ask_crew refuses a second open request from the same place unless it's
separate, and task runs, which see only their brief, are shown their
bot's open and recent requests.
- update_task unlinks files with unlink_file_ids (a task holds 20), and
list_tasks with task_id lists what's filed.
- A long run is told once, 5 steps before the wrap up, to save its report.
- delegate_task with start: false hands a task over without starting it.
- Prompt notes: task reports speak to the user as "you"; a bot goes with
the user's reading once overruled; a crew answer isn't the go-ahead and
silence isn't an answer.
- Quoting a message reads each ref chip as one inline label instead of a
paragraph per chip; a copied chat says "Task #27", not "Task task #27".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Production spent 284M prompt tokens against 4M written: every turn resends
the system prompt, tool definitions and whole transcript, and on 1M-window
models a run was only trimmed near 730k tokens (one routine run spent 39M,
one task ran 401 steps).
- A working context (Settings > General, 80k tokens by default) caps what a
turn sends whatever the model's window, counting tool definitions too.
Old tool output, then long tool call arguments, are cut in one block
down to 60% of it, so the cached start of the prompt holds between cuts.
- Routine runs and hook calls stop at 40 steps by default, and any run
wraps up once it has sent 4M prompt tokens; both are settings.
- Only the newest page snapshot of each browser stays in a run, and
browser results are capped at 12k characters.
- MCP server tools and a user's browser tools are listed by name and
loaded with load_tools when their definitions are large, instead of
riding along on every turn.
- token_usages records cached_tokens; the Usage page and message details
show the cached share.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A chatroom job no longer waits behind the job holding its computer (often
the asking bot's own run, which could take an hour): it runs beside it with
the shell and files but no browser. Room jobs no longer count when a bot's
face is put back after another job ends, so a bot doesn't show work in its
own chat that only happens in a room. ask_crew tells bots not to start a
task that needs the answer in the same reply.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A reply's history now shows the user's own reactions on each bot message
in its app record, and the chat reply note tells the bot to save the
lasting preferences they show in its memory of that user. Adds a Dislike
reaction so a bot can tell what to avoid.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A reply wrote "I'm scanning the contests now" and the scan's made-up
results in one answer, with no tool called and a file that didn't exist,
and the user built tasks on it. Before a reply goes out, reviewBotReply
now sends it back once when it names a file or task that doesn't exist
for the user, or says work is under way or a report will follow while
nothing was started and nothing is open from the conversation. A long
bot message whose run called no tools shows "No tools used".
start_task takes max_steps, enforced below the install's limit, and
task runs are told to stop and report when several tries leave them no
closer. Chat replies the user follows get delete_task (never routines,
hook calls or rooms), so a bot deletes a task instead of cancelling it
and calling it removed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every worker bot now works on a computer as its own Linux account
(cb-<bot id>, no sudo), owning its folder; a workspace's folder belongs
to a group its bots share. Only the coordinator works as gem, with sudo.
gem, and so Chrome, can't open worker folders: downloads, uploads and
files saved by name are copied by the worker's own account, and workers
open no file: URLs.
The computer's own services (agent, DevTools, Playwright MCP, VNC, ttyd)
are kept from worker accounts by an nftables rule, so containers get
NET_ADMIN; without the rule the agent refuses worker commands. The X
display needs gem's cookie. File reads for a worker are checked on the
open descriptor, and writes are made as the worker.
Workers ask the coordinator to install system packages with
request_install: a coordinator task in the super admin's conversation
weighs it and answers, and the answer wakes the worker. Stop ends a
worker's leftover processes on its computers.
Computer image 1.2.0; the layout bump recreates every computer once.
Computers now run our own image (computer/, Debian 13): real Google Chrome
on amd64 (Debian's Chromium on arm64), headful on Xvnc with no automation
flags, so sites like Google treat it as a normal browser. One small Node
agent supervises the screen, the session bus, Chrome, Playwright MCP and
ttyd, and serves a single token-guarded port.
- Browser view: the computer's screen over noVNC, so Chrome shows whole
(tabs, address bar, menu, extensions, prompts); Ctrl/Cmd+V pastes the
viewer's clipboard (HTTPS or localhost). Cookie-Editor is installed by
default.
- Shell view (ttyd), for crew managers only.
- The /computers/<id>/ proxy passes only the view paths, never the agent's
API or MCP.
- Per-computer browser settings (super admin): timezone, languages, screen,
scale (125% by default, larger text in bots' screenshots), sandbox and
extra Chrome / Playwright MCP flags, with unsafe flags refused.
- Rebuild computer: pulls the image again and recreates the container;
files and logins stay.
- Bots' computer tools are the app's own (bash, read/write/edit file) plus
Playwright MCP; downloads move into the run's folder, MCP's snapshot and
console files point at the tools that read them.
- Release workflow builds and pushes ghcr.io/moduletrace/cobble-computer
for amd64 and arm64 once per tag.
Existing computers are recreated on the new image at boot (files and
browser profiles stay); run db:schema for the new browser_settings column
(the installer does this).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each user can add their running browsers in Settings > Browsers and pick
where they apply and which is the default, for all their bots, a bot or a
workspace. The computer's browser stays as the fallback. A browser only
serves its owner's runs; routines need its owner's say, and hook calls
and chatrooms never get one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hook runs now work in a hidden session per hook, so their results stay
out of chats, rails, session lists and notifications. Clicking a hook
opens a modal with its details and a live thread of its calls.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ask_user puts up to six questions on one card (radios for one pick,
checkboxes for several, an optional typed Other) as a [question:ID] chip.
The user's answers are checked against the questions, stored in
bot_questions and sent to the bot as their chat message; Skip says so.
Offered in chat replies and user-started tasks, never in routines, hook
calls or chatroom sessions.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A session the coordinator's delegation, a routine or a hook opened has
no user message and no reply, so it was never named and showed as
"Untitled conversation". Tasks now name their session too, and a session
with no user message is named from the bot's own messages. Until a
session is named, Latest activity shows what it opened with, and
sessions with no messages are left out of it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every bot file was chunked into bot_file_chunks and embedded into
bot_file_vectors, and uploads kept their extracted text in
media.text_content, which together took most of the database. Bot
files are no longer indexed: bots find them by name or path with
list_files and read them with read_file, and search_files, ingest_file
and the files modal's re-read button are gone. Attachments keep no
text; a reply reads a document from the file. Only knowledgebase
documents keep text.
The schema drops both tables and the ingest columns. At boot,
dropStoredFileText removes what older versions stored (file jobs,
upload text) and vacuums once much of the database is free. The
media:prune-text script it replaces is removed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sandbox ignores sandbox_execute_bash's timeout and runs every call in
one shared shell session, so a command that never ended (a network read
without a timeout, a prompt) kept running after the call gave up, and
every later command on that computer, from any run, timed out behind it.
Each command now runs in its own bash under coreutils timeout (at most
ComputerCommandMaxSeconds, below McpToolTimeoutMs), reading no input, and
says when it was stopped.
Replies' env list says where each key comes from and that workspace,
computer and install-wide envs reach every bot there, so bots stop
telling users a workspace's keys must be set per bot. The computer
prompt says installed programs may be gone after a restart. An empty
open-only task list says closed tasks aren't shown, and update_task says
when a status was already set.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Chat replies now list the envs that reach them (keys and descriptions,
never values), so a bot no longer asks for keys that are set or "checks"
them with show_secret or printenv. request_secret refuses a key that's
already set unless the user asked to replace it, and search_computers
says envs aren't loaded in its shell.
start_task and delegate_task results say "Run #N" and that list_tasks
doesn't show it, since bots sent users to the to-do list for queue jobs.
start_task refuses a second open run in the session on the same
computer unless it's separate work, and says how many runs are ahead on
that computer.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A task running in a workspace shows "Working on a task in <name>
workspace", so the bot's own chat and the main rail say where the work
is. Outside a workspace it stays "Working on a task".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A worker asks for another bot's help with ask_crew. The coordinator
reads the request, asks the right bot (in a workspace, only its
members), and sends the answer back into the asking bot's
conversation, waking it. Each exchange is kept as a read-only
chatroom: listed in the main rail after the workspaces, or in the
workspace's rail for requests made there, with live status rows for
each bot while it's open and a Stop button.
Room sessions are hidden from every conversation list, other bots'
words reach the model fenced as data, and turns, nesting and open
rooms are capped. Closed rooms are pruned after a retention period
and past a cap per place (Settings > General).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bots can now show a concept as a visual: create_graphic (with
update_graphic, read_graphic and list_graphics, on every run, no computer
needed) stores one HTML document in bot_graphics, per user like the
conversation, and the chat renders its [graphic:ID] ref as an inline card
sized to fit, with a large view and a page of its own (no rail).
Graphic HTML is treated as hostile: it is only served at /graphics/<id>
with a CSP sandbox allowing scripts under an origin of its own and no
network, loading only the vendored Chart.js and Mermaid from
/graphics-lib/. The document carries the app's theme vars and scrollbars,
reports its height to the thread, and a frame that navigates away is
closed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Knowledgebases give bots RAG over documents, scoped like extensions: to
particular bots, to a workspace, or to every bot, with their own button
beside Tools in the composer. Documents are chunked and embedded by the
file-ingest worker with the install's embedding model, which is now an
install-wide setting rather than a per-bot one.
- Word search runs on an FTS5 index ranked by BM25, with a scored LIKE
fallback for scripts written without spaces.
- Changing the embedding model re-indexes documents automatically.
- Ingest jobs wait without spending attempts while every embedding model
rests, fail at once on errors retrying can't fix, and keep passages
searchable by words when the model refuses.
- Settings > Knowledgebases shows each knowledgebase's and document's
index state: spinner, warning, grey check (words only) or green check.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Coordinator and worker come from bots.kind; bot_types now only holds
workspace_admin (was admin), each row naming its workspace, with no scope
field. Rows from v0.2.8 and earlier are fixed at boot by migrateBotTypes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Bots get continue_in_new_session: the bot writes a title and summary,
the session closes for good (read-only) and the new one opens with the
summary as a "Carried over from the last session" message that links
back to the old session.
- Continue in new session (conversation menu, sessions modal) and the
automatic rollover at the session length do the same; New session now
starts a fresh, unlinked session.
- Session length is an app setting in Settings > General.
- ?session_id= opens a session; a carried-over one shows a bar linking to
where the conversation went on instead of the composer.
- The thread can open the previous session above the current one (shown
only, never in the prompt), and replies get search_past_sessions and
read_past_session.
- Sessions are named from their opening messages, not their latest, and
a carried summary is labelled as the earlier session's.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A new personal env scope (paradigm user: one user's secret for one bot)
beats every other scope, reaches only that user's runs of that bot, and
is redacted like any secret. Bots take secrets in with request_secret,
which puts a [secret-request:ID] card in the chat: the user types the
value into a masked input there, never into a message, and the bot is
told only the key. Bots show secrets with capture_secret (a task's
computer tool that saves a file or a command's output straight to a
personal env, then redacts it from the rest of the run) and show_secret
(an env by key): both give a [secret:ID] chip whose Reveal and Copy fetch
the value on click, for its own user (personal) or a super admin
(anything else), logged by key. Values never go into messages, page
props, history, Copy chat or logs. Users manage their own secrets on
Settings > Secrets; the Environment page lists everyone's, remove only.
Deleting a bot or user removes its personal secrets, and SecretsNote
tells bots never to ask for or print secrets in chat.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bots get list_hooks, pause_hook and delete_hook, which act directly since
they only take away. A new hook, or a new name, brief or filter, or
switching a paused one back on, goes through propose_hook: it stores a
hook_proposals row and puts a [hook-proposal:ID] card in the reply, which
the user it was proposed to confirms or rejects. The card is read from
what Confirm saves, with the bot's reason labelled as its own; confirming
checks everything again and saves through the Hooks modal's helpers. A
new hook's URL is shown on the card once, to the user only, never in the
outcome the bot is told. What calls a hook, its computers and its signing
are never proposed. Only chat replies propose, and a hook call's own run
gets no hook tools, so a caller's payload can't reach them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A bot hook (bot_hooks) is a secret URL, POST /api/hooks/<token>, whose
calls queue the hook's brief plus the raw body as a task, per user and
bot like a routine. Only the token's hash is kept (shown once, rotatable);
an optional HMAC-SHA256 signing secret is stored encrypted. Calls are
rate limited per address and per hook, recorded in bot_hook_events
(pruned daily), deduplicated by delivery id, and a call while the last
run still waits joins its brief instead of queueing another. The payload
is fenced data and HookRunNote tells the bot never to take instructions
from it; failed runs retry like routines.
A hook can instead watch a computer's browser notifications: the app
installs a small watcher that owns org.freedesktop.Notifications on the
sandbox's session bus, so Chrome hands it every notification (it only
looks for that service at start-up, so Chrome is restarted once, never
mid-task), and it posts each one to its hooks, optionally filtered.
Computers reach the app at COMPUTER_APP_URL or the app container's name.
Users make hooks in the conversation's Hooks modal and manage them all
on /admin/routines; bots never create or change hooks.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The wrap-up turn now gets the run's actual tool calls, each bot message
keeps them as bot_messages.tool_log, and history follows recorded bot
messages with an [App record] line. The coordinator also gets update_bot
in workspaces, so it can fill a bot's core prompt from there.
Co-Authored-By: Claude Opus 5.5 <[email protected]>