The control room for working with AI agents on one Mac.
What your agent sessions cost, what waits on you, and where each product stands.
Teyla reads your Claude Code and Codex sessions on your Mac, shows what they cost and what's waiting on you, and fixes the waste. Nothing about your sessions leaves your Mac unless you turn it on. It is a command-line tool with a Mac and an iPhone app, for a person who builds products with AI agents.

teyla.dev · Set up · Packs · Guide · Commands · Privacy · Changelog · Contributing · Apache-2.0
Paste this into Claude Code or Codex:
Set up https://github.com/zaitsew/teyla
The agent reads AGENTS.md, installs Teyla and shows what your sessions cost. It then shows the packs as one checklist and asks about each change on its own, with the saving and the way back.
You need a Mac and uv. It downloads Python 3.12 (about 25 MB) if the Mac has no Python 3.11 to 3.13. Short on disk? teyla storage shows what holds it (Low on disk).
uv tool install --python 3.12 git+https://github.com/zaitsew/[email protected]
teyla start # the diagnosis, the checklist of packs, then each change: yes, no or explainTry it without installing. It changes no setting of your tools and keeps its counts in ~/.teyla:
uvx --python 3.12 --from git+https://github.com/zaitsew/[email protected] teyla startTeyla is a kit. teyla start opens with this checklist; only ticked packs turn on.
| Pack | The problem | What Teyla does | |
|---|---|---|---|
| 💸 | Token cost cost |
Long sessions re-read their whole context every turn | Compacts earlier, runs subagents on Sonnet, reading on Haiku |
| 🛡️ | Machine guard load |
Parallel agents swap the Mac until it hangs or panics | Admits one heavy build or simulator at a time; holds new ones under memory pressure |
| 🧹 | Disk cleanup disk |
DerivedData, worktrees and simulators fill the disk | Shuts down idle simulators, sweeps temp build output every hour |
| 📥 | Questions and ideas inbox |
A session ends on a question and nobody reads it | Keeps every open question and your long prompts on one screen, and which of your requests shipped |
| 📜 | One policy policy |
A correction made in Claude Code is unknown to Codex | One POLICY.md, linked into every agent |
| ☀️ | Morning check daily |
A broken hook goes unseen for weeks | A daily check and a six-line weekly digest |
| 🔐 | Security security |
A secret ends up in a commit or a public repo | Refuses a publish that carries a secret; audits repos and dependencies |
| 🎨 | UX and UI design |
Screens ship with noise and weak hierarchy | Checks UI code against one standard; judges two screens |
| 🚀 | Ship and test ship |
A build is uploaded, but no tester can install it | Tracks each platform, unreviewed merges, comments from the real app |
| ✍️ | Writing writing |
Replies and READMEs are long, padded and out of date | Measures filler, checks drafts against a voice chart, flags a README that fell behind |
The first six are automatic: they change a setting, a hook or a launchd job. The last four add commands you run on a repo and install nothing. teyla features shows which are on; teyla features on disk turns one on later. FEATURES.md lists every switch.
When a problem shows up, Teyla names the pack that solves it. The Mac hits critical memory, the disk drops under 25 GB, or teyla start prices token waste: teyla doctor and the session-start banner say so once.
teyla: new — feature:disk WARN: the disk is down to 9.1 GB free; the Disk cleanup pack is off
teyla start reads the Claude Code, Codex, Grok, Cursor and Hermes sessions already on your disk and prints a card like this one (the numbers are made up):
Last 30 days: $1,840 at API list price over 212 sessions on 24 days (claude-code $1,610, codex $230).
41% of it ($754) was re-reading and storing context; 9 sessions ran past 250k tokens of context and cost $402.
Subagents cost $390; Opus ran 64% of that.
O1 Compact long sessions earlier: about $95-$190 a month
O2 Run subagents on Sonnet unless they say otherwise: about $60-$140 a month
List price is what the tokens would cost through the API; a subscription bills differently. Context is everything a session has read so far, re-read on every turn. A subagent is a helper agent a session starts for one side task.
teyla spend --days 7shows the same numbers later;teyla spend --session <id>breaks one session down by model and by day.teyla briefputs a dollar and hour budget on a build session and stops new subagents at 80% (COMMANDS.md).teyla brief slotsshows the open sprint contracts, what each one waits at, and warns at a third (OPERATING.md).teyla webopens the same diagnosis in your browser, on 127.0.0.1 only:
teyla todayis the daily screen: the questions agents left, your notes, this week's spend against last week's, and one next step.teyla today scoreis the outcome scoreboard: posts, conversations, first value on your focus products, open decisions and builds to try (OPERATING.md).teyla digest directorwrites it into a weekly brief file with the sprint slots and the questions past 14 days, and changes nothing (OPERATING.md).teyla askslists every open question, oldest first, with a link that reopens the session.teyla answersends your answer into the session that asked.teyla asks expireis a dry run that shows which questions older than 14 days would take their default or be dropped;--applycloses them.teyla sessions tidyis the inverse: it archives only the idle sessions where nothing waits on you, dry for a week first (SESSIONS.md).teyla tg setupputs the queue in a private Telegram chat. One card shows the current question, the recommended answer first; one tap sends it. The bot runs from your Mac, with no server, and answers only your account.teyla tg activityadds a card with your GitHub and growth activity. ASKS.md has the details.teyla note "try a dark icon"keeps an idea under a product.
A product is a repo, or a few, that you ship as one thing. teyla product init proposes the list from your repos.
| Question | Command |
|---|---|
| Where does each product stand? | teyla portfolio: a health word (off track, at risk, on track, parked), the reason, and one line per platform |
| What fact is each one missing? | teyla startup: the next missing fact per product; teyla startup yc is a 15-box application sheet |
| Did the build reach a person? | teyla testflight and teyla play |
| What do testers say and do? | teyla review pulls comments made in the real app; teyla usage <product> reports what testers use, only with their consent (REVIEW.md) |
| Do the README and the store page still match the product? | teyla freshness; teyla whats-new drafts store notes from merged PRs |
| Was every merge reviewed? | teyla reviews |
teyla taste add https://example.com "great neutral design" keeps a design or text you like or dislike as evidence, so agents can learn your taste (TASTE.md). teyla watch logs listing changes. A redesign runs as a design cycle: a map of decisions, taken one at a time. Agents write a dossier before any option exists; teyla design options <product> <id> puts two or three options in teyla asks; teyla answer <id> <option> <your reason> stores the pick with your words. teyla design status <product> shows the map. CYCLE.md has the steps.
teyla gtmis the cockpit for getting users, customers and conversations: what waits for your approval, replies to answer, today's posts and approaches against your target, and this week's outcomes per goal.teyla gtm weekis the weekly review. Goals live in~/.teyla/gtm/goals.toml(teyla gtm initwrites an example). GTM.md has the contract.teyla growthis the content factory. It finds ideas in what you shipped, plans daily slots and drafts posts.teyla growth publishposts only what you approved, to networks you connected.teyla growth activitygraphs your posts, comments, emails and meetings.teyla growth resultrecords what a post brought. GROWTH.md has the detail.
teyla policy sync hands one POLICY.md to Claude Code, Codex, Grok, Cursor and Hermes. teyla harness sync adds hooks to them: small scripts an agent runs at set moments, such as session start. teyla routine install schedules the daily and weekly checks. teyla mcp serves six tools (open questions, answer, your own words for a product, machine load, routines, usage) to any MCP client. GUIDE has the detail.
Teyla for Mac is a window and a menu-bar icon: Today (your goals and the next step that moves them), Home, the decisions waiting on you, your products, and Growth, Money, Operations and Playbook. It runs the teyla command, so install that first, then build the app (macOS 15, Xcode):
brew install xcodegen && git clone https://github.com/zaitsew/teyla && cd teyla/apps/mac && ./install.shThe iPhone app shows what the Mac shows, and you answer a question by text or voice. It reads a signed folder in your own iCloud Drive that teyla relay on keeps current. A home-screen and Lock Screen widget draws your GitHub and growth activity. Share a link or a picture to Teyla from the iOS share sheet to add it to your taste corpus. Settings > Lab > Today screen swaps Home for decisions, the post card and builds to try (OPERATING.md). Build it from apps/ios; neither app is in the App Store. There is no Teyla server and no account. APP.md has the contract.
Teyla reads files on your Mac. It sends nothing about your sessions unless you run one of these:
| What | When | Sends |
|---|---|---|
| Update check | daily; off in safe mode | the version number, to GitHub |
teyla spend, teyla reviews, teyla state |
when you run them | repo names, PR numbers, your login, through your own gh |
teyla answer, teyla run, --model flags |
only when you ask | text, to your model provider under your own login |
teyla relay on |
off by default | open questions and session titles, to your iCloud Drive |
teyla tg setup |
off by default | the current open question and its options, to Telegram |
teyla growth publish |
only after teyla growth connect and your approval of the post |
the approved post, to that network |
teyla web listens on 127.0.0.1 only. Safe mode, teyla config set safe.enabled=true, closes most of these calls. Every call, with its host: docs/PRIVACY.md.
teyla changes # every change Teyla made, and whether it is undone
teyla undo O1 # put back only the setting Teyla wrote (O1 to O4)
teyla features off load # a pack's switches off, its O1 to O4 changes undone
teyla uninstall --dry # list what Teyla would remove: links, hooks, jobs
teyla uninstall && uv tool uninstall teyla