Repository navigation
Description
Summary
Chat offers two of the three tiers an agent can use: no sandbox (an answer, create_file, generate_image, skills) and a light sandbox (run_code). Work that needs a full workspace, such as a repository, a browser session or hours of work, is handed over to a task: the assistant tells the person how to create and start one. The third tier is reachable from chat only through the person's own steps. This issue collects the evidence and the options so the team can decide whether chat should start the full workspace itself. It proposes no design.
Part of #4879.
Where the question comes from
The original ask for chat work tools was that the assistant decides between no sandbox, a light sandbox and a full sandbox. #4817 delivered the first two and a hand-over for the third (its table: "full | hand-over to a project task (existing standard agent / project agents)"). On the product side #2877 set the boundary "chat asks and retrieves; deliverables live on tasks; fixed processes live in automations"; #4817 widened it to chat making files and running code, and kept tasks as the home of long work.
What exists
- Light tier.
run_codein adefault-profile sandbox: one per conversation, at most 180 s per call, removed after 5 idle minutes, at most 10 attached files (backend/domains/agent_tools/run-code.ts). - Full tier from a task. A task run on the shared engine can call
use_workspace, which records the request and moves the run to the harness with a reason and a brief (agent_tools/use-workspace.ts;moveRunToHarnessInTx,backend/domains/tasks/native-runs.ts:127). It is a port:WorkToolScope.escalationdecides what a hand-over does, and a lane without one answers "There is no full workspace to hand this to". - From chat.
WorkLoadout.escalateis for "a task's turn, which has a coding agent to hand it to. A chat has none" (lib/agent/ladder.ts:23-26). The persona says to make files with the tools and to hand work to a task "only when it needs an owner and a review, or more than a reply can do — a repository, a browser session, hours of work", giving "the steps exactly as the hand-over note below states" (lib/chat/assistant.ts:72-73). The note is built per person, with the interface's own control names: which projects have agents, whether the standard agent takes work, whether they can add an agent (lib/chat/handover.ts). The chat header has a create-task action (app/features/chat/components/create-task-from-chat.tsx). The docs say: "Work on a repository, in a browser session, or lasting hours → Suggests a project task" (docs/en/platform/chat/files-and-skills.md:20).
What the evaluation showed
#4817 tested the tier choice on 40 prompts with two models. Both chose correctly for all 24 no-sandbox and all 13 light requests. Three prompts were classed as needing the full tier; all three were completed inside the light sandbox: "small React app with tests, zipped" was built, tested (19 / 8 passing) and zipped there in 50 to 80 seconds. For those three the light tier was enough. The corpus is small and has no repository clone, no browser session and no multi-hour job.
What bounds a chat turn
- At most 12 tool rounds per reply (
MAX_WORK_TOOL_ROUNDS,lib/chat/turn.ts:121), at most 16 distinct tool calls and 5 minutes per round (lib/chat/tool-batch.ts). - A liveness heartbeat the watchdog sweeps after 10 minutes (
CHAT_GENERATION_STALE_MS,backend/domains/chat/watchdogs.ts). - A task run on the shared engine is itself one job with a 1-hour expiry (
backend/jobs/tasks.ts); longer work moves to the harness.
Hours of work therefore cannot live inside a chat turn. A path from chat to the full tier needs a durable run that outlives the turn.
What a full workspace carries that chat does not
- An identity and equipment: a project agent with its tool grants, connectors, secrets, skills and instructions, inside a project.
- A persistent workspace, a coding-agent harness, egress and, optionally, Docker.
- Ownership and review: a task has an owner, status, comments, deliverables and review gates.
- Its own budget and concurrency: worker slots and a per-agent session.
Options (not exhaustive, no preference stated)
- Keep the hand-over and improve it. The assistant prepares the brief and the person confirms with one action.
- A chat tool that creates a task and starts the standard agent on the person's behalf, with a confirmation in the thread and the result coming back as a message or card. The run is an ordinary task run: native first, hand-over when needed. The
escalationport above is where it would plug in. - Let the chat thread own a harness run. Agent-backed chats were dropped with feat(platform)!: chat = ask/retrieve — the Chat·Task·Automation boundary model #2877 (chat turns no longer accept
agentSlug); this would reverse that boundary. - Add no path. Widen what the light tier can do (longer calls, more capacity) and keep full-workspace work in tasks.
Questions
- Is "chat asks, tasks deliver long work" still the intended boundary now that chat makes files and runs code?
- When the assistant hands over, how much should the platform do for the person: prepare the task, pick the agent, start it?
- Must the result return into the conversation, or is the task page enough?
Related
#2877 (the boundary), #4817, #4844, #4876, #4878.
Observed at main a83e645e27.
Activity
yannickmonney commentedon Nov 5, 2026
Since #5361 (
train8d37319dc, not yet onmain), a chat filed in a project can answer as one of the project's agents. It runs on the chat engine with the agent's instructions, skills and model; the agent's runtime, connectors, secrets and repository access stay on its tasks (CHAT-R41).#5361 left out
@agentmentions that would hand one message of a chat to the agent's runtime, as task comments do (its option 4). That would be one more form of options 2 and 3 here.yannickmonney commentedon Nov 14, 2026
Decision
A chat never runs a full workspace itself. The assistant proposes a task on a card, and one click from the chat's owner creates it and starts the agent. This is option 2, built on the proposal card that already exists for projects and agents (CHAT-R44).
The rule
propose_task, drafts a task from the whole conversation:create_taskproposal. Nothing is created until the chat's owner selects Apply.escalateoff and are not offereduse_workspace. There are no@agentmentions.Answers
Why
An agent's full workspace carries its equipment, which makes a model-initiated start a prompt-injection target. The proposal card already answers this risk: the model only drafts, the person sees the brief word for word, only the owner can apply, and Apply re-checks everything through the page's own service. Running the work as an ordinary task run keeps budgets, worker slots, review and escalation in one place. Today's image would show an unknown proposal kind as an empty card whose Apply fails, so a release that only teaches the reader to skip unknown kinds goes first. The tool is turned on only once the card and the persona ship.
Implementation units (base
main)create_taskkind, thepropose_tasktool (not yet offered), assignee choice, an Apply that creates and starts once, the dialog's create accepting the proposal in the same transaction, refusal when something changed, audit rowsvia: chat, and spec rules CHAT-R51 and up.Related: #4879, #4876, #4878, #5357 (the Create task dialog still needs its own fix), #5361, #5363, #5365, #5379.
Cross-issue amendments (decisions taken together with #4879, #5365, #5411, #5379):
skillsswitch alone. Whileskillsis off, Apply on a pending skill card is refused with CHAT_PROPOSALS_OFF (the same rule as Decision: should Governance be able to turn off the chat's project and agent proposals? #5379), and Dismiss still works. Amend Decision: should chat start a full workspace itself, or keep handing long and repository work over to a task? #4877: propose_task has no Governance switch. Task-creation rights and the owner's Apply are the gate, and the reference to Decision: should Governance be able to turn off the chat's project and agent proposals? #5379's open question is removed. Decision: should Governance be able to turn off the chat's project and agent proposals? #5379 is unchanged.