pickuma.
AI & Dev Tools

Claude Code Routines: Should Workflow Automation Join Your Daily Loop?

Claude Code Routines, a tool for automating repeatable coding workflows, drew 686 points on Hacker News. Here's what a 'routine' actually is, how it fits the agentic dev-tools landscape, and how to decide if it belongs in your workflow.

6 min read

A Hacker News post for a project called Claude Code Routines climbed to 686 points — the kind of number that usually means the title hit a nerve, not that everyone read the README. The nerve is familiar. Most developers run the same handful of multi-step tasks over and over: bumping dependencies, drafting release notes, triaging a flaky test, prepping a PR description. An agent that can sort of do each of those still has to be re-explained from scratch every single time. Routines are a bet that the re-explaining is the real cost, and that the fix is packaging the workflow once.

We didn’t run a multi-week trial, so treat what follows as a map of the idea and a checklist for evaluating it — not a benchmark. The questions below are the ones we’d want answered before wiring any routine tool into a real repository.

What a “routine” actually is

A routine is a saved, repeatable workflow: a named sequence of steps you hand to the agent so it runs the same way each time instead of improvising from a cold prompt. The unit is the point. A one-line slash command saves keystrokes; a routine saves a decision tree — which files to touch first, what to check before moving on, when to stop and ask you.

Claude Code already ships the primitives this builds on. Custom slash commands store a prompt under a name. Hooks fire shell commands before or after tool calls. Headless mode (claude -p) runs the agent non-interactively, so it can sit inside a script or a CI job. Subagents let one run hand a scoped task to another. A routine, in the sense this project pushes, is the layer that stitches those into a single durable artifact you can version, share, and trigger — instead of a workflow that lives in your head and degrades a little every time you retype it.

Hold onto that distinction, because it is also the thing to stay skeptical about.

Where it fits in the agentic dev-tools landscape

The agentic coding space has spent the past year moving from “autocomplete that finishes your line” to “an agent that finishes your task.” Cursor put the agent inside the editor. Terminal agents like Claude Code put it next to your shell. The next axis of competition is repeatability: not just whether the agent can do the task, but whether it does it the same way on Tuesday that it did on Monday, with you out of the loop.

Routines land squarely on that axis. They are less a new capability than a packaging decision — and packaging is where both real value and quiet lock-in tend to hide. A routine you can read, diff, and check into the repo is an asset your team shares. A routine that is an opaque blob tied to one vendor’s runtime is a liability dressed as convenience. Ask which one you are getting before you depend on it.

The honest failure mode for any automate-your-repetitive-work tool is that it rewards you for skipping the step where you would have caught the workflow being wrong. A dependency-bump routine that quietly merges a breaking change is worse than no routine, because it ran while you weren’t watching. The teams getting value here are the ones automating workflows that already have a verification step built in: tests that must pass, a diff a human signs off on, a dry-run mode.

Whether it earns a slot in your daily loop

Use a short rubric. A workflow is a good routine candidate when it is repetitive enough to matter — you run it weekly or more — deterministic enough that “correct” is checkable rather than a matter of taste, and bounded enough to have a clear stopping point and a verification gate. Release-note drafts, changelog assembly, issue triage, and dependency reviews tend to qualify. “Design the feature” does not.

The cost side of the rubric matters too. A routine has to be maintained: when the codebase shifts, a stale routine fails in ways a fresh prompt would not. If a workflow changes shape every month, the routine is overhead rather than leverage. Automate the stable middle of your work, not its moving edges.

If most of your repetitive work happens inside an editor rather than a terminal, the terminal-first framing of Claude Code routines may not be the closest fit. An editor-native agent loop can be lower-friction when the work lives in files and diffs.

Cursor

An AI-native code editor with an agent loop built into the editing surface — a closer fit when your repetitive work lives in files and diffs rather than terminal commands.

Free Hobby tier; Pro $20/mo

Try Cursor

Affiliate link · We earn a commission at no cost to you.

The 686-point thread is a signal that the problem is real, not a verdict that this one tool solves it. Treat routines as a discipline first and a product second: write down a single workflow you repeat, give it explicit checks, and run it that way for a week. If the written-down version beats the in-your-head version — and it usually does — then the tooling that stores and triggers it is a small, swappable detail.

FAQ

Is Claude Code Routines an official Anthropic product? +
The project that trended on Hacker News is built around Claude Code, Anthropic's terminal coding agent, but a community project and a first-party feature are not the same thing. Check the repository and its license before you depend on it. The underlying primitives — slash commands, hooks, and headless mode — are part of Claude Code itself either way.
How is a routine different from a shell script? +
A shell script runs fixed commands in a fixed order. A routine runs an agent that interprets each step, reads the output, and adapts — which makes it both more capable and less predictable. That trade-off is the whole point: reach for a script when the steps never change, and a routine when judgment is needed along the way.
What is the safest first workflow to automate? +
One with a built-in verification gate — a task whose output is checked by tests or a human before it lands. Dependency updates behind a passing CI run, or release-note drafts that a person approves, both fail safely. Avoid starting with anything that writes directly to production.

Related reading

See all AI & Dev Tools articles →

Get the best tools, weekly

One email every Friday. No spam, unsubscribe anytime.