Self-Starter

Local event triggers for coding agents

Ask once.
Act when it happens.

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

NVDA / A WATCH IN ACTIONExample conversation
You · Jul 13

Watch NVDA. If it moves 6% from the previous close or reaches $235, investigate and tell me what changed.

Historical daily candles, Jul 13–Oct 9, 2026, from Yahoo Finance. The conversation and checks are illustrative; the markers show a large move and the first crossing of $235.
Your agent · Aug 27

NVDA opened 6.3% higher at $222.86. I'll investigate the move and report what changed.

Your agent · Oct 2

NVDA opened at $236.06, above your $235 line. I'll check the latest context and send you an update.

PR #128 / BACKGROUND CI WATCHOriginal session resumed
You · 14:10 · then closed terminal

Keep watching PR #128. When CI fails on a new commit or review comments arrive, read the logs and continue in this conversation.

Illustrative GitHub Actions watch (walkthrough). Plain code polls and deduplicates run attempts; the model runs only when a new failure hits.
Claude Code / Codex · 14:41 · back in your thread

Run #4918 failed on e4a91c2 in session-process.test.ts: an inherited pipe stayed open after timeout. I traced it to session-process.ts:142 and drafted a fix.

Why Self-Starter

Stop burning quota on polling—or losing local context.

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

One engine. Your choice of agent.

Choose the integration for your workflow. They share the same local trigger engine; installation and result delivery depend on the agent.

Install for Codex

macOS or Linux · Node.js 20+ · Codex app or CLI

codex plugin marketplace add hyprh/self-starter
codex plugin add self-starter@self-starter

Restart the Codex app or start a new CLI session. The first start installs the runtime and background service; allow a minute or two.

Results in your conversationUse the original thread or a dedicated one. Self-Starter can resume a closed thread in the background. Delivery details →

Install for Claude Code

macOS or Linux · Node.js 20+ · Claude Code 2.1.224+

claude plugin marketplace add hyprh/self-starter
claude plugin install self-starter@self-starter

Start a new Claude Code session. The first start installs the runtime and background service; allow a minute or two.

Results in your sessionA fire waits until the current turn finishes. When the session is closed, Self-Starter can resume it in the background. Delivery details →

Install for Google Antigravity

macOS or Linux · Node.js 20+ · Antigravity CLI (agy)

npx self-starter install
~/.self-starter/bin/self-starter doctor

Installs 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 →

Results in dedicated CLI conversationsEach watch owns a dedicated agy --conversation <id> session guarded by action.sandbox.

Install for ZCode

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 doctor

Omit --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.

ZCode plugin guide →

Results in dedicated CLI sessionsEach agent watch uses a dedicated result session. Read results with Self-Starter history or the trigger tools. The original ZCode desktop conversation is not resumed.

Install for OpenCode

macOS or Linux · Node.js 20+ · OpenCode 1.x, version 1.19.3 or newer

npx self-starter install
~/.self-starter/bin/self-starter doctor

Use 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.

OpenCode plugin guide →

Results in a dedicated sessionEach watch reuses its result session, including when the UI is closed. Use Self-Starter history to find it. Events do not run in the conversation where you created the watch.

How it works

Code keeps watch. Your agent does the work.

01 / DEFINE

Describe the condition

Your agent writes a small TypeScript probe for a file, command, local service or API, and tries it before activation.

02 / WAIT

Let local code check

A background service runs the probe, with no model calls during scheduled checks. The engine handles deduplication, cooldowns and expiry.

03 / ACT

Get the next step done

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

Start with a task you already wait for.

The probe checks the condition. The agent handles the investigation or follow-up with the tools and permissions you provide.

A long job finishes

“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 →

CI fails on main

“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 →

A new error appears

“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

When analysts change their view

“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.

Watch a Codex + Futu notification example
Illustrated Codex and Futu watch: an AMD move triggers an investigation and a desktop notification.

Edited replay of a real Codex + Futu watch. The interface and notification are illustrated; quotes are historical. This demo shows the Codex integration.

Download GIF

Good to know

  • Keep the machine awake and connected. The service can keep checking when the agent app is closed.
  • Probes run with your permissions by default. A network-only sandbox is available for API probes.
  • Creating a watch and handling an event can call a model. Scheduled probe checks do not.
  • Agent actions use the host's permission rules. Background work cannot obtain interactive approval.
  • Conditions must be checkable in code. Windows and model-judged conditions are not supported yet.

Go a little deeper

User guide →Results, permissions, notifications, recipes and commands.
Antigravity native plugin →agy installation, PreToolUse sandbox guard and agy remote-control synergy.
ZCode plugin guide →CLI installation, dedicated result sessions and permission modes.
OpenCode plugin guide →Native plugin setup, background result sessions and tool permissions.
Design and verification notes →How delivery works, CLI test coverage and remaining desktop checks.
Questions or feedback →Share your setup, what you watched and what happened.