Overview
One monorepo, many feature checkouts, each running the whole stack on its own hostnames and databases.
Claude Code can write three features at once. A laptop runs one copy of a multi-service app. Start a second and the ports collide, both copies write to the same dev database, and signing in on one tab signs you out of the other.
AspenX runs your Docker Compose monorepo once per feature. Each feature gets its own folder, compose project and databases cloned from templates. It also gets its own *.localhost hostnames behind HTTPS and its own Claude Code session. That session’s file-editing tools are denied in every project the feature doesn’t touch.
How a feature is laid out
~/aspenx/acme-shop/features/invoice-pdf/ the feature root: a worktree of the monorepo on feature/invoice-pdf
api/ touched: a git worktree on feature/invoice-pdf, hot reload
web/ touched: a git worktree on feature/invoice-pdf, hot reload
worker/ referenced: pinned to the base commit, runs from a prebuilt image
admin/ referenced: pinned to the base commit, runs from a prebuilt image
CLAUDE.local.md imports .aspenx/FEATURE.md into the session
.aspenx/
FEATURE.md what the Claude session reads first
feature.json the feature record
goal.md the goal, kept for re-rendering FEATURE.md
compose.feature.yml the generated compose override
env compose interpolation variables
qa/checklist.md what `aspenx qa` checks
qa/<run>.md QA reports
qa/<run>/ the run's screenshots, server.log and report.json
.claude/settings.local.json hooks and the deny rules for referenced paths
.mcp.json the scoped `aspenx mcp` server
Feature folders live under features_root, which defaults to ~/aspenx/<owner>-<repo>/features. A touched project is one the feature changes. It runs in dev mode from a worktree. A referenced project runs from an image of its pinned source, which is a commit, or a tree id in the directories layout. AspenX builds that image once, and every feature that pins the same source shares it. aspenx touch turns a referenced project into a touched one at any time.
Each feature takes a slot, and the slot fixes its resources up front, so a feature’s addresses never change while it exists. Slots run from 1 to 9, so one Mac runs up to nine features.
| Resource | Rule | Slot 2, feature invoice-pdf |
|---|---|---|
| Compose project | aspenx-<feature> |
aspenx-invoice-pdf |
| Host ports | 4000 + slot × 100 + port_offset, for public projects; offset 99 is the feature’s Mailpit |
4200 to 4299 |
| Hostnames | <project>.<feature>.<local_domain>, HTTPS through Caddy’s local CA |
api.invoice-pdf.aspenx.localhost |
| Databases | cloned per feature from a template | app_invoice_pdf |
| Redis | one shared container, four indexes per slot | indexes 8 to 11 |
| a Mailpit per feature | mail.invoice-pdf.aspenx.localhost |
|
| Public hostname | a named Cloudflare tunnel, only when asked; the label is the feature’s id when signed in to a team, else its name | k7f3q-api.aspenx.dev |
| Review app | the whole feature public for a bounded window, one tunnel, then back to local | k7f3q-web.aspenx.dev for 90 minutes |
Quick start
curl -fsSL https://aspenx.dev/install.sh | sh # or: brew install aspenxdotdev/aspenx/aspenx
aspenx init --monorepo ~/code/platform # prerequisites, shared Postgres/Redis/Caddy, CA, daemon
aspenx template rebuild # the template databases features clone
aspenx new invoice-pdf --touch api,web --prompt "Render invoices as PDF"
The desktop app’s setup wizard does the same as init. It picks the folder, drafts aspenx.yml when there is none, and runs the same steps.
new creates the worktrees and generates the compose override. It builds the main images it needs, clones the databases, adds the Caddy routes and starts the feature. It waits until every public project and the feature’s Mailpit answer, then opens a terminal tab running Claude Code at the feature root. --no-claude skips the tab. After that:
aspenx ls # every feature: slot, touched, dirty, ahead, run state, agent, QA, PRs, base, borrowed-from
aspenx open invoice-pdf # the feature in your browser
aspenx qa invoice-pdf # a read-only Claude session with Playwright works the checklist
aspenx pr invoice-pdf # submodules: one PR per touched project plus the gitlink bump PR; directories: one PR
aspenx drop invoice-pdf # containers, databases, routes, worktrees, tunnels and merged branches
The desktop app shows the same state live and runs the same commands. The app covers each screen, and Guides shows the app and the terminal side by side.

Teams and the control plane
An install on its own shares review apps through your own Cloudflare zone. You set public_domain in aspenx.yml and put an API token in ~/.aspenx/config.yml or CLOUDFLARE_API_TOKEN. Review apps on your own zone have no sign-in gate.
A team signs in instead. aspenx login signs you in with GitHub on the control plane at api.aspenx.dev. The control plane holds the one Cloudflare credential and does three jobs:
- It gives every feature a short id, as in
k7f3q-web.aspenx.dev, so two people’sdedupefeatures never collide. - It ends tunnels whose window has passed, even while the Mac is asleep.
- It puts a sign-in gate in front of every review app. Cloudflare Access uses the control plane as its identity provider, lets members of the organization through and refuses everyone else.
A signed-in monorepo sets public_domain: aspenx.dev, because the control plane only serves <id>-<project>.aspenx.dev. Members are the GitHub organization’s members. Once the organization’s owner lists its email domains at api.aspenx.dev/org, anyone who signs in with Google on a verified work email in those domains is a member too, which covers QA people without GitHub. For a reviewer outside the organization, aspenx review <feature> on --public opens one review app to anyone with the link. To use your own zone and token, leave control_url empty. Commands has the details under login.
Once signed in, every install’s daemon reports its features to the team registry. aspenx team lists the organization’s features with their push state, PRs and review links. aspenx new [<name>] --from <user>/<feature> runs a teammate’s pushed branches on your Mac as a borrowed feature, marked as theirs. aspenx pull follows their pushes, and aspenx pr <feature> --mine branches off when you want to build on their work. The app’s Team section does the same from a button.
Where to go next
- Install: the script, Homebrew, the pkg for Jamf, the app.
- Guides: everyday tasks, in the app and in the terminal.
- The manifest:
aspenx.yml, the one file your monorepo adds. - Layouts: submodules or plain directories.
- Env contract: how each project learns its own URLs.
- Commands: every command and flag.
- Agent integration: FEATURE.md, hooks, the MCP server and the QA agent.
- Metrics: what the state DB records and how to read it.