feat(agents): scaffold AGENTS.md and CLAUDE.md, and add matcha agents
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:
8 files changed
+253
-5
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user