@cgh567/agent

中文文档
2.6.62发布于 2026/11/05近 30 天下载 1.1万

Elyntic self-improvement lab

原始使用文档
文档目录14 节
  1. Quick Start
  2. What You Get
  3. Elyntic (Orchestrator)
  4. Minion (Workers)
  5. Agent Roles
  6. Dispatch Engines
  7. Skills
  8. Extensions
  9. Usage
  10. Structure
  11. GSD Lifecycle
  12. Agent-Readable Installation Guide
  13. Desktop app
  14. Paper References

Elyntic Agent

Elyntic is a multi-agent system built on Pi. It provides an orchestrator, worker agents, skills, and extensions.

Quick Start

# 1. Install the Elyntic command (Node.js 22.19+)
npm install -g @cgh567/agent

# 2. Clone this repo
git clone https://github.com/elyntic-agi/elyntic-agent.git ~/elyntic-agent

# 3. Bind the CLI to this checkout, then run setup
export ELYNTIC_DIR="$HOME/elyntic-agent"
cd ~/elyntic-agent && bash setup.sh

# 4. Set an API key if using Anthropic
export ANTHROPIC_API_KEY=sk-ant-YOUR_KEY_HERE

# 5. Start Elyntic
elyntic

Keep ELYNTIC_DIR set when launching from a new shell; the global command otherwise uses its installed package copy. The installer currently creates a ~/helios-agent compatibility symlink because its settings and scripts still use that path. This is not a second checkout.

What You Get

Elyntic (Orchestrator)

Elyntic splits complex tasks across parallel subagents. It never writes code directly — it delegates to specialized agents.

Minion (Workers)

Minion agents implement tasks using TDD with 11 pre-completion gates. Each worker receives a single task and grinds until it's done.

Agent Roles

AgentRole
scoutFast codebase recon
plannerTask graph creation
workerTDD implementation
reviewerAdversarial code review
judgeCycle evaluation
sub-plannerRecursive subsystem planning
debug-workerRuntime bug diagnosis
researcherWeb research
context-builderRequirements analysis

Each role's supported models are declared in its file under agents.

Dispatch Engines

  1. subagent() — Single tasks, parallel batches, chain pipelines
  2. coordinate() — Structured TASK-XX specs with parallel workers + review
  3. orchestrate.sh — Shell-based planner→worker→judge cycle loop

Skills

  • engineering — TDD workflow, pre-completion gates, design heuristics
  • elyntic-orchestrator — Multi-cycle planner→worker→judge orchestration
  • elyntic-prime — Delegation enforcement protocol
  • elyntic-health — System health diagnostics
  • focus — Development context awareness
  • agent-pr-guardrails — Prevent agents from merging PRs
  • skill-graph — Memgraph knowledge graph integration

Extensions

The package and extension paths are declared in settings.json. Setup loads those packages and the local extensions directory.

Usage

# Elyntic orchestrates (delegates to workers)
export ELYNTIC_DIR="$HOME/elyntic-agent"
elyntic "Build a REST API with JWT auth"

The optional cycle runner requires a separate pi CLI (npm install -g @cgh567/cli), Python with PyYAML, and a timeout command on its verification path. Check those prerequisites before using it.

Inside an Elyntic session, use its agent tools (these are not shell commands):

// Direct agent dispatch
subagent({ agent: "worker", task: "Add rate limiting to /api/login" })

// Parallel workers
subagent({ tasks: [
  { agent: "worker", task: "Task 1: Add bcrypt" },
  { agent: "worker", task: "Task 2: Create login endpoint" }
]})

// Execute an existing structured plan
coordinate({ plan: "specs/auth.md" })

Structure

