AGENT SKILL

claude-code-launcher

Launch Claude Code in a new terminal window with Remote Control enabled. Use when opening a project for interactive coding sessions where you need to access and control Claude from multiple devices. Handles terminal automation, project navigation, Claude Code startup, Remote Control activation, user prompts, and screenshot capture. Supports error recovery and logs all operations.

License 许可
MIT
最近更新
2026-06-07
Stars
★ 0
Forks
1

01 前言 Front Matter

name
claude-code-launcher
description
Launch Claude Code in a new terminal window with Remote Control enabled. Use when opening a project for interactive coding sessions where you need to access and control Claude from multiple devices. Handles terminal automation, project navigation, Claude Code startup, Remote Control activation, user prompts, and screenshot capture. Supports error recovery and logs all operations.

03 SKILL.md 正文

Claude Code Launcher

Overview

This skill automates the process of launching Claude Code in a new terminal window with Remote Control enabled. It streamlines the workflow of:

  1. Opening a fresh terminal window
  2. Navigating to a project directory
  3. Starting Claude Code
  4. Activating Remote Control mode
  5. Handling user confirmations (if needed)
  6. Capturing and displaying the final state

Perfect for switching between projects quickly or sharing Claude Code sessions across devices.

Usage

Basic Launch

claude-code-launcher /path/to/project

With Options

claude-code-launcher /path/to/project --verbose --screenshot

From OpenClaw Chat

Simply ask:

  • "Launch Claude Code in proposal-generator with Remote Control"
  • "Open the ai-native-lms project and enable Remote Control"
  • "Start Claude Code in ~/dev/edikar-standalone"

How It Works

Step 1: Terminal Preparation

  • Opens a new Terminal window using macOS automation
  • Ensures fresh shell environment (zsh)
  • Waits for the window to be ready

Step 2: Project Navigation

  • Changes directory to the specified project path
  • Validates that the directory exists
  • Reports any path resolution errors

Step 3: Claude Code Launch

  • Executes claude code command
  • Waits for Claude Code interface to fully load (~5 seconds)
  • Monitors for startup errors (missing dependencies, permission issues)

Step 4: Remote Control Activation

  • Types /remote-control command into Claude Code
  • Presses Enter to submit
  • Waits for Remote Control UI to appear (~3-6 seconds)

Step 5: User Confirmation

  • Detects the "Continue" option in Remote Control menu
  • Presses Enter to confirm (or prompts user if needed)
  • Validates that Remote Control is now active

Step 6: Session Capture

  • Takes a screenshot of the final state
  • Displays the Remote Control session URL
  • Extracts and displays QR code information
  • Reports success or any errors encountered

Error Handling

The skill handles these common scenarios:

Issue Recovery
Terminal fails to open Retries once, then reports error
Project path doesn't exist Displays helpful path resolution suggestions
Claude Code not installed Reports missing dependency and suggests brew install claude
Claude Code hangs Timeout after 15 seconds, allows manual intervention
Remote Control fails to activate Logs error details, suggests checking Claude version
Terminal permissions denied Requests user to enable Screen Recording in System Preferences
Network connectivity issue Waits up to 10 seconds for reconnection

Resources

scripts/launch_claude_code.sh

Main automation script using Peekaboo CLI for:

  • Terminal window management
  • Keyboard/text input automation
  • Screenshot capture
  • Error detection and recovery
  • Logging all operations to ~/.openclaw/workspace/logs/claude-code-launcher.log

references/troubleshooting.md

Common issues and solutions:

  • Permission setup (Screen Recording, Accessibility)
  • Claude Code installation and updates
  • Terminal app configuration
  • Network troubleshooting

Prerequisites

✅ Installed: peekaboo (for UI automation)
✅ Installed: claude CLI (Claude Code)
✅ System: macOS with Terminal.app
✅ Permissions: Screen Recording + Accessibility enabled

To enable permissions:

System Settings → Privacy & Security → Screen Recording → Enable OpenClaw
System Settings → Privacy & Security → Accessibility → Enable OpenClaw

What You Get

After launching, you'll have:

  • ✅ New Terminal window with Claude Code running
  • ✅ Remote Control session active and shareable
  • ✅ Session URL for accessing from other devices
  • ✅ QR code for mobile devices (scan in Claude app)
  • ✅ Full context of your project available to Claude
  • ✅ Capability to pause/resume across devices

Example Workflow

User: "Launch Claude Code in edikar-standalone with Remote Control"
↓
Skill opens new Terminal
↓
cd ~/dev/edikar-standalone
↓
claude code
↓
/remote-control
↓
[Confirms continuation]
↓
Screenshot captured
↓
User sees:
   - Session URL: https://claude.ai/code/session_...
   - QR code displayed
   - Ready to access from phone/tablet

Related Commands

  • /remote-control - Activate Remote Control in Claude Code
  • claude code - Start Claude Code interactive session
  • peekaboo - macOS UI automation (used internally)

Need help? See references/troubleshooting.md for common issues and solutions.

04 同仓库更多 Skills

javimosch
javimosch/open-claw-skills

crowd-prompting

A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.

★ 0
javimosch
javimosch/open-claw-skills

ceaser

Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).

★ 0
javimosch
javimosch/open-claw-skills

ceaser-send

Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.

★ 0
javimosch
javimosch/open-claw-skills

dilemm-ai

Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).

★ 0
javimosch
javimosch/open-claw-skills

moldium

Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.

★ 0
javimosch
javimosch/open-claw-skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.

★ 0