<?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>AI Coding Agents &#8211; Xojo Programming Blog</title>
	<atom:link href="https://blog.xojo.com/tag/ai-coding-agents/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.xojo.com</link>
	<description>Blog about the Xojo programming language and IDE</description>
	<lastBuildDate>Tue, 24 Nov 2026 16:18:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.12</generator>
	<item>
		<title>How to Get AI Coding Agents to Follow Your Project Rules with AGENTS.md</title>
		<link>https://blog.xojo.com/2026/11/24/how-to-get-ai-coding-agents-to-follow-your-project-rules-with-agents-md/</link>
		
		<dc:creator><![CDATA[Gabriel Ludosanu]]></dc:creator>
		<pubDate>Tue, 24 Nov 2026 16:18:57 +0000</pubDate>
				<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Agentic Mode]]></category>
		<category><![CDATA[AGENTS.md]]></category>
		<category><![CDATA[AI Coding Agents]]></category>
		<category><![CDATA[Git]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=16832</guid>

					<description><![CDATA[With Agentic Mode in Xojo 2026r3, a coding agent can read and edit your project files. Additionally, it can ask Xojo to build and run&#8230;]]></description>
										<content:encoded><![CDATA[
<p>With Agentic Mode in Xojo 2026r3, a coding agent can read and edit your project files. Additionally, it can ask Xojo to build and run your app in debug mode. If the build fails, the agent can use the compiler errors to fix the code.</p>



<p>Think of the agent as a developer intern on their first day. Explain what the app does and how you work on it. Give the agent one small task with a clear result, then review its changes and try them in Xojo.</p>



<p>Say you’re working on an inventory app where “low stock” means five units or fewer. Save that rule in&nbsp;<code>AGENTS.md</code>&nbsp;so the agent can use it again. In the agent’s chat, ask for a checkbox that shows only products with low stock.</p>



<p>You can adapt these examples to your own Xojo project. If you need help connecting your coding agent to Xojo, start with the QuickStart. <a href="https://documentation.xojo.com/getting_started/quickstarts/ai_quickstart.html" target="_blank" rel="noreferrer noopener">Xojo AI QuickStart</a></p>



<h2 class="wp-block-heading" id="the-two-files-xojo-uses-in-agentic-mode">The two files Xojo uses in Agentic Mode</h2>



<p>When you enable Agentic Mode, Xojo creates <code>XOJO-CODING.md</code> in the project folder. It contains Xojo’s guidance on working with project files, finding the documentation, and running the project. Each time you open the project in Agentic Mode, Xojo retrieves a fresh copy from its servers so we can keep that guidance up to date. We regularly test different AI models and refine the instructions to help them write correct Xojo code. <a href="https://documentation.xojo.com/getting_started/using_the_ide/agentic_mode.html" target="_blank" rel="noreferrer noopener">Xojo Agentic Mode documentation</a></p>



<p><strong>Do not edit&nbsp;<code>XOJO-CODING.md</code>. Xojo overwrites it the next time you open the project in Agentic Mode.</strong>&nbsp;Put your own instructions in&nbsp;<code>AGENTS.md</code>.</p>



<p>If your project folder has no <code>AGENTS.md</code>, Xojo creates a starter whose only job is to point the agent to <code>XOJO-CODING.md</code>. If you already have an <code>AGENTS.md</code>, Xojo keeps it. Open <code>AGENTS.md</code> in a plain-text editor and add your own sections below the existing Xojo reference. If your file is missing that reference, <a href="http://Agentic Mode introduction" target="_blank" rel="noreferrer noopener">this</a> blog post shows how to add it. </p>



<h3 class="wp-block-heading" id="give-the-agent-rules-it-can-use-again">Give the agent rules it can use again</h3>



<p>Think of questions that a new developer would ask you to get started on this project. Which module handles database access? What should they check after changing the import?</p>



<p>Suppose your&nbsp;<code>AGENTS.md</code>&nbsp;starts like this.</p>



<pre class="wp-block-code"><code># AGENTS.md

@XOJO-CODING.md</code></pre>



<p>Add your own section below the existing&nbsp;<code>XOJO-CODING.md</code>&nbsp;reference. Some projects use a longer block for the reference. Keep that block intact too.</p>



<pre class="wp-block-code"><code># AGENTS.md

@XOJO-CODING.md

## Inventory app

- Low stock means five units or fewer, including zero.
- Filters only change which rows are visible. Ask before changing how inventory is saved.
- When you change a filter, tell me how to check the cutoff and what happens when no rows match.</code></pre>



<p>You can ask the agent to write a short overview of an existing project. Try asking, “Review the whole project and add a&nbsp;<code>Project overview</code>&nbsp;section to&nbsp;<code>AGENTS.md</code>. Explain what the app does, where its main features live, and any project conventions you can verify. Keep the&nbsp;<code>XOJO-CODING.md</code>&nbsp;reference intact.” Review what it writes and correct anything it misunderstood.</p>



<p>When you find yourself asking for the same test again, save it as a rule. “Add a bullet to&nbsp;<code>AGENTS.md</code>&nbsp;asking future agents to check items with zero, five, and six units when they change the low-stock filter. Keep the&nbsp;<code>XOJO-CODING.md</code>&nbsp;reference intact and show me the new bullet.”</p>



<h3 class="wp-block-heading" id="three-sections-you-can-borrow-for-agentsmd">Three sections you can use for&nbsp;<code>AGENTS.md</code></h3>



<p>In one of my projects, I kept&nbsp;<code>@XOJO-CODING.md</code>&nbsp;at the top and added the sections below. Copy whichever sections suit your project.</p>



<pre class="wp-block-code"><code># AGENTS.md

@XOJO-CODING.md

## Code conventions

- Prefer native Xojo objects unless the task calls for something else.
- Use `Str(expression)` to convert an arithmetic expression to a string.
- Use descriptive variable names. Avoid `text` as a variable name.
- Follow the &#91;Xojo coding guidelines](https://documentation.xojo.com/topics/code_management/coding_guidelines.md) where this project has no convention of its own.

## Analyze the Project

Project &gt; Analyze Project compiles the whole project for the current target but doesn't build or run it. Treat it as the compiler with warnings on. It checks correctness, not style or the coding guidelines.

- <strong>**Errors**</strong>: anything that would stop the build.
- <strong>**Warnings**</strong>: whatever the user has enabled in the IDE's Analysis Warnings settings. Usually deprecated APIs that have a replacement, unused locals and parameters, lossy implicit conversions, and `#Pragma Warning` messages.

<strong>**When:**</strong> after each round of edits, before Build &amp; Run. It's faster and finds the same compile errors. Before finishing, the project must analyze with no errors. Then also Build &amp; Run, as XOJO-CODING.md requires. If running isn't possible, a clean Analyze is the minimum.

<strong>**Limits:**</strong>

- It checks the current target only. Code in another platform's `#If` branch is skipped and may still have errors. Variables used only there are reported as unused. Don't delete them.
- A missing warning doesn't mean the code is clean, because the user may have that check turned off.
- Ignore warnings from encrypted classes and third-party plugins.

<strong>**Run**</strong> the command for your OS once. If you get no reply within 5 seconds, don't retry. Ask the user to run Project &gt; Analyze Project and paste the contents of the Errors &amp; Warnings pane.

Windows:

```powershell
$b = &#91;Text.Encoding]::UTF8.GetBytes("{`"protocol`":2}`0" + '{"tag":"t","script":"DoCommand(\"CheckProjectErrors\")\nPrint \"done\""}' + "`0")
$cl = foreach ($p in (Get-NetTCPConnection -OwningProcess (Get-Process Xojo).Id -State Listen).LocalPort) { try { $t = &#91;Net.Sockets.TcpClient]::new('127.0.0.1', $p); $t.GetStream().Write($b, 0, $b.Length); $t } catch {} }
Start-Sleep 5
foreach ($t in $cl) { $s = $t.GetStream(); $r = New-Object byte&#91;] 65536; while ($s.DataAvailable) { &#91;Text.Encoding]::UTF8.GetString($r, 0, $s.Read($r, 0, 65536)).Replace("`0", "`n") }; $t.Close() }
```

macOS/Linux:

```bash
(printf '{"protocol":2}\0'; printf '{"tag":"t","script":"%s"}\0' 'DoCommand(\"CheckProjectErrors\")\nPrint \"done\"'; sleep 4) | nc -U /tmp/XojoIDE | tr '\0' '\n'
```

<strong>**Result:**</strong>

- If no reply or the reply is `"done"`, the project is clean.
- Otherwise, `buildError.errors` and/or `buildError.warnings` come first, followed by `"done"`. The same items go to `XojoCompileErrors.txt`, and a clean analyze clears that file.
- Fix every error, then analyze again.
- Fix warnings only in code you changed. For a deprecation, use the replacement API the warning names. List any other warnings in your summary instead of fixing them. If a parameter is unused on purpose, add `#Pragma Unused paramName`.

## Runtime Logging (Optional)

- When a bug depends on a value you can only see at runtime, add a temporary `System.DebugLog` call near the relevant code. Prefix the message so it is easy to find and name the value you are logging.
- Run the app in the Xojo debugger and reproduce the problem. If you can’t see the IDE’s Messages panel, ask me to paste the lines with the `&#91;AGENT-XOJO-DBG]` prefix.
- Remove temporary logging before finishing the task.

```xojo
#If DebugBuild Then
  System.DebugLog("&#91;AGENT-XOJO-DBG] " + CurrentMethodName + " quantity=" + Str(quantity))
#EndIf
```</code></pre>



<p>Adapt the coding conventions to your project. <br><a href="https://documentation.xojo.com/getting_started/debugging/introduction.html" target="_blank" rel="noreferrer noopener">Analyzing and debugging a Xojo project</a> · <a href="https://documentation.xojo.com/api/os/system.html#system-debuglog" target="_blank" rel="noreferrer noopener">System.DebugLog</a> · <a href="https://documentation.xojo.com/api/compiler_directives/debugbuild.html" target="_blank" rel="noreferrer noopener">DebugBuild</a> · <a href="https://documentation.xojo.com/api/text/str.html" target="_blank" rel="noreferrer noopener">Str</a></p>



<h3 class="wp-block-heading" id="different-agents-follow-instructions-differently">Different agents follow instructions differently</h3>



<p>New coding agents and models come out regularly. Some follow project instructions more reliably than others. Xojo controls the guidance it ships and how the IDE responds. The agent and its model determine how closely they follow that guidance.</p>



<p>When you try a new agent or model, ask it to read&nbsp;<code>AGENTS.md</code>&nbsp;and the referenced&nbsp;<code>XOJO-CODING.md</code>, then explain one project rule in its own words. If it gets the rule wrong, check which folder it’s working in and whether it read both files. After its first task, check that the changes follow the rule.</p>



<h2 class="wp-block-heading" id="save-a-working-version-with-local-git">Save a working version with local Git</h2>



<p>A Git repository keeps a history of your project files. A commit records a version you can compare with later changes. The whole history can live on your computer.</p>



<p>When I start a new app, I drag the blank Xojo project folder into my coding agent app. The first thing I ask the agent to do is create a local Git repository and commit the blank project. Then I explain what the app is for and what the first usable version needs to do. That first commit gives me a starting point I can compare with the changes the agent makes.</p>



<p>For an existing app, run it first to make sure it still works. Use its Git repository if it has one. To set up Git for a project for the first time, ask the agent to make the initial commit.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>Create a local Git repository for this Xojo project. Include the project source, required resources, and&nbsp;<code>AGENTS.md</code>. Add a&nbsp;<code>.gitignore</code>&nbsp;for files such as&nbsp;<code>*.xojo_uistate</code>&nbsp;and generated builds. Make the initial commit. Keep the repository local.</p>
</blockquote>



<h2 class="wp-block-heading" id="what-to-ask-your-coding-agent">What to ask your coding agent</h2>



<p>Use the names you see in the Xojo Navigator so the agent knows where to look. Tell it whether you want an explanation or an edit.</p>



<p><strong>Understand existing code.</strong>&nbsp;“Where does the inventory list get its rows? Show me the window and method to open in the Xojo Navigator.”</p>



<p><strong>Plan a change.</strong>&nbsp;“How would you add a low-stock filter that works with the existing search box? Tell me which project items you’d edit and wait for me before changing them.”</p>



<p><strong>Make the change.</strong>&nbsp;“Add a ‘Low stock only’ checkbox to the Inventory window and leave it unchecked by default. When it’s checked, show rows that match the current search and the low-stock rule in&nbsp;<code>AGENTS.md</code>. When it’s cleared, show all rows that match the current search. Tell me what you changed and what you tested.”</p>



<p><strong>Investigate a bug.</strong>&nbsp;“With ‘Low stock only’ checked and the search box empty, an item with five units disappears. An item with four units still shows up. Find where the cutoff is applied and explain the likely cause before editing.”</p>



<h3 class="wp-block-heading" id="update-part-of-an-older-project-to-api-20">Update part of an older project to API 2.0</h3>



<p>Before changing an older app, run it in the Xojo version you plan to use and save that working version in Git. Turn on deprecation warnings under <strong>Project > Analysis Warnings</strong>, then use <strong>Project > Analyze Project</strong> to find calls with documented replacements. Start with one method or module so you can check that it still behaves the same way after the update. <a href="https://documentation.xojo.com/topics/api_design/moving_to_api_2.0.html" target="_blank" rel="noreferrer noopener">Moving to API 2.0</a> · <a href="https://documentation.xojo.com/resources/updating_older_projects.html" target="_blank" rel="noreferrer noopener">Updating older projects</a></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>Start with the inventory import method. Identify any deprecated API 1.0 calls and propose replacements from the current Xojo documentation. Preserve the existing import behavior, including what happens when the file is missing or invalid. Tell me how to check each case in Xojo.</p>
</blockquote>



<p><a href="https://www.youtube.com/watch?v=CWXGoysjTa0" target="_blank" rel="noreferrer noopener">Watch the Xojo video on YouTube</a></p>



<h2 class="wp-block-heading" id="verify-the-task-and-ask-the-agent-to-commit-it">Verify the task and ask the agent to commit it</h2>



<p>Ask the agent to run the project in Xojo after its edits and report what it could verify. For the inventory checkbox, try items with 0, 5, and 6 units. With the filter on, only the first two should appear when the search field is empty. Type a search that matches one of those items, then try one that matches nothing. Clear the checkbox and check that the six-unit item can show up again when it matches the search. The quantities should stay the same throughout. If the agent can only confirm that the app launched, do these checks in the running app yourself. <a href="https://documentation.xojo.com/getting_started/using_the_ide/agentic_mode.html" target="_blank" rel="noreferrer noopener">Xojo Agentic Mode documentation</a></p>



<p>A bug fix or refactor can take several debug runs. Once the task is complete, confirm that the app runs in debug mode and check the behavior you changed. Review the edits, then ask the agent for one local commit for the whole task.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>The app ran successfully in Xojo and the filter checks passed. Make a local Git commit with the message “Add low-stock filter to inventory.” Include only the changes for this task. Give me the commit ID and tell me if any changes are still pending.</p>
</blockquote>



<p>If you want to make this a regular part of working with the agent, add a rule to&nbsp;<code>AGENTS.md</code>. For example, “For each completed coding task, confirm the project ran successfully in Xojo and check the relevant behavior. Ask me to do any checks you can’t perform. After I review the changes, make one local commit for the task and report the commit ID.”</p>



<p>Happy coding! P.S.: ask the agent about <code>worktrees</code> <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p><em>Gabriel is a digital marketing enthusiast who loves coding with Xojo to create cool software tools for any platform. He is always eager to learn and share new ideas!</em></p>



<ul class="wp-block-social-links has-normal-icon-size is-content-justification-center is-layout-flex wp-container-core-social-links-is-layout-16018d1d wp-block-social-links-is-layout-flex"><li class="wp-social-link wp-social-link-facebook  wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://www.facebook.com/goxojo" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"></path></svg><span class="wp-block-social-link-label screen-reader-text">Facebook</span></a></li>

<li class="wp-social-link wp-social-link-x  wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://x.com/xojo" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z" /></svg><span class="wp-block-social-link-label screen-reader-text">X</span></a></li>

<li class="wp-social-link wp-social-link-linkedin  wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://www.linkedin.com/company/xojo" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg><span class="wp-block-social-link-label screen-reader-text">LinkedIn</span></a></li>

<li class="wp-social-link wp-social-link-github  wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://github.com/topics/xojo" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"></path></svg><span class="wp-block-social-link-label screen-reader-text">GitHub</span></a></li>

<li class="wp-social-link wp-social-link-youtube  wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://www.youtube.com/c/XojoInc" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"></path></svg><span class="wp-block-social-link-label screen-reader-text">YouTube</span></a></li></ul>



<p class="has-text-align-center has-text-color has-link-color wp-elements-a0a2ac26ad214a49dac577734d259176" style="color:#84bd00"><a href="https://xojo.com/download/" target="_blank" rel="noreferrer noopener">Download Xojo</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
