Danilqa/kombinat
关于
🏭 Run background AI agents on a schedule or webhook, from markdown files in your repo. On any machine and the subscription you already pay for.
人工智能与机器学习可以做什么
- Routines in git. One markdown file each, live within 5 minutes of the merge. Start from a template on the dashboard.
- Schedule or webhook. Cron, once at a time you pick, or a request from Linear, GitHub or any other app.
- Any agent. Claude Code, Codex or any other CLI.
- Your setup. Your logins, skills, MCP servers, browser and CLAUDE.md.
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +5
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
🏃♀️ Run AI agents on a schedule or webhook, from markdown files in your repo. On your Mac or Linux machine, with the plan you already pay for.
Live demo · 80-second video · Quickstart · Design system · ⭐ Star on GitHub
✨ Features
- Routines in git. One markdown file each, live within 5 minutes of the merge. Start from a template on the dashboard.
- Schedule or webhook. Cron, once at a time you pick, or a request from Linear, GitHub or any other app.
- Any agent. Claude Code, Codex or any other CLI.
- Your setup. Your logins, skills, MCP servers, browser and
CLAUDE.md. - No API bill. Runs on your subscription.
- Several subscriptions. Run routines on more than one Claude or Codex login at once, such as work and personal.
- Insights. Monitor your token spending.
- Waits out limits. A run that hits a Claude usage limit continues after the reset.
- Retries errors. A run that stops with an error can try again a few minutes later, right where it stopped.
- Skips idle runs. A check command skips a scheduled run when there is nothing to do, so you spend no tokens.
- Several runs. Start a routine several times in one go, such as once per issue, in a row or in parallel.
- Chains. Start a routine when another one finishes, with its result.
- Memory. A routine can carry notes from one run to the next. Off by default.
- Inbox. Unread runs, with failures and findings first, and a notification for the ones you pick.
- Full transcripts. Search them, chat to continue any run or to steer one while it works, and share one as a Markdown or HTML file.
- Everywhere. Dashboard in the browser, the terminal or as a PWA on your phone and computer.
- Guardrails. Timeouts, a dollar or token budget, no overlapping runs and catch-up after sleep.
- Small. One command, two dependencies, no cloud, no database, no telemetry.
😄 Fun fact
Kombinat runs as a software factory that improves and promotes itself. See for yourself in the closed issues.
🤨 What to run?
A routine can be basically any automation, for your team or at home. Teams use them to work through issues overnight, fix bugs and flaky tests, remove dead code, watch production and draft release notes. At home, routines can look for discounts, book appointments, check the weather or tell you when a website changes.
See example routines in the live demo.
⚡ Quickstart
You need Node 24 and Claude Code or Codex, logged in. On Linux, see docs/linux.md.
Create a folder with example routines.
npx kombinat init my-routinesIn an existing repo, run
npx kombinat initin its root, orpnpm dlx kombinat initif it uses pnpm. It never overwrites a file.Start it.
cd my-routines npx kombinat serveOpen http://localhost:7433. To keep it running in the background and after reboots, stop it and run
npx kombinat install.Add your own routines to
routines/, see Writing a routine. No restart needed.
👀 Monitoring

The daemon serves a dashboard at http://localhost:7433.
- Routines
- Calendar, with a forecast of the weekly plan limit
- Runs
- Insights
- Inbox
- Daemon status
- Search
In the terminal

