feat(agents): scaffold AGENTS.md and CLAUDE.md, and add matcha agents #19

Merged
chrnx merged 1 commits from feat/agents-md into develop 2026-10-31 01:45:40 +00:00
Owner

Part A of the LLM-guidance plan. Stacked on #18: it references matcha routes|tokens --json, so merge #18 first and then retarget this PR to develop.

  • Every starter (node/deno/bun/edge) gets AGENTS.md, plus a CLAUDE.md containing @AGENTS.md. The file covers:
    • the rules that differ from Express;
    • the introspection commands, so the agent reads the app instead of guessing it;
    • the project layout;
    • how to verify work (typecheck per runtime, app.fetch without a port);
    • the full guide in node_modules/@green-tea/core/llms.txt (on Deno, the JSR URL), plus the docs' llms-full.txt.
  • matcha agents [--force] writes the same files into an existing project. It reads the core version from package.json or deno.json, and leaves existing files alone unless --force is passed.

The core llms.txt is being added in a separate core PR. The docs' llms-full.txt is docs PR #30.

Tests cover the four runtimes, the version read from package.json and from deno.json, and the overwrite protection. cargo test and clippy are clean.

Part A of the LLM-guidance plan. **Stacked on #18:** it references `matcha routes|tokens --json`, so merge #18 first and then retarget this PR to `develop`. - **Every starter (node/deno/bun/edge) gets `AGENTS.md`, plus a `CLAUDE.md` containing `@AGENTS.md`.** The file covers: - the rules that differ from Express; - the introspection commands, so the agent reads the app instead of guessing it; - the project layout; - how to verify work (typecheck per runtime, `app.fetch` without a port); - the full guide in `node_modules/@green-tea/core/llms.txt` (on Deno, the JSR URL), plus the docs' `llms-full.txt`. - **`matcha agents [--force]`** writes the same files into an existing project. It reads the core version from `package.json` or `deno.json`, and leaves existing files alone unless `--force` is passed. The core `llms.txt` is being added in a separate core PR. The docs' `llms-full.txt` is docs PR #30. Tests cover the four runtimes, the version read from `package.json` and from `deno.json`, and the overwrite protection. `cargo test` and clippy are clean.
chrnx changed target branch from feat/introspect-json to develop 2026-10-31 01:35:33 +00:00
chrnx added 1 commit 2026-10-31 01:35:33 +00:00
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
9641bd51a7
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>
chrnx force-pushed feat/agents-md from b01842ad2d to 9641bd51a7 2026-10-31 01:35:34 +00:00 Compare
chrnx merged commit 865d87487b into develop 2026-10-31 01:45:40 +00:00
Sign in to join this conversation.