claude-code

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

Updated May 4, 2026
One-click install
npx skills add https://github.com/Junkfooooood/hermes-governance --skill claude-code-junkfooooood
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-code
Source: https://github.com/Junkfooooood/hermes-governance/tree/main/skills/autonomous-ai-agents/claude-code
Command: npx skills add https://github.com/Junkfooooood/hermes-governance --skill claude-code-junkfooooood

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 the 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. - Structured Output & Automation: Extract JSON results, stream events, enforce JSON schemas, resume sessions, and run bare mode for CI/CD pipelines with budget and turn limits. - Configuration & Extensibility: Manage permissions, hooks, MCP servers, custom subagents, CLAUDE.md memory files, and slash commands for project-specific workflows. - Use Case: Pipe a git diff into claude -p to get an automated PR review, or spin up 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 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 for automation?

Use print mode with claude -p followed by your task prompt. It runs one-shot, skips all interactive dialogs, and exits when done. Add --allowedTools to whitelist tools and --max-turns to cap agentic loops.

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 --dangerously-skip-permissions warning, send Down then Enter because the safe default is 'No, exit'. The trust dialog only appears once per directory.

Can Claude Code output structured JSON for scripting?

Yes, use --output-format json to get a result object with session_id, cost, and turn counts, or stream-json for newline-delimited events. The --json-schema flag forces output matching a specific schema for reliable parsing.

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. In print mode, extract session_id from JSON output and pass it with --resume.

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

Print mode (-p) runs a single task non-interactively and exits, ideal for CI/CD and scripting. Interactive mode provides a full REPL with slash commands, multi-turn conversation, and real-time monitoring, but requires tmux orchestration.

How do I limit Claude Code API costs?

Set --max-turns to cap agentic loops and --max-budget-usd to cap dollar spend in print mode. Use --fallback-model haiku to switch to a cheaper model when the default is overloaded, and monitor usage with the /cost slash command.