The harness that lets one person run an AI agent team — with zero compromise on control.
Alloy 是一个给"一个人带 AI agent 团队"的人用的 harness——在 OpenCode/Claude Code 里给 agents 装好规则、流程、上下文管理,让 agent 走最强约束、不替用户做选择。
Who its for: 自用 + 一小撮认同 harness engineering 的 OSS 朋友. 不是商业产品。"未来面试看你带 agent 团队" 是核心 use case。
What Alloy is NOT:
- Not a chat UI — 用户在 OpenCode/Claude Code 现有 UI 里工作
- Not an agent — 不是 LLM agent,是给 agent 套规则的外壳
- Not a SaaS — 在你自己电脑上跑,状态在你自己 repo 里
- Not a framework — 不强迫你重写代码,是配置+集成
| # | Belief | Means |
|---|---|---|
| 1 | 最强约束 | 关键流程靠 code 强制走对,不靠 prompt 建议 |
| 2 | Plugin-first, CLI-minimal | 用户在 chat 里完成 99% 操作,CLI 只用于 install + doctor |
| 3 | 不替用户做选择 | 用户装了 GitHub or GitLab、Linear or Jira,alloy 不替你判,全 visible |
| 4 | Vendor over rewrite | Skills 走 inline copy 原版 + append alloy 段,不重写不删除 |
| 5 | 状态外置但极简 | JSONL append-only ledger + state machine guard,不上数据库 |
| 6 | 零依赖运行时 | .mjs + zod + jsdoc,没 build step,install 即可用 |
- 睡前 fire-and-forget 任务,第二天看结果
- 一个 dev 用 alloy 协调多个 agent (Orchestrator + 6 specialists) 跨多 phase 工作
- Sub-agent rate limit 触发后自动恢复 (claude-auto-retry + alloy plugin)
- Skill / agent 配置版本化、可分发、跨 runtime 一致 (OpenCode now, Claude Code/Codex planned)
Alloy v0.1.0 — multi-runtime config distribution for AI coding agents
Alloy is a multi-runtime adapter that resolves curated packs of skills, agents, commands, and MCPs, then materializes them into your AI coding agent of choice.
Supported runtimes (v0.1.x):
- ✅ OpenCode — full support (agent host, plugin host, MCP host)
- 🚧 Claude Code — adapter planned for v0.2 (Q3 2026)
- 🚧 Codex CLI — adapter planned for v0.3 (Q4 2026)
The atoms+extends pack model is runtime-neutral by design — only the installer's materialization layer needs per-runtime adaptation.
Alloy is a runtime-neutral distribution layer for teams that want the same agent
workflow, skills, commands, MCP baseline, and verification discipline across
many repositories and AI coding runtimes. v0.1.x materializes those packs into
OpenCode's .opencode/ layout while keeping the resolver core independent from
any single runtime.
This release resets the old v2 numbering to v0.1.0. The reset marks the first
OSS-ready architecture: a smaller public surface, clear license boundaries, and a
documented Plan → Execute → Verify pipeline.
Clone this repo, then run the installer from each target repository:
git clone https://github.com/lifeodyssey/alloy.git ~/src/alloy
cd /path/to/target-repo
bash ~/src/alloy/setup.sh --pack core --target local --models github-copilotRe-run the same command inside any repository that should receive Alloy:
cd /path/to/target-repo
bash ~/src/alloy/setup.sh --pack core --target local --models github-copilotThe installer is designed around two tiers:
- a global tier under
~/.config/opencode/for shared Alloy runtime content - a repo tier under
<target>/.opencode/for project-scoped visibility - an Alloy state tier under
<target>/.alloy/for specs, JSONL ledgers, and projections
- Installs a curated OpenCode team configuration into target repos without making each repo hand-copy agents, skills, commands, plugins, and MCP settings.
- Enforces a central Plan → Execute → Verify workflow with explicit artifacts, evidence, and phase gates.
- Separates Alloy first-party content from vendored upstream skills so teams can update Alloy and vendor skills honestly.
Multi-repo teams usually drift in three places:
- every repo accumulates a slightly different agent prompt set
- every person has a different idea of when planning or verification is required
- vendored workflow ideas get copied without attribution, version tracking, or a sane upgrade path
Alloy makes those choices explicit. It is not a replacement for OpenCode. OpenCode remains the runtime, agent host, tool host, MCP host, and plugin host. Alloy resolves, installs, filters, and records the team workflow that OpenCode uses.
Alloy v0.1.0 standardizes work into three central phases:
User request
|
v
+--------+ +----------+ +--------+
| Plan | ----> | Execute | ----> | Verify |
+--------+ +----------+ +--------+
| | |
v v v
Spec + plan Code + tests Review + gates
The phase model is intentionally small:
Planroutes to Explorer and Architect work.Executeroutes to Builder, Fixer, and Tester work.Verifyroutes to Reviewer and Tester work.
The expected artifact shape is based on the redesign docs:
.alloy/plans/<id>/
plan.md # required design, acceptance criteria, and Plan tasks
findings.md # research and codebase notes
progress.md # execution log
verification.md # final evidence and gate result
This gives agents a durable place to resume after compaction and gives humans a plain Markdown trail for decisions.
The redesign moves from 6 lifecycle agents to 7 agents total:
Orchestrator: router for task type, complexity, phase, specialist, and modelExplorer: reads existing code and maps dependenciesArchitect: writes the plan and owns technical designBuilder: implements new code pathsFixer: reproduces, minimizes, and fixes bugsReviewer: reviews code and plans with severity labelsTester: writes and runs tests in Execute and Verify
The key shift is from lifecycle handoffs to task-typed specialists. The phase orchestrator keeps the pipeline central; specialists stay focused.
The full visual catalog is in docs/redesign/config-overview.html.
That catalog documents the first public target shape:
- 14 first-party skills total
- 10 first-party fusion skills
- 4 kept first-party skills
- 22+ vendored skills tracked independently
- 8 MCP entries across universal, frontend opt-in, and sandbox opt-in tiers
The 10 fusion skills named in the redesign summary are:
alloy-usingalloy-planalloy-executealloy-tddalloy-debugalloy-verifyalloy-discussalloy-map-codebasealloy-autopilotalloy-qa
The kept first-party skills are:
humanizergit-masterfrontend-ui-uxplaywright-cli
Vendored skills keep their upstream license and independent vendor version. Alloy first-party content is MIT.
The complete v0.1.0 architecture summary lives in docs/redesign/SUMMARY.md.
At a high level, Alloy has four layers:
Repository sources
packs / defaults / models / skills / vendor / agents / commands / templates
|
v
Alloy CLI
install / add / remove / list / search / state / gate / doctor / sync
|
v
Installed files
~/.config/opencode + target .opencode + target .alloy
|
v
OpenCode runtime
plugin hooks + agents + MCPs + skills + Alloy JSONL ledgers
The most important design choice is manifest-driven visibility. Alloy can install
more skill content on disk than an agent sees in a given repo, then expose skills
through alloy add and the runtime visibility filter.
The v0.1.0 design centers on these commands:
alloy install
alloy add <skill>
alloy remove <skill>
alloy list
alloy search <query>
alloy outdated
alloy upgrade [name|--self|--all-vendors]
alloy state add-task --title "..."
alloy gate check --task-id <id>
alloy doctor
alloy sync --workspace alloy.workspace.jsonThe old pack-oriented setup.sh flow remains part of the repository history, but
the OSS-ready direction is the alloy CLI plus a one-line install helper.
Alloy is intentionally not a harness runtime.
- The Alloy CLI resolves config, installs files, checks drift, and writes state.
- The Alloy plugin adapts OpenCode hooks into evidence, claim, gate, and status records.
- Agents read skills, call tools, write code, and follow phase artifacts.
- OpenCode remains responsible for the agent loop, tool execution, MCP hosting, and plugin loading.
This split keeps the project small enough to be maintained as a config distribution while still standardizing team behavior.
Target repositories receive two kinds of local state:
.opencode/
alloy.manifest.json
agents/
commands/
plugins/
skills/
.alloy/
specs/
state/
projections/
codebase/
qa-reports/
local/
.opencode/ is runtime configuration for OpenCode. .alloy/ is workflow state
for humans, agents, and lightweight CLI gates. JSONL files are the machine source
of truth; Markdown files are the human-readable working surface.
The redesign replaces the older inline dangerous-command regex with a planned
cc-safety-net integration and project overlay rules. The safety direction is:
- intercept dangerous shell patterns before execution
- record fresh evidence before marking work done
- keep target-repo state local and inspectable
- avoid telemetry
- avoid project-specific cloud MCP defaults
For security reporting, see SECURITY.md.
- Architecture summary
- Visual skill and architecture catalog
- Roadmap
- Changelog
- Security policy
- Credits
This repository does not require a separate contribution guide to get started. Use the following baseline for OSS contributions:
- keep first-party Alloy changes under MIT-compatible terms
- preserve upstream attribution for vendored skills
- update
CHANGELOG.mdfor user-visible changes - update
docs/redesign/SUMMARY.mdor roadmap docs when architecture changes - run
npm testbefore opening a pull request - avoid adding telemetry, project-specific secrets, or team-private defaults
For larger changes, open an issue or discussion first and reference the design question being revisited.
Alloy combines first-party workflow design with ideas and vendored content from SuperPower, GSD, OMO Slim, Matt Pocock skills, gstack methodology, and framework skill authors. See CREDITS.md for attribution details.
Alloy first-party content is released under the MIT License. Vendored skills keep their upstream licenses and are tracked separately.