strix
strix copied to clipboard
Allow root scan prompt options
Summary
- Add
root_instructions_overrideandextra_system_prompt_contexttorun_strix_scan. - Merge extra scan context into the root agent context only, with reserved-key protection for built-in scope fields.
- Compose custom root scan instructions with the rendered root prompt so system-verified scope remains in the actual system prompt.
- Add runner-level tests for prompt option flow, default behavior, reserved-key conflicts, and real scope rendering under overrides.
Dependency
Stacked on #733 because this uses the instructions_override support added to build_strix_agent.
Validation
uv run pytest tests/test_agent_tool_registration.py tests/test_runner_root_prompt.pyuv run ruff check strix/agents/factory.py strix/core/runner.py tests/test_agent_tool_registration.py tests/test_runner_root_prompt.py
Greptile Summary
This PR adds root scan prompt customization while keeping scan scope in the root system prompt. The main changes are:
- New
root_instructions_overridesupport inrun_strix_scan. - New
extra_system_prompt_contextsupport for the root agent only. - Reserved-key checks to prevent extra context from replacing built-in scope fields.
- Tests for prompt composition, default behavior, and reserved-key conflicts.
Confidence Score: 5/5
This looks safe to merge.
- No blocking issues found in the changed code.
Important Files Changed
| Filename | Overview |
|---|---|
| strix/core/runner.py | Adds root prompt context merging and composes custom root instructions with the rendered scope prompt. |
| tests/test_runner_root_prompt.py | Adds runner tests for root prompt option flow, reserved-key conflicts, and default behavior. |
Reviews (3): Last reviewed commit: "Add root scan prompt options" | Re-trigger Greptile
@greptileai
@greptileai