Skip to main content

Parallel sub-agent orchestration CLI for Gemini

Project description

SUBGEMI: Gemini Sub-Agent Orchestration

The industrial-grade parallel engine for Gemini.

subgemi is a standalone CLI tool designed for high-agency, autonomous task execution. It allows you to delegate complex, tedious, or parallel tasks to Gemini sub-agents while you maintain focus on project architecture.

🚀 Key Features

  • Atomic Parallelism: Dispatch dozens of background tasks simultaneously.
  • Isolated Sandboxing: Every agent runs in its own isolated git worktree with read-only metadata protection.
  • Distributed State: High-performance, lock-free architecture using atomic JSON artifacts.
  • Live Dashboard: Real-time tree visualization (DAG) of all active and historical sessions.
  • Usage Metrics: Built-in token burn tracking and spend estimation (USD) via subgemi metrics.
  • Active Health Checks: Built-in "Dead Man's Switch" detects and reaps zombie processes automatically.

📦 Installation

pip install gemini-subagent

Requirements: Python 3.10+, Gemini CLI, Tmux.

🛠️ Usage

1. Delegate (The Fork)

Dispatch a task organized by lanes or personas:

subgemi task delegate "Audit all endpoints in src/api/" --lane security --persona security_lead

2. Monitor (The Board)

Track execution progress across the swarm:

subgemi session board

3. Analyze (The Metrics)

Track your ROI and token efficiency:

subgemi metrics board

4. Cleanup (The Reaper)

Purge orphaned monitors and dangling processes:

subgemi session prune --hard

🏗️ Architecture

subgemi follows the One-Shot Context principle. When a task is delegated, the engine:

  1. Creates an isolated Git Worktree.
  2. Bundles project Rules, Roles, and Workflows.
  3. Packs the repository context into a high-density Repomix bundle.
  4. Spawns a Tmux monitor for background visibility.
  5. Executes the task via an FSM (Finite State Machine) to ensure robust lifecycle tracking.

Built by NLanN.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_subagent-0.1.8.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_subagent-0.1.8-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

File details

Details for the file gemini_subagent-0.1.8.tar.gz.

File metadata

  • Download URL: gemini_subagent-0.1.8.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.12 Darwin/25.1.0

File hashes

Hashes for gemini_subagent-0.1.8.tar.gz
Algorithm Hash digest
SHA256 70bdbc0e7079d6f60718ae13b18b1e6cd904ad3c9d9250e898e1d08a4b405dfc
MD5 a4806c1464cada5b3eb160c8130a62e7
BLAKE2b-256 c5f196f1c7dba97b8b672dc8177dc1dc2fce8aadd88f1af2ee4e8bcb61f2d3d0

See more details on using hashes here.

File details

Details for the file gemini_subagent-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: gemini_subagent-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 50.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.12 Darwin/25.1.0

File hashes

Hashes for gemini_subagent-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6dbf468c2bc9a0508c91e7a62b8d5d229a0e08ee7b5c0f81c3534b845cac79f6
MD5 eea60f19049ac01aed4e9a61cf56a23e
BLAKE2b-256 8694c5c76d89609c5a471b53eb2f80589256ce248e0fee1a1690557b4f74df67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page