Guide · Agent skill
How to use the Aider Delegate agent skill (aider-delegate)
Updated · written with AI from the project's own documentation and checked against our catalogue data
Aider Delegate is an agent skill that lets an AI agent hand a bounded coding task to Aider, a separate open-source AI coding tool, and then review the resulting changes before anything is committed. It is aimed at developers who already use Aider or a self-hosted model and want a reviewable diff. After this guide you will know what the skill does, how to install it, how to phrase a request that triggers it, and what it needs and risks before you run it.
Quick start
- 1Install Aider. Run the pip install for aider-chat and confirm it works with aider --version.
- 2Configure a model. Set a provider key such as OPENAI_API_KEY or ANTHROPIC_API_KEY, or configure Aider's own model settings. For a local endpoint, export a non-empty OPENAI_API_KEY.
- 3Install the skill. Unzip the downloaded ZIP into ~/.claude/skills/ or a project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills.
- 4Prepare a bounded task. Write one brief with the goal, the files in scope, what to leave untouched, and the project's real test commands.
- 5Ask for delegation explicitly. Name Aider in your request so the agent knows you want the task delegated.
- 6Review the diff. Check the changed files and the test counts yourself, since Aider's report is a claim to verify.
- 7Commit deliberately. Commit only after your review. Aider's automatic commits are switched off by the skill, so nothing lands unreviewed.
What the aider-delegate skill makes the agent do
The skill turns the agent into an orchestrator. The agent writes a task brief, sends it to Aider as a separate implementer, and Aider edits files in your git repository. The agent then reads the result and decides whether to commit it.
The skill only activates when you explicitly ask for delegation to Aider. Aider's own automatic commits are switched off by design, so its edits arrive as an uncommitted diff for you or the agent to check.
- The agent writes a brief covering the goal, current state, what to change, what to leave alone, and the project's real test commands.
- Aider makes the edits inside its own run.
- The agent verifies the diff and keeps commit authority.
Install the aider-delegate skill
Download the ZIP for this skill from this page and unzip it. Put the folder in ~/.claude/skills/ to make it available everywhere, or in a project's .claude/skills/ folder to limit it to that project.
You can also upload the skill in the Claude apps under Settings → Capabilities → Skills.
Before you rely on it, note that this bundle contains documentation only. The helper script scripts/relay.mjs is not included, so the documented workflow cannot run as written until a reviewed runtime is installed separately.
- Option 1: unzip into ~/.claude/skills/ for all projects.
- Option 2: unzip into a project's .claude/skills/ folder.
- Option 3: upload through Settings → Capabilities → Skills in the Claude apps.
Install and check Aider and its requirements
The skill needs the Aider CLI, Node 18 or newer, git, and a model with credentials. Aider is installed with pip, and you should confirm it runs before dispatching any task.
Aider reads provider keys from environment variables such as OPENAI_API_KEY or ANTHROPIC_API_KEY, or from its own config. Work inside the target git repository, or point the tool at it.
- Install Aider with the pip command shown here.
- Confirm the install with aider --version.
- Set a provider key or configure Aider's own model settings.
- Make sure the target folder is a git repository.
python -m pip install aider-chat
aider --versionHow to trigger the skill with a natural request
Ask for delegation explicitly, by naming Aider. The skill is written to act only when you request it, so a general request to fix something will not hand the work to Aider.
A good request says what the bounded task is and which repository it concerns. Keep one task per request so the diff stays easy to review.
- Delegate this change to Aider: add input validation to the signup form in this repo.
- Have Aider implement the rename of the config parser in /path/to/repo, then show me the diff before committing.
- Send this bounded refactor to Aider and review what it changes.
Use a local or self-hosted model with Aider
Aider works with any OpenAI-compatible endpoint, so the skill can drive a model on your own hardware. The source names llama.cpp's server, Ollama, vLLM, and LM Studio as examples. Pass the model with --model and the server address with --api-base.
Three details differ from a hosted provider. The model name must begin with the openai/ prefix. You still need to export a non-empty OPENAI_API_KEY even if the server ignores it. Local models often fail Aider's default diff edit format, so the source suggests whole with --edit-format whole and a tight file scope with --file.
A local endpoint that is not running can look like a hang rather than an error, so confirm the server is up before sending a long brief.
- Use the openai/ prefix before your served model name.
- Export any non-empty OPENAI_API_KEY for local endpoints.
- Try --edit-format whole if the default edit format fails.
- Limit scope with --file to keep rewrites small.
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>/v1Safety notes on scripts and network use
This skill runs scripts and uses the network. Delegation sends the brief, the selected code, and repository context to the configured model provider. Confirm the endpoint and its data policy before you send private or secret code, and never send a real provider key to an arbitrary api-base address.
The listed flags reduce some automatic network requests, but they do not prove the run is offline. Model requests, repository lint or hook commands, and dependency installs can still reach the network. If you need offline behaviour, enforce it outside the process. Logs and history can keep private code and keys, so protect and review retention.
- Model requests send your code and brief to the configured provider.
- Repository lint, test, and hook commands run during a task; review them first.
- A dry run can still write history or cache files and may incur model costs.
- Set a cost limit where your provider allows it.
What people use it for
- Handing a contained refactor, such as renaming a function across a few files, to Aider and reviewing the diff.
- Running a bounded bug fix through a self-hosted model on your own machine.
- Adding tests for a single module, with the agent checking the test counts before committing.
- Keeping commit authority with the orchestrating agent while Aider does the typing.
Frequently asked questions
Is the aider-delegate skill free?
The skill is released under the MIT licence, as stated in the bundle. Aider is a separate open-source tool installed with pip, but using a hosted model may cost money through that provider, so check your provider's pricing.
What do I need to run the aider-delegate skill?
You need the Aider CLI installed with pip, Node 18 or newer, git, and a configured model with a provider key or a local OpenAI-compatible endpoint. The agent also needs shell access and the ability to read files.
Why does the skill not commit Aider's changes automatically?
Aider commits by default, which would hide the changes from review. The skill turns off auto-commits and dirty-commits, so the diff is the deliverable and the agent or you decide what to commit.
Can I use Ollama or another local model with it?
Yes. The source says Aider can talk to any OpenAI-compatible endpoint, including Ollama, llama.cpp's server, vLLM, and LM Studio. Use the openai/ model prefix, set --api-base, and export a non-empty OPENAI_API_KEY.
Why does the skill fail or do nothing when I try it?
The helper script scripts/relay.mjs is missing from this bundle, so the documented dispatch path cannot run. Also check that aider --version works, that a model is configured, and that the target folder is a git repository.
How does aider-delegate compare with using Aider directly?
The skill adds a structured brief, a separate review step, and a rule that commits stay with the orchestrator. For a small edit, doing it inline is usually faster, since delegation adds setup and overhead.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you already run Aider or a self-hosted model and want the agent to produce a reviewable diff from a bounded task while keeping commit control. Pick something else for small edits, for private code you cannot send to a third-party provider, or if you need a ready-to-run tool, because the helper script is not included in this bundle.
Download the skill