An Agentic Operations (AgOps) orchestrator for recursive, parallel development.
Project description
Pkood (said like 'groot')
Run tens of agent sessions (Claude-code / Gemini-CLI / Antigravity) in parallel. Monitor them, attach to them, and analyze their internal thought logs. Get notified when they are blocked and await your input.
Installation
-
Requirements:
- Python 3.10+
tmux(Required for managed background sessions. Available viabrew install tmuxon macOS orsudo apt install tmuxon Linux/Windows:WSL2).
-
Install via PyPI:
pip install pkood
-
Install from Source: Clone the repository and install in editable mode:
git clone https://github.com/tal-franji/pkood.git cd pkood pip install -e .
-
Verify and Configure: Run the system check to ensure requirements are installed and to automatically configure your AI agents (Gemini CLI / Claude Code) to talk to the Pkood control plane:
pkood test
Operation
Pkood treats AI agents and long-running tasks as managed services. It also automatically discovers independent agents (like Antigravity or raw CLI sessions) running on your system.
Commands
-
Start an interactive session: Creates a new session running your default shell or a specified CLI agent in the given directory and attaches to it immediately.
pkood start --dir ./my-project --cmd claude
Options:
--cmd <agent>: Specify the CLI command to launch (e.g., 'gemini', 'claude'). If omitted, Pkood will auto-detect or fall back to your shell.--name <name>: Custom session name (defaults to directory name).--fg: Foreground - Runs the agent natively in your current terminal (without Tmux). Pkood will still track its logs and status, but you cannot remotely attach/inject into it.
-
Spawn a background agent: Runs a specific command in a managed background session.
pkood spawn --name research-task "gemini 'research the latest AgOps trends'"
-
List active agents: Shows all agents, their current status (RUNNING, IDLE, BLOCKED, EXITED, or DETACH), standard I/O log size, and internal history size.
pkood lsNote: Agents in
DETACHmode are independent processes (like Antigravity) discovered via system heuristics. -
View Thinking History: Tails the internal thought/chat log of an agent (as opposed to its terminal standard I/O).
pkood hist research-task -n 100
-
Attach to a session: Join a running agent's terminal (Managed agents only).
pkood attach research-task
To detach without killing the agent, press
Ctrl+BthenD. -
Kill an agent: Terminates the session and cleans up associated sockets and state files.
pkood kill research-task
-
Inject input: Send text directly to a background agent's terminal (Managed agents only).
pkood inject research-task "y"
Key Shortcuts (within a session)
After attaching to a managed session, you can use the following Tmux keys:
- Detach:
Ctrl+Bfollowed byD - Scroll Mode:
Ctrl+Bfollowed by[(Pressqto exit) - Force Exit:
Ctrl+D(This kills the agent and closes the session)
Skills and Slash Commands
Pkood can install skills and slash commands for AI agents (Gemini CLI / Claude Code) to allow them to interact with the Pkood control plane.
Install Skills and Slash Commands
pkood test
Use the Skills and Slash Commands
Pkood installs custom slash commands into your AI CLI to make fleet management seamless.
- View Fleet Status: Show all active agents, their status, and an intelligent summary synthesized from both terminal output and internal thought logs.
/pkood:status
- Review and Unblock: Triage all currently blocked managed agents in a single step, presenting a numbered list of pending actions for batch approval.
/pkood:review
- Auto Review and Unblock: Automatically act as a Fleet Manager to triage blocked agents. Approves actions that are not obviously dangerous or large refactoring.
/pkood:auto
- Spawn a Sub-Agent: Instruct your current agent to act as a Fleet Manager, parse your request, and spawn a new background agent to handle the task autonomously.
/pkood:start Write a Python script that finds the first 4 perfect numbers.
The AgOps Control Plane (MCP)
This is the internal service used by the skills and slash commands. You do not need to use it directly.
Pkood includes a built-in Model Context Protocol (MCP) server. This transforms Pkood from a simple CLI tool into an orchestration layer that your AI agents can use to manage each other.
Starting the Control Plane
To allow agents to see and interact with the fleet, start the MCP service:
pkood mcp
(Runs on http://localhost:8000/sse by default)
What Agents Can Do
Once your agents (like Gemini CLI or Claude Code) are connected to the Pkood MCP, they gain "fleet awareness." They can use the following tools:
list_agents: See the full state of the system.tail_agents: Read the standard I/O (terminal output) of managed agents.hist_agents: Read the internal thinking/history logs of any discovered agent.inject_to_agent: Remotely unblock managed agents.format_status_table: Generate a consistent, human-readable fleet dashboard.
By exposing both the mechanical terminal primitives and the semantic internal logs as structured MCP tools, Pkood enables a recursive, multi-agent development workflow where one "Manager" agent can coordinate a fleet of specialized workers.
Comparison: Pkood vs. Claude /batch
While Claude Code's /batch skill is excellent for quick, sequential automation, Pkood is designed for long-running, autonomous operations and IDE-based development.
| Feature | Claude /batch |
Pkood |
|---|---|---|
| Persistence | Ephemeral (stops if terminal closes) | Persistent (background or system-detached) |
| Visibility | Simple progress status | Full Terminal Attachment + Internal Thought Analysis |
| Context | Single-session focus | Fleet-wide awareness via MCP |
| Control | Stop/Start only | Inject input, search logs, and manage state |
| Hybrid Workflow | Terminal only | Unifies IDE (Antigravity) and CLI agents |
Use /batch when you want to automate 10 small local edits in your current session.
Use Pkood when you want to run a fleet of independent agents that work autonomously across different projects and require high-level coordination and observability.
Comparison: Pkood vs. Claude Desktop
Claude Desktop app allow nice UI to moving between terminal sessions and some may find them more convenient than working with tmux sessions. However Claude Desktop does not allow one agent to reason about other agents output and thought-process.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pkood-1.2.0.tar.gz.
File metadata
- Download URL: pkood-1.2.0.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87f5293ca7dd0b615f3060f37ee752cf8768cd179a84fca23263f1e6947de309
|
|
| MD5 |
b5fddc473e563050922d96cfe964cf19
|
|
| BLAKE2b-256 |
4551cf456d919ab747086c4f10d3ea53bf21be59eca2e2d066496420f3b07ac9
|
File details
Details for the file pkood-1.2.0-py3-none-any.whl.
File metadata
- Download URL: pkood-1.2.0-py3-none-any.whl
- Upload date:
- Size: 31.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd5009d1aefaa719977fed1d31e18a2bee7a37205afe97bdfeed81c6056b7b51
|
|
| MD5 |
bbf00bb97ce7c0afddf1fae0548275f8
|
|
| BLAKE2b-256 |
9f705b5e5cad67d74c3477dcc49af9023c36fdf886cad59231f64c302a07ee4b
|