Commit be701c9
committed
feat: add compact template format to reduce token usage
Introduce compact page templates (~74% smaller)
Introduce compact command templates (~78% smaller)
Add --format option to specify init (supports compact and markdown)
Implement resolve_template_path() to handle format-based template selection
Add _get_template_format() in agents to auto-load correct command templates
Persist selected format in .specify/init-options.json
Enable automatic usage of compact templates across scaffold and commands
Token usage reduced from 105.9KB → 23.1KB (~78% reduction)
Usage:
specify init <project> --ai claude --format compact
Default remains markdown1 parent 2048790 commit be701c9
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments