feat(agents): scaffold AGENTS.md and CLAUDE.md, and add matcha agents
CI / installer (macos-14) (pull_request) Successful in 2s
CI / check (pull_request) Successful in 26s
CI / starter (bun) (pull_request) Successful in 31s
CI / starter (deno) (pull_request) Successful in 32s
CI / starter (node) (pull_request) Successful in 33s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
CI / starter (edge) (pull_request) Successful in 5m38s

LLM coding agents have no training data on green-tea, so they write
Express. Every starter now ships an AGENTS.md, with a CLAUDE.md that
imports it. It states the rules that differ: a graph, not a chain;
needs declared in the signature; the graph validated at boot; reuse
existing tokens. It also points the agent at matcha
routes|tokens|explain --json and at the llms.txt inside the installed
core.

matcha agents writes the same files into an older project, with the
core version that project actually depends on. It leaves existing
files alone unless --force is given.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-10-30 20:35:23 -05:00
1 parent ea510c5112
commit 9641bd51a7
8 files changed
+253 -5

No files matched your search

+7
View File
@@ -46,6 +46,7 @@ matcha routes # every route and the chain it runs
matcha tokens # every token: who provides it, who needs it
matcha openapi # structural OpenAPI 3.1 for the route table
matcha doctor # check the project for confusing misconfigurations
matcha agents # write AGENTS.md/CLAUDE.md for coding agents (new projects get them)
```
### The starter
@@ -54,6 +55,12 @@ matcha doctor # check the project for confusing mis
with the green-tea logo and streams a rotating zen message over `@Sse('/zen')`.
Open the browser and it's already alive — `matcha run` boots it.
It also writes an `AGENTS.md` (and a `CLAUDE.md` that imports it) for coding
agents. green-tea is new enough that an agent's training data says Express, so
the file states the rules that differ, points at `matcha routes|tokens|explain
--json` for reading the app, and at the `llms.txt` inside the installed core.
`matcha agents` adds the same files to an older project.
The graph is composed in `src/app.ts`, which exports the app; `src/main.ts`
imports it and binds a port. The split is what lets `matcha graph` and
`matcha explain` read your application without starting a server.