<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Çlirim Ajeti</title>
    <description>The latest articles on DEV Community by Çlirim Ajeti (@clirimajeti).</description>
    <link>https://dev.to/clirimajeti</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F942572%2Fd3522a5a-e258-4dcf-bebf-94fa9b36d4f7.jpeg</url>
      <title>DEV Community: Çlirim Ajeti</title>
      <link>https://dev.to/clirimajeti</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/clirimajeti"/>
    <language>en</language>
    <item>
      <title>codemyrules 0.9: One lint feedback loop, four AI coding harnesses</title>
      <dc:creator>Çlirim Ajeti</dc:creator>
      <pubDate>Tue, 17 Nov 2026 11:14:32 +0000</pubDate>
      <link>https://dev.to/clirimajeti/codemyrules-09-one-lint-feedback-loop-four-ai-coding-harnesses-4jnm</link>
      <guid>https://dev.to/clirimajeti/codemyrules-09-one-lint-feedback-loop-four-ai-coding-harnesses-4jnm</guid>
      <description>&lt;p&gt;Two weeks ago I released &lt;a href="https://github.com/clirimajeti/codemyrules" rel="noopener noreferrer"&gt;codemyrules&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Two weeks ago I released codemyrules, an agent skill that turns the rules in your CLAUDE.md or AGENTS.md into executable lint rules.&lt;/p&gt;

&lt;p&gt;At the time, its feedback loop worked only in Claude Code.&lt;/p&gt;

&lt;p&gt;That limitation is now gone. codemyrules 0.9 brings the same feedback loop to pi, opencode and GitHub Copilot CLI.&lt;/p&gt;

&lt;p&gt;This post tells you what changed from version 0.3 to version 0.9.&lt;/p&gt;

&lt;h2&gt;
  
  
  The feedback loop in more harnesses
&lt;/h2&gt;

&lt;p&gt;The rules and the doc cleanup always worked in every harness.&lt;br&gt;
The feedback loop needs hooks, and each harness has a different hook API.&lt;br&gt;
Now the loop works in four harnesses:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Harness&lt;/th&gt;
&lt;th&gt;How the loop is installed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;project hooks in &lt;code&gt;.claude/settings.local.json&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pi&lt;/td&gt;
&lt;td&gt;a project extension in &lt;code&gt;.pi/extensions/&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;opencode 2&lt;/td&gt;
&lt;td&gt;a project plugin in &lt;code&gt;.opencode/plugins/&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub Copilot CLI&lt;/td&gt;
&lt;td&gt;project hooks in &lt;code&gt;.github/hooks/codemyrules.json&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All four use the same harness-neutral core.&lt;br&gt;
Each harness gets only a small adapter.&lt;/p&gt;

&lt;p&gt;You do not have to select the harness.&lt;br&gt;
The installer looks at the folders in your project and selects the harness.&lt;br&gt;
If it finds more than one harness, it asks you to select one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install -g codemyrules
codemyrules install . --config loop.json           &lt;span class="c"&gt;# dry run: shows the plan and the harness&lt;/span&gt;
codemyrules install . --config loop.json --apply   &lt;span class="c"&gt;# installs it&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: I tested the Copilot CLI adapter with its hook contract, but not yet in a live Copilot CLI session.&lt;br&gt;
If you use Copilot CLI, please tell me if it works for you.&lt;br&gt;
Codex and Cursor do not have the loop yet.&lt;/p&gt;
&lt;h2&gt;
  
  
  More stacks
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;oxlint&lt;/strong&gt;: If your frontend uses oxlint, codemyrules now writes the rules as oxlint JS plugins.
The loop reads the oxlint output and counts &lt;code&gt;oxlint-disable&lt;/code&gt; comments as suppressions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PowerShell&lt;/strong&gt;: codemyrules now writes PSScriptAnalyzer rules.
It uses the built-in rules first.
If no built-in rule fits, it writes a custom rule with Pester tests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Biome is not supported yet.&lt;br&gt;
The installer tells you this.&lt;br&gt;
It does not fail silently.&lt;/p&gt;
&lt;h2&gt;
  
  
  A guard that is harder to trick
