feat(tools): tool registry, file executor, doom-loop detection#246
Merged
feat(tools): tool registry, file executor, doom-loop detection#246
Conversation
#239, #240, #241, #242, #243, #244, #245) Introduce structured tool definitions via ToolRegistry with 7 built-in tools, sandboxed FileExecutor for file operations, and CompositeExecutor routing by tool_id. Raise iteration cap from 3 to configurable 10 with doom-loop detection (3 consecutive identical outputs) and context budget check at 80% threshold.
90cee10 to
9f04ce0
Compare
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #246 +/- ##
==========================================
+ Coverage 80.86% 81.15% +0.29%
==========================================
Files 79 81 +2
Lines 23239 23970 +731
==========================================
+ Hits 18792 19454 +662
- Misses 4447 4516 +69
🚀 New features to boost your workflow:
|
Add guide/tools.md covering tool registry, file executor sandbox, dual-mode execution, iteration cap, and doom-loop detection. Update crates.md, security.md, configuration.md, SUMMARY.md, and README.md.
This was referenced Feb 14, 2026
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
ToolRegistrywith typedToolDefdefinitions for 7 built-in tools (bash, read, edit, write, glob, grep, web_scrape)FileExecutorfor file operations with path traversal protectionToolExecutortrait withToolCallstruct andexecute_tool_call()for structured tool invocationCompositeExecutorto aggregate definitions and route tool calls by tool_idformat_for_prompt()max_tool_iterationsin TOML /ZEPH_AGENT_MAX_TOOL_ITERATIONSenv)Closes #239,Closes #240,Closes #241,Closes #242,Closes #243,Closes #244,Closes #245
Test plan