This guide provides 15 example commands to exercise halp’s default agent mode, quick mode, confirmation gating, and the "yolo" auto-execution directive.
Important:
- By default, any CLI command the agent wants to run will request your confirmation.
- "yolo" as the first word of your prompt enables auto-execution (equivalent to --unsafe_exec for the session) and is stripped from the task.
--unsafe_execenables auto-execution for all commands without confirmation.--quickproduces a single one-pass reply without using tools.
Before testing:
- Ensure
BASE_URL,API_KEY, andDEFAULT_MODELare configured (~/.halp.envor CLI overrides). - Review
halp --helpfor all options.
-
Default agent: directory overview (should ask to approve a safe command like
ls)halp "List the current directory with details and summarize notable items" -
Decline confirmation path (answer "n" when prompted)
halp "Check disk usage of the current directory and suggest cleanup options" -
Unsafe exec flag (auto-exec, no confirmations)
halp --unsafe_exec "Show the top 10 largest files under the current directory recursively" -
Quick mode (no tools, single-pass)
halp --quick "Explain what this repository does, based on filenames only" -
YOLO auto-exec (no confirmations)
halp "yolo show disk usage summary of the current directory" -
YOLO via piped input (auto-exec)
echo "yolo print working directory and current user" | halp
-
Summarize recent shell history (tests system prompt history injection)
halp "Summarize my recent shell activity and infer what I’ve been working on" -
Environment grounding (OS, Python, Shell, CWD)
halp "What OS, Python version, and shell am I using? Use the environment info provided" -
Read a file and summarize (should propose a safe file read command)
halp "Read the first 15 lines of README.md and summarize the project goals" -
Git status summary (non-destructive)
halp "Summarize the current Git status and list untracked files" -
Processes by memory (auto-exec with yolo)
halp "yolo list the top 5 processes by memory usage" -
Check port usage (safe)
halp "Check if port 8000 is listening and show matching processes" -
Find Python files count under src/
halp "Count how many Python files are under src/ and print the total" -
List available models (API integration)
halp -l
-
Interactive start + yolo directive
halp # When prompted: yolo show the top 10 largest files under the repo # Confirmations should be skipped for this session.
Notes:
- If you want to avoid approving commands interactively in non-tty contexts, use
--unsafe_execor theyolodirective.