Set up routines

Recurring agent work, like a morning inbox run or a weekly review, and where the schedule lives when Treehouse doesn't run agents itself.

Some of the most useful agent work is routine: filing the inbox every morning, drafting a weekly summary, checking which specs haven't been touched in a month. Treehouse is where that work lands, but it doesn't run agents or keep a schedule. The routine lives wherever your agent runs; the workspace gives it the rules and a place to write.

Write the routine down first

Put each routine's instructions in the workspace, not in the scheduler. Then the scheduled command stays one line, and anyone can read or improve what the routine does.

Routines/weekly-review.md
---
title: Weekly review
---

Every Friday afternoon:

1. Read every project README in Projects/.
2. Write Reviews/YYYY-MM-DD-weekly.md with `date:` set to today, covering:
   what moved this week, what's blocked, and anything overdue in "Next".
3. List any project README not updated in 14 days as "Needs attention".
4. Don't change the project files themselves.

The scheduled prompt is then just: "Run the routine in Routines/weekly-review.md."

Choose where it runs

On your computer, with Claude Code and cron

If the workspace is synced to your Mac, a cron job can run Claude Code in the folder without you there. claude -p runs a single prompt non-interactively, and --permission-mode acceptEdits lets it create, edit and move files without asking:

terminal
# crontab -e: file the inbox at 8am on weekdays
0 8 * * 1-5 cd ~/Treehouse/Acme && claude -p "Process everything in Inbox/ following the rules in Inbox/README.md." --permission-mode acceptEdits >> ~/Library/Logs/treehouse-inbox.log 2>&1

Your computer needs to be awake. Changes sync to the workspace as soon as they're written, and show up in Activity as yours.

On a server, with the sync CLI

For routines that shouldn't depend on your laptop, run the sync CLI on a small server (Linux arm64 or macOS) to keep a copy of the workspace there, and schedule your agent against that folder the same way. Approve the server with its own device so you can revoke it separately.

In the cloud, over MCP

A hosted or cloud agent that supports remote MCP servers can do the same work over the Treehouse MCP server, with its own API key. Its changes are labelled with the key's name, which makes routine work easy to spot in the activity feed.

A reminder

Automation you don't need is still worth skipping. A weekly calendar reminder to ask your agent "Run the weekly review" is a fine first version, and tells you whether the routine is worth automating.

Routines worth having

RoutineWhat it does
Inbox runFiles everything in Inbox/ by the rules in Inbox/README.md. See run an inbox.
Weekly reviewSummarises what moved across projects and flags what's stalled.
Meeting follow-upTurns the day's notes in Meetings/ into actions on the relevant project pages.
Content calendarDrafts next week's posts in a calendar folder, each dated for its publish day, ready for review.
Stale-page checkLists READMEs and specs not updated in a month, so someone can confirm they're still true.
Comment sweepWorks through open review comments on files marked status: review.

Plan with a calendar folder

For anything with a date, like a content plan, a release schedule or a series of client check-ins, make a folder that opens as a calendar. Put view: calendar in its README, and have the agent give each file a date::

Content/2026-10-06-pricing-announcement.md
---
title: Pricing announcement
date: 2026-10-06
status: draft
---

The web app shows the month at a glance. Drag a post to another day to reschedule it, and its date: is rewritten for you.

React to changes instead of a clock

If you're comfortable with a little code, you can trigger an agent when something changes rather than at fixed times: watch the workspace's change feed for new files in Inbox/, and run your agent when one appears. Treehouse doesn't send webhooks, so the watcher polls; every couple of seconds is fine.

  • Run an inbox your agent files

    Drop anything into Inbox/ without deciding where it goes, and have an agent file it by rules you write once.

  • Sync a folder with the CLI

    Install the treehouse command-line tool to sync a folder on Windows, Linux, a server or any machine where the desktop app doesn't run.

  • Change feed

    Read every change to a workspace in order with a cursor, so a script or agent can react to new and edited files.

Last updated