linsaftw/lean-agents
关于
~70% Faster & Less Tokens, The only AI coding workflow you need. Tested on DeepSeek.
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Lean Agents
Short prompts for coding agents. Less text per turn, one clear rule set.
See BENCHMARK.md for the tests so far.
How it works
AGENTS.md is the one shared policy. Two roles:
| Role | Who | Does |
|---|---|---|
ORCHESTRATOR |
Primary agent (build) |
Small single fixes itself. Features, refactors and multi-file work go to a worker, one per independent task. |
CODER |
Worker (general, or worker on Codex) |
Investigates, edits, tests, repairs inside its scope. Never delegates. |
Up to 10 workers run in parallel on independent tasks; the primary waits for all. Agents never ask the user questions; they resolve things themselves. Delete the ## Questions section in AGENTS.md if you want questions back.
What's inside
| Path | What |
|---|---|
AGENTS.md |
Shared policy: roles, routing, engineering, output. |
agents/ |
Agent files: build.md (primary), general.md / worker.toml (CODER), plus optional lean-* and explore helpers. |
skills/lean-code |
Smallest complete change, lean pass after coding, dedup. Load for all coding. |
skills/lean-java |
Java/JVM: Maven, Gradle, JUnit, concurrency, Spring. |
skills/lean-web |
JS/TS, Node, React/Next.js, Fastify, auth, tests. |
skills/lean-plan |
Plan a feature from scratch. |
extensions/ |
Pi: subagent tool for general. |
mods/ |
Command Code: loads the build prompt. |
plugins/ |
Legacy OpenCode no-op, kept so old installs get overwritten. |
.chatgpt/ |
Prompt for ChatGPT projects that write plans for coding agents. |
Agents load the skills that fit the task and workspace.
Install
Put AGENTS.md at the repo root (or the host's global instructions path). Start a fresh session and check it loaded. Merge with existing config; don't overwrite.
- OpenCode: copy
agents/build.mdandagents/general.mdto.opencode/agents/or~/.config/opencode/agents/. Setdefault_agent: "build". - Claude Code: copy the same two files to
.claude/agents/or~/.claude/agents/. Runclaude --agent build. Add@AGENTS.mdtoCLAUDE.mdif needed. - Codex: copy
agents/worker.tomlto.codex/agents/. Turn on multi-agent. RootAGENTS.mdmakes Codex the orchestrator. - Command Code: reads
AGENTS.md. Optional: installmods/lean-primary.ts(keepagents/build.mdbeside it). Its built-ingeneralcan't be overridden, so giveRole: CODERin the handoff. - Pi: use
extensions/lean-subagents.ts(keepagents/general.mdbeside it). LoadAGENTS.mdyourself if the host doesn't.
Limits
Prompts are not enforcement. The model may skip delegation. Check the first tool calls of a fresh session.
License
MIT. See LICENSE.
探索相关项目
加载中…