百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vibehq-hub

> 编程语言
开源

协调 Claude、Codex 和 Gemini 代理人作为真正的工程团队工作。

194 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

协调 Claude、Codex 和 Gemini 代理人作为真正的工程团队工作。

Language: English | 繁體中文 | 日本語

⚡ VibeHQ

Running 5 AI agents in parallel is easy. Making them not break each other's code is the hard part.

VibeHQ adds contracts, task tracking, and idle-aware messaging to Claude Code, Codex & Gemini CLI — so they work like an actual engineering team, not 5 interns editing the same file.


The Problem Nobody Talks About

Every "multi-agent" tool lets you run multiple CLI agents in parallel. But parallel ≠ collaboration. Here's what actually happens when 5 agents build the same app:

What Goes Wrong Real Example from Our Logs
Schema conflicts — each agent invents its own JSON format Frontend expects { data: [] }, backend writes { results: [] }, third agent creates its own copy
Orchestrator role drift — the PM starts writing code PM spent 6 manual JS patches fixing integration bugs instead of coordinating
Ghost files — agents publish 43-byte stubs instead of real content Agent writes full file via share_file, then puts "See local file..." in publish_artifact. Loop repeats for 68 minutes
Premature execution — agents start before dependencies are ready Agent sees QUEUED task description, ignores the status, starts coding with hardcoded data
Silent failures — crashed agents produce no signal Orchestrator waits 18 minutes for a response from a dead process

These aren't edge cases. They're LLM-native behavioral patterns that reliably appear across model families. We documented 7 of them with full session logs.

Read the full analysis: 7 LLM-Native Problems →


What VibeHQ Actually Does

VibeHQ is a teamwork protocol layer that sits on top of real CLI agents. Each agent stays a full Claude Code / Codex / Gemini process with all native features — VibeHQ adds the coordination they're missing:

