Workflow
Claude Code Automation Planner
Plan headless output, PR review workflows, Remote Control, scheduling, and usage measurements.
Sources checked:
What you can do
Choose a Claude Code execution surface and its checks
Separate terminal, CI, or cloud execution based on how the task starts and which device resources it needs. Use a fixture to test parsing before a live paid run.
Build your execution checklist
Inputs are processed in this browser only and cleared when you close or refresh the page.
A shell or CI program needs structured progress and a final result.
Template preview claude-print-fixture.jsonl
{"type":"system","subtype":"init","session_id":"synthetic-1"}
{"type":"result","subtype":"success","is_error":false,"result":"fixture complete","session_id":"synthetic-1"}
Read the full steps
Parse headless stream-json
A shell or CI program needs structured progress and a final result.
- Use print mode with stream-json and verbose for line-oriented events. Add --include-partial-messages only if your consumer handles partial stream events.
- Parse lines independently, dispatch by type, and look for the final result record. Preserve process exit status and treat a missing result as incomplete.
- Test your reader with the synthetic two-line sample before calling with a real account.
Template preview: claude-print-fixture.jsonl
{"type":"system","subtype":"init","session_id":"synthetic-1"}
{"type":"result","subtype":"success","is_error":false,"result":"fixture complete","session_id":"synthetic-1"}
Plan a PR review in GitHub Actions
You want a bounded, review-only CI task in an authorized repository.
- Install the Claude GitHub App for the intended repository, set the selected provider credential as a GitHub secret, and review minimum GitHub job permissions.
- Start with a manually triggered review of a known branch and an explicit report-only prompt. Pin the action to the revision your organization has reviewed.
- Bound turns with claude_args, check event filters before enabling PR triggers, and inspect billed usage before broadening rollout.
Template preview: pr-review-prompt.txt
Review the specified pull request for correctness and regressions within the changed files. Report findings with path, line, and an explainable consequence. Leave repository files unchanged. Do not post, push, or merge changes.
Compare teams and subagents by measured cost
You need to decide whether parallel collaboration earns back its token use.
- Use a single session or subagents for dependent work and independent subtasks whose output can be combined by the parent.
- Try agent teams when separate sessions need to exchange findings and coordinate. Keep the task, model, permission scope, and success criteria constant.
- Compare elapsed time, completed tasks, tokens, and cost per accepted result. Each teammate maintains its own context, so capture the whole team's usage.
Template preview: agent-run-comparison.csv
case_id,mode,model,participants,elapsed_seconds,total_tokens,total_cost_usd,accepted fixture-1,single,,,,,, fixture-1,subagents,,,,,, fixture-1,team,,,,,,
Keep a Remote Control host reachable
You want to control a local Claude Code session from another device.
- Start Remote Control for the intended local session and connect from the client surface.
- Keep the host awake, connected, and the Claude Code process running. A temporary host interruption can pause work until it reconnects.
- If you need to run while the computer is off, choose a cloud-capable task and verify its inputs can be reached from the selected cloud environment.
Choose Routines, Desktop scheduling, or /loop
A periodic job needs a defined runtime and lifetime.
- Use a cloud Routine when the job can run in its configured cloud environment and must keep running independently of your local computer.
- Use Desktop scheduling for local resources with the app and machine reachable. Use /loop for recurring work during the lifetime of an open CLI session.
- Record trigger, runtime requirements, output location, and owner. Run once manually to verify inputs and outcome before turning on recurrence.
Set up token and cost collection
Your organization wants usage by session or project.
- Set CLAUDE_CODE_ENABLE_TELEMETRY=1 and configure a supported OTLP metrics exporter on the surface where Claude Code actually runs.
- Verify claude_code.token.usage and claude_code.cost.usage for a scoped test session. Review cache token dimensions and tag cardinality.
- Use organization billing data for reconciliation. Confirm what identities and event content your collector retains.
Template preview: claude-code-telemetry.env
CLAUDE_CODE_ENABLE_TELEMETRY=1 OTEL_METRICS_EXPORTER=otlp OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
Scope & limits
- Examples are preparation for your own authorized repository. They do not authenticate, run models, start workflows, or receive telemetry.
Questions & answers
- Can Remote Control keep running if the host sleeps?
- Remote Control controls a local Claude Code process. Keep the host awake and online for uninterrupted work.
Verified sources
- Claude Code CLI reference
- Claude Agent SDK plan usage
- Claude Code GitHub Actions
- Manage Claude Code costs
- Claude Code permissions
- Claude Code agent teams
- Custom subagents
- Claude Code Remote Control
- Claude Code routines
- Claude Code OpenTelemetry monitoring
Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.