The pack eats in order: heavy-job slots, memory admission and a crash-recovery session roster for many AI agents on one machine.
A pack of coding agents on one computer: heavy work takes a slot, gets in by memory, is watched while it runs; dingo knows who is running, and after a crash who was lost.
dingo-pack run --heavy --mem 4G -- pytest # waits for a slot and free memory, runs under a cap dingo-pack watch --daemon # watches every process: alert, pause, resume, kill at the edge dingo-pack who # who runs what, room left, paused jobs, stalled sessions dingo-pack list # after a crash: which sessions were lost dingo-pack resume --midway --via print # the command that continues each of them 🌐 English · 中文
The pack eats in order: dingoes share a kill without a scramble. dingo-pack is the pack leader for a dozen coding agents on one machine. Its five core jobs:
Moving out (still working here, each says where it goes): board, name, card, lint, queue → shepherd-dispatch; claim, boxes → boobook-watch. No longer maintained (still working): close-all, stow, and opening terminal tabs (resume / restore / unstow with --via wt|tmux); --via print stays.
pipx install git+https://github.com/liyifreddy/dingo-pack dingo-pack # one screen: memory, slots, sessions dingo-pack run --heavy --mem 4G -- pytest # heavy work waits for a slot and free memory dingo-pack doctor # what's wrong with this machine right now? dingo-pack list # after a crash: which sessions were lost dingo-pack resume --midway # reopen the ones that were mid-task In Claude Code, install the plugin and the roster saves itself:
/plugin marketplace add liyifreddy/dingo-pack /plugin install dingo-pack@dingo-pack One file, Python ≥ 3.8, standard library only. Linux, macOS and WSL.
Current release: 0.4.2. Install it from PyPI with pip or pipx:
python3 -m pip install dingo-pack # or: pipx install dingo-pack dingo-pack --version To install from this source tree instead, use a separate environment:
python3 -m venv .venv-demo && .venv-demo/bin/python -m pip install . .venv-demo/bin/dingo-pack --version .venv-demo/bin/dingo-pack run --heavy --threads 1 --mem 64M -- python3 -c 'print("hello")' Expected from either: dingo-pack 0.4.2; the source demo also prints hello (admission may wait). State and locks must live on a local disk; leave DINGO_HOME at its default, outside a WSL mounted drive. boxes, tokens, adapter validation and task/wait columns are included; dispatch and the full three-table crosscheck are not here (dispatch is shepherd-dispatch's job). See CHANGELOG and release procedure.
All three agents can use the same run queue on a supported host. No tool-specific hook is required to wrap a shell command. Configuration examples below are manual instructions, not enforcement hooks.
Before heavy shell work, run `dingo-pack who`, then wrap the command: `dingo-pack run --heavy --mem -- `. Use the same local DINGO_HOME for all agents sharing the machine. Keep the queue and memory limits in force; report failures with the diagnostic line. Claude Code has a built-in session/token adapter. Codex and OpenCode can share the queue, but automatic session discovery, token counts, resume and close are not provided for them. External read-only adapters can extend top/tokens/task columns; ADAPTERS defines that interface. Roster and ghosts are still Claude-specific. Agent UI sessions were not launched for this candidate's tests.
Sources: Codex instructions, skills, OpenCode rules.
On a failed job, the CLI preserves its exit status and prints configured per-process and tree limits, sampled RSS, and the exit signal. SIGSEGV/139 and SIGKILL/137 with a configured cap mean possible memory limit hit, not proof of OOM. A tree-limit stop is confirmed by the supervisor. An ordinary nonzero exit keeps its cause unknown; read the child's MemoryError, parser error or application error too.
Without configuration, defaults are --mem 1G, per-process --limit 1.5G, and matching tree limit. default_mem / DINGO_DEFAULT_MEM overrides the estimate. RLIMIT_DATA and RLIMIT_AS are not RSS: failed allocations and brief peaks can be missed by RSS sampling. For large CSVs, prefer chunked reading; if more memory is needed, check available memory and raise the estimate/caps together. Input file size alone does not predict peak memory. python3 selftest_release.py --large-csv exercises a 670 MiB synthetic CSV under bounded memory without loading gigabytes into RAM.
heavy 0 [###### pytest (est 2G) ######] heavy 1 [######### lease: code review #########] io 0 [## tar of the dataset ##] queue C ──> D ──> E next in line waits for a free slot AND enough memory 🎟️ Heavy work and slow disks dingo-pack run --heavy --mem 6G -- python train.py # wait for a slot + 6 GB, then run dingo-pack run --heavy --mem 2G --timeout 30m -- pytest # give up after 30 min (exit 75) dingo-pack run --io -- tar -cf /mnt/g/backup.tar data/ # big copy on a slow disk: its own lane dingo-pack who # who holds the slots, who is waiting dingo-pack top # memory by session --threads N (default 8) sets OMP_NUM_THREADS, MKL_NUM_THREADS, OPENBLAS_NUM_THREADS and friends for the job and takes N of the machine's CPU slots (one per core). doctor and the hint warn when the load is above 1.5 per core. --mem is your best guess at the peak. The limit defaults to 1.5 × that; go over it and only your job stops (a single process gets a MemoryError; a whole tree over the limit is stopped with exit 137), not the machine. Work that isn't a shell command — an agent's own review, a batch of sub-agents — takes a lease: dingo-pack lease --mem 3G --for 45m, then dingo-pack release. The lease also ends when its agent exits. No fixed number of slots. By default memory and CPU decide: a job goes in when its --mem fits into available − promised to running jobs − reserve, else it queues; each job takes --threads CPU slots (one per core). who says how many more fit right now and why. Pin a number with "slots": N / DINGO_SLOTS; the reserve is "reserve" / DINGO_RESERVE (default max(1 GB, 10 % of RAM)). Slow disks: if the data can be copied to the local disk (~/, /tmp), copy it and work there; otherwise use run --io for bulk reads and writes on /mnt/.... Enforce it (Claude Code) With DINGO_ENFORCE=1 (or "hook": {"enforce": true}) the hint hook refuses instead of hinting: a heavy-looking Bash command (pytest, python run_all.py, train / eval / export / regress scripts, make, MinerU, ...; bash -c, timeout, nohup, uv run, conda run are looked through, also bash -lc and env … bash -c) that is not under dingo-pack run is denied, and the reason carries the command rewritten. Bulk copies, archives, find without -maxdepth, and grep -r / rg over a big tree on a network / 9p mount are denied too; rg / grep -r on a file or a small directory pass, a single-file cp only gets the hint, and a cd ~/x && … first is taken into account. How much memory an inline python -c takes is not judged: that is up to --mem, the rules and watch. Sub-agents and review skills only get the hint. Any error in the hook lets the call through. Extend the rules under "hook": heavy_words, heavy_scripts (regex), light_scripts (regex), enforce_io.
Illustrations generated with Google Gemini and edited by the author.
dingo-pack mark running "step 3" # say what you're doing: running | waiting | blocked | done dingo-pack mark waiting --until 18:30 "nightly job" dingo-pack list # after a crash: who was lost dingo-pack resume NAME... --via print # the command that continues each, to paste dingo-pack close-all # (no longer maintained) close the idle waiting / done ones dingo-pack restore # (opening tabs no longer maintained) bring back what close-all closed close-all never touches a session that is busy, running, blocked, or the one you type it in, and it checks each session again right before closing it. It is for humans: inside an agent it refuses.
dingo-pack ghosts # process trees whose Claude Code session is gone dingo-pack ghosts --reap # stop them, after asking (humans only) A process belongs to the session whose CLAUDE_PID it carries. Jobs left on purpose (nohup, setsid, tmux, or a session that said it is waiting) are listed but kept.
Moving to shepherd-dispatch (it still works here; so do name, card, lint, queue). claim / boxes move to boobook-watch.
dingo-pack board # one line per session: state, box, expected finish, flags dingo-pack board --html board.html --watch 30 # a page that refreshes itself It reads each session's last status line. "ask now" means the expected finish it wrote has passed; "may have stopped" means the status line has not changed for 3 hours (--stale-h). It only understands an expected time after a word like 预计 / 约 … 完 / ETA; anything else is left blank rather than guessed.
Moving to shepherd-dispatch together with the board.
name (next session name for a letter), card new (next free card number + skeleton), lint (naming, one session per letter, stale or overdue status lines), queue (prompts waiting for a condition) and claim (the per-box occupancy file). All are deterministic and off unless you call them — see the reference.
The plugin brings the CLI, the roster hooks, the hint hook and a skill that teaches the agent when to use a slot. Hook setup without the plugin, project settings, every option and WSL memory tips are in the reference.
python3 selftest_dingo_pack.py --base /some/local/dir # 1–3 min, depending on load python3 selftest_dingo_pack.py --mutants # each planted bug must turn a check red Memory tests run on a simulated machine, never on your real memory.
MIT. Sister tool: wombat-gate, a git commit queue for agents sharing one repo.
All 2 files in this release have provenance metadata.
claude-code memory multi-agent oom queue sessions wsl
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




