Skip to content

Commit be701c9

Browse files
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 markdown
1 parent 2048790 commit be701c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.claude/settings.local.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(xargs grep:*)",
5+
"Bash(python -m pytest tests/ -q --ignore=tests/test_core_pack_scaffold.py --ignore=tests/test_cursor_frontmatter.py --ignore=tests/test_timestamp_branches.py)"
6+
]
7+
}
8+
}

0 commit comments

Comments
 (0)