How andrewboldi/dibs works
dibs is a per-user Linux job scheduler that lets coding agents share one machine, especially its GPUs. An agent submits a command and CPU, RAM, GPU-memory, and time requirements through the CLI; the client contacts or starts the daemon, which plans against machine capacity, persists queue state, and launches eligible jobs in isolated scopes. The daemon also monitors resource use and enforces GPU reservations, while CLI views report queue status and historical sizing. The README documents agent setup, snapshots, and sleep/wake checkpointing; edges for those capabilities are shown only where the supplied index or documentation supports them.
Main entry points: daemon.py Scheduler daemon · cli.py CLI commands · client.py Daemon client · guard.py Resource guard
Components 21
Agent entry
- CLI commands
src/dibs/cli.py - Daemon client
src/dibs/client.py
Scheduling core
- Scheduler daemon
src/dibs/daemon.py - Job model
src/dibs/model.py - Queue planner
src/dibs/planner.py - SQLite state
src/dibs/store.py - State paths
src/dibs/paths.py
Job execution
- Job launcher
src/dibs/launcher.py - Code snapshots
src/dibs/snapshot.py - Sleep checkpointing
src/dibs/suspend.py - CUDA checkpoint API
src/dibs/cudapause.py
Resource monitoring
- Machine capacity
src/dibs/machine.py - GPU inventory
src/dibs/gpu.py - Resource guard
src/dibs/guard.py - Process inspection
src/dibs/procs.py
Agent experience
- Queue and usage views
src/dibs/render.py - Agent setup
src/dibs/agents.py - Agent instructions
src/dibs/instructions.py
Other components
- Coding agent
- systemd scopes
- NVIDIA / AMD drivers
Connections 22
- Coding agent → CLI commands: submits jobs
README.md - CLI commands → Daemon client: sends requests
src/dibs/cli.py - Daemon client → Scheduler daemon: contacts or starts
README.md - Scheduler daemon → SQLite state: persists queue
src/dibs/daemon.py - Scheduler daemon → Job model: resolves jobs
src/dibs/daemon.py - Scheduler daemon → Queue planner: plans queue
src/dibs/daemon.py - Scheduler daemon → Machine capacity: reads capacity
src/dibs/daemon.py - Scheduler daemon → GPU inventory: samples GPUs
src/dibs/daemon.py - Scheduler daemon → Job launcher: starts jobs
src/dibs/daemon.py - Job launcher → systemd scopes: creates scopes
README.md - Scheduler daemon → Resource guard: coordinates enforcement
src/dibs/daemon.py - Resource guard → Process inspection: inspects processes
src/dibs/guard.py - Resource guard → GPU inventory: checks GPU use
src/dibs/guard.py - Scheduler daemon → Code snapshots: prepares snapshots
src/dibs/daemon.py - Scheduler daemon → Sleep checkpointing: handles sleep
src/dibs/daemon.py - Sleep checkpointing → CUDA checkpoint API: checkpoints memory
src/dibs/suspend.py - GPU inventory → NVIDIA / AMD drivers: queries devices
README.md - CLI commands → Queue and usage views: renders output
src/dibs/cli.py - CLI commands → Agent setup: configures agents
src/dibs/cli.py - Agent setup → Agent instructions: writes guidance
src/dibs/agents.py - Scheduler daemon → State paths: uses state locations
src/dibs/daemon.py - Daemon client → State paths: locates socket
src/dibs/client.py