Agent manager

From akillness/jeo-skills · View interactive version

Agent manager is an AI agent skill from the GitHub repository akillness/jeo-skills. tmux + Python agent lifecycle manager — start, stop, monitor, and assign tasks to AI agents running in tmux sessions. Use when managing multiple AI agents without a server, scheduling agent jobs via cron, monitoring agent heartbeats, or injecting skills into agent sessions. Zero dependencies beyond

How to use this skill

Skill file

Agent Manager

Simple, installation-agnostic AI agent lifecycle management using tmux + Python.

Manage multiple AI agents without running a server, wiring HTTP APIs, or pulling in heavy dependencies.

When to use this skill

Instructions

Step 1: Confirm that agent-manager is the right surface

Step 2: Install or verify before changing live sessions

Step 3: Model agents through markdown frontmatter

Step 4: Operate with explicit runtime evidence

Quick Start

# Install
bash scripts/install.sh

# Setup in your project
bash scripts/setup.sh

# Define CLI alias (point to your installed agent-manager main.py entrypoint)
CLI="python3 /path/to/agent-manager/scripts/main.py"
# Use
$CLI list
$CLI start EMP_0001
$CLI status EMP_0001
$CLI monitor EMP_0001 --follow
$CLI stop EMP_0001

Core Concepts

Agent Configuration

Agents are defined as agents/EMP_*.md files with YAML frontmatter:

---
name: dev
description: Dev Agent
working_directory: ${REPO_ROOT}
launcher: claude
launcher_args:
  - --dangerously-skip-permissions
skills:
  - review-pr
schedules:
  - name: daily-standup
    cron: "0 9 * * 1-5"
    task: |
      Review GitHub issues, prioritize today's work
    max_runtime: 30m
heartbeat:
  cron: "*/30 * * * *"
  max_runtime: 5m
  session_mode: auto
---

# DEV AGENT

## Role
You are the Dev Agent...

Key fields: name, description, enabled (default: true), working_directory (supports ${REPO_ROOT}), launcher, launcher_args, launcher_config, skills, schedules, heartbeat, tmux

Launcher Types

# Full path (Claude Code)
launcher: ${REPO_ROOT}/path/to/launcher
launcher_args: ["--dangerously-skip-permissions"]

# Provider name (Codex CLI)
launcher: codex
launcher_args: [--model=gpt-4.7]
launcher_config:
  model_instructions_file: ${REPO_ROOT}/agents/prompt.md

Commands

$CLI list                    # All agents (running/stopped/disabled)
$CLI list --running          # Only running agents
$CLI start dev               # Start agent in tmux session agent-dev
$CLI start dev --working-dir /path  # Override working dir
$CLI stop dev                # Kill agent tmux session
$CLI status dev              # Runtime snapshot + last heartbeat
$CLI monitor dev             # Last 100 lines of output
$CLI monitor dev -n 500      # Last 500 lines
$CLI monitor dev --follow    # Live tail (Ctrl+C to stop)
$CLI send dev "message"      # Send message (auto-submits)
$CLI send dev --no-enter "draft"  # Type without submitting
$CLI assign dev <<EOF        # Assign task from stdin
Task: Fix login bug
1. Reproduce, 2. Fix, 3. Test
EOF
$CLI assign dev --task-file task.md  # Assign from file
$CLI doctor                  # Sanity check setup

Scheduling

schedules:
  - name: daily-standup
    cron: "0 9 * * 1-5"
    task: |
      Review issues and prioritize work
    max_runtime: 30m
    enabled: true
$CLI schedule list           # Show all scheduled jobs
$CLI schedule sync           # Apply configured schedule entries (preview with --dry-run first)
$CLI schedule sync --dry-run # Preview changes
$CLI schedule run dev --job daily-standup  # Manual trigger

Heartbeat

Each agent can have one heartbeat for periodic check-ins:

heartbeat:
  cron: "*/30 * * * *"
  max_runtime: 5m
  session_mode: auto   # restore | auto | fresh
$CLI heartbeat list          # Show all heartbeat configs
$CLI heartbeat sync          # Apply configured heartbeat schedule (preview with --dry-run first)
$CLI heartbeat run EMP_0001  # Manual trigger
$CLI heartbeat trace --agent EMP_0001 --since 2026-01-01T00:00:00Z
$CLI heartbeat slo           # Daily SLO summary (target: ≥99% success)
$CLI heartbeat slo --window weekly --agent EMP_0001

Heartbeat message sent to agent:

"Read HEARTBEAT.md if it exists. Follow it strictly. If nothing needs attention, reply HEARTBEAT_OK."

Disabling Agents

---
name: dev
enabled: false   # ← prevents start; running sessions not stopped
---

Skills Integration

Skills listed in agent frontmatter are injected as system prompt on start:

skills:
  - review-pr
  - bsc-contract-development

Skills resolved from the project or user skills directory configured for the agent launcher (skills/ under the active workspace or user runtime scope).

Architecture

agent-manager/
├── SKILL.md
├── scripts/
│   ├── main.py              # CLI entry point
│   ├── agent_config.py      # YAML frontmatter parser
│   ├── tmux_helper.py       # tmux session wrapper
│   ├── schedule_helper.py   # crontab management
│   └── heartbeat_slo.py     # SLO summary script
├── providers/
│   └── __init__.py          # CLI provider configs
├── references/
│   └── quick-reference.md   # Command cheat sheet
└── scripts/
    ├── install.sh            # Installation script
    └── setup.sh              # Project setup script

Requirements

Examples

Example 1: Start a local dev agent and monitor it

Input:

Use agent-manager to start my dev agent in tmux, check whether it came up cleanly, and tail the output.

Output shape:

Example 2: Schedule a weekday standup and heartbeat safely

Input:

Set up a weekday 9am standup task and a 30-minute heartbeat for my QA agent, but show me the safe sync flow first.

Output shape:

Example 3: Assign a longer task from a file

Input:

I have a long testing checklist. Should agent-manager assign it from stdin or a file, and how do I send it?

Output shape:

Best practices

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.