claude-code

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Orchestrating Anthropic's Claude Code CLI from an agent terminal requires handling interactive PTY dialogs, session management, permissions, and output parsing, which is error-prone when done ad hoc. ## 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 dialog handling for workspace trust and permission prompts. - Structured Output & Session Control: Capture JSON results with cost and token usage, enforce output schemas, resume or fork sessions, and cap spend with --max-turns and --max-budget-usd. - Use Case: Pipe a git diff into claude -p for an automated PR review, or launch parallel tmux sessions where separate Claude instances fix bugs, write tests, and update docs simultaneously. ## Quick Start Ask the agent to run claude -p with a coding task such as adding error handling to all API calls in the 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 from a script?▼

Use print mode with `claude -p "your task"` which runs a one-shot task and exits without interactive prompts. Add `--max-turns` to limit agentic loops and `--allowedTools` to whitelist specific tools like Read and Edit.

How do I get structured JSON output from Claude Code?▼

Run print mode with `--output-format json` to receive a result object containing the response text, session_id, num_turns, total_cost_usd, and token usage. You can also pass `--json-schema` to force output matching a specific schema.

How do I handle the Claude Code trust and 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" and you must navigate to "Yes, I accept".

Can Claude Code resume a previous session?▼

Yes, use `claude -c` to continue the most recent conversation in the current directory, or `claude -r <id>` to resume a specific session. In print mode, capture the session_id from JSON output and pass it with `--resume`.

What platforms does Claude Code CLI support?▼

Claude Code runs on Linux, macOS, and Windows. It is installed via npm with `npm install -g @anthropic-ai/claude-code` and requires either browser OAuth login or an ANTHROPIC_API_KEY environment variable.

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

Use `--max-turns` to cap agentic loop iterations and `--max-budget-usd` to set a hard dollar spending limit in print mode. The `--fallback-model` flag also switches to a cheaper model like haiku when the default is overloaded.