This guide explains how to give AI coding agents current Trellis instructions when they work in a service or browser app repository.

Use the raw files as stable, pasteable references:

When to use each file

Use llms.txt as a small bootstrap document for every Trellis task. It points an agent at the current service model, generated surfaces, and language-specific guides.

Use llms-full.txt when the agent will change a contract, generated SDK usage, service handlers, browser app wiring, operations, event publication, or outbox/inbox code. It links to the language-specific TypeScript, Svelte, and Rust guides.

Use llms-typescript.txt for TypeScript service work and llms-rust.txt for Rust service work. Most service repositories should link one of these rather than asking agents to read both language stacks.

Use llms-svelte.txt for Svelte or SvelteKit browser apps that need createTrellisApp, TrellisProvider, generated SDK aliases for contract uses, Vite aliases, or svelte-check path-map guidance.

Copy templates/trellis-service-AGENTS.md into a service repository as AGENTS.md, then fill in the local commands and paths. Keep local rules in that file; keep Trellis-wide rules linked to the raw guides.

  1. Copy the template:

    curl -fsSL \
      https://raw.githubusercontent.com/qlever-llc/trellis/main/docs/static/templates/trellis-service-AGENTS.md \
      -o AGENTS.md
  2. Fill in the repository-specific contract path, generation command, format command, typecheck command, test command, run command, and migration command.

  3. Link the raw llms.txt, llms-full.txt, and the relevant language-specific guide URL from any other AI-facing project instructions.

  4. Ask agents to read the short guide for all Trellis tasks, the full guide for contract or runtime-surface changes, and the relevant language guide before editing service or browser app code.

What to ask agents to verify

Ask agents to run the service repo’s own format, typecheck, lint, test, run, and migration commands. If contracts changed, ask them to run deno task prepare for TypeScript services or cargo xtask prepare for Rust services and verify generated artifacts are updated from the source contract.