pnpm kombinat tui shows the same in the terminal. It works over ssh. Press ? for keys.
🗺️ Remote access
To open the dashboard from your laptop or phone, connect over SSH with npx kombinat connect, or share it in your tailnet with Tailscale Serve. See docs/remote-access.md.
🤓 How it works
A small daemon starts the agents of due routines, serves the dashboard and keeps the run history. See docs/how-it-works.md.
👮🏻 Security
The dashboard has no login, and agents can do whatever their routine's permissions allow. Read docs/security.md before you open the dashboard to other people or let a routine read issues, chats or webhooks.
🫵 Commands
Run them from the folder with routines/. With npm, use npx kombinat instead of pnpm kombinat, with Yarn yarn kombinat.
pnpm kombinat init [folder] # add the missing package.json, example routines, README and .gitignore
pnpm kombinat list # routines, next run, last status
pnpm kombinat run <name> # run a routine now, in the foreground
pnpm kombinat validate # check all routine files, including misspelled settings
pnpm kombinat tui # dashboard in the terminal, works over ssh
pnpm kombinat status # daemon and scheduler state
pnpm kombinat readme # update the routines table in README.md
pnpm kombinat uninstall # stop and remove the daemon
✍️ Writing a routine
---
name: fix-e2e-tests
description: Finds the failing e2e test and fixes it
schedule: '30 11 * * *'
cwd: ~/projects/app
agent: claude
model: claude-opus-5-5
fallbackModel: claude-sonnet-5-5
effort: high
timeoutMinutes: 55
---
1. Open the latest failed e2e run on GitHub ...
To start from a ready routine instead, click New routine on the dashboard's Routines page, pick a template, set its name, folder and schedule, choose the agent and model, and change its prompt to fit your project. It writes the file for you. Commit it to keep it in git.
To have Claude Code write routines for you, add the Kombinat plugin. Its skills write routines and webhook gates, find out why a run failed, review your routines and move your cron jobs over:
/plugin marketplace add Danilqa/kombinat
/plugin install kombinat@kombinat
namemust match the file name.scheduleis a 5-field cron in local time, ormanualto run only on demand.cwdis where the agent starts.worktree: truegives each run a git worktree of its own, on a new branch, so the agent never touches your checkout incwd, see docs/worktrees.md.agentisclaude(default),codexorcommand.accountis the login the agent runs on, such aspersonal, so the routine uses that plan and its limits. Without it, the routine runs on the machine's own login, calledprimary. See Accounts.timeoutMinutesstops the run after this time. Default 55.retriesis how many more attempts a run gets when it fails or times out, 5 minutes apart. Default 0, at most 10. See Retries.runsis how many runs each start makes, such as 3 to work on three issues. Default 1, at most 20. See Several runs.maxParallelis how many of those runs work at once. Default 1, one after another.checkis an optional shell command that runs before each scheduled run and skips it when there is nothing to do, so the agent spends no tokens then. Exit 0 starts the run and exit 78 skips it, see docs/hooks.md.beforeis an optional shell command that runs first. If it fails or takes more than 3 minutes, the run fails.afteris an optional shell command that runs last, whatever the outcome, for example to post failures to Slack. It gets the finished run on stdin and cannot change it, see docs/hooks.md.startsAfteris another routine whose runs start this one, with their result, see Chains.enabled: falsekeeps the file but stops the schedule.webhook: truelets other apps start the routine with a request, see docs/webhook.md.memory: truekeeps notes that carry over between runs, see below. Off by default.
kombinat validate checks every routine file. It reports settings it does not know, such as scheduel, settings set twice, the first wrong value in each file, and a startsAfter that names a missing routine or makes a loop. The daemon doesn't warn about unknown or repeated settings. Run validate after you edit a routine.
Changes apply on the next check, no restart needed. Write the prompt so the agent never has to ask a question: nobody will answer. When there is nothing to do, have it start its answer with "No" or "Nothing", such as "No open incidents.", so the dashboard's Inbox files the run under Nothing to report. When the agent may have to stop on an error, add onAgentGiveUp: fail, so such a run fails instead of succeeding.
Retries
With retries: 2, a run that stops with an error, such as a stream idle timeout or a hang that hits timeoutMinutes, shows Retrying and tries again 5 minutes later, up to 2 more times. The next attempt continues the agent's session where it stopped. Without a session, such as for command or after a failed before, it starts over with before. Each attempt gets the whole timeoutMinutes.
The run's page shows the error and when the next attempt starts, with Retry now and Stop retrying. Its transcript marks where each attempt stopped. A run that hits its maxBudgetUsd, its maxBudgetTokens or a usage limit is not retried, and neither is one whose cwd or agent is missing or whose agent gave up with onAgentGiveUp: fail. The after hook and the Inbox see only how the last attempt ended.
Several runs
With runs: 3, each scheduled time, Run now and one-time run starts 3 runs. By default they run one after another: the next one starts when the one before it ends. With maxParallel: 3, all three start at once. Give such a routine worktree: true, so the runs don't change the same checkout.
The runs that wait show under Queued on the routine's page, with Cancel. They also wait while the Claude plan of their account is at its usage limit, and start after the reset. A scheduled time is skipped while runs of the last start still wait. Webhooks start one run each.
To start a routine several times just once, open the menu next to Run now and pick Run several times.
Chains
To run work in steps, such as fix issues, then review the pull requests, then draft the release notes, start each routine when the one before it finishes:
---
name: pr-review-sweep
cwd: ~/projects/app
startsAfter: night-agent-tasks
startsWhen: succeeds
---
startsWhen is succeeds (default), fails, which also covers a run that timed out or was aborted, finishes, which is either, or has-findings: the run succeeded, nothing was blocked and its result does not start with "No" or "Nothing", as the Inbox files it. The next run starts within 30 seconds and gets the result of the run before it below its prompt. A routine can keep its own schedule too.
- A run that ends while the next routine still runs makes it start once it is idle. Several such runs start it once, after the newest.
- A disabled routine does not start. Only runs that end after you add
startsAfterstart the routine. - Routines that start after each other in a loop, such as A after B and B after A, never start this way.
kombinat validatereports the loop. - The routine's page shows Starts after, Then runs and a Chain card with every routine of the chain in order and its last run.
Accounts
With a work and a personal Claude or Codex login, give each routine the one it should use, so home routines don't use up the work plan:
kombinat login personal # signs in to Claude in ~/.claude-personal
kombinat login personal --agent codex # signs in to Codex in ~/.codex-personal
Run it once in your routines folder, then add account: personal to a routine. It runs claude with CLAUDE_CONFIG_DIR=~/.claude-personal, or codex with CODEX_HOME=~/.codex-personal, and replies to its runs use the same login. An account name holds letters, digits, ., _, @, + and -, such as work or [email protected]. A run on an account that is not signed in, or whose login expired, fails and says how to sign it in. Kombinat never moves a routine to another account by itself.
Each account has its own plan. The dashboard's header shows how much of each is left, and its popover lists the limits of each account. A run waits only for the limit of its own account. Once routines run on more than one account, the Routines table and the routine's page show the account of each.
Memory
With memory: true, a claude or codex routine keeps notes for its next runs, such as the issues it filed, how to sign in to the app and where to start next time. Kombinat adds the notes to the prompt of each run, and the agent ends its last message with the updated notes, which Kombinat saves. Replies to a run get the notes as they are now and can update them too.
The routine's Memory tab in the dashboard shows the notes and the run that changed them last. Edit them to tell the next run something, or Clear them to start fresh. If you save notes while a run is at work, your notes win over the ones that run ends with. The notes stay on this machine in ~/.kombinat/memory/<routine>.md, not in git, and can be up to 20,000 characters.
Agents
| Setting | claude |
codex |
command |
|---|---|---|---|
model |
default claude-opus-5-5 |
default from your Codex config | - |
fallbackModel |
optional, see below | - | - |
effort |
low, medium, high (default), xhigh, max |
minimal, low, medium, high, xhigh |
- |
permissionMode |
auto (default), acceptEdits, dontAsk, bypassPermissions, plan, manual |
read-only, workspace-write (default), danger-full-access |
- |
maxBudgetUsd |
optional | - | - |
maxBudgetTokens |
optional, such as 500k, 2M or 3000000 |
- | - |
onUsageLimit |
wait (default), fail |
- | - |
onAgentGiveUp |
succeed (default), fail |
- | - |
command |
- | - | required |
clauderunsclaude -p. Anything that needs approval is denied, and the run still succeeds. The dashboard marks such a run with how many actions were blocked, files it under Needs a look and lists each action with a rule that allows it, such asBash(git push *). Allow and continue resumes the session with those rules, for that reply only. To allow them in every run, add the rules topermissions.allowin.claude/settings.jsonin the routine's folder.fallbackModelis the model Claude switches to whenmodelis not available, overloaded or fails, such asclaude-sonnet-5-5. A comma-separated list is tried in order. The run's transcript says when it switched.maxBudgetTokenscaps the tokens a run uses, counted as the dashboard counts them: input, output and cache. Kombinat stops the run after the model call that reaches it. A run can end over the budget by up to one call, since each call reads the whole conversation again. The run fails with the budget it reached and is not retried. Its next attempts and its turns after a usage limit share the budget, and each reply gets the whole budget. WithmaxBudgetUsdtoo, the run stops at whichever it reaches first.onUsageLimitsays what a run does when it hits the 5-hour or weekly limit of the Claude plan. Withwait, the run shows Waiting for limit, and a minute after the reset, once a run slot is free, Kombinat continues its session where it stopped. The run's page has Continue now and Stop waiting, and its transcript marks the pause. Withfail, the run fails at the limit.onAgentGiveUpsays what a run does when Claude gives up because it could not do the job, for example when a query or a login failed and it stopped. Withsucceed, the default, the run succeeds with Claude's answer, as any run whose agent exits normally. Withfail, Claude ends with a status next to its answer, throughclaude -p --json-schema, and when it gave up, the run fails with the answer as its error: the Inbox files it under Needs a look, theafterhook getsfailedand routines withstartsWhen: failsstart. It is not retried, since another attempt would meet the same problem.codexrunscodex exec.permissionModesets its sandbox.commandruns any other CLI, for examplecommand: gemini --yolo. It gets the prompt on stdin, and its output is the result.
A setting the agent does not support fails validation.
⏰ Scheduling
- On macOS, the installed daemon keeps the Mac awake while it is on power. On battery the Mac sleeps as usual, and a laptop with a closed lid can still sleep. macOS has a system-wide switch that turns sleep off,
sudo pmset -a disablesleep 1, which Kombinat does not touch. - If the Mac was asleep, each routine runs once for its latest missed time, up to 7 days back.
- A routine never runs twice at the same time, unless its
maxParallelallows it. If it is still running at its next time, that run is skipped. A run that waits for a usage limit to reset or for its next attempt counts as running, and so do the queued runs of a start withruns. - At most 3 runs work at once. A run that waits for a usage limit or for its next attempt does not count toward this.
- To run a routine once at another time, such as tonight, open the menu next to Run now and pick a time, or press
Lin the terminal. The time is kept on this machine, not in the routine file. The run waits while the routine is still running, and the routine's page lists it with Cancel. After a sleep, missed one-time runs count as missed times: the routine runs once. - To run a one-off task, press New run on the Runs page of the dashboard, write the prompt and pick a routine. The prompt runs once in that routine's folder, with its agent and settings, and the routine file stays as it is.
🪝 Webhooks
A routine with webhook: true also runs when another app, such as Linear or GitHub, sends it a request. The request body goes into the prompt, an optional webhookGate command checks and filters requests, and requests that arrive while the routine runs wait in a queue. The gate can also tie requests to a conversation, so that follow-ups, such as messages to a Linear agent, continue the run that the first request started. See docs/webhook.md.
🎉 Updating
Merged changes to your routines go live within 5 minutes. To update Kombinat, bump kombinat in package.json, and the daemon installs it and restarts. See docs/updating.md.
🔧 Configuration
| Variable | Default | What |
|---|---|---|
KOMBINAT_PORT |
7433 |
dashboard port |
KOMBINAT_STATE_DIR |
~/.kombinat |
logs and history |
KOMBINAT_ROUTINES_DIR |
./routines |
routine files |
KOMBINAT_MAX_CONCURRENT |
3 |
runs that can work at once |
KOMBINAT_TICK_SECONDS |
30 |
how often the daemon checks routines |
KOMBINAT_PULL_MINUTES |
5 |
auto git pull interval, 0 to disable |
KOMBINAT_PULL_BRANCH |
main |
branch the daemon pulls |
KOMBINAT_KEEP_AWAKE |
on when installed | Mac stays awake on power, 0 to disable |
CLAUDE_BIN |
~/.local/bin/claude |
Claude Code binary |
CODEX_BIN |
codex |
Codex binary |
Set them before pnpm kombinat install. They are saved in the launchd or systemd config.
探索相关项目
加载中…