Repository navigation
Add read-file ability with code block rendering - #99
Merged
Merged
Conversation
- PHP ability reads any file within ABSPATH with sensitive values (DB credentials, auth keys, salts) automatically redacted server-side - JS ability uses preferSummarize to bypass LLM and display file content instantly in a styled code block, avoiding 512-token truncation - ReAct agent short-circuits after preferSummarize tools to skip the second LLM pass; chat orchestrator skips stream simulator for instant display - MessageItem renders fenced code blocks progressively during streaming with language badge and copy button; inline backticks styled as monospace - Namespace fallback in executeTool resolves bare tool names (e.g. "read-file" → "wp-agentic-admin/read-file") when LLM drops the prefix - Documents preferSummarize pattern in ABILITIES-GUIDE.md Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This was referenced Mar 21, 2026
pluginslab
approved these changes
Mar 21, 2026
pluginslab
left a comment
Owner
There was a problem hiding this comment.
Test Results
All 4 read-file tests pass — 67/72 (93%) overall, failures are pre-existing/flaky. Welcome @moritzbappert! LGTM!
ivdimova
added a commit
that referenced
this pull request
Mar 21, 2026
Merge commit c1704ae (PR #99) dropped the closing brace for the read_file registration block, nesting all subsequent ability registrations inside it and producing a PHP parse error. Also fixes spaces-to-tabs on the database_check block from the same merge. Co-Authored-By: Claude Opus 4.6 <[email protected]>
2 of 3 tasks
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.
Summary
Changes
Testing
npm test)npm run test:abilities -- --file tests/abilities/core-abilities.test.js)npm run lint:js)composer lint)Notes