Describe the condition
Your agent writes a small TypeScript probe for a file, command, local service or API, and tries it before activation.
Local event triggers for coding agents
Tell your agent what to watch and what to do next—whether CI fails, a GPU frees up, a service goes down or NVDA crosses $235. Local code checks while your terminal is closed, and brings the follow-up back to your conversation.
Claude Code · Codex · Antigravity · OpenCode · ZCode
Zero model calls while waiting · Runs while terminal is closed (launchd / systemd) · macOS and Linux
Why Self-Starter
In-session loops call the model on every check and die when you close the terminal. Cloud schedules cannot see your machine or resume your local thread. Self-Starter puts plain code in the middle and the model at both ends.
| Approach | Tokens while waiting | Survives closing terminal? | Sees local files, GPUs & LAN? | Continues in your conversation? |
|---|---|---|---|---|
In-session polling (/loop, thread timers) |
Calls the model on every check | No — stops with the session | 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 | No — opens separate cloud runs |
| Self-Starter | Zero during routine probe checks | Yes (launchd / systemd service) |
Yes (logs, nvidia-smi, CLIs, APIs) |
Yes in Codex & Claude Code; dedicated CLI session in Antigravity, OpenCode & ZCode |
Get started
Choose the integration for your workflow. They share the same local trigger engine; installation and result delivery depend on the agent.
macOS or Linux · Node.js 20+ · Codex app or CLI
codex plugin marketplace add hyprh/self-starter
codex plugin add self-starter@self-starterRestart the Codex app or start a new CLI session. The first start installs the runtime and background service; allow a minute or two.
macOS or Linux · Node.js 20+ · Claude Code 2.1.224+
claude plugin marketplace add hyprh/self-starter
claude plugin install self-starter@self-starterStart a new Claude Code session. The first start installs the runtime and background service; allow a minute or two.
macOS or Linux · Node.js 20+ · Antigravity CLI (agy)
npx self-starter install
~/.self-starter/bin/self-starter doctorInstalls the native agy-plugin (MCP server, trigger skill, and PreToolUse sandbox guard) plus the local background service (pass --agy /path/to/agy if agy is not on PATH, or install globally with npm install -g self-starter). Start a new Antigravity conversation afterward.
Pair with agy remote-control on your workstation to inspect or continue triggered sessions from your phone while zero-token local probes stay alive. Antigravity plugin guide →
agy --conversation <id> session guarded by action.sandbox.macOS or Linux · Node.js 24.14+ · Configured and authenticated ZCode CLI
npx self-starter install --zcode /absolute/path/to/zcode
~/.self-starter/bin/self-starter doctorOmit --zcode if zcode is already on PATH; pass the actual ZCode CLI path rather than the desktop app launcher. Start a new ZCode session after installation.
macOS or Linux · Node.js 20+ · OpenCode 1.x, version 1.19.3 or newer
npx self-starter install
~/.self-starter/bin/self-starter doctorUse a CLI with working model access (pass --opencode /path/to/opencode if not on PATH). Start a new OpenCode session afterward. The installer adds a native plugin loader and preserves your configuration.
How it works
Your agent writes a small TypeScript probe for a file, command, local service or API, and tries it before activation.
A background service runs the probe, with no model calls during scheduled checks. The engine handles deduplication, cooldowns and expiry.
When the condition is met, Self-Starter hands your task to the agent or sends a notification. Triage receipts in self-starter ui, or route alerts per watch to desktop, Feishu, Slack, Discord, Telegram, Bark, ntfy, webhooks or email.
What to watch
The probe checks the condition. The agent handles the investigation or follow-up with the tools and permissions you provide.
“When this training run finishes, compare its results with the previous run.”
Watch a local log or result file, then ask for a useful comparison.
Try a local watch →“When a new CI failure appears, find the cause and report it here.”
Watch GitHub Actions with gh. The investigation needs GitHub access too.
Follow the CI example →“When a new error shows up in logs/app.log, trace it to the code.”
Read a log file, then hand the matching stack trace to your agent.
Explore the guide →Ready-made recipes ship for GitHub PRs & CI, local log errors, HTTP health checks, Futu news and IBKR account activity—or let your agent write a custom probe for anything else.
A recorded stock watch
“Tell me when analysts change their rating or price target on Tencent or NVIDIA, and what the community thinks.”
12:21:47 1 item(s) from the last 48 h on Futu (Tencent 1, NVDA 0) “Morgan Stanley: Maintains "Overweight" rating on Tencent (00700) with a target price of HKD 550…” counts as seen; the next report fires
Probe output recorded on October 13, 2026, UTC. This first check establishes the baseline. When a new report arrives, the agent can use Futu's research and community tools to summarize what changed. Start with the futu-news recipe.
SELF-STARTER / DESKTOP NOTIFICATION
AMD down 4.31%.Investigation ready in Codex.
Edited replay of a real Codex + Futu watch. The interface and notification are illustrated; quotes are historical. This demo shows the Codex integration.
agy installation, PreToolUse sandbox guard and agy remote-control synergy.