Skip to content

Grok Bot → Codex send-and-return via official T3 Code MCP #492

Done

Description

@tannerpolley

Goal

Give Tanner's Grok Bots (Financial Manager, Computer Manager, and later others) a reliable send-and-return path: a bot hands build and debug work to a Codex (or other) thread in T3 Code on the Linux PC, then gets a result that wakes the bot that asked. This should use the official T3 Code MCP, not the T3 Tots local helpers, so it does not depend on a desktop shell or a long-lived local API watcher.

This issue is the setup and verification spec. Product additions discussed in the Nov 19 plan (role on launch, nested parent threads, owner-granted approval relay) stay tracked here and in #494; they are not required to start the official-MCP trial.

What broke before (do not repeat)

On 19 Nov 2026, Financial Manager used T3 Tots (t3ctl / t3listen) and a Grok Bot webhook routine ("T3 questions to chat") for return pings.

Evidence:

  • t3listen connected to T3's local API and watched 1,100+ threads. The first finish ping was missed because the listener lost its connection around 4:39 PM MST and did not recover before the thread finished at 4:43 PM MST. A restart briefly worked, then the log filled with T3 stopped answering; reconnecting (77 of 102 lines) until 5:15 PM MST, when the log stopped.
  • A later comment on this issue (20 Nov 2026, 00:15 UTC) recorded the sharper failure: Server runs out of JavaScript heap about 100 s after each start (v2.12.161) #497 heap crashes were caused by t3listen. On each question or approval it fetched the thread's full legacy snapshot (GET /api/orchestration/threads/:id), about 170–180 MB for a long thread. Several in a row ran the server out of heap four times. The process was stopped with the owner's OK. Upstream/fork PR fix(server): bound full thread snapshot reads #502 caps that endpoint at 8 MiB; official MCP reads are bounded, so this class of problem should go away once bots stop using t3listen.
  • t3tots-listen.service is now disabled and inactive. That is intentional until the test plan below passes.

