Using Probe in the CLI for Advanced AI
This guide shows workflow patterns for CLI-driven AI tasks. It assumes Probe is installed and you are running commands from the repo root.
Prerequisites:
Pattern: pipe search into chat
bash
probe search "database connection" --format markdown | probe-chatPattern: compile errors -> context -> chat
bash
rustc main.rs 2>&1 | probe-chatPattern: extract with a prompt template
bash
probe extract src/main.rs:42 --prompt engineer --instructions "Explain this function" | probe-chatPattern: find + filter + chat
bash
probe search "database" | grep "connection" | probe-chatPattern: generate a report
bash
echo "List security risks" | probe-chat > security_report.txtTips for large repos
- Use
--max-tokensand--max-resultsto keep context small. - Use
--files-onlyfor a fast first pass. - Reuse
--sessionto avoid duplicates.