You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(mcp): optimize token consumption in MCP responses
- Add to_minimal_dict() and to_cycle_check_dict() to Feature model
- Use minimal serialization for cycle detection (~95% token reduction)
- Add minimal parameter to feature_get_ready/blocked (default True)
- Optimize feature_get_graph to query only needed columns
- Add spec_get_summary MCP tool (~800 tokens vs 12,500 full)
- Implement progressive history summarization in assistant chat
- Update coding prompt to recommend new token-efficient tools
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/templates/coding_prompt.template.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Then use MCP tools:
25
25
Use the feature_get_stats tool
26
26
```
27
27
28
-
**NOTE:** Do NOT read `app_spec.txt`- you'll get all needed details from your assigned feature.
28
+
**NOTE:** Do NOT read `app_spec.txt`directly (12,500+ tokens). If you need project context, use `spec_get_summary` tool (~800 tokens) which returns project name, tech stack, ports, and overview.
29
29
30
30
### STEP 2: START SERVERS (IF NOT RUNNING)
31
31
@@ -271,6 +271,9 @@ feature_skip with feature_id={id}
271
271
272
272
# 7. Clear in-progress status (when abandoning a feature)
273
273
feature_clear_in_progress with feature_id={id}
274
+
275
+
# 8. Get condensed project spec (~800 tokens vs 12,500 full)
276
+
spec_get_summary
274
277
```
275
278
276
279
### RULES:
@@ -311,6 +314,7 @@ To maximize context window usage:
311
314
-**Don't read files unnecessarily** - Feature details from `feature_get_by_id` contain everything you need
312
315
-**Be concise** - Short, focused responses save tokens for actual work
313
316
-**Use `feature_get_summary`** for status checks (lighter than `feature_get_by_id`)
317
+
-**Use `spec_get_summary`** for project context (~800 tokens vs 12,500 for full app_spec.txt)
314
318
-**Avoid re-reading large files** - Read once, remember the content
0 commit comments