strix icon indicating copy to clipboard operation
strix copied to clipboard

Allow root scan prompt options

Open bearsyankees opened this issue 4 months ago • 3 comments

Summary

  • Add root_instructions_override and extra_system_prompt_context to run_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.py
  • uv run ruff check strix/agents/factory.py strix/core/runner.py tests/test_agent_tool_registration.py tests/test_runner_root_prompt.py

bearsyankees avatar Jul 10 '26 22:07 bearsyankees

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_override support in run_strix_scan.
  • New extra_system_prompt_context support 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

greptile-apps avatar Jul 10 '26 23:07 greptile-apps

@greptileai

bearsyankees avatar Jul 10 '26 23:07 bearsyankees

@greptileai

bearsyankees avatar Jul 10 '26 23:07 bearsyankees