<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aider &#8211; iAIFeed</title>
	<atom:link href="https://www.iaifeed.com/tag/aider-ai/feed" rel="self" type="application/rss+xml" />
	<link>https://www.iaifeed.com</link>
	<description>iAIFeed</description>
	<lastBuildDate>Mon, 16 Nov 2026 12:43:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.iaifeed.com/wp-content/uploads/2026/07/cropped-iaifeed1-80x80.png</url>
	<title>Aider &#8211; iAIFeed</title>
	<link>https://www.iaifeed.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Use Aider on a Large Monorepo Without Losing Context</title>
		<link>https://www.iaifeed.com/how-to-use-aider-on-a-large-monorepo</link>
					<comments>https://www.iaifeed.com/how-to-use-aider-on-a-large-monorepo#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Mon, 16 Nov 2026 12:43:31 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Aider]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-use-aider-on-a-large-monorepo</guid>

					<description><![CDATA[Tune the repo map, switch models mid-session, and script Aider with --message so big codebases stay inside the context window.]]></description>
										<content:encoded><![CDATA[<p>A large monorepo is where <a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a> either pays off or falls over. The repo map is what makes it possible, and the repo map is also what burns your token budget if you leave it on defaults. Getting a 50,000-file tree working means tuning three settings and accepting a slower startup.</p>
<h2 id="why-does-aider-slow-down-on-a-big-repo">Why does Aider slow down on a big repo?</h2>
<p>Aider walks your tracked files, extracts function and class signatures with tree-sitter, and ranks them by relevance to the conversation. On a small repo that finishes in a second. On a monorepo with 50k files it can take 20 to 60 seconds on first run, and the resulting map is compressed into a token budget that defaults to around 1,000 tokens on smaller windows.</p>
<p>That default is too small for cross-service work. You ask it to change an API response shape and it never sees the consumer because the map only had room for the files nearest the top of the ranking.</p>
<h2 id="how-do-you-widen-the-repo-map">How do you widen the repo map?</h2>
<p>Two flags matter:</p>
<ul>
<li><code>--map-tokens 4096</code> raises the budget. On a 200k-token window you can go higher, but every token in the map is a token not available for code you actually add.</li>
<li><code>--map-refresh always</code> rebuilds on every turn. Leave it on <code>auto</code> unless you are actively adding files, because rebuilds on a monorepo are slow.</li>
</ul>
<p>If the ranking is wasting space on vendored code, add an ignore file. Aider respects <code>.gitignore</code>, and you can supplement with <code>--aiderignore .aiderignore</code> listing directories like <code>node_modules</code>, generated protobufs, and migration snapshots.</p>
<p>A useful rule: if the tree-sitter parse takes more than 15 seconds, cut the map, do not raise it. Relevance beats size.</p>
<h2 id="how-do-you-use-two-models-at-once">How do you use two models at once?</h2>
<p>Aider supports separate models for the main edit loop and for weak or auxiliary tasks like summarising commit messages. In practice: a strong model for edits, a cheap one for the surrounding chatter.</p>
<p><code>aider --model claude-sonnet-4 --weak-model gpt-4o-mini</code></p>
<p>That pairing cuts spend noticeably on long sessions. The weak model never touches your code.</p>
<p>There is also architect mode, where one model proposes a solution and another applies it to files. It costs roughly double per turn but produces fewer bad multi-file edits on unfamiliar code. Worth it for a refactor across six files; overkill for a one-line change.</p>
<h2 id="how-do-you-script-repeatable-aider-runs">How do you script repeatable Aider runs?</h2>
<p><code>--message</code> turns Aider into a one-shot tool. Useful for mechanical jobs across many files:</p>
<p><code>aider --message "add type hints to every public function in src/" --yes --auto-commits --no-stream</code></p>
<p>Pair it with <code>--dry-run</code> first to see the diff without committing. On a monorepo, always dry-run. A single misread instruction can touch 40 files, and reviewing 40 diffs after the fact is worse than reviewing one before.</p>
<p>For chunked work, use <code>--read</code> to feed context files without allowing edits to them:</p>
<p><code>aider --read docs/api-contract.md --message "update the client to match the contract"</code></p>
<p>That flag is underused. It lets you give the model a spec as read-only context, which stops it from helpfully rewriting your documentation along the way.</p>
<h2 id="what-are-the-practical-limits">What are the practical limits?</h2>
<p>Aider does not index your codebase into a vector store. There is no semantic search on 2026 builds. Retrieval is the repo map plus whatever you add, which means discovery still depends on you knowing file names. In a monorepo with inconsistent naming that is a real friction point.</p>
<p>Git performance also matters. A repo with a 200,000-commit history makes Aider&#8217;s initial status check feel sluggish, and on network filesystems it is worse.</p>
<p>Budget-wise, a substantial cross-service change on a mid-tier model lands somewhere between 40,000 and 120,000 tokens per question-answer cycle. Ten such cycles in an afternoon is a real bill, so check <code>/tokens</code> occasionally rather than discovering it at the end of the month.</p>
<h2 id="quick-summary">Quick Summary</h2>
<ul>
<li>On large repos, tune <code>--map-tokens</code> and add an <code>.aiderignore</code>; raising the map blindly backfires.</li>
<li>Pair a strong edit model with a cheap <code>--weak-model</code> to cut session cost.</li>
<li>Use <code>--dry-run</code> before any <code>--message</code> batch job on a monorepo.</li>
<li><code>--read</code> supplies context files the agent cannot edit — good for specs and contracts.</li>
<li>There is no semantic code search; discovery still relies on knowing your file layout.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-use-aider-on-a-large-monorepo/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Start Pair Programming in Aider from the Terminal</title>
		<link>https://www.iaifeed.com/how-to-start-pair-programming-in-aider-from-the-terminal</link>
					<comments>https://www.iaifeed.com/how-to-start-pair-programming-in-aider-from-the-terminal#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Mon, 16 Nov 2026 12:43:12 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Aider]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-start-pair-programming-in-aider-from-the-terminal</guid>

					<description><![CDATA[Install Aider, connect a model, and let it edit real files in your repo through git commits you can review and revert.]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a> is a command-line pair programmer that edits files directly in your git repo. You run it inside a project, it reads the files you add to the chat, proposes a diff, and commits changes to git so every step is revertable.</p>
<p>No IDE plugin, no browser tab. If you like <code>git log</code> as an undo stack, this is the workflow for you.</p>
<h2 id="how-do-you-install-aider">How do you install Aider?</h2>
<p>With pipx, because Aider is a CLI tool you want isolated from your project environments:</p>
<p><code>pipx install aider-chat</code></p>
<p>On macOS, <code>brew install pipx</code> first. On Windows, WSL is the path of least resistance — native Windows works but file watching on large repos is slower.</p>
<p>Verify with <code>aider --version</code>. You want a build from the last few months; the project ships release notes almost weekly and older versions lack the repo-map improvements that make large repos usable.</p>
<h2 id="how-do-you-connect-a-model">How do you connect a model?</h2>
<p>Aider talks to most providers. Set a key, then start it:</p>
<ul>
<li>OpenAI: <code>export OPENAI_API_KEY=...</code> then <code>aider</code></li>
<li>Anthropic: <code>export ANTHROPIC_API_KEY=...</code> then <code>aider --model claude-sonnet-4</code></li>
<li>Local via Ollama: install Ollama, <code>ollama pull qwen2.5-coder</code>, then <code>aider --model ollama/qwen2.5-coder</code></li>
</ul>
<p>The first run in an empty project asks for a model and a config file location. Aider writes <code>.aider.conf.yml</code> and <code>.aider.model.settings.yml</code>. Keep those in your home directory, not in the repo, or you will commit your preferences and confuse teammates.</p>
<p>Add <code>.aider*</code> to your global gitignore.</p>
<h2 id="how-do-you-add-files-without-blowing-the-context-window">How do you add files without blowing the context window?</h2>
<p>Use <code>/add</code> for files you want edited and let the repo map do the rest.</p>
<p><code>/add src/api/routes.py</code></p>
<p>Aider builds a repo map — a condensed tree of functions and class signatures — and attaches it to every request. That map is why it can work in a 300-file project without you listing every file. It costs tokens though. On very large repos, set <code>--map-tokens</code> lower, or the map can eat 20% of a 200k window.</p>
<p>Commands worth memorising:</p>
<ul>
<li><code>/add</code> — include files in chat</li>
<li><code>/drop</code> — remove files</li>
<li><code>/diff</code> — show the last change before it is committed</li>
<li><code>/undo</code> — revert the last commit Aider made</li>
<li><code>/tokens</code> — print current token usage</li>
</ul>
<p>Read <code>/diff</code> before you let a multi-file change stand. Aider commits automatically by default, but the commit is a normal git commit; <code>/undo</code> is a reset, and it is safe.</p>
<h2 id="what-does-a-first-session-look-like">What does a first session look like?</h2>
<p>Start small and specific. Open the repo, run <code>aider src/parser.py</code>, then ask: &#8220;Add a function that parses ISO 8601 duration strings and returns seconds, with unit tests in tests/test_parser.py.&#8221;</p>
<p>Aider proposes a diff, shows it, and commits with a message like <code>feat: add ISO 8601 duration parser</code>. Then you read the diff. If it is wrong, <code>/undo</code> and restate the request with the constraint you missed.</p>
<p>The habit that separates people who like Aider from people who abandon it: never let it run three changes deep without reading one. The diffs are cheap to read and expensive to untangle later.</p>
<p>You can also pipe in a whole task non-interactively with <code>--message</code>, which suits scripts and CI. <code>aider --message "fix the failing test in test_parser.py" --yes</code> runs once and exits.</p>
<h2 id="where-does-aider-fall-short">Where does Aider fall short?</h2>
<p>It has no GUI. There is no visual diff side-by-side, no click-to-accept hunk. In an IDE that feels like a step back.</p>
<p>It also assumes git. If your project is not a repo, initialise one — but be aware that in a monorepo with a huge history, the repo map generation on startup can take ten seconds or more.</p>
<p>And unlike Cursor or Copilot, Aider does not autocomplete while you type. It is a conversation you open deliberately, not a ghost in your editor. If you want inline suggestions, this is the wrong tool.</p>
<h2 id="quick-summary">Quick Summary</h2>
<ul>
<li>Install with <code>pipx install aider-chat</code>; run it inside a git repo.</li>
<li>Add files with <code>/add</code>; the repo map supplies context for everything else.</li>
<li>Every change becomes a git commit and <code>/undo</code> reverts it.</li>
<li>Set <code>--map-tokens</code> lower on large repos to protect your context window.</li>
<li>Best for terminal-first developers; there is no GUI or inline autocomplete.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-start-pair-programming-in-aider-from-the-terminal/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Cut Aider Costs and Token Usage in Git Repos</title>
		<link>https://www.iaifeed.com/how-to-cut-aider-costs-and-token-usage-in-git-repos</link>
					<comments>https://www.iaifeed.com/how-to-cut-aider-costs-and-token-usage-in-git-repos#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Thu, 12 Nov 2026 12:42:41 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Aider]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-cut-aider-costs-and-token-usage-in-git-repos</guid>

					<description><![CDATA[Aider bills by context, not output. Here is how /drop, repo maps, diff mode and commit hygiene cut a 40-cent refactor to a few cents per change.]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a> charges you for everything in the chat every round. The fix is not a cheaper model, it is a smaller chat. Dropping files after each task, using the repo map instead of adding whole directories, and committing often can take a 40-cent refactor down to under a dime.</p>
<p>That is the whole thesis. The rest of this guide is the mechanics: which flag does what, where the hidden token bloat comes from, and how to spot a session that is quietly burning money.</p>
<h2 id="why-does-the-same-aider-edit-cost-10x-more-some-days">Why does the same Aider edit cost 10x more some days?</h2>
<p>Because a request resends the full chat context. Eight files plus 20 messages of history is one large request, not 21 small ones.</p>
<p>Aider prints the token count on every turn. Two numbers matter: total context and the per-request cost line. If context is over 40,000 tokens, you are paying for the model to re-read a scroll of old decisions it has already made.</p>
<p>Typical bloat sources, in order of impact:</p>
<ol>
<li>Files you added for one question and never dropped.</li>
<li>Long back-and-forth where you iterated on a diff.</li>
<li>Large generated files (lock files, minified JS, fixtures) pulled in by accident.</li>
<li>Whole test directories added instead of the two files you changed.</li>
</ol>
<h2 id="how-do-drop-reset-and-clear-differ">How do /drop, /reset and /clear differ?</h2>
<p>Each solves a different problem and people mix them up constantly.</p>
<ul>
<li><code>/drop</code> removes a named file from the chat. Use it the moment you finish with a file.</li>
<li><code>/clear</code> empties the message history but keeps the file list. Good after finishing a task, before starting the next.</li>
<li><code>/reset</code> wipes both history and files. Use it when the model has gone down a wrong path.</li>
</ul>
<p>Routine that keeps sessions cheap: finish a task, <code>/clear</code> the history, <code>/drop</code> files no longer needed, then add the next batch. Ten seconds of housekeeping adds up to real savings across a week.</p>
<h2 id="what-is-the-repo-map-and-when-should-you-rely-on-it">What is the repo map and when should you rely on it?</h2>
<p>Aider builds a repo map: a compact tree of files with key function and class signatures, ranked by relevance to your request. It is how Aider finds the right file to suggest before you add anything.</p>
<p>Two flags control it:</p>
<ul>
<li><code>--map-tokens</code> sets how much budget the map gets. Default is around 1,000 tokens. Raising it helps on large repos where relevant code sits deep in the tree.</li>
<li><code>--no-map</code> disables it. Bad idea on a big repo, fine on a ten-file script where you know where everything is.</li>
</ul>
<p>On a 200-file codebase, letting the map do discovery and adding only what you need beats adding five files &#8220;just in case&#8221; every time. The map costs about 1K tokens; a wrong file guess costs 5K or more.</p>
<h2 id="does-aiders-diff-mode-save-money">Does Aider&#8217;s diff mode save money?</h2>
<p>Yes, and it is the single most underrated setting. By default Aider asks a model to return whole-file rewrites in an edit-block format. With <code>--edit-format diff</code>, it asks for unified diffs instead. Output tokens drop sharply on large files.</p>
<p>On a 900-line module, a whole-file rewrite might return 900+ lines against a model that bills output at 3-4x input rate. A diff for the same change is often 30 lines.</p>
<p>Command form:</p>
<pre><code>aider --edit-format diff --model sonnet
</code></pre>
<p>Diffs fail to apply more often than block edits, so budget one extra attempt per three changes. Even with retries the math usually wins on files over a few hundred lines.</p>
<h2 id="how-do-commits-and-test-runs-change-the-bill">How do commits and test runs change the bill?</h2>
<p>Every time Aider runs your test suite it pulls the output into the chat. A 400-line pytest failure dump is 2,000+ tokens of context you now carry forward.</p>
<p>Practical rules:</p>
<ul>
<li>Run the narrow test file, not the suite, when asking Aider to fix something.</li>
<li>After a commit, <code>/drop</code> the test file if you will not touch it again this session.</li>
<li>Use <code>--no-auto-test</code> if you prefer to run tests yourself and paste only the failing assertion.</li>
</ul>
<p>None of this is dramatic on one edit. Over a full day of work it is the difference between a two-dollar session and a twelve-dollar one.</p>
<h2 id="what-still-costs-money-no-matter-what-you-do">What still costs money no matter what you do?</h2>
<ul>
<li><strong>Multi-file refactors.</strong> There is no way around sending those files. Accept 20-50 cents and move on.</li>
<li><strong>Unfamiliar codebases.</strong> The map and a few trial files cost real tokens before you understand the structure. That is tuition, not waste.</li>
<li><strong>Model choice.</strong> Switching to a weak model to save money usually ends in a failed attempt plus a retry on the strong model, which costs more than starting strong.</li>
</ul>
<p>If you want zero marginal cost, point Aider at a local model through Ollama. Expect noticeably worse multi-file reasoning. Fine for renames and small patches, painful for anything architectural.</p>
<h2 id="quick-summary">Quick Summary</h2>
<ul>
<li>Aider resends the whole chat each turn, so context size drives cost, not answer length.</li>
<li>Use <code>/drop</code> after finishing a file, <code>/clear</code> between tasks, <code>/reset</code> when the model goes wrong.</li>
<li>The repo map costs about 1,000 tokens and replaces guesswork file additions on large repos.</li>
<li><code>--edit-format diff</code> cuts output tokens a lot on large files, at the cost of more failed applies.</li>
<li>Narrow test runs and frequent commits keep failure dumps out of the context window.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-cut-aider-costs-and-token-usage-in-git-repos/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Use Aider to Edit Code From the Terminal</title>
		<link>https://www.iaifeed.com/how-to-use-aider-to-edit-code-from-the-terminal</link>
					<comments>https://www.iaifeed.com/how-to-use-aider-to-edit-code-from-the-terminal#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Thu, 12 Nov 2026 12:42:17 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Aider]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-use-aider-to-edit-code-from-the-terminal</guid>

					<description><![CDATA[Aider is a command-line coding assistant that edits files in your git repo and commits each change. Install, add files, first edit, and the token math.]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a> is a terminal-based AI pair programmer that reads files from your local git repository, writes changes back as real diffs, and commits them for you. Install it with one pip command, run <code>aider</code> inside a repo, and you are editing code in about three minutes.</p>
<p>The part that matters: Aider works on your files, not a chat buffer. Every edit is a git commit, so <code>git diff</code> and <code>git revert</code> are your undo buttons. That single design choice makes it far less scary than pasting code into a web chat.</p>
<h2 id="what-is-aider-and-what-does-it-need">What is Aider and what does it need?</h2>
<p>Aider is an open-source Python package from Paul Gauthier that pairs a language model with your repository. It runs on macOS, Linux, and Windows via WSL. You need Python 3.9 or newer, git, and an API key from a supported provider (OpenAI, Anthropic, DeepSeek, Gemini, or a local model through Ollama).</p>
<p>First run checklist:</p>
<ul>
<li>Python 3.9+ and pip available in the shell.</li>
<li>A git repository. Aider refuses to work well outside one.</li>
<li>An API key exported as an environment variable.</li>
<li>A model name you know the price of, because costs accumulate per token.</li>
</ul>
<h2 id="how-do-you-install-aider-and-start-a-session">How do you install Aider and start a session?</h2>
<pre><code>python -m pip install aider-install
python -m aider_install
</code></pre>
<p>Then set your key and start it inside a project:</p>
<pre><code>export ANTHROPIC_API_KEY=sk-...
cd ~/projects/my-app
aider --model sonnet
</code></pre>
<p>The <code>--model</code> flag matters more than any other setting. Cheap models save money on trivia and break on multi-file refactors. Pick the strongest model you can afford for architecture work and switch to a lighter one for renaming variables.</p>
<h2 id="how-do-you-tell-aider-which-files-to-work-on">How do you tell Aider which files to work on?</h2>
<p>Aider only edits files you have added to the chat. This is a safety feature, not a limitation. Add files with <code>/add</code>:</p>
<pre><code>/add src/auth.py src/models.py tests/test_auth.py
</code></pre>
<p>Aider shows a token count for the current chat. Watch that number. Once you cross roughly 30,000 tokens on a mid-size model, quality drops and cost climbs. Use <code>/drop</code> to remove files you are done with, or <code>/tokens</code> to see the breakdown.</p>
<p>A trick worth knowing: <code>/add</code> a file, ask a question about it, then <code>/drop</code> it. You get the answer without carrying the file through every later request.</p>
<h2 id="what-does-aider-actually-do-on-the-first-edit">What does Aider actually do on the first edit?</h2>
<p>Type a plain request like &#8220;make the login endpoint return 401 with a JSON error body instead of redirecting.&#8221; Aider replies with a diff. It does not apply it immediately in the default mode; you see the proposed change, then accept or reject.</p>
<p>Once applied, Aider commits automatically with a message it writes. If you dislike that, start with <code>--no-auto-commits</code>, though most people keep the commits: they are small, descriptive, and easy to squash.</p>
<p>Common first-edit failures and fixes:</p>
<ul>
<li><strong>It edits the wrong file.</strong> You forgot to <code>/add</code> the target. Aider will say &#8220;not in chat&#8221; rather than guess.</li>
<li><strong>The diff does not apply.</strong> Usually stale context. Run <code>/reset</code> and re-add.</li>
<li><strong>Changes break tests.</strong> Say &#8220;run the tests&#8221; and Aider executes them, then fixes what failed.</li>
</ul>
<h2 id="how-much-does-aider-cost-to-run">How much does Aider cost to run?</h2>
<p>The tool itself is free and open source. You pay the model provider per token, and Aider reports the running session cost after each message.</p>
<p>Real numbers from mid-size repositories: a single-file change with a 10,000-token context costs a few cents on a frontier model. A 60,000-token refactor across five files can cost 40 cents or more in one request because the whole context is resent. Keeping context lean is the main cost lever you control.</p>
<p>LiteLLM support means you can point Aider at local models for zero marginal cost, at the price of noticeably weaker refactor quality.</p>
<h2 id="who-should-use-aider-and-who-should-not">Who should use Aider and who should not?</h2>
<p>It suits developers comfortable in a shell who already use git deliberately. If your workflow is commit-early-commit-often, Aider fits without friction.</p>
<p>It does not suit IDE-first developers who want inline autocomplete and a sidebar chat. Aider has no GUI and no tab completion in the editor. It also frustrates people who work across multiple repositories at once; one session, one repo.</p>
<p>A second caveat: Aider is chatty about its own architecture and will sometimes rewrite a file more broadly than asked. Review the diff before accepting. It is one keystroke, and it has saved me from two bad refactors this year.</p>
<h2 id="quick-summary">Quick Summary</h2>
<ul>
<li>Aider is a free, open-source CLI coding assistant that edits files in a git repo and auto-commits changes.</li>
<li>Install with <code>python -m pip install aider-install</code>, run <code>aider --model sonnet</code> inside a repo.</li>
<li>It only touches files added via <code>/add</code>; keep chat context under about 30,000 tokens.</li>
<li>You pay per token to the model provider; a large multi-file refactor can cost tens of cents in one request.</li>
<li>Best for terminal-and-git users; not for IDE-centric workflows or multi-repo sessions.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-use-aider-to-edit-code-from-the-terminal/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Use Aider&#8217;s Architect Mode on Refactors That Touch Many Files</title>
		<link>https://www.iaifeed.com/how-to-use-aider-architect-mode-for-multi-file-refactors</link>
					<comments>https://www.iaifeed.com/how-to-use-aider-architect-mode-for-multi-file-refactors#comments</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Wed, 04 Nov 2026 12:43:54 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Aider]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-use-aider-architect-mode-for-multi-file-refactors</guid>

					<description><![CDATA[Architect mode splits Aider into a planner and an editor. Here is how to configure it, when it beats normal chat mode, and what it still gets wrong on large refactors.]]></description>
										<content:encoded><![CDATA[<p>Architect mode runs Aider twice: one model plans the change in prose, a second model writes the actual edits. You enable it with <code>/architect</code> or <code>--architect</code>, then pick a reasoner for planning and a cheaper coder for the diff.</p>
<p>The split exists because the two jobs want different models. Refactor planning rewards long-chain reasoning. Emitting a correct patch rewards instruction-following and precise file context.</p>
<h2 id="how-does-architect-mode-differ-from-normal-aider-chat">How does architect mode differ from normal Aider chat?</h2>
<p>In normal mode the same model reads the files, reasons, and writes the diff in one pass. On small edits that is faster and fine.</p>
<p>On a rename spanning 12 files, one-pass models get sloppy around file 7. They lose the naming convention, or they edit a call site and forget the import. A planner that writes down the rule first fixes most of that.</p>
<p>Concretely: the architect model produces a plan, then hands it plus the file context to the editor model. The editor applies it literally.</p>
<h2 id="how-do-you-configure-architect-mode-for-a-refactor">How do you configure architect mode for a refactor?</h2>
<ol>
<li>Start Aider with <code>/architect</code> or run <code>aider --architect</code>.</li>
<li>Set the planner: <code>aider --architect --model o3 --editor-model sonnet</code>.</li>
<li><code>/add</code> every file the refactor touches, plus one test file.</li>
<li>Ask for a plan, not code: &#8220;Describe the steps to move user auth into src/auth/. Do not edit yet.&#8221;</li>
<li>Read the plan. Fix it in chat — one or two rounds max.</li>
<li>Say &#8220;implement the plan&#8221;. Review each commit.</li>
</ol>
<p>Step 5 is where the value is. Correcting a paragraph of prose costs one message. Correcting a 12-file diff costs ten.</p>
<h2 id="which-models-work-best-as-planner-vs-editor">Which models work best as planner vs editor?</h2>
<p>Planner: a reasoning model. Thinking-model outputs on refactor plans are noticeably better at spotting ordering problems, like renaming a symbol before its imports.</p>
<p>Editor: a fast, strong instruction-follower. It does not need to reason deeply because the plan already did. Mid-tier models work here for a fraction of the cost.</p>
<p>Cost shape: the planner runs once or twice, the editor runs per response. A 3-round refactor with a reasoning planner and mid-tier editor lands around 20-40 cents. All-top-tier is 3-4x that for similar output.</p>
<h2 id="where-does-architect-mode-still-break">Where does architect mode still break?</h2>
<p>Type-level changes. If a function signature changes and callers use keyword arguments, the editor will miss some callers even with the plan in hand. Run your type checker after every round.</p>
<p>Cross-language changes. Adding a new API endpoint in Python that a TypeScript client calls — the editor only edits what is in context. It cannot see your frontend unless you <code>/add</code> it.</p>
<p>Anything with a migration step. The planner will describe the schema change; the editor will not run it. That is your job, and the plan will not remind you.</p>
<p>People also over-trust the plan. If the plan is wrong at step 2, every later edit inherits the error. Read it.</p>
<h2 id="how-does-this-compare-with-handing-the-task-to-a-full-agent">How does this compare with handing the task to a full agent?</h2>
<p>Tools like <a href="https://www.iaifeed.com/ai-tool/devin-ai">Devin AI</a> take a ticket and work unattended. Aider&#8217;s architect mode keeps you in the loop at every commit. The trade-off is time versus control.</p>
<p>For a codebase you own and understand, architect mode usually wins. You already know what the plan should look like, so you catch bad plans in one message.</p>
<p>For a large legacy repo you have never read, a fuller agent with its own browser and shell gets further before you need to intervene.</p>
<h2 id="quick-summary">Quick Summary</h2>
<ul>
<li>Architect mode splits planning and editing across two models; enable with <code>/architect</code>.</li>
<li>Use a reasoning model as planner and a mid-tier model as editor to keep cost near 20-40 cents per refactor.</li>
<li>Ask for a plan first, fix it in chat, then say &#8220;implement the plan&#8221;.</li>
<li>It still misses call sites on signature changes — run the type checker after every round.</li>
<li>Best for repos you own. For unfamiliar legacy code, an unattended agent may get further first.</li>
</ul>
<h2 id="related-guides">Related guides</h2>
<ul>
<li><a href="https://www.iaifeed.com/how-to-set-up-aider-and-edit-a-whole-repo-from-the-terminal/">How to set up Aider and edit a whole repo from the terminal</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-use-aider-architect-mode-for-multi-file-refactors/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Set Up Aider and Edit a Whole Repo From the Terminal</title>
		<link>https://www.iaifeed.com/how-to-set-up-aider-and-edit-a-whole-repo-from-the-terminal</link>
					<comments>https://www.iaifeed.com/how-to-set-up-aider-and-edit-a-whole-repo-from-the-terminal#comments</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Wed, 04 Nov 2026 12:43:37 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Aider]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-set-up-aider-and-edit-a-whole-repo-from-the-terminal</guid>

					<description><![CDATA[Aider is an open-source command-line coding agent. Install it, point it at a git repo, and it edits multiple files with real git commits you can review and revert.]]></description>
										<content:encoded><![CDATA[<p>Aider is a free, open-source AI pair programmer that runs in your terminal. You start it inside a git repo, chat with it, and it writes edits directly into the files, committing each change to git so you can review or revert.</p>
<p>It is not an IDE plugin. There is no sidebar. That is the point — it works the same over SSH, in a container, on a 2015 laptop.</p>
<h2 id="what-does-aider-change-compared-with-an-ai-chat-window">What does Aider change compared with an AI chat window?</h2>
<p>A chat window gives you code you paste somewhere. Aider gives you a repository state.</p>
<p>It reads the files you add to the conversation, builds a map of the repo (function and class names, not full text), and edits. Then it commits with a message it writes. If the change is bad, <code>git revert</code> or <code>/undo</code> fixes it in seconds.</p>
<p>That commit-per-change behaviour is the main reason people keep using it after the novelty wears off.</p>
<h2 id="how-do-you-install-aider-and-get-it-running">How do you install Aider and get it running?</h2>
<ol>
<li><code>pip install aider-chat</code> (Python 3.9 or newer).</li>
<li>Set a key: <code>export ANTHROPIC_API_KEY=...</code> or <code>export OPENAI_API_KEY=...</code>.</li>
<li><code>cd</code> into a git repo. Run <code>aider</code>.</li>
<li>Add files with <code>/add path/to/file.py</code>, or just start talking and use <code>/add</code> as you go.</li>
<li>Type the request. It edits, runs any tests you ask for, and commits.</li>
</ol>
<p>Windows users need a WSL terminal or the Docker image (<code>paulgauthier/aider</code>). Native PowerShell still has rough edges on file paths.</p>
<h2 id="which-model-should-you-run-in-aider">Which model should you run in Aider?</h2>
<p>Anything with a decent context window and strong tool use. As of 2026 the popular picks are Claude Sonnet 5, GPT-5-class models, and DeepSeek for budget work.</p>
<p>Two settings matter:</p>
<ul>
<li><strong>Main model</strong> does the editing. Use the strongest one you can afford.</li>
<li><strong>Weak model</strong> handles summaries and commit messages. A cheap model here cuts cost a lot with no quality loss.</li>
</ul>
<p>Run <code>aider --model deepseek/deepseek-chat --weak-model deepseek/deepseek-chat</code> for a cheap setup, or <code>--model sonnet</code> when accuracy matters more than the bill.</p>
<p>A 200-line change on a mid-tier model costs a few cents. On a top-tier model, expect roughly 5-15 cents.</p>
<h2 id="how-much-of-a-large-repo-can-it-actually-handle">How much of a large repo can it actually handle?</h2>
<p>Less than the marketing suggests. Aider&#8217;s repo map is clever — it summarises structure instead of dumping every file — but it still hits context limits around a few hundred files.</p>
<p>Practical rules:</p>
<ul>
<li>Add only the files relevant to the change. <code>/add</code> is cheap, context is not.</li>
<li>Use <code>/tokens</code> to see current usage. If you are past 60% before you have typed anything, remove files.</li>
<li>For a monorepo, run Aider from the subpackage directory, not the root.</li>
</ul>
<p>If your task needs deep understanding of 50 files, that is a review job, not an Aider job.</p>
<h2 id="what-are-the-commands-you-will-actually-use">What are the commands you will actually use?</h2>
<table>
<thead>
<tr>
<th>Command</th>
<th>What it does</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>/add file</code></td>
<td>Add file to the chat context</td>
</tr>
<tr>
<td><code>/drop file</code></td>
<td>Remove it again</td>
</tr>
<tr>
<td><code>/run pytest -q</code></td>
<td>Run a command and feed output back to the model</td>
</tr>
<tr>
<td><code>/undo</code></td>
<td>Revert the last commit</td>
</tr>
<tr>
<td><code>/diff</code></td>
<td>Show pending changes</td>
</tr>
<tr>
<td><code>/architect</code></td>
<td>Plan first, then edit with a second model</td>
</tr>
</tbody>
</table>
<p><code>/architect</code> mode is worth trying on anything bigger than a single function. The model designs, then a second pass implements. It costs more tokens and produces fewer blind alleys.</p>
<p>If you want an editor with an agent bolted on instead, <a href="https://www.iaifeed.com/ai-tool/builder-io">Builder.io</a> covers the visual side of things. Different workflow, same goal.</p>
<h2 id="is-aider-good-for-production-code">Is Aider good for production code?</h2>
<p>Only with a test suite. Aider will happily commit code that passes nothing because nobody ran anything.</p>
<p>Wire <code>/run</code> into your loop, or add <code>--auto-test</code> with a lint command in <code>.aider.conf.yml</code>. Treat the git commits as a review queue, not as accepted work. Read them the way you would read a junior developer&#8217;s pull request.</p>
<p>People who skip that step get 40 commits of plausible-looking code and a broken build.</p>
<h2 id="quick-summary">Quick Summary</h2>
<ul>
<li>Aider is free and open source; install with <code>pip install aider-chat</code> and run inside a git repo.</li>
<li>Every change is a git commit, so review is <code>git log</code> and rollback is <code>git revert</code>.</li>
<li>Use a strong model for edits and a cheap one for the weak model to keep costs at cents per change.</li>
<li>Context is the real limit, not file count. Keep <code>/tokens</code> under 60% before you start.</li>
<li>Without a test runner wired in, expect plausible code that does not actually work.</li>
</ul>
<h2 id="related-guides">Related guides</h2>
<ul>
<li><a href="https://www.iaifeed.com/how-to-cut-agentgpt-loop-costs-and-get-better-results/">How to cut AgentGPT loop costs and get better results</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-set-up-aider-and-edit-a-whole-repo-from-the-terminal/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>How to Use Aider to Edit Code with AI in Your Terminal</title>
		<link>https://www.iaifeed.com/how-to-use-aider-to-edit-code-with-ai-in-your-terminal</link>
					<comments>https://www.iaifeed.com/how-to-use-aider-to-edit-code-with-ai-in-your-terminal#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Sun, 06 Sep 2026 12:17:44 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Aider]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-use-aider-to-edit-code-with-ai-in-your-terminal</guid>

					<description><![CDATA[Learn how to use Aider to edit code with AI directly in your terminal, with git-tracked changes and your own choice of AI model.]]></description>
										<content:encoded><![CDATA[<p>You have probably used AI to chat about code, but <a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a> takes it further: it reads your actual files, edits them, and commits the changes to Git automatically. Aider is a free, open-source command-line pair programmer that works with your own choice of AI model. In this guide you will install Aider and use it to make your first real edits to a project.</p>
<h2>Why Edit Directly Instead of Copy-Pasting</h2>
<p>Copying AI suggestions back into an editor is slow and error-prone. <a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a> changes the workflow by operating on your repository directly: you describe a change, it plans the edit, applies it to the right files, and creates a commit. Because every change is git-tracked, you can review the diff and roll back if needed. This makes AI coding transparent instead of mysterious.</p>
<h2>Step 1: Install Aider</h2>
<p>Aider runs on Linux, macOS and Windows (via WSL). The fastest install is usually via your package manager or pip. For example, you can install it with pip in a virtual environment. You will also need an API key for the model you want to use — Aider works with models from Anthropic, OpenAI, Google and others, so pick the provider you already pay for.</p>
<h2>Step 2: Open It Inside a Real Repository</h2>
<p>Navigate into an existing project directory and launch Aider there. It will detect that the folder is a git repository. If it is not one yet, initialize Git first. <a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a> needs git context because it uses your repo history and diff to make precise edits and write useful commit messages.</p>
<h2>Step 3: Add the Files You Want to Change</h2>
<p>Tell Aider which files it is allowed to edit by adding them to the chat session. Add only the files relevant to your task; scoping files keeps the AI focused and prevents it from touching code you did not intend to change. You can add files with a simple command, and Aider will show you what is in its context.</p>
<h2>Step 4: Describe Your Desired Change</h2>
<p>Now describe what you want in plain language. For example, &#8220;add input validation to the signup form&#8221; or &#8220;fix the bug where the total is wrong when a discount is applied.&#8221; Aider will analyze the files in context, propose a plan, and apply the edits. Read the resulting diff carefully to make sure the change matches your intent.</p>
<h2>Step 5: Test the Change and Let Aider Commit</h2>
<p>Run your tests or the relevant part of your app to confirm the change works. Aider usually creates a commit automatically with a sensible message. If you are not happy, you can ask it to adjust or revert. Because <a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a> commits cleanly, your history stays reviewable and safe to share with a team.</p>
<h2>Step 6: Iterate and Broaden the Edit</h2>
<p>Work through your task in small, reviewable steps rather than one giant request. Add more files as the scope grows, ask follow-up questions, and use Aider&#8217;s ability to see the whole repo when a change spans many files. Over time you will build a rhythm where <a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a> handles the mechanical edits and you focus on direction and quality.</p>
<h2>Tips for Effective AI Pair Programming</h2>
<ul>
<li><strong>Scope files tightly.</strong> Give Aider access only to what the task touches.</li>
<li><strong>Make changes incremental.</strong> Small commits are easier to review and roll back.</li>
<li><strong>Review every diff.</strong> AI is fast, but you are accountable for the code.</li>
<li><strong>Keep tests running.</strong> A solid test suite catches what a quick read misses.</li>
<li><strong>Write clear prompts.</strong> Good descriptions produce good, on-target edits.</li>
</ul>
<p>AI pair programming becomes truly useful when the tool edits your codebase, not just your chat window. With <a href="https://www.iaifeed.com/ai-tool/aider-ai">Aider</a>, you get that power free and open-source, right in your terminal. Install it, open a repository, and make your first tracked edit today — then let it grow into a regular part of how you build software.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-use-aider-to-edit-code-with-ai-in-your-terminal/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
