Skip to content

Conversation

@edmundhighcock
Copy link
Contributor

@edmundhighcock edmundhighcock commented Nov 23, 2025

This PR adds labels to the prompts sent to Claude models telling them to cache those parts of your prompts.

DRAFT: Waiting on PR #2838 to be merged

@edmundhighcock edmundhighcock force-pushed the feature/cache_on_bedrock branch 3 times, most recently from 80892bb to d9a8671 Compare November 25, 2025 09:56
edmundhighcock and others added 12 commits November 25, 2025 10:58
This commit adds a lazy loading mechanism for MCP tools to reduce token usage
and improve performance. The implementation includes:

- A tool summarizer module that extracts concise descriptions
- A new load_mcp_tool function to request detailed tool information on demand
- Updated system prompt to explain the lazy loading mechanism

Benefits:

- Reduced token usage in system prompts
- More context available for actual conversations
- Improved performance by loading tool details only when needed

The implementation is compatible with mcphub.nvim and includes documentation

for the required integration changes.
@edmundhighcock edmundhighcock force-pushed the feature/cache_on_bedrock branch from 686d124 to 38b3e90 Compare November 29, 2025 16:02
@edmundhighcock edmundhighcock marked this pull request as draft November 29, 2025 16:03
@edmundhighcock edmundhighcock force-pushed the feature/cache_on_bedrock branch from b7773e6 to 30aa6f0 Compare December 9, 2025 21:25
@github-actions
Copy link

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant