-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Adds the memory + context management cookbook #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Interactive notebook demonstrating Claude's memory tool and context editing capabilities with code review examples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update .env.example to use claude-sonnet-4-5 model - Remove "Always check memory first" from system prompts - Add warning to clear_all_memory() about demonstration purposes - Add path validation assertion in _delete() for safety - Add notebook cell warning about memory clearing - Clarify "Pattern Stored" section to show what Claude learns All changes verified against official memory tool documentation.
- Add Any to imports in web_scraper_v1.py, api_client_v1.py, and cache_manager.py - Replace lowercase 'any' with 'Any' in all type hints - Fixes syntax error: 'any' is a built-in function, not a type Addresses PR review comments from automated bot and samj.
Co-authored-by: Eric Harmeling <eric.harmeling@outlook.com>
Links to the Effective Context Engineering blog post at the start of the introduction to provide readers with background on the engineering principles demonstrated in the cookbook. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add memory & context management cookbook
ericharmeling
approved these changes
Sep 29, 2025
🔍 Claude Model Usage ReviewSummaryI've reviewed all changed files for Claude model usage. Found several deprecated models and opportunities for improvement. ❌ Issues Found1. Deprecated Claude 2.x Models
2. Suboptimal Model ReferencesMultiple files use specific dated versions instead of
✅ Valid Models Found
🔧 RecommendationsHigh Priority
Medium Priority
Low Priority
Current Public Models (as of documentation)
Note: Claude 3.5 Sonnet and Claude Opus 3 are deprecated according to current documentation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.