&lt;/h2&gt;

&lt;p&gt;An agent that wants to finish a task will sometimes find a shortcut past the linter.&lt;br&gt;
The guard stops these shortcuts and asks you first.&lt;br&gt;
I did a review of the guard and closed these gaps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Shell commands&lt;/strong&gt;: An agent can change a lint config or add an ignore comment with &lt;code&gt;sed&lt;/code&gt; or &lt;code&gt;echo&lt;/code&gt;.
The shell guard compares the files before and after each shell command, and finds these changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commits&lt;/strong&gt;: An agent can commit a change to hide it from the diff.
Now the end-of-turn lint compares against the commit from the start of the turn.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part of a line&lt;/strong&gt;: If an edit changes part of a line, the guard now checks the full line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loops&lt;/strong&gt;: The loop sends the same findings back to the agent only one time, so a turn cannot loop forever.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Errors&lt;/strong&gt;: If a hook cannot run, it stops and tells you how to repair it.
It does not fail open.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Safer updates
&lt;/h2&gt;

&lt;p&gt;The hooks now come from the &lt;code&gt;codemyrules&lt;/code&gt; npm package.&lt;br&gt;
Each project has a pinned copy of the package.&lt;br&gt;
When you run &lt;code&gt;npm update -g codemyrules&lt;/code&gt;, no project changes.&lt;br&gt;
A new version runs in a project only after you install it again in that project.&lt;br&gt;
The dry run shows the version change first.&lt;br&gt;
Thus, a bad release cannot get into your projects automatically.&lt;/p&gt;

&lt;p&gt;Two new commands show and remove the setup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codemyrules status .
codemyrules uninstall . --apply
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;In Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude plugin marketplace add clirimajeti/codemyrules
claude plugin install codemyrules@codemyrules
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For pi, opencode or Copilot CLI, see the &lt;a href="https://github.com/clirimajeti/codemyrules#harness-support" rel="noopener noreferrer"&gt;README&lt;/a&gt;.&lt;br&gt;
Then ask: "Turn our ADRs and AGENTS.md into lint rules."&lt;/p&gt;

&lt;p&gt;The full list of changes is in the &lt;a href="https://github.com/clirimajeti/codemyrules/blob/main/CHANGELOG.md" rel="noopener noreferrer"&gt;CHANGELOG&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is next
&lt;/h2&gt;

&lt;p&gt;I am writing a paper about where the rules for an agent must be: in prose or in lint rules.&lt;br&gt;
I will write a separate post when it is ready.&lt;/p&gt;

&lt;p&gt;Until then, please tell me which harness you want next, and which of your rules a linter cannot check.&lt;br&gt;
Comments and &lt;a href="https://github.com/clirimajeti/codemyrules/issues" rel="noopener noreferrer"&gt;issues&lt;/a&gt; are both welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Your CLAUDE.md Is Full of Lint Rules in Disguise</title>
      <dc:creator>Çlirim Ajeti</dc:creator>
      <pubDate>Thu, 05 Nov 2026 12:40:56 +0000</pubDate>
      <link>https://dev.to/clirimajeti/your-claudemd-is-full-of-lint-rules-in-disguise-6hb</link>
      <guid>https://dev.to/clirimajeti/your-claudemd-is-full-of-lint-rules-in-disguise-6hb</guid>
      <description>&lt;p&gt;Every team using coding agents eventually ends up with a growing &lt;strong&gt;CLAUDE.md&lt;/strong&gt; or &lt;strong&gt;AGENTS.md&lt;/strong&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Inject a &lt;code&gt;Clock&lt;/code&gt;, never call &lt;code&gt;now()&lt;/code&gt; directly."&lt;/em&gt;&lt;br&gt;
&lt;em&gt;"Fetch data through query composables, never call &lt;code&gt;fetch()&lt;/code&gt; in a component."&lt;/em&gt;&lt;br&gt;
&lt;em&gt;"Log messages start lowercase."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And twenty more instructions, each added after an agent got something wrong.&lt;/p&gt;

