claude_code

Dispatch Claude Code tasks asynchronously with automatic callback and channel routing.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/stanleykao72/goclaw-plugins --skill claude-code-stanleykao72
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude_code
Source: https://github.com/stanleykao72/goclaw-plugins/tree/main/skills/claude-code
Command: npx skills add https://github.com/stanleykao72/goclaw-plugins --skill claude-code-stanleykao72

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dispatch Claude Code tasks asynchronously by submitting a prompt and options for automatic callback.

Core Features & Use Cases

  • Background task dispatch to Claude Code via CLI
  • Automatic callback with results written to a local JSON file and a pending heartbeat file
  • Channel routing: notifications to the originating channel based on Telegram or Odoo Discuss, with working directory and task options determined from input
  • Optional Agent Teams support and configurable working directory fallback

Quick Start

Invoke the claude_code command with your prompt to dispatch a Claude Code task in the background.

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 tasks asynchronously in the background?

You can dispatch Claude Code tasks asynchronously by submitting a prompt with options for automatic callback, running the process in the background using nohup to prevent terminal blocking.

Can I trigger Claude Code background tasks from Telegram or Odoo Discuss?

Yes, you can trigger Claude Code background tasks from Telegram or Odoo Discuss, with the workflow automatically routing notifications and results back to your originating communication channel.

How does the callback mechanism work for background CLI task dispatch?

The callback mechanism writes task results to a local latest.json file and generates a pending heartbeat file, ensuring your asynchronous CLI workflow outputs are tracked and reported automatically.

Do I need to manually set the working directory for Claude Code dispatch?

No, the workflow determines the correct working directory automatically from your input, while also supporting configurable working directory fallback options for flexible task execution.

What is the --agent-teams flag used for in Claude Code task dispatch?

The optional --agent-teams flag controls task behavior during asynchronous Claude Code dispatch, allowing you to customize how the background processing agent executes your submitted prompts.

What are the limitations of dispatching Claude Code tasks via nohup?

Running Claude Code tasks via nohup limits real-time terminal interaction, requiring you to rely on the latest.json file and heartbeat file for status tracking instead of standard output.