#!/usr/bin/env -S ai --sonnet --skip --liveExplore this repository and write a short summary of what it does,its key features, and how to get started. Print your findings as you go.Finally, generate a concise report in markdown format.
From examples/live-report.md. Note the key phrase: “Print your findings as you go.”
Enables real-time streaming of AI output. Instead of waiting for the full response, you see text appear as the AI writes it.Without --live:
Copy
./script.md# (silence for 30 seconds)# Then all output appears at once
With --live:
Copy
./script.md# (starts streaming immediately)I'll explore the repository structure...Found a Node.js project with TypeScript...Looking at package.json to identify dependencies...Now examining the main entry point...# (output continues in real-time)
--live streams at turn granularity - each time Claude writes text between tool calls, that text appears immediately.
Critical insight: The AI must be prompted to narrate its progress, otherwise it may work silently using tools and only output text at the end.Streams incrementally:
Copy
Print your findings as you go.
No intermediate output:
Copy
Explore this repository and write a summary.
Both produce the same final result, but only the first streams progress.
# Make it executablechmod +x live-report.md# Run it./live-report.md
You’ll see output stream in real-time:
Copy
[AI Runner] Using: Claude Code + Claude Pro[AI Runner] Model: Sonnet 4.6I'll start by exploring the repository structure to understand the project.This appears to be a Node.js project with TypeScript. I can see:- Package.json indicating it's called "airun" - TypeScript configuration files- A src/ directory with the main source codeLet me examine the key files to understand what it does...(output continues streaming)
When stdout is redirected, --live automatically separates narration from content:Console (stderr) - streams in real-time:
Copy
[AI Runner] Using: Claude Code + Claude Pro[AI Runner] Model: Sonnet 4.6I'll explore the repository structure and key files...Now let me look at the core scripts and provider structure.Here's my report:[AI Runner] Done (70 lines written)
File (stdout) - clean content only:
Copy
# AIRun Project Summary## OverviewAIRun is a tool for running AI prompts like programs...## Key Features- Executable markdown with shebang support- Cross-cloud provider switching- Unix pipe support...
How it works:
Intermediate turns (narration) → stderr (appears on console)
Last turn content → stdout (saved to file)
The last turn is split at the first markdown heading or YAML frontmatter
#!/usr/bin/env -S ai --sonnet --skip --liveExplore this repository and generate a comprehensive README.md:1. Project overview and purpose2. Installation instructions3. Usage examples4. API documentation5. Contributing guidelinesPrint a status update after examining each major directory.Finally, output the complete README in markdown format.
#!/usr/bin/env -S ai --sonnet --skip --liveCreate an onboarding guide for new developers:1. Describe the codebase structure2. Explain the development workflow3. List the key technologies used4. Identify the most important files to read first5. Suggest a learning pathNarrate your exploration as you go through the codebase.Finally, generate a structured onboarding document.
#!/usr/bin/env -S ai --opus --skip --livePerform a security audit of this codebase:1. Check for common vulnerabilities (OWASP Top 10)2. Review authentication and authorization3. Examine data validation4. Check for exposed secrets or credentials5. Review dependencies for known vulnerabilitiesReport findings as you examine each area.Finally, generate a prioritized security report.
#!/usr/bin/env -S ai --sonnet --skip --liveRun the full test suite including integration tests.Print a status update after each test file completes:- File name- Pass/fail count- Time takenAt the end, provide a summary with:- Total pass/fail counts- Slowest tests- Root cause analysis for failures
#!/usr/bin/env -S ai --skip --chrome --liveTest the user registration flow:1. Navigate to the signup page2. Fill in the registration form3. Submit and verify email sent4. Follow email link to activate account5. Login with new credentialsNarrate each step as you complete it.Report any issues found.
Copy
chmod +x test-signup.md./test-signup.md
You’ll see each step as it happens:
Copy
Navigating to https://app.example.com/signup...Filling in the registration form...Submitting the form...Checking for success message...✓ Registration successfulLooking for confirmation email...