Skip to main content

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

For directory entries, the hook reads all .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

trellis-research writes durable findings into the task’s research/ directory. Trellis does not require a separate default research manifest; investigation context comes from the current request, existing specs, task history, and any explicit research instructions.