智能代理管理 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
智能代理管理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
智能代理管理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g agentmanager # 方式二:npx 直接运行(无需安装) npx agentmanager --help # 方式三:项目依赖安装 npm install agentmanager # 方式四:从源码运行 git clone https://github.com/simonstaton/AgentManager cd AgentManager npm install npm start
# 命令行使用
agentmanager --help
# 基本用法
agentmanager [options] <input>
# Node.js 代码中使用
const agentmanager = require('agentmanager');
const result = await agentmanager.run(options);
console.log(result);
# agentmanager 配置说明 # 查看配置选项 agentmanager --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export AGENTMANAGER_CONFIG="/path/to/config.yml"
Conduct autonomous agents at scale safely. You lead. Agents execute. Human-on-the-loop, NOT human-in-the-loop. Orchestrate AI work like a manager, not a prompt juggler.
<p align="center"> <a href="https://github.com/simonstaton/AgentManager/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a> <a href="https://github.com/simonstaton/AgentManager/actions"><img src="https://img.shields.io/github/actions/workflow/status/simonstaton/AgentManager/ci.yml" alt="CI"></a> </p>
| Feature | Details |
|---|---|
| **Multi-agent orchestration** | Up to 100 concurrent agents, each with isolated /tmp/workspace-{uuid} and full Claude Code capabilities |
| **Real-time streaming UI** | Next.js App Router UI with SSE streaming, live terminal output, tool use visualization, cost-per-turn stats |
| **Task graph + orchestrator** | Structured world model with Plan-Execute-Observe loop, capability-aware routing, and inter-agent contracts |
| **Agent graph visualization** | Interactive SVG tree showing parent-child topology, color-coded by status, with token usage on each node |
| **Cost tracking** | Per-agent token counts and USD cost estimates, summary dashboard, per-model pricing (Opus/Sonnet/Haiku) |
| **Pause and resume** | Pause any running agent mid-task and resume it later. Process is kept alive, context preserved |
| **Confidence grading** | Agents self-grade their fixes with a confidence score, surfaced in the UI for prioritized review |
| **Attachment support** | Send files to agents alongside prompts, or attach files without any text prompt |
| **Cron scheduler** | Persistent wake-on-alert scheduler: agents can register jobs that re-trigger them on a schedule |
| **Inter-agent messaging** | In-memory pub/sub: task, result, question, info, status, interrupt. Direct or broadcast. Auto-delivery to idle agents |
| **Agent persistence** | State, events and shared context sync to GCS. Agents survive container restarts and cold starts |
| **Parent-child lifecycle** | Agents spawn sub-agents. Destroying a parent auto-destroys the entire subtree |
| **OpenRouter support** | Route through OpenRouter or direct Anthropic API. Switch keys at runtime from the UI |
| **Model selection** | Opus 4.6, Sonnet 4.6, Sonnet 4.5, Haiku 4.5. Choose per agent based on task complexity |
| **MCP integrations** | GitHub, Figma, Linear, Notion, Slack, Google Calendar. See [MCP servers](#mcp-servers) |
| **Safety guardrails** | Command blocklists, rate limiting, memory monitoring, spawn depth limits (3 deep, 20 children), 4-hour session TTL |
| **Git worktree management** | Persistent bare repos in /persistent/repos/ with per-agent worktrees and automatic GC |
POST /api/agents { "name": "feature-dev", "role": "developer", "prompt": "Implement user authentication. When done, send a 'result' message to the code-reviewer agent." }
You need Docker. Don't have it? Install Docker Desktop for Mac/Windows or Docker Engine for Linux. Check: run docker --version in a terminal; if you see a version, you're set.
Docker is the only supported way to run AgentManager. Running the server or UI outside Docker is unsupported and unsafe.
gcloud CLI authenticated and configuredterraform CLI installed```bash
gcloud builds submit \ --tag $REGION-docker.pkg.dev/$PROJECT_ID/agent-manager/agent-manager:latest \ --project=$PROJECT_ID --region=$REGION
docker build -t $REGION-docker.pkg.dev/$PROJECT_ID/agent-manager/agent-manager:latest . docker push $REGION-docker.pkg.dev/$PROJECT_ID/agent-manager/agent-manager:latest ```
terraform init
terraform plan # Preview changes
terraform apply # Deploy
This creates: - Cloud Run service - 32GB RAM, 8 CPU, autoscaling (min 0, max 1 instance) - GCS bucket - Persistent storage for agent state and shared context - Secret Manager secrets - OpenRouter key, API key, JWT secret, MCP credentials - Service account - Minimal IAM permissions (Cloud Run invoker, GCS admin, Secret Manager accessor) - IAM auth - No public access; requires authenticated users - Cloud Monitoring alerts - Error rate, p99 latency, crashes, memory, CPU
gcloud run services update agent-manager --region=$REGION ```
1. Clone the repository
git clone https://github.com/simonstaton/AgentManager.git AgentManager
cd AgentManager
2. Configure environment variables
cp .env.example .env
Edit .env and set: - API_KEY — The password you'll use to log in to the web UI. - ANTHROPIC_AUTH_TOKEN — Your OpenRouter or Anthropic API key (e.g. from openrouter.ai/keys). - Do not set GCS_BUCKET — Leave it unset for local mode.
3. Start the app
npm run docker:local
The first run may take a few minutes while the image builds.
Your data (repos, shared context, logs) is stored in a Docker volume and survives restarts. Full steps and troubleshooting: Run locally with Docker.
cd terraform
cp terraform.tfvars.example terraform.tfvars
Edit terraform.tfvars with your values: - project_id - Your GCP project ID - region - Deployment region (e.g. us-central1) - api_key - Your UI login password - openrouter_api_key - Get from openrouter.ai/keys - jwt_secret - Any random 32+ character string - Optional: github_token, figma_token, linear_api_key, notion_api_key, etc.
| Method | Path | Description |
|---|---|---|
| GET | /api/claude-config | List editable config files |
| GET | /api/claude-config/file | Read a config file |
| PUT | /api/claude-config/file | Write a config file |
| POST | /api/claude-config/commands | Create a new skill/command |
| DELETE | /api/claude-config/file | Delete a skill or memory file |
| Method | Path | Description |
|---|---|---|
| GET | /api/settings | Get current settings (key hint, available models) |
| PUT | /api/settings/anthropic-key | Switch API key at runtime (OpenRouter or Anthropic) |
The SDK gives you chat completions with tool calling. Claude Code gives you a complete coding agent with file editing, bash execution, git, MCP, session resumption and sub-agent delegation, all maintained by Anthropic. AgentManager runs these agents rather than trying to rebuild them from scratch.
Claude Code's --output-format stream-json gives typed JSON events (not terminal scraping) that the platform parses for real-time UI streaming, state tracking and cost calculation. New capabilities Anthropic adds to Claude Code show up in AgentManager without any work on my end.
echo '{"killed":true,"reason":"emergency"}' | gsutil cp - gs://your-bucket/kill-switch.json ```
<details> <summary>Click to expand full API reference</summary>
Setting GITHUB_TOKEN enables three things for agents: 1. gh CLI - create PRs, manage issues, query repos 2. git push/git fetch - credential helper is configured automatically on startup via gh auth setup-git 3. GitHub MCP server - structured tool access to GitHub's API
Option A: Fine-grained token (recommended)
Go to GitHub Settings > Fine-grained tokens: - Token name: agent-manager - Expiration: 90 days (or custom) - Repository access: "Only select repositories" and pick the repos agents should access - Permissions: - Contents - Read and write - Pull requests - Read and write - Metadata - Read-only (auto-selected)
Option B: Classic PAT
Go to GitHub Settings > Tokens (classic): - Scopes: repo (required), workflow (optional)
When running with Docker locally — add to .env:
GITHUB_TOKEN=github_pat_xxxxx
Production (Cloud Run) - add to terraform/terraform.tfvars:
github_token = "github_pat_xxxxx" Then run terraform apply and redeploy. Terraform stores the token in Secret Manager and injects it as an env var.
Quick update without Terraform - update the secret directly:
echo -n "github_pat_new_token_here" | gcloud secrets versions add github-token --data-file=- --project=$PROJECT_ID
gcloud run services update agent-manager --region=$REGION --project=$PROJECT_ID
高质量的AI工作流管理工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,智能代理管理 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | AgentManager |
| Topics | aiagenttypescript工作流 |
| GitHub | https://github.com/simonstaton/AgentManager |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-06-04 · 更新时间:2026-06-04 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端