Decided design (use this)

  1. Connect the official T3 Code MCP over the T3 Connect public HTTPS URL (https://<environment-address>/mcp). Use Settings → Sharing & access or the command palette Use T3 Code in another app (MCP). Hosted Grok Bots cannot finish OAuth over a plain-HTTP Tailscale or LAN address. Sign-in lasts 30 days; revoke in Sharing & access. Access level remains the owner's earlier choice: Auto.
  2. Send: t3_thread_launch in the right project, with an explicit projectId, a Codex (or role-selected) model, a self-contained prompt, and a tagged title: [FM] … or [CM] …. Do not use create_threads or delegate_task from an outside agent.
  3. Short jobs: follow with t3_thread_wait / t3_thread_read in the same turn. Note: t3_thread_wait is documented in the Nov 19 plan as timing out at about 45 seconds per call; retry or end the turn rather than spinning.
  4. Long jobs: launch, end the turn, then collect the result by a scheduled t3_thread_read (or t3ctl watch only as a temporary fallback). One routing routine maps the title/project tag to the owner bot and wakes it (SendToAgent).
  5. Official event webhooks (io.modelcontextprotocol/events, events/subscribe) may replace the scheduled read only after T3 is upgraded to ≥ 0.1.12-nightly.20261123.5138 (or a later stable that includes PR #41141) and Grok Bot is proven to support MCP Events. Subscriptions last at most one hour (default 15 minutes), go only to public https, and must be renewed. The current desktop build is 0.1.10-v2.12.169, which should already have t3_thread_launch / wait / read (shipped in v0.1.0) but should not be assumed to have MCP Events webhooks.
  6. Approvals and questions: command approvals stay owner-controlled in T3 unless and until the owner-granted relay permission from the 19 Nov decisions is built. Money and direction questions still go to the owner. Routine questions may be answered by the bot only when the owner has said so.

Non-goals

  • Do not re-enable t3tots-listen.service, and do not run always-on t3listen, until section C of the test plan passes and the owner explicitly says to enable it.
  • Do not use t3ctl's local session token as the long-term path. Official MCP sign-in is the replacement.
  • Do not implement delegate_task for outside agents (rejected in the Nov 19 plan).
  • Do not read Grok Bot conversations through a private gateway (Research: talk to Grok Bot bots as T3 threads in their own sidebar section #485).
  • Mobile is out of scope.
  • Do not change upstream pingdotgg/t3code from this issue; work stays in this fork.

Test plan

Nothing persistent is enabled until the relevant gate passes. Use only a scratch project or a scratch thread. Do not point trials at finance or app repos. Leave t3tots-listen.service disabled.

A. Official MCP, no listener (first gate)

  • Add the T3 MCP connector at Read only; list projects and read one existing thread.
  • Raise to the agreed access level (Auto).
  • Launch five scratch jobs: instant success; a ~2-minute job; a deliberate failure; a question that needs an answer; a T3 restart mid-job.
  • Pass: the requesting bot gets the result or question every time; T3 stays responsive; ~/.t3 growth stays under about 1 GB.
  • Fail: OAuth cannot complete (for example a non-https redirect T3 rejects), T3 hangs, or results never come back.

B. Wake path

  • On 0.1.10, do not expect MCP Events. Time t3_thread_wait for short jobs and a scheduled t3_thread_read for long jobs only.
  • Only after an upgrade to ≥ 0.1.12-nightly.20261123.5138: subscribe to MCP Events (thread.run_settled, thread.needs_input) with a test routine webhook.
  • Confirm delivery, renewal before expiry, and recovery after a Grok or T3 restart (handle truncated and reread).
  • Pass: every finish and question wakes the right path; subscriptions stay alive.
  • Fail: Grok Bot cannot call events/subscribe, events are missed, or the subscription expires and is not renewed. Keep the scheduled-read fallback.

C. t3listen only as a later, optional trial (not at login)

  • If tried at all: run t3listen by hand, not as a systemd unit, and only for scratch-project events.
  • Five cases: finish, question, failure, T3 restart, 30 minutes idle.
  • Fail the trial if T3 stopped answering repeats, if a finish is missed, if T3 becomes unresponsive, or if heap use climbs the way Server runs out of JavaScript heap about 100 s after each start (v2.12.161) #497 described.
  • Stop it afterwards. Do not install the service until that stays clean at the current thread volume, and only with a new owner yes.

D. Multi-bot routing

  • Two tagged threads, [FM] and [CM].
  • Pass: one router wakes only the owning bot.
  • Fail: both bots are woken, or the wrong bot is woken.

Risks

  • t3listen watching 1,000+ threads and fetching unbounded legacy snapshots can knock T3's local API over and exhaust heap (Server runs out of JavaScript heap about 100 s after each start (v2.12.161) #497).
  • Official MCP Event webhooks need a newer T3 than 0.1.10, a public HTTPS receiver, and hourly renewal. Grok Bot support for events/subscribe is unverified.
  • Grok Bot connectors are account-wide: one T3 sign-in and access level is shared by every bot.
  • t3_thread_wait is short; do not treat it as a long poll for multi-hour Codex jobs.
  • Hosted Grok must use the T3 Connect URL, not Tailscale HTTP.
  • T3 data under ~/.t3 is still large (see the separate cleanup audit). Do not VACUUM statev2.sqlite while T3 is open.
  • A compromised bot at Auto can still start threads and spend provider quota. It cannot accept command approvals unless the relay permission is built and granted.

Links

Earlier comments on this issue

The Nov 19 Designer plan, owner decisions, and #494 overlap remain in the comments and still apply, with two updates from this revision: (1) official "T3 calls the bot" webhooks now exist upstream as MCP Events, but not on 0.1.10; (2) t3listen is not a safe return path and must stay disabled until section C passes.

Original issue

Goal (owner, 2026-11-19)

The owner's Grok Bot bots should be able to act as orchestrators of T3 work. A bot plans and talks with the owner; it delegates the actual work to T3 subagents on Codex and Claude, chosen by the model-tier roles (#486), so that it uses less Grok Bot capacity. The bots should feel built into T3, not bolted on.

What already happens

A Grok Bot started a thread in the finance project today. It used T3 Tots, a homemade helper kit in ~/t3-tots, made 2026-11-02, version 1.4.30:

  • t3ctl: a 667-line Node client. It reads ~/.t3/userdata/server-runtime.json and calls T3's local API with a bearer token from ~/t3-tots/token. The token has the scopes orchestration:read and orchestration:operate and expires 2027-01-31.
  • Commands: projects, models, new --project --model --effort --title --prompt-file, pending --thread, answer.
  • Other files: t3listen, t3q.py, thread-match.js and survey.js.
  • Behavior: the bot shows each child question to the owner as a card. It decides routine ones itself only when told to, never decides money or direction questions, and never accepts a command approval without the owner's explicit yes.

Official pieces that exist

  • T3's MCP server for outside agents (docs/user/outside-agents.md): sign-in with an access level, plus t3_thread_launch, t3_thread_wait and t3_thread_read.
    • Outside agents cannot call delegate_task or create_threads, nor the other tools that "act as" an inside thread.
  • Grok Bot custom MCP servers: per the Research: talk to Grok Bot bots as T3 threads in their own sidebar section #485 research, Grok Bot officially supports adding a custom MCP server "by URL or by a command" (docs.x.ai/grok-bot/computer-and-apps). A server on a private network needs the owner's approval.
  • Grok Bot webhook routines: the official way in. One per bot; a POST starts a run.
  • Research: talk to Grok Bot bots as T3 threads in their own sidebar section #485: the earlier research decided not to read bot conversations through Grok Bot's private gateway, because of its Terms of Service. That decision stands. This issue is the other direction: the bot calls T3.

Questions for the Designer

  1. Replace t3ctl. Can the bots use T3's official MCP connection instead? Cover reachability (localhost vs the bot's cloud computer: T3 Connect or Tailscale), sign-in, and the access level.
  2. Gaps for an outside orchestrator.
    • Role-based delegation, with tiers and model notes, for outside callers.
    • Children's questions and approvals routed to the bot.
    • Results reaching the bot without polling, for example T3 calling the bot's webhook routine when a child finishes or asks.
    • Visibility in T3: a representative parent thread per bot, perhaps in a Grok Bot sidebar section, so the owner sees each bot's children nested under it. This would also cover part of Research: talk to Grok Bot bots as T3 threads in their own sidebar section #485's wish.
  3. Smallest design. What is the smallest design that makes this feel built in? It should reuse the existing outside-agent MCP, delegation and pending-request machinery, not add a parallel system.
  4. Saving Grok usage. What instruction text or skill should the bot get, so it delegates by role and does little work itself?
  5. Security. Cover the access level, token lifetime, and what a compromised bot could do. Keep the owner's approval rules: money and direction questions and command approvals go to the owner.

Done when

A plan on this issue covering the findings, options with trade-offs, a recommendation, owner decisions to make, done criteria, and a task split. No code until the owner approves.

Mobile is out of scope.

Activity

  1. tannerpolley commented on Nov 19, 2026

    @tannerpolley
    OwnerAuthor

    Plan (Designer, 2026-11-19)

    Short answer. The bots can drop t3ctl and use T3's official connection for outside agents (its MCP server) for almost everything they do today, with no T3 code. Three small T3 additions then make it feel built in: launch by role, nest a bot's threads under one thread per bot, and (second step) have T3 call the bot's webhook routine. Full delegate_task for outside callers is not worth building.

    Method: read-only. T3 code and docs, the ~/t3-tots scripts (never the token file), and the Grok Bot docs. Nothing was run against Grok Bot and no bot was messaged, so every Grok Bot behaviour below is from its docs and marked where unverified.


    Findings

    1. T3 Tots is a published kit, not a homemade one. Its manifest.json names github.com/Deepusleepy/t3-tots at v1.4.30, and the installed t3ctl matches the manifest's checksum. What it does here:

    • It runs on this desktop, not on the bot's cloud computer. So the bot needs Grok Bot's "Execution on this computer" permission, which is a shell on the desktop, far more than T3 access.
    • It uses T3's private web-app interface, not MCP. The token is a general 90-day session token. T3 deliberately keeps MCP sign-ins off that interface because it bypasses the access level (EnvironmentAuth.ts:84).
    • It starts threads at Full access by default (t3ctl:507) and records them as created by the user from the web app (t3ctl:390, :506). T3 cannot tell the bot's messages from yours.
    • The approval rule is only in the script. Accepting needs a --user-approved flag that the bot itself passes (t3ctl:226, :317).
    • The kit carries more than a T3 client: t3q.py reads T3's database file directly, and cleanup/scan.py scans the disk (out/du-root.txt and others show it ran).
    • Push is not set up. t3listen can post thread events to a webhook routine, but there is no listen.json, so nothing notifies a bot today.

    2. What an outside agent can already do in T3 (checked in code):

    Need Today
    See roles, ranked model choices, model notes, credits orchestrator_capabilities works for outside agents
    Start a worker t3_thread_launch with an explicit model. It has no role input
    Follow a worker t3_thread_wait, at most 45 seconds per call (OrchestratorMcpService.ts:167), then t3_thread_read
    Child questions t3_pending_request lists and reads any thread's requests, and answers questions
    Command approvals Refused for every outside agent (DelegatedRequestRouting.ts:228). Only the owner, or a T3 parent thread, can accept
    delegate_task, task_status, create_threads Refused: they need a running T3 thread as the caller
    T3 calling out when something finishes Does not exist. Scheduled-task webhooks only receive
    • Sign-in: OAuth, no client ID needed, lasts 30 days, valid only on /mcp. The redirect address must be https or http://localhost (McpOAuth.ts:108).
    • Guidance: the MCP server sends no instruction text to outside agents; they see only tool descriptions.
    • A precedent already exists. A linked T3 environment delegates into another one through this same outside surface: it resolves the role to a model (roleDefaultTarget), calls t3_thread_launch with a delegatedFrom parent, and follows with t3_thread_wait (peer/RemoteDelegation.ts). The web app already nests such a thread under its parent and shows a "delegated from" chip (client-runtime/src/state/threadShell.ts:431). The server keeps delegatedFrom only for linked environments (Orchestrator.ts:3960).

    3. Grok Bot facts (apps and connectors, routines, private networks, approvals):

    • Custom connector: "Remote HTTPS" takes a server URL, optional headers and an optional OAuth client ID. That fits T3's sign-in.
    • Connectors are account-wide. Every bot uses the same connector and the same cloud computer, and the docs say bots are not a security boundary. T3 will see one client for all bots; which bot is calling is whatever the bot says.
    • Reachability. Connector sign-ins are held on Cursor's servers, so calls most likely come from there, not from the bot's computer (my inference). T3 therefore needs a public https address: T3 Connect. Tailscale on the bot's computer needs the Enterprise-only setup scripts or a hand install that is lost when the computer is rebuilt.
    • Webhook routine: a POST with a bearer key starts a run; 200 means started. Each run spends usage; limit 200 runs an hour per routine.
    • Unverified: whether connector sign-in returns to an https address or to grokbot://mcp/oauth/callback (seen in Research: talk to Grok Bot bots as T3 threads in their own sidebar section #485). T3 refuses the second today. Also unverified: whether Auto Review shows an approval card for each T3 call.

    Answers to the five questions

    1. Replace t3ctl: yes. Add T3's MCP URL as a custom connector, sign in once, pick the access level. The bot then needs no command execution on the desktop and no token file.
    2. Gaps: role on launch (small), nesting under a bot thread (small, mostly built), a push from T3 to the bot (new, medium). Questions already work; approvals correctly stay with the owner.
    3. Smallest design: Option C below.
    4. Saving Grok usage: a skill, drafted below. The biggest saver is handing a multi-step job to one T3 Orchestrator thread.
    5. Security: see its section.

    Options

    Option T3 work Result
    A. Keep T3 Tots none Works today. Keeps the desktop shell access, the Full access default and the script-only approval rule
    B. Official MCP as it is none Safer sign-in and access level. The bot copies a role's model by hand; threads are flat; the bot must poll every 45 seconds
    C. B plus role and nesting (recommended) small Launch by role, threads nested under the bot's thread, questions visible. Still polling
    D. C plus a callback (recommended second step) medium T3 posts to the bot's webhook routine when a thread finishes or asks. No polling
    E. delegate_task for outside agents large Rejected. A delegated task needs a parent with a live provider run, and results wake the parent by starting a turn. A bot thread has no provider, so the orchestrator core would need a second kind of parent
    F. Grok Bot as a T3 provider large Rejected. This is #485's Option B: an adapter of about 1,400 lines whose replies depend on the bot obeying

    Recommended design

    Step 0: trial, no code (owner, about 15 minutes). Turn on T3 Connect, add the connector in Grok Bot, approve at the chosen level, and ask one bot to list roles, start one Investigator thread in a scratch project, wait and read it. This settles the redirect address, the approval cards and whether Grok Bot copes with T3's long tool list. If the redirect is grokbot://, allowing that one address in McpOAuth.parseRedirect joins Step 1.

    Step 1: built in (Option C).

    • role on t3_thread_launch. It picks the model from the live role with the same roleDefaultTarget linked environments use, and records the role on the thread, so the sidebar titles the row by role. role: "orchestrator" then gives a bot a real T3 Orchestrator that delegates with everything T3 already has.
    • A parent for outside launches. Let an outside agent pass delegatedFrom naming a thread in this environment. Each bot gets one idle thread (launched with no message) in a "Grok Bot" project, placed in a "Grok Bot" sidebar section; its workers nest under it. Limit the parent to a top-level thread that was itself created through MCP.
    • Questions. No new tool. Include same-environment children when a parent row rolls up waiting requests (threadShell.ts:261 skips them).
    • Docs: a Grok Bot section in docs/user/outside-agents.md, with the skill text.

    Step 2: callback (Option D). Per bot thread, the owner pastes the routine's URL and key in Settings. T3 posts a small body (event, thread id, title, status, link; no content) when a nested thread settles, fails, or opens a question or approval. The bot cannot set the address itself, or a hijacked bot could point T3 anywhere. Build it as an outbox effect so it retries and survives restarts.

    Step 3: retire T3 Tots. Revoke its token (t3 auth session revoke) and set Grok Bot's "Execution on this computer" to Never allow.

    Two things to check in Step 1 before promising them: nesting across projects (the worker lives in the finance project, its parent in the Grok Bot project), and that a nested worker then leaves its own project's list.

    Skill text for the bots (draft)

    T3 work. Use the T3 Code connector for coding and analysis work; do not do it on your own computer.

    1. Call orchestrator_capabilities once per conversation. Pick the role that fits; never pick a model yourself.
    2. One bounded job: t3_thread_launch with role, the project, a self-contained message, and your bot thread as delegatedFrom. A job with several steps or workers: launch one thread with role: "orchestrator" and give it the whole plan.
    3. Do not read files, diffs or logs yourself. Read only the thread's final message with t3_thread_read.
    4. Do not wait in a loop. End your turn; T3 calls your routine when the thread finishes or asks.
    5. A question about money or direction goes to the owner as a card, always. Answer a routine question yourself only when the owner said you may.
    6. You cannot accept command approvals. Send the owner the thread link.

    Security

    • Access level: Auto is my recommendation. Workers act without asking for each command, under the provider's automatic review, and nothing the bot starts can run at Full access. Supervised is safer but every command waits for you.
    • Token: 30 days, then you approve again; revoke any time in Settings → Sharing & access. It works only on /mcp.
    • What a hijacked bot could do at Auto: read every project and thread; start threads in any project with any prompt, which runs commands on the desktop within automatic review; message or stop any thread; answer any waiting question, including money and direction ones, because T3 cannot tell them apart; create scheduled tasks; spend Claude and Codex quota and approved credits.
    • What it could not do: accept a command approval, change projects or settings, run anything at Full access, or use the private interface t3ctl uses.
    • Your rules: command approvals are enforced by T3. Money and direction questions rest on the bot's instructions, as they do today. With Ask mode off, T3 answers everything itself and no question reaches a bot or you.
    • Every bot is equal. One connector serves all bots, so the access level applies to the least careful one, including bots that read email and web pages.

    Owner decisions

    1. Reachability: T3 Connect public address (recommended), or keep commands on the desktop.
    2. Access level: Auto (recommended), Supervised, or Full access.
    3. Step 0 trial: you run it, since it needs the Grok Bot app.
    4. Visibility: one idle thread per bot with nested workers (recommended, subject to the cross-project check), or flat threads.
    5. Approvals: stay in T3 only (recommended), or let a bot relay your yes.
    6. Callback (Step 2): build after Step 1 (recommended), now, or not at all.
    7. T3 Tots: retire and revoke after Step 1 (recommended), or keep.

    Done criteria

    • A bot starts a worker by role through the connector, with no desktop command and no token file.
    • The worker shows under that bot's thread in the Grok Bot section, titled by role.
    • A child question reaches the bot; a command approval can be accepted only by the owner.
    • After Step 2: the bot's routine runs within a minute of a thread finishing or asking, with no polling.
    • docs/user/outside-agents.md covers the setup; the T3 Tots token is revoked.

    Task split

    1. Owner: Step 0 trial; report the redirect address and any approval cards.
    2. Implementor: role and local delegatedFrom on t3_thread_launch, contract change, focused tests in OrchestratorMcpToolkit.integration.test.ts. Tool descriptions are model-facing: run the free checks in evals/mcp-tool-use.
    3. Sprinter: waiting-request roll-up for same-environment children; verify cross-project nesting in the web app.
    4. Writer: Grok Bot section and skill text in docs/user/outside-agents.md.
    5. Implementor (Step 2, after decision 6): callback setting, secret storage, outbox effect, delivery log, translations.
    6. Checker: review each build; one web pass with test-t3-app.

    Out of scope: mobile, reading bot conversations (#485), and any use of Grok Bot's private gateway.

  2. tannerpolley commented on Nov 19, 2026

    @tannerpolley
    OwnerAuthor

    Owner decisions (2026-11-19)

    1. Reachability: the T3 Connect public address.
    2. Access level: Auto.
    3. Step 0 trial: the owner runs it next. Step 1 waits for its result: the redirect address, any approval cards, and whether Grok Bot copes with T3's tool list.
    4. Visibility: one idle parent thread per bot, with workers nested under it, in a Grok Bot sidebar section. This is subject to the cross-project nesting check in Step 1. (Orchestrator default; the owner didn't object.)
    5. Approvals: the bot may relay the owner's yes. This reverses the recommendation. Today T3 refuses command approvals from every outside agent.
      • Step 1 adds an explicit, owner-granted permission for an outside agent's sign-in to answer approvals and questions for threads it started or nested.
      • It is off by default and shown in Settings → Sharing & access.
      • Accepted risk: a hijacked bot holding this permission could approve commands in its own threads.
    6. Callback: Step 2, after Step 1 ships.
    7. T3 Tots: retire it and revoke its token after Step 1 (orchestrator default).

    Ordering with #494: the roles become five, with routine and complex levels. Step 1's role input on t3_thread_launch should take the role and level shape #494 settles. Build Step 1 after #494 merges, or in the same contracts pass, to avoid two migrations of the role ids.

  3. tannerpolley commented on Nov 19, 2026

    @tannerpolley
    OwnerAuthor

    Overlap with #494 (from the #494 Designer, 2026-11-19)

    The #494 plan is posted there. What it means for this issue:

    • Delegate by role and level, not by model. Five roles with light and heavy levels instead of eight roles #494 cuts delegation to five roles (Orchestrator, Designer, Implementor, Reviewer, Writer), each with a routine and a complex level. delegate_task gains an optional level; omitted means complex. Whatever tool outside orchestrators get should take the same role and level pair and call the same resolver through a service method.
    • Capabilities shape changes. The modelRoles list in orchestrator_capabilities becomes ten entries with level in place of profile, and ids such as designer-routine. Code against role and level only, not the old ids (implementor-fast, checker, investigator), though those names keep resolving as aliases.
    • Shared files. Both issues edit packages/provider-core/src/server/orchestrationInstructions.ts, the orchestrator tool descriptions and packages/contracts/src/orchestratorMcp.ts. Recommended order: Five roles with light and heavy levels instead of eight roles #494 first, so the bot's instructions teach five roles and two levels once.
    • Thread roles. A bot's parent thread fits the existing orchestrator role. Five roles with light and heavy levels instead of eight roles #494 drops checker and investigator as thread roles; please do not add a sixth.
  4. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    More evidence for retiring T3 Tots (2026-11-19): #497's heap crashes came from T3 Tots' t3listen, which runs as the user service t3tots-listen.service, enabled at login, with Restart=on-failure.

    On every question or approval event, it fetches the thread's full legacy snapshot (GET /api/orchestration/threads/:id). That is about 170–180 MB for a long thread, and several in a row ran the server out of heap four times. With the owner's OK, the orchestrator stopped the process (PID 1830127).

    PR #502 caps that endpoint at 8 MiB. The official MCP connection in Step 1 uses bounded reads, so this whole class of problem goes away once the bots switch.

  5. changed the title [-]Grok Bot bots as outside orchestrators that delegate to T3 workers[/-] [+]Grok Bot → Codex send-and-return via official T3 Code MCP[/+] on Nov 23, 2026
  6. added this to the Fork backlog milestone on Nov 23, 2026
  7. tannerpolley commented on Nov 23, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code status: Paused

    Issue: #492 Grok Bot → Codex send-and-return via official T3 Code MCP

    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6501071848%3Afirst

    Model: claude-opus-5-5

    Branch: issue-492-grok-bot-codex-send-and-return-via

    Updated: 2026-11-23T22:08:31.124Z

  8. tannerpolley commented on Nov 23, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: working

    Issue: #492 Grok Bot → Codex send-and-return via official T3 Code MCP
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6501071848%3Afirst
    Model: claude-opus-5-5
    Branch: issue-492-grok-bot-codex-send-and-return-via
    Completed: 2026-11-23T23:33:18.467Z

    check:changed has passed format, lint and the first knip pass, and is still running the typechecks and nearby tests. The job wakes me when it finishes, so I'll stop here.

    Verified since the reboot:

    • The project handler tests pass, 19 of 19, including the new launch test (launch by role, nesting under the bot's thread, nesting kept to one level).
    • The request-routing block passes, 14 of 14, including the new relay test. Without your grant an outside agent can't approve. A granted agent can't approve in a thread it didn't launch, and can approve in one it did.
    • The free eval size check (--context) shows my tool-text changes add about 25 tokens of descriptions and about 190 tokens of schema across the 105 tools. It needed node 26; the shell's node 22 crashes on a regex in the eval grader.

    All work is in local commit 7b74a87b94; nothing is pushed yet. Once check:changed passes I'll push the issue branch, open the draft PR with Closes #492, and start the reviewer.

  9. tannerpolley commented on Nov 23, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: working

    Issue: #492 Grok Bot → Codex send-and-return via official T3 Code MCP
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6501071848%3Afirst
    Model: claude-opus-5-5
    Branch: issue-492-grok-bot-codex-send-and-return-via
    Completed: 2026-11-23T23:33:18.740Z

    The machine rebooted, which cancelled the handler test run before it reported anything. No code was lost.

    • Checkpoint: all changes are now in local commit 7b74a87b94 on the issue branch, not pushed. The commit hooks (format, lint, knip) passed.
    • Restarted: the project handler tests, including the new role-and-nesting launch test, are running in the background as job b6w4z6sb3. The machine is idle after the reboot, so they should be quicker this time.
    • Still to do: the approval relay test, the server and web typechecks, the free MCP eval checks and check:changed, then push the issue branch, open the draft PR with Closes #492, and start the review child.

    The handler test job wakes me when it finishes.

  10. tannerpolley commented on Nov 24, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #492 Grok Bot → Codex send-and-return via official T3 Code MCP
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6501071848%3Afirst
    Model: claude-opus-5-5
    Branch: issue-492-grok-bot-codex-send-and-return-via
    Completed: 2026-11-24T00:15:19.121Z

    Step 1 of #492 is merged into main, and the issue closed automatically.

    PR: #621 (ready, not draft), merged with --rebase
    Merge SHA: aa557db63f0fa0fa97aa068bb20594426bfe9e3a, the tip of main. The PR head was c29a86e104e5 before GitHub rebased it.

    What bots can do now:

    • Launch by role: an outside agent can pass a role and level instead of picking a model, and the thread is titled by role.
    • Nesting: a bot can start one idle thread for itself and nest its jobs under it. It can nest only under threads its own sign-in started, so after you re-approve a bot (every 30 days) it starts a new parent thread.
    • Approval switch: a new Answers approvals switch in Settings → Sharing & access, off by default. When on, that bot can accept or decline command approvals, but only in threads it launched and their subagents, not in forks or side chats.
    • Roll-up: a job's waiting approval now flags the bot's parent thread.

    Check results:

    Check Result
    Handler tests, job b6w4z6sb3 Passed, 19/19
    Approval relay tests Passed, 14/14 in the routing block; also part of a 67/67 run of both server test files after the rebase
    Typechecks Contracts, client-runtime, server and web all clean
    Free MCP eval check (--context) Ran. Tool text grows by about 25 tokens of descriptions and about 190 tokens of schema; the recorded size budget is updated
    vp run check:changed Passed after rebasing onto the latest main
    vp run i18n:check Passed; the new strings are translated in all 9 web locales
    Same-environment roll-up test (sidebar flag) Passed, 16/16
    CI on the PR None; the fork reports no checks. GitHub showed it clean and mergeable

    Fixes along the way:

    • Two check failures: the tool-list size budget needed updating, and one test failure came only from the shell's node 22. All later runs used node 26.
    • One server test file was missing a mock for the new dependency.
    • Rebasing onto main (17 commits ahead) gave conflicts in the contracts, translations and budget files. I resolved them and re-measured the budget.

    Review: four rounds in this worktree. I fixed every important finding:

    • a bot could nest under another sign-in's thread
    • the relay reached forks and side chats
    • the switch could overwrite other grants
    • a retry could silently change its parent
    • a read failure was reported as a bad parent
    • a stored null parent field was rejected

    Each dismissed nit and its reason is in the PR body. One open nit: the switch also appears on linked-environment rows, where it does nothing.

    Not done:

    • No before/after screenshot of the new switch, although the repo asks for one on UI changes.
    • No live Grok Bot run: test plan A–D in Grok Bot → Codex send-and-return via official T3 Code MCP #492 needs you and the Grok Bot app.
    • Turned-off grants stay in settings as false entries, which is harmless.
    • Step 2 (the callback webhook) and retiring T3 Tots are not started.

    PR #621, head c29a86e, checks: no CI on the fork, local check:changed and i18n:check passed; reviews: four in-worktree rounds, all important findings fixed; merged as aa557db.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions