self-starter
This server lets you draft, test, activate, manage, and monitor local zero-token probes that watch for events and wake your coding agent when conditions fire.
List ready-made recipes for common watches and their required parameters/secrets.
Draft a new trigger or new version using custom TypeScript probe code or a recipe; the engine validates it, saves the code, and runs a trial.
Activate a drafted trigger so its probe runs on schedule and hands fires back to the agent.
Update trigger settings such as params, interval, timeout, access, permissions, firing rules, action, target, notifications, name, or intent.
Make noisy triggers quieter by extending check intervals, cooldowns, hold durations, lowering max fires, or pausing.
List and inspect triggers, including state, recent checks, and recent fires.
Test an active trigger’s probe once without firing or changing state.
Pause, resume, or delete triggers.
View fire history with handling receipts.
Report completion of a fire with a summary and optional user notification.
Check the background service status, version, available agent CLIs, trigger counts, and today’s agent runs.
Sends probe alerts to Discord channels for event notifications.
Watches GitHub pull requests for new review comments and CI status changes, triggering agent follow-up in the conversation.
Monitors GitHub Actions CI runs for failures on commits, enabling agents to investigate failing job logs and suggest fixes.
Pushes probe alerts through ntfy notifications.
Routes probe alerts to Slack channels, notifying users when watched events such as CI failures or PR comments occur.
Delivers probe alerts via Telegram messages.
Demo
One standing job, end to end. Here a Futu watch spots an unusual AMD move at zero token cost while your terminal is closed, Codex wakes up to investigate what changed, and Self-Starter pushes the verdict to your desktop and Feishu—the same local engine watches your PRs, CI runs, GPUs and services:
Edited replay of a real Futu watch. The interface and notifications are illustrated; quotes are historical. For an engineering workflow, see Investigate a new CI failure.
Related MCP server: runvouch
Why Self-Starter
Coding agents work turn by turn: you ask, they act, they stop. Much real work is "keep watching, and act when it happens"—"keep an eye on this PR", "tell me when the run converges", "check why if my positions move". Self-Starter is not a separate agent gateway; it adds a local event layer to your existing agent in three parts:
What to watch is code. Your agent writes a small probe once; a local background service runs it without calling a model.
What counts is enforced by the engine: fire on a real change only, require a minimum duration, deduplicate, cool down, cap agent wakeups per day, and hold notifications during quiet hours.
What to do is the agent's job. It wakes with the evidence and your original instructions, does the follow-up, and records a short verdict—notifying you when it judges you need to look.
Self-Starter brings no data of its own. A probe reads whatever you can reach from your machine: logs, nvidia-smi, gh, local services, or APIs such as Futu and IBKR.
Ask once: "Keep watching this PR. When CI fails or new review comments arrive, investigate and continue in this conversation." Your agent writes and tests a small local TypeScript probe, hands it to a background launchd or systemd service, and steps aside until the condition actually happens.
When this happens… | Your agent picks up the next task |
A new CI run fails on your commit | Read the failing job logs and suggest a fix ( |
Your PR gets new review comments or conflicts | Investigate the feedback and propose changes ( |
Your training run finishes, a new error hits | Trace the stack trace, compare metrics, or start the next experiment ( |
A local or staging service stays down for two minutes | Inspect recent logs and trace the root cause ( |
NVDA moves 6% or analysts change their rating | Investigate what changed and summarize sentiment ( |
Your IBKR account report updates | Explain new trades, option assignments or cash movements ( |
Why not built-in polling or cloud schedules?
Approach | Tokens while waiting | Survives closing terminal / app? | Sees local files, GPUs & | Continues in your local conversation? |
In-session polling ( | Calls the model on every check | No — stops when the session closes | Yes | Yes, while open |
Cloud routines & remote schedules | Calls the model on every scheduled run | Yes (runs in the cloud) | No — isolated from your machine & LAN | No — starts separate cloud runs |
Self-Starter | Zero during routine probe checks | Yes ( | Yes (logs, | Yes in Codex & Claude Code; dedicated CLI session in Antigravity, OpenCode & ZCode |
Closing your terminal or app does not end the watch. While your machine is awake, an independent local service keeps running the probe and enforces state transitions (not-met → met), minimum duration, deduplication, cooldowns and expiry. Code does the waiting. Your agent does the work. Routine checks make no model calls; setup, session initialization and agent actions can still use tokens.
Repeating watches use a dedicated result session by default. In Codex and Claude Code, ask to continue in this conversation to keep follow-ups in your original thread (delivered between turns while open, or resumed in the background when closed). See where the agent answers and the platform-specific destinations below.
Local Web console & push routing
Run self-starter ui (~/.self-starter/bin/self-starter ui) to open the local 127.0.0.1 console—inspect active probe tasks across Codex, Claude Code, Antigravity, ZCode and OpenCode, review probe code and 0-token check counters, set quiet hours, and route alerts per probe to Desktop, Feishu / Lark, WeCom, DingTalk, Slack, Discord, Telegram, Bark, ntfy, custom Webhooks, or Email:
Install
Choose the integration for your agent. All five share the same local trigger engine; their installation and result destinations differ.
Agent | Installation | Where the agent answers |
GitHub plugin marketplace or | The original conversation or a dedicated thread | |
GitHub plugin marketplace or | The original session or a dedicated session | |
| A dedicated CLI conversation ( | |
| A dedicated CLI result session; no delivery into the original desktop conversation | |
| A dedicated CLI result session, reused for later events |
You need macOS or Linux, Node.js 20+ and your chosen agent configured with working model access. For the current ZCode CLI, use Node.js 24.14.0+.
Or install for every supported agent CLI found on your machine in one step:
npm install -g self-starter
self-starter install
self-starter doctor(npx self-starter install also works without a global install—it saves a persistent runtime under ~/.self-starter/runtime and writes ~/.self-starter/bin/self-starter.)
Codex
With the Codex CLI installed (npm install -g @openai/codex if needed):
codex plugin marketplace add hyprh/self-starter
codex plugin add self-starter@self-starterRestart the Codex app, or start a new CLI session.
Claude Code
Inside Claude Code:
/plugin marketplace add hyprh/self-starter
/plugin install self-starter@self-starterUse Claude Code 2.1.224 or newer for delivery into open sessions, then start a new session after installation. See the Claude Code guide for session delivery and permissions.
On their first start, the Codex and Claude Code plugins download the matching runtime (including Deno) and set up a launchd or systemd background service. Allow a minute or two; later starts need no download. The terminal command is self-starter (when installed globally) or ~/.self-starter/bin/self-starter.
Antigravity
Google Antigravity (agy CLI / Antigravity 2.0) uses a native plugin (agy-plugin/) and dedicated CLI conversations:
npx self-starter install
~/.self-starter/bin/self-starter doctor(Pass --agy /absolute/path/to/agy if agy is not on your PATH, or install globally with npm install -g self-starter to put self-starter on PATH.)
Start a new Antigravity conversation after installation. Each watch runs in a dedicated agy --conversation <id> result session guarded by a PreToolUse sandbox hook (read-only, workspace-write or danger-full-access). Remote Control synergy: unlike cloud-hosted Remote Agents that spin down after ~15 minutes of inactivity, running agy remote-control on your workstation pairs directly with Self-Starter—local probes keep watching GPUs, localhost and logs at zero tokens, and you can inspect or continue any triggered conversation from your phone. See the Antigravity plugin guide.
ZCode
npx self-starter install --zcode /absolute/path/to/zcode
~/.self-starter/bin/self-starter doctor(Omit --zcode if zcode is already on your PATH; pass the authenticated ZCode CLI executable rather than the desktop app launcher.) Start a new ZCode session after installation. The installer registers a local marketplace and the background service. See the ZCode guide for setup, model access and permission modes.
OpenCode
npx self-starter install
~/.self-starter/bin/self-starter doctor(Pass --opencode /absolute/path/to/opencode if opencode is not on your PATH.) Use OpenCode 1.x, version 1.19.3 or newer, with working model access, and start a new OpenCode session after installation. The installer adds a native plugin loader without changing your OpenCode configuration. Each watch uses a dedicated result session; later events resume that session through the CLI, including when the UI is closed. Delivery into the conversation where you created the watch is not supported. See the OpenCode guide.
Other MCP clients
Any stdio MCP client (Cursor, Windsurf, Cline, Claude Desktop, and others) can connect to self-starter mcp directly to draft, test, activate and manage local zero-token notify watches across all 10 push channels (action.type: "agent" conversation wakeups require one of the five native coding-agent integrations above). Install npm install -g self-starter, start the background service (self-starter service install), and add the MCP server:
{
"mcpServers": {
"self-starter": {
"command": "self-starter",
"args": ["mcp"]
}
}
}Quick start
Test the three things built-in timers cannot do—filtering noise at zero tokens, surviving a closed terminal, and resuming your conversation—with no API key or external service.
Remove any leftover log (
rm -f /tmp/self-starter-demo.log), open your agent in a project folder that has aREADME.md, and ask:Watch
/tmp/self-starter-demo.logfor the next hour (within ~10s latency). IgnoreINFOlines—wake up once only when anERRORline appears, include the matching log lines in the event data, inspect the file it names in this folder, and summarize what to check. Keep the task read-only, and confirm after activation that the first check did not fire.Once confirmed, close your agent completely (
exitin Claude Code, or quit the Codex / OpenCode session). In a normal shell, write routine noise first:echo "INFO: healthcheck ok" >> /tmp/self-starter-demo.logWait 15 seconds: local code checks the log with zero model calls and ignores the
INFOline (~/.self-starter/bin/self-starter listshows the latest check summary).Now write an error while your agent is still closed:
echo "ERROR: broken anchor or installation step in README.md" >> /tmp/self-starter-demo.logWithin ~30 seconds, Self-Starter spots the
ERRORline and runs the follow-up in the background:Codex and Claude Code resume the closed conversation where you created the watch (
claude --resumeor reopen Codex to find the analysis already waiting).Antigravity, ZCode and OpenCode run the task in a dedicated CLI result session (
agy --conversation <id>,zcode --resume <id>oropencode --session <id>).
Run
~/.self-starter/bin/self-starter history(ornode dist/src/cli/main.js historyfrom a source checkout) to see the fire, receipt and destination—such as(your session, resumed in the background)—then delete the demo watch and/tmp/self-starter-demo.log.
For a live GitHub workflow, try watching a CI failure.
What to watch
Anything a small program can check. Your agent writes the probe, tries it once, and sets up the watch with the action you authorize.
Watch | Ask your agent | Source |
Long jobs & logs | "Watch | Local logs (recipe) |
GPU availability | "When the GPU is idle for ten minutes, start the next experiment." |
|
PR reviews | "When my PR gets new review comments, investigate them and propose changes." | GitHub pull requests (recipe) |
Issues | "When a new issue is labelled bug, read the report and suggest where to investigate." | GitHub Issues |
CI | "When CI fails on main, investigate and suggest a fix." | |
Releases | "When a new version of zod is out, try it on a branch." | The npm registry |
Services | "If the dev server is down for two minutes, find out why." | Health endpoints (recipe) |
Files | "When a new invoice lands in invoices/, add it to expenses.csv." | A local folder |
Research | "When a speculative decoding paper hits arXiv, summarize it." | The arXiv API |
Markets | "Tell me when analysts change their view on Tencent." | Futu research (recipe) |
Accounts | "Watch my IBKR account for anything unusual." | IBKR Flex reports (recipe) |
These examples need access to their data sources. Network access and credentials for a probe and its later agent task are configured separately; the CI guide walks through that distinction.
How it works
Describe the event. Your agent writes a TypeScript probe or uses a ready-made recipe, tests it, and sets the action and destination.
Code does the waiting. A local background service runs the probe on a schedule. The engine handles minimum duration, cooldown, deduplication, expiry and delivery retries without calling a model for each check.
Your agent does the work. When the event fires, the task goes to the destination shown above. Codex and Claude Code can resume closed conversations in the background; Antigravity, ZCode and OpenCode resume their dedicated result sessions. You can choose a notification without an agent task instead.
Check the result—or route it anywhere. Open the local Web console (
self-starter ui) or runself-starter historyto read actionable receipts, resume sessions in one click, manage quiet-hours queues, and route alerts per watch to your desktop, chat channels or email.
Running locally
Keep the machine awake. Checks run locally, including when the agent app is closed. External data sources also need connectivity.
Review what can run. Probes run as your user by default; API-only probes can use a restricted sandbox. Background agent tasks have separate permissions and cannot obtain interactive approval. Antigravity, ZCode and OpenCode use native hook or tool permissions rather than OS isolation. See the security policy, Antigravity guide, ZCode permissions and OpenCode guide.
Verify delivery once. Run the quick start on your own setup. Desktop notifications need a working notification service; on macOS,
terminal-notifierenables clicks that open a Codex thread. Use the Codex app checklist to check foreground and background behavior.Keep secrets out of chat. API keys, webhook URLs, bot tokens and email app passwords are stored locally via
self-starter uior the CLI (0600permissions), never in chat or probe source. What a probe saw is passed to the agent as untrusted data.
More
Guide: triggers, local Web console (
self-starter ui), outbound push channels, secrets and CLI commandsAntigravity guide: native plugin installation, dedicated
agysessions andagy remote-controlZCode guide: local installation and dedicated result sessions
OpenCode guide: native plugin installation and background result sessions
Design: architecture, execution boundaries and verification
Development: from a clone,
npm install && npm link && self-starter installinstalls the plugin for supported agents it finds.npm testruns unit and integration tests. CI checks installation on macOS and Linux, agent delivery with real CLIs and a stand-in model, and email delivery.
License
Available Tools
14 toolsservice_statusARead-only
Check the Self-Starter background service: version, available agent CLIs, trigger counts and today's agent runs.
Inputs: no named parameters.
trigger_activateA
Turn a draft on: its probe starts running on schedule, and each fire hands the task back to you. The trigger keeps working on its own after this, so decide first whether the user should confirm it; the self-starter:triggers skill says when to ask.
Inputs: draft_id (required).
trigger_deleteADestructive
Delete a trigger, its probe code and its state. Its past fires stay in the history.
Inputs: trigger_id (required).
trigger_draftA
Submit a new trigger, or a new version of one, as a draft. The engine checks the definition, saves the probe code and runs the probe once. Returns the draft id, the trial run result, warnings and a plain-language description. Nothing runs on a schedule until trigger_activate. Pass either code you wrote or a ready-made recipe from trigger_recipes. Follow the self-starter:triggers skill when writing the definition and the probe.
Inputs: definition (required), code, recipe, replace.
trigger_getARead-only
Details of one trigger: its definition, the state of its firing rules (waiting, cooling down, ...), recent checks and recent fires. Use it to explain why a trigger did or did not fire.
Inputs: trigger_id (required).
trigger_historyARead-only
Recent fires, newest first, with how each was handled and the receipt. Leave out trigger_id to see all triggers.
Inputs: limit, trigger_id.
trigger_listARead-only
List all triggers with their state, last check, next check and number of fires.
Inputs: no named parameters.
trigger_pauseA
Pause a trigger: its probe stops running until it is resumed.
Inputs: trigger_id (required).
trigger_recipesARead-only
List the ready-made recipes: probes that ship with the plugin for common things to watch, such as GitHub PRs and CI runs, local log errors, HTTP health endpoints, Futu stock news, or an Interactive Brokers account. Each lists its parameters, the secrets the user must store first and the setup steps. Prefer a recipe when one fits.
Inputs: no named parameters.
trigger_reportA
Report that you finished handling a trigger fire (a message that starts with [self-starter]). Call it once per fire, at the end, with the fire_id from the message, one line on what you found or did, and notify=true only if the user should be told now.
Inputs: notify (required), fire_id (required), summary (required).
trigger_resumeA
Resume a paused trigger. Its probe runs again right away.
Inputs: trigger_id (required).
trigger_testARead-only
Run an active trigger's probe once now and show the result, without firing or changing anything.
Inputs: trigger_id (required).
trigger_tuneA
Make a trigger that fires more often than is useful quieter, keeping its state (no new baseline, no fire again for a condition that already holds): check less often, wait longer after a fire, require the condition to hold longer, allow fewer fires, or pause it. It is the one change allowed while handling a fire, and then only for the trigger that fired; the user is told what changed and why. Anything that makes a trigger more sensitive goes through the user and trigger_update.
Inputs: reason (required), trigger_id (required), for, pause, +3 more.
trigger_updateA
Change an existing trigger: probe.params, probe.interval, probe.timeout, probe.access, probe.permissions, for, policy, action, target (kind, cwd), notify, name or intent. The change takes effect at once and the firing rules start over. To change the probe code or the mode, use trigger_draft with replace=true instead.
Inputs: changes (required), trigger_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools target a distinct action on the trigger resource, and the descriptions explicitly carve out boundaries between the risky trio trigger_draft/trigger_update/trigger_tune (code changes vs. config changes vs. de-sensitizing while handling a fire). The only residual overlap is pause-vs-tune (tune can pause) and test-vs-get (both reveal probe behavior), but the descriptions resolve these quickly.
A strong, predictable trigger_<verb> pattern runs through almost every tool (draft, activate, update, tune, list, get, test, pause, resume, delete, report). Minor deviations: trigger_recipes and trigger_history are noun-based rather than verb-based, and service_status drops the trigger_ prefix for a different resource.
Fourteen tools sit comfortably in the well-scoped range, and each maps to a real lifecycle operation rather than a redundant variant. Nothing obvious could be removed without losing a capability (drafting, activation, tuning, history, reporting).
The full trigger lifecycle is covered end to end: draft with trial run, activate, pause/resume, update, tune, delete, inspect via list/get, test, history, fire reporting, plus a recipe catalog and service health. No dead ends are apparent for the stated scheduled-probe domain.
Maintenance
Related MCP Connectors
Build agents to automate any background task. Works with your ChatGPT/Claude subscription.
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
A personal agent with lasting memory and a morning brief, inside the Claude or ChatGPT you use.
AI agent monitoring: alerts when your agents fail, stall or need you
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceLocal-first memory for your AI agent. One SQLite file you own — offline, no API key. Plugs straight into Claude Code.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceThe watchdog for unattended AI agents: flags MISSED, FAILED, NO_EVIDENCE, RETRY_STORM, BUDGET, DRIFT and STALLED runs of Claude Code routines, OpenClaw, n8n and cron jobs, and alerts via Telegram, Slack or webhook. MIT and self-hostable.MIT
- AlicenseAqualityAmaintenanceOne local memory every coding agent on your machine shares — Claude Code, Cursor, Claude Desktop, OpenCode. Answers from past sessions, commits, CLAUDE.md/AGENTS.md and ADRs with the exact source, and withholds work another agent has claimed so two agents don't rewrite the same thing.34,358 PyPI2MIT
- FlicenseNot gradedqualityAmaintenanceEnables operating a Claude Code session entirely from Telegram around the clock, with two-way voice messages, persistent memory across restarts, scheduled reminders, calendar access, and a self-restarting daemon. It also streams live progress and every tool call as Claude works, supports inline-button prompts and permission approvals, and exposes session/subagent/token visibility through a Telegram Mini App.-