&lt;p&gt;The file keeps growing, and every line eats into a &lt;strong&gt;limited context window&lt;/strong&gt;. So you split it into folders and linked docs. Now less gets loaded, but a doc the agent never opens is a rule it breaks.&lt;/p&gt;

&lt;p&gt;The agent keeps making the same mistakes.&lt;/p&gt;

&lt;p&gt;There's a better split: &lt;strong&gt;prose for what only prose can say&lt;/strong&gt; (business logic, domain knowledge, the &lt;em&gt;why&lt;/em&gt;), &lt;strong&gt;lint rules for everything a machine can check&lt;/strong&gt;. A lint rule stays silent while the agent gets it right. When it doesn't, the feedback loop points to the exact line within seconds, and the agent fixes it on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  What that looks like
&lt;/h2&gt;

&lt;p&gt;Take the &lt;code&gt;Clock&lt;/code&gt; rule. In CLAUDE.md, it's a sentence the agent may or may not follow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="p"&gt;-&lt;/span&gt; Always inject a &lt;span class="sb"&gt;`Clock`&lt;/span&gt;. Never call &lt;span class="sb"&gt;`LocalDateTime.now()`&lt;/span&gt; or &lt;span class="sb"&gt;`Instant.now()`&lt;/span&gt; directly.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As an ast-grep rule, it's a check that runs on every edit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;inject-clock&lt;/span&gt;
&lt;span class="na"&gt;language&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;kotlin&lt;/span&gt;
&lt;span class="na"&gt;severity&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;error&lt;/span&gt;
&lt;span class="na"&gt;message&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Don't call now() directly. Inject a Clock and use now(clock).&lt;/span&gt;
&lt;span class="na"&gt;rule&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pattern&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;$TYPE.now()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the agent writes &lt;code&gt;Instant.now()&lt;/code&gt;, it gets feedback like this a few seconds later, while it's still working on the file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;error[inject-clock]: Don't call now() directly. Inject a Clock and use now(clock).
  src/main/kotlin/.../InvoiceService.kt:42
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It fixes the code before it ever reaches review. The CLAUDE.md line shrinks to a one-line pointer, or disappears entirely.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I measured
&lt;/h2&gt;

&lt;p&gt;I ran about 500 headless Claude Code sessions on four real projects in Kotlin, Java, Python and TypeScript. Each run compared a rule written as prose with the same rule as a lint rule plus a feedback loop.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prose the agent can miss&lt;/strong&gt; (a linked doc, or one line in long docs) &lt;strong&gt;was broken regularly.&lt;/strong&gt; As a lint rule, it was broken &lt;strong&gt;in none&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The lint rule was 14–22% cheaper&lt;/strong&gt;, because no run needed a review round to fix a break.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Simple, mechanical rules need no prose at all.&lt;/strong&gt; The lint rule alone is enough.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prose in the root CLAUDE.md is followed too&lt;/strong&gt;, but it costs tokens in every session, whether the task needs it or not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Methodology, data and harness to rerun it on your own repo: &lt;strong&gt;&lt;a href="https://github.com/clirimajeti/agent-rules-bench" rel="noopener noreferrer"&gt;agent-rules-bench&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Meet codemyrules
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/clirimajeti/codemyrules" rel="noopener noreferrer"&gt;codemyrules&lt;/a&gt;&lt;/strong&gt; is an agent skill that turns your existing decisions, coding conventions, and agent instructions into executable lint rules.&lt;/p&gt;

