Compare commits

..

2 commits

Author SHA1 Message Date
Jeff Smith
4ef97c5626 merge: fix/issue-54-write-cache-tool-desc 2026-04-07 14:22:12 -06:00
Jeff Smith
c03f4f7c60 fix(ai): document confidence fields in write_cache tool schema (#54)
The system prompt already instructs the agent to set confidence/
confidence_reason on every write_cache call, but the tool's data
schema description listed only the legacy fields. Add the confidence
fields and a one-line calibration pointer so the model sees them
when binding the tool, not just in the system prompt.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 14:21:57 -06:00

View file

@ -247,9 +247,14 @@ _DIR_TOOLS = [
"type": "object",
"description": (
"Cache entry. Files: {path, relative_path, size_bytes, "
"category, summary, notable, notable_reason, cached_at}. "
"category, summary, notable, notable_reason, "
"confidence, confidence_reason, cached_at}. "
"Dirs: {path, relative_path, child_count, summary, "
"dominant_category, notable_files, cached_at}."
"dominant_category, notable_files, "
"confidence, confidence_reason, cached_at}. "
"Always set confidence (0.01.0); see system prompt "
"for calibration. Set confidence_reason only when "
"confidence < 0.7."
),
},
},