Skip to main content

dkitchen

English | 简体中文

You decide what to cook. Your agents run the kitchen. 🧑‍🍳

dkitchen is the multi-agent workflow I use every day to run my research repo. It gives a set of Claude Code and Codex sessions fixed stations, a shared way to hand off work through GitHub issues, clear rules for when to stop and ask you, and the tools that tie it together. You keep the decisions only you can make: what to research, what to try, what to spend.

🍽️ Why a kitchen

AI agents made execution cheap. The bottleneck moved to you.

With one agent, you supervise every step. With several, you become the message bus: copying context between sessions, checking whether a job finished, remembering which session owns which task, approving small things all day. Your GPUs sit idle between runs because nobody noticed the last one ended. By evening you have touched everything and thought about nothing.

A Michelin kitchen solves the same problem. The head chef designs the menu and tastes the dishes. Everyone else has a station, every order is a ticket, and a bell rings when a dish is ready. The head chef never chops onions, and never loses track of the kitchen.

dkitchen sets up your agents the same way. You are the head chef.

🧑‍🍳 The kitchen

Station In a kitchen What it does Runs on
👑 You Head chef Choose the direction, approve designs and budgets, decide what the results mean for your paper. You
🤖 Orchestrator Sous chef at the pass Schedules tickets, GPUs, and concurrency. Relays messages, reviews and merges PRs, reports facts to you. Claude Code · Claude Opus 5.5
🤔 Designer Recipe developer Writes tickets, designs methods and every piece of text a model will see, interprets results. Claude Code · Claude Opus 5.5
🔍 Verifier Taster Checks facts against code and data before money is spent. Reports what it found and never makes the call. Claude Code · Claude Sonnet 5.5
🔪 Executors Line cooks One fresh session per ticket, in its own worktree. Implements, runs, and reports on the ticket. Codex · GPT-6.1 Sol

Each station has written rules for what it owns, what it hands off, and when it must stop. When something fits no station, the agents ask you.

🎫 How a ticket moves through the kitchen

  1. You and the designer agree on what to do. The designer writes it up as a GitHub issue: the goal, the exact steps, and the budget the work may spend.
  2. The verifier checks the ticket's premises against the code and data: field names, dataset ranges, call counts, cost estimates.
  3. The orchestrator dispatches it to a new executor session and picks free GPUs.
  4. The executor works and reports on the ticket. Every comment opens with the same four lines: status, who it is waiting on, the key numbers, and what happens next. Long jobs start with ding launch; when the job exits, ding wakes the executor so it can read the output and continue.
  5. Results go to the designer for interpretation. The orchestrator reviews the PR, merges it, and logs what it did and why.
  6. You read a short report and make the next call.

Every decision, request, and result lives on a ticket, so any session (or you, a week later) can pick up the story from GitHub.

✋ What stays with you

The rules write down which calls belong to the head chef:

  • the research direction, how datasets are used, and what the paper claims;
  • model runs, paid API calls, or service starts beyond what a ticket's approved budget covers.

Agents propose on these and wait. An approval only counts when it is in your own words. Neither the orchestrator nor the designer can approve on your behalf.

Everything else the kitchen handles on its own, by one rule: if anyone would do it the same way, the agents do it. If the choice changes the results, the cost, or the direction, they stop and wait for you.

This is what lets you walk away. While you are in class, asleep, or reading papers, an issue watcher wakes the orchestrator when an executor finishes a stage, gets stuck, or goes quiet; when you leave a comment; or when a PR opens. The orchestrator moves forward what is already approved and leaves a list of decisions for when you are back.

⚖️ One pool of resources

A research repo has more resources than any single agent sees: GPUs on several servers, a shared model server, CPU time, an API budget, tokens, and hours in the day. In dkitchen the orchestrator, running on the strongest model you have, manages them as one pool.

  • 🖥️ Compute. It schedules tickets across free GPUs and checks the shared model server's load before raising concurrency.
  • 💰 Money. Each ticket that runs models carries one approved budget for calls, cost, and GPU hours. Stages within the budget start right away, and anything beyond it comes back to you.
  • 🪙 Tokens. One session per ticket keeps each context small, and fact-checking runs on a cheaper model.
  • ⏱️ Time. Jobs wake their owner when they exit, so nothing waits for someone to look.

🧰 The tools

🛎️ ding, the bell

ding passes messages between agent sessions and wakes a session when its long job ends.

ding board                                            # who is working on what, in this repo
ding send '#42' --from orchestrator --message-file note.md
ding launch train -- python train.py                  # run in tmux, wake me when it exits

You can address a session by its UUID, its name, or a GitHub issue such as '#42'; ding finds the session that owns that ticket. On Linux, ding board also lists long-running processes that were started without ding, so you can spot jobs nobody will be woken for.

ding talks to Codex sessions through the Codex App Server. The full guide is in docs/ding.md.

🚀 Get started

Requirements

  • Linux or another POSIX system, with tmux
  • Python 3.10 or later
  • A GitHub repo and the gh CLI
  • Claude Code, and Codex with its App Server running under the same user

Install ding

pipx install git+https://github.com/917Dhj/dkitchen.git

❓ FAQ

Is it safe to let agents run unattended? They stop for anything that changes direction, results, or spending, and approvals only come from your own words on a ticket. Every action is a comment or a PR on GitHub, so you can audit the night's work over coffee.

Will it fit my repo? The rules were written for computational research, and most of them carry over to any repo with long-running jobs.

Do I need both Claude Code and Codex? For now, yes. That is the combination I run every day.

Isn't this too much process for a small project? Start with the orchestrator and executors, then add the designer and verifier when you want them.

💡 About

The d is my mark. dkitchen is how I run my own kitchen, written down so you can run yours. It started in my research repo, which moved 171 issues and 111 merged PRs through this workflow in its first four weeks.

The Michelin kitchen metaphor comes from Lauren Tan, known online as Poteto. Poteto's way of running agents inspired much of this workflow. Thank you, Poteto. 🙏

License

MIT

Metadata

Release files for dkitchen 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dkitchen 0.1.0
File Size Uploaded
dkitchen-0.1.0.tar.gz 54.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dkitchen 0.1.0
File Interpreter ABI Platform
dkitchen-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 76.5 kB

Release files / dkitchen-0.1.0.tar.gz

Download URL dkitchen-0.1.0.tar.gz
Size 54.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6b17664de0c15d6521e77bea42586ceeb898821845cd9319878b602fcbdf5948
BLAKE2b-256 checksum
How to use checksums
f9f116873c6712956a532c2dca4f29c257234f9856dc8aadf657ce9f5694970c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / dkitchen-0.1.0-py3-none-any.whl

Download URL dkitchen-0.1.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ade4f99139c5fa382ddf12688331f20c9995c6b4214745a43745cc5307c8fad6
BLAKE2b-256 checksum
How to use checksums
0c4cd5df3a7a83bbc2aacba00876c4b6c041457501b83a142746d83790b673e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page