strix
strix copied to clipboard
Allow scan agents to register extra tools
Summary
- Add a module-level registry for scan-agent tools.
- Allow per-agent extra tools and verbatim instruction overrides in
build_strix_agent. - Add tests covering registration dedupe, tool ordering, per-call tools, and instruction override behavior.
Impact
Scan setup code can attach additional tools to root and child agents while preserving the existing lifecycle tool ordering.
Validation
uv run pytest tests/test_agent_tool_registration.pyuv run ruff check strix/agents/factory.py tests/test_agent_tool_registration.py
Greptile Summary
This PR lets scan agents receive additional tools during setup. The main changes are:
- A module-level registry for scan-agent tools.
- Per-agent extra tools in
build_strix_agent. - Verbatim instruction overrides for scan agents.
- Tests for tool ordering, duplicate names, per-call tools, and instruction overrides.
Confidence Score: 5/5
This looks safe to merge.
- No blocking issues found in the changed code.
Important Files Changed
| Filename | Overview |
|---|---|
| strix/agents/factory.py | Adds extra-tool registration, duplicate-name checks, per-call tools, and instruction override support. |
| tests/test_agent_tool_registration.py | Adds coverage for registry behavior, tool ordering, duplicate-name rejection, and prompt overrides. |
Reviews (2): Last reviewed commit: "Allow scan agent tool registration" | Re-trigger Greptile
@greptileai