You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(steering): opt-in cat redirection steering for shell tools
Add CatFileEditsSteeringPolicy to UnifiedSteeringHandler to intercept shell execution when the normalized command uses cat > / cat >> for file create/append, with a fixed steering message.
Wire opt-in via session/tool_call_reactor config, JSON schemas, sample env, CLI --enable-cat-file-edits-steering, and CAT_FILE_EDITS_STEERING_* env vars (from_env_part1b).
Recognize run_terminal_cmd as a shell tool in ShellExecutionTools and CommandExtractionService.
Tests: policy unit tests, CLI wiring, reactor policy ordering; schema drift fixture updated.
Docs: cli-parameters and configuration examples.
Note: tests/unit/core/cli_support/applicators/test_session_applicator.py left unstaged (working tree had broad CRLF-only churn); Namespace still tolerates missing cat_file_edits_steering_enabled via getattr in SessionApplicator.
Made-with: Cursor
Copy file name to clipboardExpand all lines: docs/user_guide/cli-parameters.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -379,10 +379,12 @@ When auto-enabled with no explicit model configured, the system defaults to `ope
379
379
| :--- | :--- | :--- |
380
380
|`--enable-pytest-full-suite-steering`|`PYTEST_FULL_SUITE_STEERING_ENABLED=true`| Enable steering for full pytest suite. |
381
381
|`--disable-pytest-full-suite-steering`|`PYTEST_FULL_SUITE_STEERING_ENABLED=false`| Disable steering for full pytest suite. |
382
+
|`--enable-cat-file-edits-steering`|`CAT_FILE_EDITS_STEERING_ENABLED=true`| Enable steering when shell commands use `cat >` / `cat >>` to create or append files. Default is off; there is no CLI disable flag (use config or `CAT_FILE_EDITS_STEERING_ENABLED=false`). |
0 commit comments