-
Notifications
You must be signed in to change notification settings - Fork 30
merge dev into master #278
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
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
Sync dev with master after v1.2.3 release
- Tools now throw errors for validation failures, resulting in status: 'error' - Cooldown only triggers when prune tool completes successfully - Logger now captures tool status and error fields for debugging
fix: throw errors on prune tool failures instead of returning strings
docs: add cache hit rate statistics to README
- Add /dcp-stats command showing session and all-time pruning statistics - Add /dcp-context command with visual token breakdown by category - Extract command handler to createCommandExecuteHandler in hooks.ts - Consolidate countTokens wrapper in strategies/utils.ts - Switch tokenizer from gpt-tokenizer to @anthropic-ai/tokenizer - Add loadAllSessionStats for aggregating stats across sessions
feat: add /dcp-stats and /dcp-context commands
- Explain that context_info is an environment-only tool - Add explicit instruction that model must not call it - Correct message role from user to assistant
The bullet point 'NEVER acknowledge discard/extract tool output' already covers this behavior, making the sentence redundant and awkwardly placed.
- Add commands section to config with context and stats sub-configs - Each command has an enabled boolean (default: true) - Commands check config before executing and log when disabled - Update README with commands documentation - Fix spacing in dcp-context UI output
feat: add commands config for enabling/disabling slash commands
…njection clarify context_info tool injection mechanism
- Use braille character for Tools row in breakdown chart - Remove complex DCP savings visualization - Keep simple summary with current/without-DCP token counts
refactor: simplify context command UI
- Replace /dcp-stats and /dcp-context with /dcp stats and /dcp context
- Simplify commands config from { enabled: true } to just boolean
- Add help screen shown when /dcp is run without arguments
- Make argument parsing future-proof for commands with multiple args
refactor: unify commands into single /dcp with subcommands
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.
Failed tools throw errors instead of returning error strings
Show prunable list instead of cooldown injection on failed tool
Log tool error parts
add info about cache hit rates and new commands to readme
add /dcp commands (context, stats)
config and json schema updates for new commands
update system prompts for recent changes to injection style (tool parts replacing user parts)
update system prompts to clarify context_info is not available to the model