pub fn pipeline_nudge(command: &str) -> Option<Steer>Expand description
A generic nudge against any shell pipeline that we could not map to a
specific ct tool: prompt the agent to try harder to express it with ct,
without a concrete rewrite. None unless the command contains a pipe, is
not already a ct call, and analyze found no specific steer (so the two
never both fire). Meant to be shown warn-only — it never denies.
use coding_tools::steer::pipeline_nudge;
assert!(pipeline_nudge("ps aux | grep server").is_some()); // an unmapped pipe
assert!(pipeline_nudge("git status").is_none()); // no pipe
assert!(pipeline_nudge("ct search --grep x | head").is_none()); // already ct
// A pipe with a specific steer is left to that rule, not the generic nudge.
assert!(pipeline_nudge("find . -name '*.rs' | xargs grep TODO").is_none());