Appendix D: JSONL Configuration Format Reference
JSONL entries should point at spec files (
.trellis/spec/**) or the task’s research outputs ({TASK_DIR}/research/*.md) — things the sub-agent needs to read before writing code (rules + background). Don’t add raw source files or directories (src/services/foo.ts, packages/<pkg>/, etc.) — sub-agents already have Read / Grep and will fetch code when they need it. Injecting code into context just burns tokens.File entry
Directory entry
.md files in the directory, up to 20. Common use: point at the task’s own research/ directory so the sub-agent picks up any upstream investigations.
Complete example (fullstack implement.jsonl)
JSONL files used by each sub-agent
| File | Sub-agent | Typical content |
|---|---|---|
implement.jsonl | trellis-implement | workflow + relevant spec indexes + task research/ dir |
check.jsonl | trellis-check | quality-related specs + finish-work / check command specs |
research.jsonl | trellis-research | reference material for investigations (specs or external doc excerpts) |