&lt;p&gt;It works with the knowledge your team already has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Discovers conventions&lt;/strong&gt; already expressed in your code, decision records (ADRs), and agent docs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lets you choose what to enforce.&lt;/strong&gt; Nothing is built until you pick it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generates lint rules with tests&lt;/strong&gt;, using ESLint for JavaScript, TypeScript, Vue and Svelte, and ast-grep for Java, Kotlin, Python, Go and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cleans up your agent docs&lt;/strong&gt; by offering to delete each instruction a rule now enforces, or shorten it to a one-line pointer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Closes the feedback loop.&lt;/strong&gt; The agent sees a lint violation seconds after writing the code, rather than days later in review.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nothing is changed without your approval. The feedback loop is private by default: it installs into &lt;code&gt;.claude/settings.local.json&lt;/code&gt; and is git-excluded, so no tracked file changes until you decide to share it with your team.&lt;/p&gt;

&lt;p&gt;The goal isn't to replace your CLAUDE.md or AGENTS.md with a giant collection of lint rules. It's to stop using prose for conventions a machine can check, and keep your docs for the context only prose can give.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the rule goes
&lt;/h2&gt;

&lt;p&gt;The skill picks the first option that fits:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;An existing check.&lt;/strong&gt; A rule in a linter you already run (ESLint and its plugins, Ruff, detekt, golangci-lint, Error Prone, analyzers) or an architecture test library you already use (ArchUnit, Konsist, import-linter, Deptrac). You get its exact config, even for rules that exist but are switched off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own rule set.&lt;/strong&gt; If the project already maintains custom rules (a local ESLint plugin, a detekt rule set, Error Prone checks, a flake8 plugin), the new rule goes there, in the same style, with the same tests and registration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A new rule.&lt;/strong&gt; For frontend, a custom ESLint rule with RuleTester tests. For backend, one ast-grep YAML rule and one YAML test, registered in &lt;code&gt;sgconfig.yml&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What it doesn't do
&lt;/h2&gt;

&lt;p&gt;Not every convention is a lint rule. "Keep services small and focused" or "name things after the domain, not the framework" need judgment, and they stay in your docs. codemyrules is for the rules a pattern match can catch.&lt;/p&gt;

&lt;p&gt;It also won't turn your CI red on day one. Rules your existing code already breaks go into a separate suggestions layer, so they guard new code without forcing you to fix legacy code first. And the feedback loop only blocks on lines the agent changed, so it never drags the agent into unrelated cleanup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Harness support
&lt;/h2&gt;

&lt;p&gt;The generated lint rules work with any coding agent or harness (the tool that runs the agent): Claude Code, Codex, Copilot, Cursor and others.&lt;/p&gt;

&lt;p&gt;The feedback loop is built on Claude Code hooks, so for now it's only offered in Claude Code. I'm working on bringing it to Codex, pi, OpenCode, and other coding-agent environments.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;In Claude Code, install the plugin:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude plugin marketplace add clirimajeti/codemyrules
claude plugin &lt;span class="nb"&gt;install &lt;/span&gt;codemyrules@codemyrules
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;codemyrules drives one sub-skill per stack, so add the ones you need: &lt;a href="https://github.com/clirimajeti/eslint-pattern-rules" rel="noopener noreferrer"&gt;eslint-pattern-rules&lt;/a&gt; for frontend and &lt;a href="https://github.com/clirimajeti/backend-pattern-rules" rel="noopener noreferrer"&gt;backend-pattern-rules&lt;/a&gt; for backend. The &lt;a href="https://github.com/clirimajeti/codemyrules#installation" rel="noopener noreferrer"&gt;README&lt;/a&gt; has the commands, plus setup for other agents.&lt;/p&gt;

&lt;p&gt;Then ask your agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Turn our ADRs and AGENTS.md into lint rules.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Feedback welcome
&lt;/h2&gt;

&lt;p&gt;This is the first public release, and I'd love to see what happens when you run it against a real codebase.&lt;/p&gt;

&lt;p&gt;Tell me what it found, what it missed, and how much of your CLAUDE.md turned out to be lint rules in disguise.&lt;/p&gt;

&lt;p&gt;Comments here and &lt;a href="https://github.com/clirimajeti/codemyrules/issues" rel="noopener noreferrer"&gt;issues on GitHub&lt;/a&gt; are both welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agentskills</category>
      <category>opensource</category>
      <category>claude</category>
    </item>
  </channel>
</rss>
