claude-code

Delegate coding tasks to the Claude Code CLI via print mode or tmux sessions.

Updated May 13, 2026
One-click install
npx skills add https://github.com/superfhp/lumi-agent-body --skill claude-code-superfhp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: claude-code
Source: https://github.com/superfhp/lumi-agent-body/tree/main/skills/autonomous-ai-agents/claude-code
Command: npx skills add https://github.com/superfhp/lumi-agent-body --skill claude-code-superfhp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @anthropic-ai/claude-code.

What problem does it solve? Orchestrating an autonomous coding agent from a terminal requires knowing the right CLI flags, handling interactive permission dialogs, managing sessions, and controlling costs. This Skill provides a complete operational guide for delegating coding work to Anthropic's Claude Code CLI without trial-and-error. ## Core Features & Use Cases - Two Orchestration Modes: Run one-shot non-interactive tasks with claude -p print mode, or drive multi-turn interactive REPL sessions through tmux with full PTY dialog handling (workspace trust and permissions prompts). - Structured Automation: Extract JSON output, enforce JSON schemas, stream tokens, resume or fork sessions, and cap spend with --max-turns and --max-budget-usd for CI/CD pipelines. - Advanced Workflows: Configure hooks, MCP servers, custom subagents, CLAUDE.md memory files, parallel instances, and git worktree-based PR reviews. - Use Case: Pipe a git diff into claude -p to get an automated code review, or launch three parallel tmux sessions to fix a bug, write tests, and update docs simultaneously. ## Quick Start Ask the agent to run claude -p with your coding task, an allowedTools whitelist, and a max-turns limit in your project directory.

Frequently Asked Questions about claude-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Claude Code non-interactively in a script?▼

Use print mode with claude -p followed by your task prompt. It runs one-shot, skips all interactive dialogs, and exits when done. Add --max-turns to limit agentic loops and --output-format json for structured results.

How do I handle Claude Code permission dialogs in tmux?▼

Send Enter via tmux send-keys to accept the default workspace trust dialog. For the bypass permissions warning, send Down then Enter since the safe default is 'No, exit'. The trust dialog only appears once per directory.

Can Claude Code output structured JSON for automation?▼

Yes, use --output-format json to get a result object with session_id, cost, and turn counts, or --json-schema to force output matching a schema. Use stream-json with --verbose for real-time newline-delimited events.

How do I resume a previous Claude Code session?▼

Use claude -c to continue the most recent conversation in the current directory, or claude -r with a session ID to resume a specific one. Add --fork-session to branch the history into a new session ID.

How do I limit Claude Code API costs in automation?▼

Set --max-turns to cap agentic loop iterations and --max-budget-usd to cap dollar spend in print mode. The JSON output includes total_cost_usd so you can track spend per task.

What is the difference between print mode and interactive mode in Claude Code?▼

Print mode (-p) runs a single task and exits, ideal for scripting and CI. Interactive mode provides a conversational REPL with slash commands and follow-up prompts, requiring tmux orchestration for programmatic control.