Problem VibeHQ's Fix
Schema conflicts Contract system — agents must sign API specs before coding begins
Role drift Structured task lifecycle — create → accept → in_progress → done with required artifacts
Ghost files Hub-side validation — rejects publish_artifact calls with stub content ( Watch 7 agents collaborate in real-time →

MCP tools in action (videos)

List Teammates

https://github.com/user-attachments/assets/b4e20201-dc32-4ab4-b5fe-84b165d44e23

Teammate Talk

https://github.com/user-attachments/assets/ea254931-9981-4eb6-8db3-44480ec88041

Assign Task

https://github.com/user-attachments/assets/fec7634e-976a-4100-8b78-bd63ad1dbec0


Post-Run Analytics & Auto-Optimization

Analyze

bash
vibehq-analyze ./data                        # Analyze session logs
vibehq-analyze --team my-team --with-llm     # Auto-resolve team logs + LLM insights
vibehq-analyze --team my-team --with-llm --save --run-id v1  # Save for optimization
vibehq-analyze compare v1 v2                 # Compare two runs side-by-side
vibehq-analyze history --last 10             # View past runs

13 automated detection rules: artifact regression, orchestrator role drift, stub files, task timeout, incomplete tasks, coordination overhead, unresponsive agents, zero artifacts, context bloat, duplicate artifacts, premature task accept, excessive MCP polling, task reassignment.

Skills: /run-teamwork, /benchmark-loop & /optimize-protocol

VibeHQ ships three skills. Skills work on both Claude Code and Codex CLI — same format, different directory.

Cross-Platform Skill Locations

Platform Project-level User-level
Claude Code .claude/skills//SKILL.md ~/.claude/skills/
Codex CLI .agents/skills//SKILL.md ~/.codex/skills/

The SKILL.md format is an emerging cross-platform standard — same frontmatter (name, description), same markdown body. A skill created for one platform works on the other.

Setup

Claude Code — skills are already included in .claude/skills/. Just use them:

bash
# In Claude Code, type:
/run-teamwork "Build an AI investment analysis platform"
/benchmark-loop "Build a todo app" --grade A
/optimize-protocol v1

Codex CLI — copy the skills to Codex's directory:

bash
# Project-level (committed to repo)
mkdir -p .agents/skills
cp -r .claude/skills/run-teamwork .agents/skills/
cp -r .claude/skills/optimize-protocol .agents/skills/
cp -r .claude/skills/benchmark-loop .agents/skills/

# Or user-level (available in all projects)
cp -r .claude/skills/run-teamwork ~/.codex/skills/
cp -r .claude/skills/optimize-protocol ~/.codex/skills/
cp -r .claude/skills/benchmark-loop ~/.codex/skills/

Then in Codex CLI, invoke with /skills or type $ to mention a skill.

/run-teamwork — One-Shot Team Builder

Give it a project description — it designs the team, spawns agents, and builds it. No analysis, no loop.

bash
/run-teamwork "Build an e-commerce site with payments and admin panel"
  1. Analyzes the prompt to determine required domains and team size
  2. Generates PM system prompt with research-first workflow (research before implementation)
  3. Spawns agents in tmux (macOS/Linux) or Windows Terminal
  4. Waits for all tasks to complete
  5. Reports the output directory and file count

/optimize-protocol — Framework Engineer

Reads analysis data and writes real code fixes (not parameter tuning):

bash
/optimize-protocol v1    # Read analysis for run v1, implement fixes
  1. Loads current run + all previous optimization reports
  2. Builds cross-run trend table (what's improving, what regressed, what's a side-effect)
  3. Classifies each problem as NEW, RECURRING, or SIDE-EFFECT of a previous fix
  4. Implements real TypeScript changes to the framework
  5. Verifies build passes
  6. Saves a detailed changelog to ~/.vibehq/analytics/optimizations/

/benchmark-loop — Autonomous Runner

Runs the full self-improving cycle automatically:

bash
/benchmark-loop "Build a Todo app with REST API, React frontend, and WebSocket real-time updates"
  1. Spawns a fresh team with a standardized project
  2. Waits for the team to finish (heartbeat monitoring)
  3. Analyzes session logs (13 rules + LLM grading)
  4. Triggers /optimize-protocol to write code fixes
  5. Rebuilds the framework (npx tsup)
  6. Repeats with a new team — zero human intervention

Manual Step-by-Step (works with any CLI)

The underlying tools are regular CLI commands — no skills required:

bash
# 1. Run a benchmark
vibehq start --team your-team

# 2. Analyze
vibehq-analyze --team your-team --with-llm --save --run-id v1

# 3. Auto-optimize (Claude Code / Codex skill)
/optimize-protocol v1

# 4. Run again, compare
vibehq start --team your-team
vibehq-analyze --team your-team --with-llm --save --run-id v2
vibehq-analyze compare v1 v2

All optimization reports are saved to ~/.vibehq/analytics/optimizations/ for tracking and auditing.

Supports both Claude Code and Codex CLI native JSONL log formats.

Remote Access

The web platform is accessible on your LAN by default. For external access:

⚠️ Always set VIBEHQ_AUTH before exposing remotely — the web UI gives full terminal access.

Method Best For
Tailscale Personal use — private VPN, no config, free
Cloudflare Tunnel Sharing — public URL behind Cloudflare, free
ngrok Quick testing — ngrok http 3100, temporary URL
SSH Tunnel VPS — ssh -R 8080:localhost:3100 your-server

Tailscale (recommended): Install on PC + phone → sign in both → VIBEHQ_AUTH=admin:secret vibehq-web → open http://:3100 on phone.

Configuration

vibehq.config.json

jsonc
{
  "teams": [{
    "name": "my-project",
    "hub": { "port": 3001 },
    "agents": [
      { "name": "Alex", "role": "Project Manager", "cli": "codex", "cwd": "D:\\project" },
      { "name": "Jordan", "role": "Frontend Engineer", "cli": "claude", "cwd": "D:\\project\\frontend",
        "dangerouslySkipPermissions": true, "additionalDirs": ["D:\\project\\shared"] }
    ]
  }]
}
Field Description
name Agent display name (unique per team)
role Role — auto-loads preset if no systemPrompt set
cli claude, codex, or gemini
cwd Working directory (isolated per agent)
systemPrompt Custom prompt (overrides preset)
dangerouslySkipPermissions Auto-approve Claude permissions
additionalDirs Extra directories agent can access

Built-in presets: Project Manager, Product Designer, Frontend Engineer, Backend Engineer, AI Engineer, QA Engineer

CLI Reference

bash
vibehq              # Interactive TUI
vibehq-web          # Web platform (browser + mobile)
vibehq-hub          # Standalone hub server
vibehq-spawn        # Spawn single agent
vibehq-analyze      # Post-run analytics

Manual Spawn

bash
vibehq-spawn --name "Jordan" --role "Frontend Engineer" \
  --team "my-team" --hub "ws://localhost:3001" \
  --skip-permissions --add-dir "/shared" -- claude

Architecture

…

Key design:

  • Process isolation — each agent is a separate OS process. Crashes don't cascade.
  • Contract-driven — specs must be signed before coding begins.
  • Idle-aware queue — messages queue when busy, flush when idle (JSONL watcher + PTY timeout).
  • State persistence — all data survives hub restarts (~/.vibehq/teams//hub-state.json).
  • MCP-native — 20 purpose-built tools, type-safe, auto-configured per agent.
  • Orchestrator enforcement — Claude PMs get --disallowedTools (CLI-level hard block on Bash/Write/Edit/Read/Glob); Codex PMs get --sandbox read-only.
  • Content validation — MCP rejects 0-byte artifacts, stub patterns, and >80% size regressions at the tool level.
  • Self-improving — analyze→optimize loop with cross-run trend tracking and automated changelogs.

⚠️ Platform Support

Feature Windows Mac Linux
Web Platform ✅ Tested ✅ Should work ✅ Should work
TUI ✅ Tested ✅ Tested ⚠️ Untested
Hub + Spawn ✅ Tested ✅ Tested ✅ Should work
JSONL Watcher ✅ Tested ✅ Tested ⚠️ Path encoding
node-pty ✅ Tested ✅ Tested ⚠️ Untested

Mac: requires xcode-select --install. If posix_spawnp failed: chmod +x node_modules/node-pty/prebuilds/*/spawn-helper

Linux: requires build-essential and python3.

Project Structure

…

Contributing

PRs welcome. Modular architecture:

  • New MCP tool? → src/mcp/tools/ + register in hub-client.ts
  • New CLI? → detection in spawner.ts + MCP config in autoConfigureMcp()
  • New widget? → web/src/components/ or src/tui/screens/

License

MIT


@0x0funky

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言