cli-dispatch

Dispatch tasks between Cowork and macOS CLI via osascript with result writeback.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/huanlongAI/tzh-Harness --skill cli-dispatch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-dispatch
Source: https://github.com/huanlongAI/tzh-Harness/tree/main/_sandbox/cli-dispatch
Command: npx skills add https://github.com/huanlongAI/tzh-Harness --skill cli-dispatch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Cowork ↔ CLI task dispatch and orchestration to synchronize tasks between Cowork and a macOS Terminal CLI using osascript and a shared result file.

Core Features & Use Cases

  • Deterministic task dispatch from Cowork to a macOS CLI and vice versa.
  • Automatic result writeback into a shared location for Cowork to read.
  • Use cases include creating tasks, tracking progress, and reviewing results in a sandboxed environment.

Quick Start

Use the cli-dispatch skill to trigger a simple task delegation from Cowork to Claude Code CLI via osascript.

Frequently Asked Questions about cli-dispatch

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

FAQPage Schema
How do I automate task dispatch from Cowork to a macOS CLI?

Automate task dispatch from Cowork to a macOS CLI by streaming task definitions into Terminal via osascript, enabling deterministic execution and result feedback within a sandbox workflow.

What is osascript task dispatch for coworking workflows?

Osascript task dispatch is a mechanism to synchronize tasks between Cowork and a macOS Terminal CLI, automatically writing execution results back into a shared file for review.

Do I need a specific directory structure to execute Claude Code CLI tasks via osascript?

Yes, you need a configured repository structure including .claude/tasks and the CLI tooling to meet execution and result-writing requirements for Claude Code CLI tasks.

Can I track CLI task progress and review results within a sandbox environment?

Track CLI task progress and review results by coordinating Cowork and Claude Code CLI within a sandbox environment, utilizing automatic result writeback into a shared location.

What are the limitations of using osascript for Terminal task automation?

Osascript Terminal task automation requires an Apple environment with osascript access and a configured repository structure, limiting its use to macOS sandbox workflows.

Does cli-dispatch support bidirectional task delegation between Cowork and Terminal?

Cli-dispatch supports deterministic task delegation from Cowork to a macOS CLI and vice versa, synchronizing task execution and feedback through a shared result file.