# Send Overstory Integration to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "overstory-integration",
    "name": "Overstory Integration",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/RuneweaverStudios/overstory-integration",
    "canonicalUrl": "https://clawhub.ai/RuneweaverStudios/overstory-integration",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/overstory-integration",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=overstory-integration",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "scripts/agent_lifecycle.py",
      "scripts/mail_bridge.py",
      "scripts/overstory_wrapper.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/overstory-integration"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/overstory-integration",
    "downloadUrl": "https://openagent3.xyz/downloads/overstory-integration",
    "agentUrl": "https://openagent3.xyz/skills/overstory-integration/agent",
    "manifestUrl": "https://openagent3.xyz/skills/overstory-integration/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/overstory-integration/agent.md"
  }
}
```
## Documentation

### Description

Integrates overstory's Claude Code agent swarm system with the nanobot orchestrator. Provides agent lifecycle management, an inter-agent SQLite mail bridge, and git worktree coordination for parallel agent workstreams.

### Architecture

┌──────────────┐       ┌───────────────────┐
│   nanobot     │──────▶│ overstory_wrapper │──▶ overstory CLI (tmux sessions)
│  orchestrator │       └───────────────────┘
│               │       ┌───────────────────┐
│               │──────▶│ agent_lifecycle    │──▶ SQLite (agent_lifecycle.db)
│               │       └───────────────────┘
│               │       ┌───────────────────┐
│               │──────▶│   mail_bridge     │──▶ SQLite (.overstory/mail.db)
└──────────────┘       └───────────────────┘

overstory_wrapper.py — Thin wrapper around the overstory CLI. Spawns agents via tmux, manages worktrees, installs hooks.
agent_lifecycle.py — Tracks agent state (spawned → running → completed/failed/terminated) in a local SQLite database. Provides async monitoring and cleanup.
mail_bridge.py — Thread-safe message bridge using overstory's native SQLite mail format. Supports direct messages, broadcasts, and threaded conversations.

### Requirements

Python 3.9+
overstory CLI installed and on PATH (or set OVERSTORY_BIN)
git (for worktree management)
tmux (overstory uses tmux for agent sessions)
No external Python dependencies (stdlib only)

### Environment Variables

VariableDefaultDescriptionOVERSTORY_BINoverstoryPath to overstory binaryOVERSTORY_WORKSPACEcurrent directoryWorkspace root for overstory operations

### Initialize workspace

python3 scripts/overstory_wrapper.py init --workspace /path/to/project

### Spawn an agent

python3 scripts/overstory_wrapper.py sling \\
  --task-id TASK-42 \\
  --capability code \\
  --name builder-alice \\
  --description "Implement auth module" \\
  --worktree

### Check status

python3 scripts/overstory_wrapper.py status
python3 scripts/overstory_wrapper.py status --agent builder-alice --verbose

### Inspect agent transcript

python3 scripts/overstory_wrapper.py inspect --agent builder-alice --lines 100

### Kill an agent

python3 scripts/overstory_wrapper.py kill --agent builder-alice

### Worktree management

python3 scripts/overstory_wrapper.py list-worktrees
python3 scripts/overstory_wrapper.py cleanup-worktree --agent builder-alice

### Agent lifecycle

python3 scripts/agent_lifecycle.py spawn --task "Fix login bug" --capability code --name bug-fixer
python3 scripts/agent_lifecycle.py list-active --json
python3 scripts/agent_lifecycle.py wait --agent bug-fixer --timeout 1800
python3 scripts/agent_lifecycle.py cleanup --max-age 24

### Mail bridge

python3 scripts/mail_bridge.py send --from orchestrator --to builder-alice --subject "Priority change" --body "Switch to auth module"
python3 scripts/mail_bridge.py read --agent builder-alice --unread
python3 scripts/mail_bridge.py broadcast --from orchestrator --channel @all --message "Stand down"
python3 scripts/mail_bridge.py create-thread --agents orchestrator,builder-alice --subject "Auth design"
python3 scripts/mail_bridge.py reply --thread THREAD-ID --from builder-alice --body "Done with phase 1"

### Usage as Python Module

from overstory_wrapper import OverstoryWrapper
from agent_lifecycle import AgentLifecycle
from mail_bridge import MailBridge

wrapper = OverstoryWrapper("/path/to/workspace")
wrapper.init()

lifecycle = AgentLifecycle()
agent = lifecycle.spawn_agent(task="Build API", capability="code", name="api-builder")

bridge = MailBridge("/path/to/workspace")
bridge.send("orchestrator", "api-builder", "Context", "Here are the specs...")

### agent_lifecycle.db (~/.nanobot/agent_lifecycle.db)

ColumnTypeDescriptionidINTEGER PRIMARY KEYAuto-incrementagent_nameTEXT UNIQUEAgent identifiercapabilityTEXTAgent capability (code, research, etc.)statusTEXTspawned/running/completed/failed/terminatedtaskTEXTTask descriptionresultTEXTFinal output (nullable)start_timeREALUnix timestampend_timeREALUnix timestamp (nullable)timeoutINTEGERMax runtime in seconds

### mail.db (.overstory/mail.db)

ColumnTypeDescriptionidINTEGER PRIMARY KEYAuto-incrementthread_idTEXTThread identifier (nullable)from_agentTEXTSender agent nameto_agentTEXTRecipient agent namesubjectTEXTMessage subjectbodyTEXTMessage bodypriorityTEXTnormal/high/urgentreadINTEGER0=unread, 1=readcreated_atREALUnix timestamp
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: RuneweaverStudios
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/overstory-integration)
- [Send to Agent page](https://openagent3.xyz/skills/overstory-integration/agent)
- [JSON manifest](https://openagent3.xyz/skills/overstory-integration/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/overstory-integration/agent.md)
- [Download page](https://openagent3.xyz/downloads/overstory-integration)