feat: 4 agentic polish — permissions, search, compaction, JSON mode#41
Merged
kienbui1995 merged 1 commit intomainfrom Apr 12, 2026
Merged
feat: 4 agentic polish — permissions, search, compaction, JSON mode#41kienbui1995 merged 1 commit intomainfrom
kienbui1995 merged 1 commit intomainfrom
Conversation
…, structured output 1. Auto-permission learning: - PermissionPolicy remembers approved tool+pattern combos - Subsequent calls with same pattern auto-allowed (session-scoped) - Works for both Auto and Prompt modes 2. Conversation search: - Session.search(query) returns matching messages with snippets - Case-insensitive, shows context around matches 3. Smart compaction with importance scoring: - Scores messages: errors (3.0), user instructions (2.0), writes (1.5) - Keeps up to 5 high-importance messages during compaction - Rest summarized as before 4. Structured output / JSON mode: - ResponseFormat enum: Json, JsonSchema - Wired in GenericProvider (OpenAI-compatible) - response_format field on CompletionRequest 192 tests pass.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
📝 WalkthroughWalkthroughThe PR extends the completion request API with optional response format specifications, implements importance-scored message compaction in sessions, adds session message search functionality, and introduces permission learning through a shared allowlist mechanism across multiple crate modules. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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
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.
Final 4 agentic gaps closed:
Session.search()with snippetsResponseFormat::Json/JsonSchemafor OpenAI192 tests pass. Zero critical gaps remaining.
Summary by CodeRabbit
Release Notes
New Features
Improvements
Tests