Loading...
Loading...
Run Claude Code CLI for complex tasks, code generation, analysis, and research. Uses Anthropic OAuth (included in Claude Pro). Use for extended thinking, code review, architecture decisions. Preferred for load balancing sub-agent work (35% weight).
npx skill4agent add opendndapps/ogt-skills ogt-cli-claudeecho "Your prompt here" | claude -pecho "Complex task requiring Opus" | claude -p --model opus
echo "Standard task with Sonnet" | claude -p --model sonnetclaude -p --model opus "Analyze this complex problem"claude -p --output-format json "Your prompt"claude -p --output-format stream-json "Your prompt"| Option | Description |
|---|---|
| Non-interactive mode, print and exit |
| Model alias: |
| |
| Custom system prompt |
| Spending limit for the call |
| Restrict available tools |
| Skip permission checks (sandboxed use only) |
# Analyze a file
claude -p "Review this code for bugs" < myfile.py
# Work in a specific directory
cd /path/to/project && claude -p "Summarize this codebase"
# Give access to additional directories
claude -p --add-dir /other/path "Work with files in both locations"# Run with timeout protection
timeout 300 claude -p --model sonnet "Complete this task..." 2>&1
# Capture structured output
claude -p --output-format json "Generate a report" > result.jsonnode {baseDir}/scripts/run-claude-task.cjs "Your task prompt" [--model sonnet|opus] [--timeout 300]claude --versionclaude| Alias | Best For |
|---|---|
| Fast, capable, cost-effective. Default choice. |
| Complex reasoning, nuanced tasks, extended thinking. |
-p--output-format jsoncat file.py | claude -p "Review this"-p