Hooke packages scheduled and file-triggered coding-agent tasks in a project config
state: expiredheat: lowuncertainty: mediumrelevance: mediumagent-automation scheduled-agents durable-executionaditya-azad
What is this?
Hooke is an early-stage, MIT-licensed project by Aditya Azad that uses a systemd daemon to trigger configured coding-agent tasks on schedules or file changes. Projects define automations in a hooke.toml file, including prompts, agent and model choices, optional persisted sessions, and explicit MCP-server allowlists. It records run status and event streams. The README says it requires Python 3.14+ and supports pi, Claude, and Codex backends; it also describes some features as roadmap items, including PyPI publication and boot-time catch-up for watched files.
Why it matters
Hooke addresses a practical gap in coding-agent workflows: scheduling and file-change triggers are paired with project-specific prompts, agent/model selection, MCP allowlists, and run records. It may be useful to developers who want recurring or event-driven agent chores without building their own scheduler and glue. The broader idea is relevant, but the evidence describes a new individual project, not adoption or demonstrated reliability; Python 3.14+ and a systemd-based setup also limit who can use it today.
Current assessment
The project README and its creator’s Hacker News post describe Hooke as an MIT-licensed, systemd-based automation tool configured per project in hooke.toml. It can trigger supported coding agents periodically or when watched files change, with per-task prompts, optional agent/model overrides, explicit MCP-server allowlists, timeouts, concurrency settings, and run logs. The README names pi, Claude, and Codex backends and requires Python 3.14+. Its claimed practical distinction is combining scheduling and file watching with agent context and tools; it is not evidence of a new model or durable-execution guarantee. The project is early-stage: PyPI publication, boot-time catch-up for watched files, manual one-off runs, and notification hooks are listed as roadmap items. No independent evaluation, adoption data, security audit, or user feedback is supplied. For interested developers, it could reduce custom automation glue, but assess permissions, agent behavior, missed-trigger handling, and operational fit before relying on it for unattended work.
Measured heat
no measured readings yet — the hourly heat pass fills this in
How the heat travelled
Evidence (2) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | Hooke – Run agents on schedule or file changes with just one fileRetrieved article excerptOpen article · Retrieved 2026-10-25T20:27:20.146571+00:00 # Hooke
[License: MIT](https://github.com/aditya-azad/hooke/blob/main/LICENSE)
[Python 3.14+](https://github.com/aditya-azad/hooke/blob/main/pyproject.toml)
[Code style: ruff](https://github.com/astral-sh/ruff)
Agentic workflow automator: a systemd daemon that watches files and schedules periodic tasks, running each automation through your agent with its available MCP servers.
Table of contents
- [Why](https://github.com/aditya-azad/hooke#why)
- [Install](https://github.com/aditya-azad/hooke#install)
- [Quick start](https://github.com/aditya-azad/hooke#quick-start)
- [Deploy and manage](https://github.com/aditya-azad/hooke#deploy-and-manage)
- [Troubleshooting](https://github.com/aditya-azad/hooke#troubleshooting)
- [Support](https://github.com/aditya-azad/hooke#support)
- [Roadmap](https://github.com/aditya-azad/hooke#roadmap)
- [Contributing](https://github.com/aditya-azad/hooke#contributing)
- [License](https://github.com/aditya-azad/hooke#license)
- [Development](https://github.com/aditya-azad/hooke#development)
## Why
Every project accumulates chores that an agent could do if it just knew when to start: "run the tests whenever `src/` changes", "summarize new notes every morning", "check dependencies daily". Cron handles *when* but not *what* — it has no model, no tools, no context. Hooke gives you the cron half for free (systemd, already running) and hands each trigger to a real agent session with your project's context and your configured MCP servers.
## Install
Requires Python 3.14+ and [pi](https://github.com/earendil-works/pi) or other supported agents on PATH.
1. Install the CLI/daemon onto PATH
```
uv tool install /path/to/hooke # or: uv tool install hooke (once published)
```
2. Install + start the systemd daemon (templated per user, starts at boot)
```
hooke install
hooke install --user # user unit + loginctl enable-linger
```
Check it's alive — you should see the version and a pid:
```
$ systemctl status hooke@$USER
```
```
$ hooke status
```
## Quick start
In any project directory:
```
cd ~/code/my-webapp
hooke init # writes a commented hooke.toml
```
Edit `hooke.toml`:
```
[project]
name = "my-webapp" # unique id, collisions rejected at deploy
schema = 1
[automation.deps-review]
prompt = "Check package manifests for outdated or vulnerable dependencies and summarize findings in DEPENDENCIES.md"
agent = "pi" # which agent runs this automation (default: pi)
model = "claude-opus-4-5" # optional per-automation model override
mcp_servers = ["papers"] # explicit allowlist — least privilege
schedule = { every = "6h" }
resume_on_restart = false
continuity = true # reuse the persisted pi session between runs
[automation.test-on-change]
prompt = "Source files changed. Run the test suite and fix any failures you introduced."
watch = { paths = ["src/**", "tests/**"], ignore = ["**/.git/**", "**/node_modules/**"], debounce = "2s" }
resume_on_restart = true
```
Per-automation fields:
| Field | Default | Meaning |
| --- | --- | --- |
| `prompt` | required | The agent's task. Trigger context (changed files, resume note) is appended automatically. |
| `agent` | `"pi"` | Which registered agent backend runs this automation (see `hooke.agents`; `pi`, `claude`, `codex`). |
| `mcp_servers` | `[]` | MCP servers this automation may use; validated against the agent's own MCP config at deploy (`~/.pi/agent/mcp.json`, `~/.claude.json`, or `~/.codex/config.toml`). |
| `schedule` | — | `{ every = "6h" }` — durations like `90s`, `5m`, `6h`, `1d`. |
| `watch` | — | `{ paths = [...], ignore = [...], debounce = "2s" }` — globs relative to the project root. |
| `resume_on_restart` | `false` | Re-run automatically after a daemon restart interrupted it. |
| `continuity` | `false` | Persist the agent session and reuse it for later runs of this automation. |
| `model` / `thinking` | agent defaults | Per-run overrides passed to the agent (`thinking`: off…max). |
| `timeout` | `30m` | Kill the agent process tree after this long. |
| `concurrency` | `1` | Skip-if-running: overlapping triggers are dropped, never queued. |
Ready-made configurations live in [`examples/`](https://github.com/aditya-azad/hooke/blob/main/examples/README.md) — copy one in as `hooke.toml` and deploy.
## Deploy and manage
```
hooke deploy # in the project dir (or: hooke deploy ~/code/my-webapp)
hooke status # what's armed, next due times, recent runs
hooke logs -n 20 # run history
hooke logs --run <id> # one run's full record + its pi event stream
hooke disable my-webapp # kept in the registry, inert
hooke enable my-webapp
hooke remove my-webapp # gone from the registry
```
`deploy` is the only way the daemon's registry changes. It validates fully first — TOML, schema version, glob sanity, MCP server existence, project trust — so mistakes fail loudly now instead of silently at 3am. An identical redeploy is a no-op ("up to date, nothing to do"); a changed one swaps atomically without resetting unchanged automations' timers.
## Troubleshooting
```
journalctl --user -u hooke -f # --user install
sudo journalctl -u hooke@$USER -f # system install
```
- `hooke status` says "cannot reach hooke daemon" → the unit isn't running; check `systemctl status hooke@$USER` and the journal above.
- A run shows `failed` → read its event stream: `hooke logs --run <id>`.
- A run shows `timed_out` → raise `timeout` in `hooke.toml` and redeploy.
- Config errors at deploy quote the exact `hooke.toml` problem; fix and redeploy.
## Support
- **Bugs and questions:** [open an issue](https://github.com/aditya-azad/hooke/issues) — include your `hooke.toml` fragment, the daemon version, and the run's output from `hooke logs --run <id>` (redact anything private).
## Roadmap
- Publish to PyPI (`uv tool install hooke`)
- Boot-time catch-up scan of watched globs (currently fires only on the next change)
- `hooke run` — trigger an automation once, on demand
- Per-automation notification hooks (e.g. notify on `failed`/`timed_out`)
## Contributing
PRs are welcome! See [CONTRIBUTING.md](https://github.com/aditya-azad/hooke/blob/main/CONTRIBUTING.md) for setup, the test/lint/type commands CI runs, and how to submit changes.
## License
[MIT](https://github.com/aditya-azad/hooke/blob/main/LICENSE) — see the [LICENSE](https://github.com/aditya-azad/hooke/blob/main/LICENSE) file.
## Development
```
uv sync
uv run pytest tests -q
uv run ruff check src tests && uv run pyrefly check src tests
uv run hooke daemon # run the daemon in the foreground
``` | styxnstones | 2 | 1 |
| 🟧 echo.github ⭐ | This repository is the origin. Its README describes Hooke as “an agentic workflow automator” and says it runs agents periodically or on file | Aditya Azad | — | — |
Interpretation history
2026-10-25T22:24:36Z
audience grounding: medium — Hooke addresses a practical gap in coding-agent workflows: scheduling and file-change triggers are paired with project-specific prompts, agent/model selection, MCP allowlists, and run records. It may be useful to developers who want recurring or event-driven agent chores without building their own scheduler and glue. The broader idea is relevant, but the evidence describes a new individual project, not adoption or demonstrated reliability; Python 3.14+ and a systemd-based setup also limit who can use it today.
Decision trace
- 11-09 08:20expireexpired deterministically: single-evidence seed quiet 14 days (lifecycle)
- 10-28 04:37review_screenjev screen: no material development (noul=0.16)
- 10-26 09:24groundHooke addresses a practical gap in coding-agent workflows: scheduling and file-change triggers are paired with project-specific prompts, agent/model selection, MCP allowlists, and run records. It may
- 10-26 07:28attention_candidatecreate
- 10-26 07:28promote_anchororigin walk conf 0.95
- 10-26 07:27createThe release describes a concrete unattended-agent workflow with explicit configuration and execution controls, though it remains an early project with no adoption evidence.