# "this l8 engineer reveals his agentic setup kun chen"
<!--
ref: @content/youtube/david-ondrej/kun-chen-first-mate-agentic-setup
tags: [agentic engineering, orchestration, terminal workflows, AI code review, agent-native tooling, model and quota economics, CLI design for agents]
version: 2
updated_at: 2026-11-22T08:39:47.969Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=8ZgpAXe5V5w)**

# this l8 engineer reveals his agentic setup kun chen

*Synthesized from Kun Chen in conversation with David on david-ondrej, 2026-07-17.*

Kun Chen is a former senior engineer at Meta, Microsoft and Atlassian who left big tech about three months before this recording to build solo. He walks host David through his terminal-based agent setup.

## Core Thesis
Kun argues that the endgame of agentic coding is not managing 20–30 parallel agent sessions yourself. A single coordinator agent ("first mate") should juggle the worker agents, so the human spends their time only on genuinely ambiguous decisions. Two supporting pieces make this work: an automated adversarial-review pipeline ("no mistakes") so human code review stops being the bottleneck, and agent-ergonomic CLIs ("AXI") that cut token cost.

## Key Insights
- **Evolution of his workflow:** It began with GitHub Copilot completions about three years ago, moving from single lines to whole functions. The big inflection point was Sonnet 3.5 v2, the first model that could take a task and return a complete result. GPT-3.5 struggled even to edit a file, and GPT-4 was only somewhat better.
- **Terminal-first stack:** He uses a frameless, background-blurred terminal in Western (spelling as captioned) and Herder (as captioned), which he calls a more modern take on tmux after 10+ years of tmux use. Herder runs entirely inside the terminal, so he can SSH from his phone into the same session running on his Mac Mini. Unlike tmux or Zellij, Herder understands agents and shows a "working" status, so he knows an agent isn't waiting on him.
- **Why first mate exists:** Seeing people run 20–30 sessions pushed him to build a coordinator. First mate is now the only agent he talks to most of the time, and it delegates to "crew mates" so that it stays free for the next request. When he asks whether Apple approved an iOS app review, or asks for a review of PRs in his treehouse project, first mate spawns a crew mate for the task.
- **Scale of what it manages:** He maintains roughly 20–30 popular public GitHub repos, and first mate knows which project he means by name. He built trust gradually. Early on it misrouted tasks or had crew mates conflict, and he tuned it until he stopped seeing suboptimal routing.
- **Brain-dump mode:** He mostly uses voice input, except for URLs and file paths. Everything he thinks of goes to first mate, and it either gets done or comes back as a decision. He wrote extensive instructions for when first mate should return to him, and says that threshold is hard to get right and personal.
- **Routing rules file:** First mate follows a rules file stating which agent, model and reasoning effort to use per case. It runs on GPT 5.6 Soul at x-high, because coordination requires heavy reasoning. For very complex technical or product design his rule previously sent work to Fable in Claude Code, but Fable quota was nearly exhausted for the week.
- **Lavish for design review:** For complex designs with trade-offs, he asks first mate to use Lavish to produce an interactive HTML artifact. It includes tree diagrams, an Excalidraw-style whiteboard he can edit, and a list of open decisions, and he sends his choices back to the agent. This replaces a long wall of terminal text.
- **Quota economics:**
  - He tracks quota percentage rather than tokens.
  - He says the $200 tiers are insufficient and he and David agree a ~$500 tier is warranted.
  - API pricing for his past month would exceed $10,000.
  - He wants the opposite of "fast mode": a slower but cheaper mode for background tasks.
