कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

claude-code-control

melichar-m द्वारा

CLI Utilities
817clawskills.sh द्वारा बताए गए डाउनलोड
1स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Control Claude Code programmatically through visible Terminal.app windows on macOS.

विवरण

यह स्किल क्या करती है

Programmatically controls Claude Code through visible Terminal.app windows on macOS using AppleScript. Sends commands via keystrokes, captures screenshots of the Terminal window, and records full sessions with timestamped logs.

Controls Claude Code without a headless or API approach, keeping the Terminal window visible for monitoring while still enabling full programmatic automation.

इसे कब इस्तेमाल करें

  • Automating repetitive Claude Code prompts across multiple projects
  • Recording Claude Code sessions for review or documentation
  • Running Claude Code in CI-like scripts without manual input
  • Capturing screenshots of Claude Code output for reports
  • Orchestrating Claude Code from a parent Node.js script

उदाहरण वर्कफ़्लो

इनपुट

User asks: automate running Claude Code to write tests for a Python project

एजेंट
  1. 1

    Call launch() with the project directory path to open Terminal and start Claude Code

  2. 2

    Call send() with the command 'write tests for app.py' and a wait timeout

  3. 3

    Receive the result object containing a screenshot path and duration_ms

  4. 4

    Call saveSession() to write the full session log to a JSON file

  5. 5

    Call close() to exit Claude Code gracefully

आउटपुट

Session JSON log saved to disk with timestamped commands and a Terminal window screenshot of the completed test-writing step

आवश्यकताएँ

  • Claude Code installed and authenticated
  • Accessibility permissions granted for Terminal.app and Script Editor in macOS System Settings → Privacy & Security → Accessibility

इंस्टॉलेशन

clawhub install melichar-m/claude-code-control

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक