Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    ahub control

    0

    Manage, resume, and orchestrate Codex and Claude Code sessions via a local Agent Hub CLI.

    Free

    Security scanned
    ahub control

    ahub control

    Example session with this skill installed

    Use ahub-control to create a Claude Code session for the /Users/dev/project directory and send the task described in task.txt.

    • Read your context and instructions
    • Compiled the ahub control

    I have successfully initialized a new Claude Code session and dispatched the task. The session is currently active and being monitored for progress.

    Session Execution Summary

    FieldValue
    Session IDs_8f2k93zh
    Agentclaude-code
    Project/Users/dev/project
    Permission Modeauto
    Statusconnected / working

    Terminal Diagnostics

    The session was created using ahub-cli session create. I have piped the contents of task.txt into the session using the --stdin flag to ensure the full context was delivered without shell escaping issues. The agent has transitioned to the working phase and is currently performing initial directory indexing.

    Observed Activity

    • 14:02:11 - Session created with ID s_8f2k93zh.
    • 14:02:12 - Task delivered via stdin.
    • 14:02:15 - Phase changed: update (Indexing project files...).

    Next steps

    1. Run ahub-control to inspect session s_8f2k93zh and check for any pending Plan approvals.
    2. Use terminal s_8f2k93zh if the agent appears stalled to verify if a sudo or git credential prompt is visible.
    3. Call exit s_8f2k93zh once the deliverables in task.txt are verified.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Managing multi-agent sessions across complex local environments often leads to context drift, abandoned terminal processes, and fragmented visibility. This skill provides a structured interface to Agent Hub, allowing you to orchestrate Codex and Claude Code sessions through a unified CLI layer with precise control over lifecycle and state.

    What it does

    • Session management handles the creation, resumption, and termination of Codex and Claude Code sessions within specific project scopes.
    • Workflow orchestration allows sending complex tasks via stdin to avoid shell interpolation errors and monitoring execution progress in real-time.
    • State inspection retrieves granular session data including connection status, idle/working phases, and response history using NDJSON following.
    • Interactive handling manages agent questions and Plan approvals using simulated key inputs or batch-sent answers.
    • Environment resolution maps non-absolute project paths to verified directories and resolves agent nicknames to ensure correct runtime execution.

    How it works

    1. Initialize by verifying ahub-cli availability and resolving the target project path and agent nickname through the Hub's local service.
    2. Execute by creating a new session or resuming an existing ID with a defined permission mode such as auto or yolo.
    3. Monitor by following session output from a specific baseline to capture assistant replies, progress updates, and input requests.
    4. Interact by responding to terminal-based prompts via the keys command or interrupting stalled background processes to recalibrate.
    5. Verify deliverables against the task brief before explicitly exiting or deleting the session history.

    Frameworks & tools

    This skill requires a local installation of Agent Hub and ahub-cli. It interfaces with Codex and Claude Code agents operating within Node.js environments.

    Why this beats prompting it yourself

    Raw prompting cannot maintain the state machine required to monitor long-running terminal sessions or handle the nuances of hasMore pagination in NDJSON streams. This skill provides the logic to safely navigate connection states and permission prompts that typically break standard agent-to-agent interactions.

    Use cases

    • Long-running refactors where a sub-agent needs to work autonomously inside a persistent Claude Code session over several hours.
    • Multi-project coordination by switching between isolated agent sessions while maintaining unique working directories and worktrees.
    • Automated approval flows using the auto permission mode to bypass manual interventions for known safe operations.

    Known limitations

    Requires Agent Hub to be pre-installed and running locally. The skill does not support starting the Hub service itself. Commands are limited by CLI timeouts, typically between 15 to 45 seconds.

    Requires Agent Hub and ahub-cli to be pre-installed and running. Does not support starting the Hub service. Execution is bound by CLI-specific timeouts.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Write Files
    Network Access
    Read Files
    Environment Variables
    Listed4 days ago

    What's inside

    Frequently Asked Questions

    This skill provides a structured CLI-driven interface to manage Codex and Claude Code sessions, preventing context drift and allowing you to resume, monitor, and automate terminal-based agent workflows that usually require manual intervention.

    The skill is designed specifically for Codex and Claude Code agents operating within a Node.js environment via the Agent Hub CLI; it does not support general-purpose web-based chatbots.

    You must have the Agent Hub local service and `ahub-cli` pre-installed and running on your machine, as this skill acts as the orchestration layer for that existing infrastructure.

    Yes, the skill includes the ability to send simulated key inputs and batch-sent answers to handle agent questions or Plan approvals, even when running in background processes.

    You receive the complete skill package including the orchestration logic for session lifecycle management, state inspection, and environment resolution, along with documentation for integrating it into your agent's toolkit.

    The skill manages state by following NDJSON streams from a specific baseline, allowing it to accurately capture assistant replies and progress updates even during long-running refactors or network interruptions.

    New in Agents & Orchestration