aider-delegate
它能做什么
这个工具把编程任务交给另一个名为 Aider 的 AI。你负责写指令,Aider 负责写代码。之后你检查 Aider 写的代码,决定是否采用。
适用场景
- ✓当你想让 Aider 编写某段特定代码时。
- ✓当你希望在应用代码之前先审查时。
- ✓当你想让 Aider 负责项目中一个明确划分的部分时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/aider-delegate/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“Aider,写一个 Python 函数,计算两个数的和并返回结果。”
每周 5 个新技能,1 分钟读完。
工作原理
你先写一个包含指令的“任务说明”文件。该工具把这份说明发送给 Aider,由 Aider 编写代码。随后工具会把代码展示给你,由你审查并决定是否通过。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Aider Delegate
When to Use
- You want to delegate a bounded coding task to a separate
aiderimplementer (Aider) and then review its diff yourself. - The user explicitly asked for delegation to this implementer.
You are the orchestrator. Hand a bounded coding task to a separate implementer - Aider - then review what it produced and land it yourself. You write the brief and own the judgment; Aider does the typing in its own run; you verify and commit.
The loop needs only a shell command and file access, so any comparable orchestrator can drive it.
The one thing to know about Aider
Aider commits by default. Two of its defaults would destroy the reviewable diff this skill exists to produce:
--auto-commits(defaultTrue) - Aider commits its own edits after each exchange.--dirty-commits(defaultTrue) - Aider commits your pre-existing uncommitted work before it starts editing.
The relay always passes --no-auto-commits and --no-dirty-commits, and neither is configurable
through it. If you ever drive aider by hand instead of through the relay, pass both yourself, or the
work lands as commits you never reviewed. The relay also passes --no-gitignore, because Aider
otherwise writes .aider* into .gitignore on startup and dirties the tree you are about to read.
When NOT to use this
- The task is small enough to do inline; delegation overhead is not worth it.
- The
aiderCLI is not installed, or no model is configured for it. - You want the implementer to manage its own commits. Aider can, but this skill deliberately turns that off - the diff is the deliverable.
Prerequisites (check once)
- Install Aider -
python -m pip install aider-chat, or the standalone installer from the Aider install docs. - Configure a model. Aider reads provider keys from the environment (
OPENAI_API_KEY,ANTHROPIC_API_KEY, …) or its own config; see Aider's model docs. - Confirm
aider --versionsucceeds. - Work in, or point
--cdat, the target git repository.
Choose the model
Aider uses its own configured model when --model is omitted. Pass --model <name> to pick another.
Local and self-hosted models
Aider talks to any OpenAI-compatible endpoint, so this is also the skill for delegating to a model
running on the user's own hardware - llama.cpp's server, Ollama, vLLM, LM Studio, or anything else
that serves the same API. Pair --model with --api-base:
node "<skill-dir>/scripts/relay.mjs" --brief brief.txt --cd /path/to/repo \
--model openai/<served-model-name> --api-base http://127.0.0.1:<port>/v1
Three things differ from a hosted provider:
- The
openai/prefix is required. It tells Aider to speak the OpenAI protocol to your endpoint; the part after it is whatever name your server reports, not a provider catalog name. - A placeholder key is still needed. Export any non-empty
OPENAI_API_KEY. The client library requires the header even when the server ignores its value. - Ask for a smaller edit format. Local models often fail Aider's default
diffformat, which requires exact search/replace blocks.--edit-format wholetrades tokens for reliability; keep the brief's scope tight with--fileso whole-file rewrites stay cheap.
A local endpoint that is not running looks like a hang, not an error: Aider retries the connection
until the relay's --timeout watchdog fires and reports status: "timeout". Confirm the server is up
before dispatching a long brief.
Staying offline
No account or provider registration is involved: Aider is a pip install, the endpoint is yours, and
OPENAI_API_KEY only has to be non-empty. The relay pins the flags that would otherwise reach the
network on their own - --no-check-update, --no-analytics (Aider's own default is random, which
opts some sessions in by itself), and --no-detect-urls, without which Aider offers to scrape any URL
in the brief and --yes-always accepts that offer silently.
--no-suggest-shell-commands closes the remaining path by which a run could reach the network without
being asked to. What stays outside the relay's control is the brief itself: instructions that tell
Aider to install a package or call an API will still be carried out, and --auto-lint runs the
repository's own tooling. Offline here means nothing in the dispatch path reaches out on its own - not
…
常见问题
这里的“委派”是什么意思?
指把某项具体任务交给另一个 AI(Aider)去完成,而不是自己直接动手。
为什么要审查 Aider 写的代码?
为了确保代码正确、符合需求,并且在加入项目之前不会引入错误。
如果我不喜欢 Aider 写的代码怎么办?
你可以不予通过。Aider 不会自动保存代码,你可以放弃这段代码,或者要求它修改。
详情
作者的原始描述
Delegate coding tasks to Aider (`aider`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.
热度
- GitHub 星标
- 48k
- 排名
- #3725
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。