agentleFS
sleep2agisleep2agi/agent-network/server/CLAUDE.md

agent-network / server

CLAUDE.md127 starsChanged 7 months agoApache-2.0View on GitHub

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read: GET /api/status + /api/tasks + /api/nodes + /api/stats + /api/audit-log + /api/task_events + /api/messages + /api/completions + …

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CommHub Server

启动

cd server && bun install && bun run src/index.ts
# or: bunx @sleep2agi/commhub-server

架构

  • MCP Streamable HTTP (/mcp) — Claude Code / Codex 连接端点
  • SSE Push (/events/:session) — Agent 实时接收任务推送
  • HTTP REST (/api/*) — Dashboard / 监控 / Admin
  • SQLite WAL (~/.commhub/commhub.db)
  • V3 Auth: api_tokens + users + networks

数据库 (13 表)

sessions / inbox / tasks / nodes / completions / task_events / users / networks / api_tokens / audit_log / licenses / network_members / network_invites

MCP Tools (17 个)

Agent 端

  • report_status — 心跳+状态+进度 (含 network_id)
  • report_completion — 任务完成汇报
  • get_inbox — 拉取待办命令
  • ack_inbox — 确认收到

Hub 端

  • send_task — 下发任务 (含 network_id + ttl_seconds)
  • send_message — 发消息 (不触发处理)
  • send_reply — 回复任务 (replied/failed/cancelled)
  • send_ack — 确认任务
  • retry_task — 重试失败任务
  • cancel_task — 取消待处理任务
  • reassign_task — 转移任务
  • get_task — 查询任务详情
  • list_tasks — 查询任务列表 (含 network_id)
  • get_all_status — 全局状态 (含 network_id)
  • get_session_status — 单 session 详情
  • broadcast — 群发 (含 network_id)
  • get_completions — 完成列表

REST API(主要端点,完整清单见 docs-site/docs/api/rest.md)

  • Auth: POST /api/auth/register + /api/auth/login + /api/auth/password, GET /api/auth/me + PUT /api/auth/me
  • Network: GET /api/networks + POST /api/networks + GET/PUT/DELETE /api/networks/:id, GET /members + POST /invite + POST /join
  • Token: POST /api/auth/tokens (+ node-token) + GET /api/auth/tokens + DELETE /api/auth/tokens/:id
  • Read: GET /api/status + /api/tasks + /api/nodes + /api/stats + /api/audit-log + /api/task_events + /api/messages + /api/completions + /api/users (admin)
  • GET /health (public)
  • POST /mcp (MCP) + GET /events/:alias (SSE)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.