~/elyntic-agent/
├── agents/                  # Agent definitions
│   ├── worker.md            # Minion worker (TDD + 11 gates)
│   ├── planner.md           # Elyntic planner (hypothesis-driven)
│   ├── judge.md             # Cycle evaluator (semi-formal verification)
│   ├── elyntic-system.md    # Elyntic system-agent definition
│   ├── coordination/        # Variants for coordinate() engine
│   └── crew/                # Variants for pi-messenger Crew
├── docs/                    # Documentation index and references
│   ├── README.md            # Docs index
│   └── guide/               # Agent-readable installation and setup guides
│       └── installation.md  # Step-by-step installation guide
├── prompts/                 # Templates (post-mortem, adversarial-review)
├── skills/                  # Skills loaded on demand
├── extensions/              # Local extension hooks
├── scripts/                 # Utility scripts
├── .planning/               # GSD lifecycle artifacts (gitignored transient data)
│   ├── PLAN.md              # Goal-backward plan (discuss → plan)
│   ├── CONTEXT.md           # Discuss-phase findings
│   ├── VERIFICATION.md      # Verifier output
│   └── debug/               # Transient debug sessions (active/ is gitignored)
├── AGENTS.md                # Agent-readable project context (per-directory)
├── settings.json            # Pi config + extension manifest
└── setup.sh                 # Installer

GSD Lifecycle

Every non-trivial task follows the GSD (Get Shit Done) execution standard:

discuss → plan → execute → verify
  1. Discuss — Elyntic identifies gray areas, asks clarifying questions, and produces CONTEXT.md
  2. Plan — Planner (Wheeler) creates a goal-backward PLAN.md with wave-based task decomposition
  3. Execute — Workers (Dyson) implement using TDD: RED → GREEN → refactor, with pipe verification
  4. Verify — Verifier (Hans) checks invariants, data flows, and acceptance criteria, producing VERIFICATION.md

Artifacts live in .planning/ at the repo root. Transient debug sessions (.planning/debug/active/) are gitignored.

Agent-Readable Installation Guide

The file docs/guide/installation.md is a structured, machine-readable guide written for AI agents (Elyntic, workers) to consume during setup tasks. It covers:

  • Prerequisites and environment setup
  • Dependency installation order
  • Extension registration
  • Health checks and smoke tests

Human users can read it too — it mirrors setup.sh but with rationale and troubleshooting context.

Desktop app

This repository supplies the agent runtime. The desktop app is developed separately.

Paper References

Agent improvements based on "Agentic Code Reasoning" (Anthropic 2026):

  • Vacuous Test Guard (cpp_3)
  • Name Resolution Audit (django-13670)
  • Indirection Check (Mockito_8)
  • Confident Wrong Answer warning (py_5)
  • Gates 11-12 in pre-completion checklist

版本与发布记录

@cgh567/agent 共发布 74 个版本,首次发布于 2026/06/26;过去 12 个月发布了 74 个版本。

版本发布日期距今
2.6.62latest2026/11/054 天前
2.6.612026/11/035 天前
2.6.602026/11/036 天前
2.6.592026/10/2911 天前
2.6.582026/10/2713 天前
2.6.572026/10/2119 天前

关于 @cgh567/agent 的常见问题

@cgh567/agent 是什么?

Elyntic self-improvement lab

如何安装 @cgh567/agent?

在项目目录运行 npm install @cgh567/agent,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@sinclair/typebox(*)、@helios-agent/pi-ai(*)、@helios-agent/pi-tui(*)、@helios-agent/pi-agent-core(*)、@helios-agent/pi-coding-agent(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 elyntic、elyntic-rpc、elyntic-prepare-agent-store,可以用 npx elyntic 直接运行。

@cgh567/agent 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cgh567__agent 是否存在。

@cgh567/agent 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^22.19.0 || >=23.6.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cgh567/agent 可以商用吗?

@cgh567/agent 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@cgh567/agent 的下载量有多少?

根据 npm 官方下载统计,@cgh567/agent 在 2026/10/10 – 2026/11/08 这 30 天内被下载 10,657 次,日均约 355 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cgh567/agent 还在维护吗?

最新版本 2.6.62 发布于 2026/11/05(4 天前);至今共发布 74 个版本,其中过去 12 个月发布了 74 个;首次发布于 2026/06/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。