- **GPT 5.6 token burn explained:** OpenAI initially set 5.6's compaction threshold to 372K tokens, while requests beyond 272K tokens are overcharged, and they issued a reset. He also says "Ultra" in Codex and Claude Code is a prompt telling the agent to fan out sub-agents aggressively, not a true reasoning level. X-high is his sweet spot and burns far less.
- **Model cost curves (the DeepU benchmark):** He trusts this benchmark because it's too new to be contaminated. Sonnet 5 is reasonable up to x-high, but at max it becomes the most expensive model, more than Fable, because a model not smart enough to solve a task wastes cycles. He thinks Luna behaves similarly, with a very "tall" curve from low to high intelligence. He uses Soul at adjusted effort rather than Terra, and uses Luna only for a home assistant, where speed matters. He has not gone deep into local or open-source models, partly because the Mac Mini is a precious shared compute resource.
- **Harness choices:** Claude Code for Anthropic models, since other harnesses are banned. Pi for GPT 5.6, because it is deeply customizable via plugins and Codex CLI lacks things like good background-process management. He also uses OpenCode for its TUI. He describes Grok 4.5 as "Opus on fast mode," and says the Grok Build harness gives free X API access for searching posts.
- **Self-modifying software:** His menu-bar widget "baby menu" started empty and was shaped entirely by talking to it, ending up with GitHub stats, CPU/memory and Claude/Codex quota, a combination no product would ship. First mate is an AGENTS.md plus bash scripts in `bin` for deterministic steps. It can edit both, so it routes around its own bugs, making this software hard to break.
- **Tooling doesn't eat his time:** First mate absorbs mundane fixes, so his time gravitates to ambiguous product decisions on projects like "high bit" (an AI harness for children to learn agents) and an iOS app. He says his tools emerged from real bottlenecks, not tinkering for its own sake.
- **No mistakes pipeline:** Reviewing every AI-written diff caps how much he can ship, so he sends changes through the `nm` shorthand into a pipeline that validates in an isolated worktree via a local git proxy.
  - **Pipeline steps:**
    1. Infer intent from the agent session that produced the change.
    2. Rebase onto the latest origin main.
    3. Run adversarial review (GPT 5.6 Soul at medium).
    4. Autofix obvious bugs, or escalate product-affecting ones.
    5. Test with visible evidence.
    6. Check documentation and lint.
    7. Open a PR and babysit CI.
  - **His stats:** about 1,000 changes across 59 repos over roughly three months, with 63% having a mistake caught. The review step catches the most, and documentation (stale READMEs) is another big hitter.
  - **Cost trade-off:** He scales review effort to project stakes, skips weekend demos, and merges trivial fixes directly.
- **AXI (agent-ergonomic interfaces):** Kun published 10 principles at axi.md, for example token-efficient output instead of JSON and a minimal default schema.
  - **GitHub benchmark:** The GitHub CLI beat every GitHub MCP variant (with tool search, with code mode) on cost, turns and speed, and his GitHub AXI was cheaper than the CLI with a higher success rate.
  - **Chrome DevTools:** His Chrome DevTools AXI wraps the Chrome DevTools MCP, with the same functionality, and cut average cost by over 20% and improved latency.
  - **Catalog:** It includes quota-axi, which lets first mate avoid crew mates whose subscription is nearly out, plus community entries like npm and sqlite.
- **Software's future:** He expects SaaS to be rebuilt as headless, agent-operable services with human interfaces reduced to human–AI collaboration. Whoever becomes the "new GitHub" must nail this.
- **Adoption curve:** As in past industrial revolutions, tinkerers go first and distill proven tools, and others follow once their own circumstances reach an inflection point.

## Actionable Takeaways
1. Stop running 20–30 sessions manually. Set up one coordinator agent with an AGENTS.md of routing rules (agent, model, reasoning effort per task type), and have it delegate to crew mates so it never blocks.
2. Write explicit rules for when the coordinator must return to you, and tune them over weeks by observing sessions early on.
3. For complex designs, ask the agent for an interactive HTML artifact (Lavish) with diagrams and decision lists instead of reading terminal text.
4. Gate AI-written changes through an automated pipeline: intent extraction, rebase, adversarial review by a different model (he prefers GPT 5.6 Soul at medium), tests with evidence, docs/lint, PR plus CI babysitting. Apply it by project stakes.
5. Prefer x-high over Ultra/max for daily work, and avoid max effort on models that can't solve the task.
6. Prefer a mature CLI over an MCP server when one exists (GitHub's CLI beat its MCP server in his benchmark). For custom tools, follow the axi.md principles, starting with token-efficient output and minimal default fields.
7. Move deterministic steps into bash scripts in the agent's working directory so the agent spends no tokens on them and can fix them itself.
8. Track your quota percentage per provider and route work to the least-constrained subscription.
9. Voice-input prompts, and type only URLs and file paths.

## Notable Quotes
> "I don't want to spend all day just juggling between the tabs right and remembering what was what." — Kun Chen

> "The only thing I spend my time on is like truly ambiguous decisions, the things that uh really does need my judgment." — Kun Chen

> "I want something that's slower but will be cheaper." — Kun Chen

> "It's very hard to write a bug that can stop it from working." — Kun Chen, on first mate's self-correcting design

---

*Related: `@protocol/memento` · `@content/youtube/yifan-bth/getting-cursor-ai-to-review-its-own-code` · `@content/youtube/cole-medin/ai-makes-us-way-faster-but-fries-our-focus-heres-what-i-do-about-it` · `@content/youtube/cole-medin/omnigent-the-new-meta-harness-for-every-coding-agent-claude-code-codex-pi-more` · `@content/youtube/indy-dev-dan/claude-code-task-system-anti-hype-agentic-coding-advanced`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*