Skip to content

Setups

Subhav Mathur's per-project chiefs of staff and six lessons from their logs

Subhav Mathur · Catalog date October 31, 2026

Subhav Mathur's Grok agent has a chief of staff for each of his projects, and they run his coding agents overnight. He asked them what went wrong that month and posted six lessons from their logs, each a real failure and the rule it led to: stop silent subagents after 45 minutes, check for leftover processes after a failure, run tests on GitHub Actions, credit work only with proof, cap review at 4 rounds, and make corrections cancel the original. The thread does not list the agents. His bio says he builds agent tools.

Evidence. Author's own post

Goal
Keep overnight coding agents moving without silent hangs, runaway runs, or endless review loops
Use
Software
Platforms
Grok Bot, CodexThe thread says "my Grok agent" and mentions two Codex accounts used for review. Tests run on GitHub Actions.
Crew size
Multiple agents

Roles

The thread says there is one chief of staff per project, plus coding agents, subagents, reviewers, and a coordinator. It gives no count and no project names.

  • Chief of staff (one per project)

    Owns. Runs his coding agents overnight for its project. He asked them what went wrong this month.

    Constraints specific to this role

    • Never credits a step to a model without proof: session ID, model, and start and end time. Otherwise the step is marked blocked.
  • Coding agents and subagents

    Owns. Do the coding work, including Codex.

  • Reviewers

    Owns. Review features and read test results from GitHub Actions.

    Constraints specific to this role

    • Do not run heavy tests on his laptop.

Routines

  • Overnight coding runs

    Overnight. No time given.

    The chiefs of staff run coding agents on his projects.

Guardrails

  • If a subagent goes quiet for 45 minutes, it is stopped and the resume message is resent to the same thread. No new session and no model switch.
  • Every failure comes with a check for leftover processes.
  • Tests run on GitHub Actions; reviewers just read the results.
  • Credit only with proof (session ID, model, start and end time), otherwise the step is marked blocked.
  • Review is capped at 4 rounds, with fixes routed by severity.
  • Every correction explicitly cancels the earlier message.

Handoffs

The chief of staff dispatches work to coding agents and subagents and resumes stalled ones in the same thread. Reviewers read test results from GitHub Actions rather than running tests. The thread gives no more detail on how work passes between agents.

Recorded handoff
  • Chief of staff (one per project)
  • Coding agents and subagents
  • Reviewers

Human operator

The chief of staff dispatches work to coding agents and subagents and resumes stalled ones in the same thread. Reviewers read test results from GitHub Actions rather than running tests. The thread gives no more detail on how work passes between agents.

Results

What worked
Since the 4-round cap, features have passed by round 4, and some on round 1.
What broke
A review sat frozen for 4 hours after the AI service dropped. A run marked failed kept writing to his repo for 1.5 hours. Crashes and database clashes on his laptop meant one review verdict took 4 to 5 full reviews and used up both his Codex accounts. A plan was credited to one model when the coordinator had written it. One feature went through 13 review rounds. Two instructions a minute apart both ran, and the wrong model wrote the plan.
Lessons
The models are fine; the plumbing around them is where the time goes.

Source

Notes

The catalog date is the day this entry was drafted. The thread was posted October 19, 2026 (UTC) as one long post numbered 1 to 8.

The thread is about failures and rules, not the roster. It does not name his projects, say how many chiefs of staff there are, or which models do which work beyond Codex. His X bio says he builds agent tools and products; the thread links none.