A fleet of agents for your own machine.
Duskfleet runs Claude Code agents (claude -p) in your local projects, on demand or on a cron schedule, records every run in SQLite and shows it in a dashboard on localhost.
npx duskfleet init
macOS · Linux · Node 24+ · Claude Code logged in
Dashboard · today
example data
- Running
- 2
- Needs review
- 1
- Spent today
- $1.84
How it works
Describe the agent. Point it at a project. Read the log.
You write what should happen in two Markdown and YAML files. Duskfleet runs it and writes down what happened.
- 01
Write an agent.
A Markdown file with YAML frontmatter: model, permission mode, allowed tools, budget. Or link an agent your project already defines.
--- id: test-fixer model: sonnet permission_mode: acceptEdits allowed_tools: [Bash(npm test:*)] max_budget_usd: 1 --- Fix failing tests. Never skip one. - 02
Launch from Claude Code, or on a cron.
After
init, ask Claude Code over MCP to create the agent, run it or set a 5-field cron. A tick that finds the agent busy is deferred: one pending fire, retried until the agent is free or the next occurrence comes.# in Claude Code, after npx duskfleet init: "run test-fixer on app" "schedule test-fixer on app every night at 2" - 03
Read what happened.
Every event lands in SQLite and a JSONL log. The dashboard shows the timeline, the result, the cost, and resumes the session with one command.
00:00Read package.json00:04Bash npm test00:41Edit src/cron.ts01:02Bash git push · denied01:03result · $0.11 · 6 turns
Features
Everything an unattended run needs. Nothing it doesn't.
-
Agents are Markdown
A persona you write here, or a link to the agent your repo already keeps in
.claude/agents. Versioned, diffable, portable. -
Unattended by design
No permission prompts, ever. Each agent carries its own allow-list and extra directories. Anything outside it is denied and recorded.
-
Schedules that defer, never queue
Plain cron, DST-safe, no dependency. If the agent is busy the tick is kept as one pending fire and retried until the agent is free or the next occurrence. No catch-up storms when the laptop wakes.
-
Every run recorded
Tool calls, denials, turns, tokens, cost, exit reason. One SQLite file and one JSONL log per run. Resume any session with one command.
-
Cost you can see
Per run, per agent, per model, last 24 hours. A budget cap per agent. Pin
haikuwhile you experiment. -
Chat is the control room
19 MCP tools. Create agents, start runs, set schedules and ask what happened from Claude Desktop, Cowork or Claude Code.
Verdicts
Needs review. Never plain green.
A run that finished but hit a permission denial, ran out of context or missed an MCP server is amber, not green. The exit code is not the verdict; what the agent could not do is.
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
- ran clean
- needs review
- skipped, busy until the next tick
- next
Schedules
Ticks keep the fleet moving.
One process holds the lease and ticks the clock. A tick that finds the agent busy is deferred and retried, one pending fire per schedule. A laptop that was asleep does not replay what it missed. One flag in the config stops everything.
Cost
Know what every run costs.
The CLI reports cost per run; Duskfleet keeps it. Compare models on the same agent, cap a budget per agent, and see the last 24 hours before the invoice does.
Local, open, small
No account. No cloud. One database file.
Three runtime dependencies, no native addons. The dashboard reads the same SQLite file the server writes. Your code never leaves the machine except through Claude Code itself.
- 3 runtime dependencies
- 19 MCP tools
- 0 accounts to create
- MIT license, public repo
Frequently asked questions.
Does it need an API key?
No. It spawns the Claude Code CLI already logged in on your machine. Duskfleet never sees or stores credentials.
What does a run cost?
Whatever Claude Code charges for that session, nothing more. Duskfleet records the cost per run and lets you cap a budget per agent.
Can an agent break out of its project?
File tools and Bash paths are confined to the project directory plus the extra directories you allow. Anything outside is denied and written to the log.
What happens if two schedules fire on the same project?
One run per project and one per agent at a time. The second tick is deferred, not queued: one pending fire, retried until the project is free or its next occurrence comes.
Does it work with Codex or other CLIs?
Today it runs Claude Code only. The runner is a thin layer over the CLI, so other agents are on the roadmap once their non-interactive mode is stable.
Where is my data?
In the repo's data folder: one SQLite database and one JSONL log per run. Delete the folder and it is gone.
Two commands, then Claude Code.
$ npx duskfleet init
$ npx duskfleet dashboard
Then stay in Claude Code: init registers the MCP server, so you ask Claude Code
to create agents, start runs and set up schedules, and the dashboard shows them.
Contributors can also
build from source
with git clone.