<?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>droid &#8211; iAIFeed</title>
	<atom:link href="https://www.iaifeed.com/tag/droid/feed" rel="self" type="application/rss+xml" />
	<link>https://www.iaifeed.com</link>
	<description>iAIFeed</description>
	<lastBuildDate>Mon, 21 Sep 2026 12:41:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://www.iaifeed.com/wp-content/uploads/2026/07/cropped-iaifeed1-80x80.png</url>
	<title>droid &#8211; iAIFeed</title>
	<link>https://www.iaifeed.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Run Droid CLI in CI and Scripts for Automated Fixes</title>
		<link>https://www.iaifeed.com/how-to-run-droid-cli-in-ci-and-scripts</link>
					<comments>https://www.iaifeed.com/how-to-run-droid-cli-in-ci-and-scripts#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Mon, 21 Sep 2026 12:41:42 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[droid]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-run-droid-cli-in-ci-and-scripts</guid>

					<description><![CDATA[Move past interactive use: run Droid non-interactively in CI, wire it into git hooks, and bound its cost with flags and timeouts.]]></description>
										<content:encoded><![CDATA[<p>Droid CLI can run without a human at the keyboard, which makes it useful for CI jobs, git hooks, and batch refactors. The trick is disabling the interactive approval prompts and giving the agent a hard budget. Done right, an automated lint-fix job costs a few cents per run.</p>
<h2>Can Droid run non-interactively?</h2>
<p>Yes. Droid ships a headless style invocation where you pass the task as an argument and it exits with a status code. The flag set matters more than anything else here, because an unattended agent with no limits will happily loop all night. You want a task, a max-turn cap, and a timeout wrapping the whole command.</p>
<h2>How do you wire Droid into CI?</h2>
<p>The pattern below works on GitHub Actions, GitLab CI, and plain cron:</p>
<ol>
<li>Install Node 18+ and run <code>npm install -g @factory-ai/droid</code>.</li>
<li>Export your model key as a secret, for example <code>ANTHROPIC_API_KEY</code>.</li>
<li>Call droid with the task and a turn limit: <code>timeout 600 droid run "fix all ESLint errors in src/ and run tests" --max-turns 20</code></li>
<li>Fail the job if <code>git diff --quiet</code> returns false, so uncommitted changes are visible.</li>
</ol>
<p>Keep the task narrow. &#8220;Fix all lint errors&#8221; is safe because the linter defines done. &#8220;Improve the codebase&#8221; is not, and the agent will meander into files you did not intend to change.</p>
<h2>How do you control cost?</h2>
<p>A CI run that touches 5-10 small files uses roughly 30k-80k tokens. At Claude Sonnet rates that is under $0.50. Two levers keep it there: a max-turns cap and a diff size check. If the produced diff touches more than, say, 15 files, reject the run instead of opening a pull request. This one rule prevents the classic failure where a bot rewrites half the repo overnight.</p>
<h2>Where does it fit next to opencode and IDE agents?</h2>
<p>If your team already scripts agents, <a href="https://www.iaifeed.com/ai-tool/opencode">opencode</a> is the closer sibling — it was built to be embedded in shell pipelines. Droid&#8217;s edge is its planning loop on larger multi-file tasks, which shows up when a single lint rule needs changes across many modules. For interactive day-to-day work, stick with the normal Droid session; reserve headless mode for repetitive jobs.</p>
<h2>What are the limits?</h2>
<p>Unattended agents cannot ask clarifying questions. If the task is ambiguous, you get a plausible but wrong diff, and someone reviews it anyway. There is also no built-in dedup: run it twice on the same branch and you may get two competing patches. Gate every run behind a fresh branch and a human merge.</p>
<h2>Quick Summary</h2>
<ul>
<li>Droid runs headless with a task argument and an exit code.</li>
<li>Always set a max-turn cap and an external <code>timeout</code> wrapper.</li>
<li>Typical CI run: 30k-80k tokens, under $0.50.</li>
<li>Reject any diff touching more than ~15 files.</li>
<li>Headless mode cannot ask questions — use it only for well-defined jobs.</li>
</ul>
<p><em>Last updated September 2026.</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-run-droid-cli-in-ci-and-scripts/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Use Droid CLI to Automate Coding Tasks in 2026</title>
		<link>https://www.iaifeed.com/how-to-use-droid-cli-to-automate-coding-tasks</link>
					<comments>https://www.iaifeed.com/how-to-use-droid-cli-to-automate-coding-tasks#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Mon, 21 Sep 2026 12:41:24 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[droid]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-use-droid-cli-to-automate-coding-tasks</guid>

					<description><![CDATA[Droid is Factory AI's terminal coding agent. This guide shows how to install Droid CLI, connect a model, and ship a real task in about 10 minutes.]]></description>
										<content:encoded><![CDATA[<p>Droid is a command-line coding agent from Factory AI that reads your repo, edits files, and runs commands from a single terminal chat. You install it with one npm command, point it at a model, and describe the task in plain English. A first working edit usually takes under 10 minutes.</p>
<h2>What is Droid CLI?</h2>
<p>Droid is an agentic developer tool that lives in your shell rather than an IDE. It scans the current directory, builds a plan, then writes code and executes shell commands with your approval. Factory ships it as a Node package, so Node 18 or newer is required. Unlike a chat window, Droid keeps the working tree in context, which is why it handles multi-file refactors without you pasting file contents.</p>
<h2>How do you install Droid?</h2>
<p>Run one command:</p>
<ul>
<li><code>npm install -g @factory-ai/droid</code></li>
<li>Then start it inside a project: <code>cd my-app &amp;&amp; droid</code></li>
</ul>
<p>On first launch it asks for credentials. You can sign in with a Factory account or supply your own API key for Anthropic, OpenAI, or a local endpoint. The config lands in <code>~/.factory/config.json</code>, so switching models later is a two-line edit rather than a reinstall.</p>
<h2>How do you run your first task?</h2>
<p>Open a repo you know well, then type a request that names the file and the outcome. For example: &#8220;Add input validation to the signup handler in api/auth.js and return 400 on a missing email.&#8221; Droid proposes a diff before touching disk. Press <code>y</code> to apply, <code>n</code> to reject, or type a correction to revise the plan.</p>
<p>Three habits make it reliable:</p>
<ol>
<li>Start on a clean git branch. Droid edits real files, and <code>git diff</code> is your undo button.</li>
<li>Ask for one change at a time. Bundled requests produce bigger diffs and more review work.</li>
<li>Let it run tests. Say &#8220;run the test suite and fix failures&#8221; and it will loop until the suite passes or it gets stuck.</li>
</ol>
<h2>Is Droid free?</h2>
<p>The Droid CLI itself is free to install. You pay for the model behind it. A mid-sized refactor typically burns 20k-60k tokens, which on Claude Sonnet pricing lands around $0.10-$0.40 per task. If you already have an API key, there is no separate subscription. Teams that want centralized billing and shared context can use Factory&#8217;s paid plan, but solo developers can run it indefinitely on their own keys.</p>
<h2>Droid vs other terminal agents</h2>
<p>Droid competes with <a href="https://www.iaifeed.com/ai-tool/opencode">opencode</a> and IDE-based tools like Cline. Droid leans toward autonomous multi-step work, while opencode stays lighter and more scriptable. If you mostly want inline autocomplete, neither beats an IDE plugin. Droid is best for people who already live in tmux and want an agent they can pipe into scripts.</p>
<h2>Common pitfalls</h2>
<p>Two things trip up new users. First, Droid can overwrite a file if you approve a diff without reading it, so glance at the hunk headers. Second, long tasks drift: if the agent starts editing unrelated files, stop it and restate the goal with a narrower scope.</p>
<h2>Quick Summary</h2>
<ul>
<li>Droid is Factory AI&#8217;s terminal coding agent, installed via <code>npm install -g @factory-ai/droid</code>.</li>
<li>It needs Node 18+, edits files directly, and asks for approval before each change.</li>
<li>The CLI is free; you pay only for model tokens, roughly $0.10-$0.40 per task.</li>
<li>Works best on a clean git branch with one request at a time.</li>
<li>Good fit for terminal-first developers; overkill if you just want autocomplete.</li>
</ul>
<p><em>Last updated September 2026.</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-use-droid-cli-to-automate-coding-tasks/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
