Make your AI agent autonomous.

trigr wakes your AI agent on schedules, events, and messages — so it works while you're away.

$ pip install trigr
View on GitHub
~/project

Your agent is capable.
It's just unreachable.

AI coding agents are powerful — but they only act when you type a prompt. You are the bottleneck.

Without trigr

You are the only input

The agent sits idle until you open a terminal and type something. Everything waits on you.

  • Deploy breaks at 3am — nobody notices until morning
  • New issues pile up untriaged
  • Routine tasks need manual prompting every time
  • You're away from the keyboard — nothing happens
With trigr

The agent responds to the world

trigr connects your agent to external events. It sleeps, wakes, acts, and goes back to sleep.

  • Deploy fails — agent reads logs and opens a fix PR
  • New issue — agent triages it immediately
  • Cron fires at 9am — daily standup runs itself
  • You send a message from your phone — agent handles it

Messages. Schedules. Pollers.

Three ways to wake your agent — covering everything from ad-hoc tasks to automated monitoring.

Messages

Send tasks from anywhere — another terminal, a script, a webhook. Like texting a coworker who knows your entire codebase.

$ trigr emit "Triage the new issue"

Schedules

Cron jobs that wake the agent. Daily summaries, weekly reports, maintenance — all on autopilot.

$ trigr add standup --cron "0 9 * * *"
  -m "Run the daily standup"

Pollers

Watch for changes at intervals. New email, deploy failure, GitHub issue — agent wakes up and handles it.

$ trigr add inbox --interval 300
  -c "./check_email.sh"

Real scenarios, real value.

trigr turns your agent from a tool you use into a teammate that acts on its own.

01

Fire and forget from anywhere

On the train, phone in hand. Fire off trigr emit, agent handles the task before you arrive at the office.

02

Daily email digest at 9am

Agent checks your inbox every morning, summarizes what needs attention, and drafts responses for anything urgent.

03

3am deploy failure

Poller detects the failed deployment. Agent reads logs, identifies the regression, and opens a fix PR — all before you wake up.

04

Auto-triage GitHub issues

New issue comes in. Agent reads the report, searches the codebase, and drafts a response with a proposed fix.

05

Weekly status report

Every Friday at 5pm, agent compiles a report from the week's commits, issues, and PRs. Ready in your inbox by EOD.

Three commands. That's it.

From zero to autonomous agent in under a minute.

1

Start watching

The agent blocks until an event arrives. It has full codebase context.

# in your agent session
$ uvx trigr watch
2

Send a task

From another terminal, a script, or anywhere with HTTP access.

# from another terminal
$ uvx trigr emit "Fix the
  login bug"
3

Install for more

Add schedules, pollers, and more with the full CLI.

# for the full toolset
$ pip install trigr

Commands

Everything you need, nothing you don't.

CommandDescription
trigr watchBlock until a message arrives, print it, then exit. Long-polling with configurable timeout.
trigr emit <msg>Send a message to the agent. Supports delayed delivery with --delay.
trigr add <name>Add a poller (--interval) or cron job (--cron) to trigr.toml.
trigr remove <name>Remove a poller or cron job from trigr.toml.
trigr statusShow server status: queue depth, active pollers, scheduled crons.
trigr initCreate a trigr.toml config in the current directory.
trigr serveStart the event server. Detached by default, -f for foreground.

Works with your agent.

trigr integrates with the leading AI coding CLIs.

Claude Code
background task

Runs as a background task. You can chat with the agent while it waits for events.

Codex CLI
blocking

Blocks the session until an event arrives. Dedicated terminal recommended.

Gemini CLI
blocking

Blocks the session until an event arrives. Dedicated terminal recommended.