Qoder reads AGENTS.md alongside .qoder/rules
Qoder IDE and Qoder CLI both read Ultracite’s rules from AGENTS.md, alongside any rules in .qoder/rules/; in the IDE, those rules win when the two conflict. Ultracite doesn’t set up a hook for Qoder, so it runs ultracite fix and ultracite check when the rules tell it to.
Qoder by AlibabaChecked against Qoder CLI 1.1.68
# Ultracite Code Standards
This project uses **Ultracite**, a zero-config preset that enforces strict code quality standards through automated formatting and linting.
## Quick Reference
- **Format code**: `npx ultracite fix`
- **Check for issues**: `npx ultracite check`
- **Diagnose setup**: `npx ultracite doctor`
Oxlint + Oxfmt (the underlying engine) provides robust linting and formatting. Most issues are automatically fixable.
…- 1
~/.qoder/Qoder CLI’s user level: your ownAGENTS.mdandrules/for every project. - 2
AGENTS.mdUltraciteThe project’s file, whichinitwrites. Qoder CLI searches up from the working directory to the folder that holds.git. - 3
AGENTS.local.mdMachine-only additions next toAGENTS.md, not meant to be committed. - 4
.qoder/rules/Project rules. Always-on ones load withAGENTS.md, file-scoped ones when Qoder reads a matching file. In Qoder IDE they win overAGENTS.mdon conflicts. - 5
SubdirectoriesA nestedAGENTS.mdor.qoder/rules/loads in Qoder CLI once it reads a file below it.
How Qoder reads the rules
Qoder CLI rebuilds its context each session from AGENTS.md files and .qoder/rules/, searching up from the working directory to the folder that holds .git. Qoder IDE picks up the project’s AGENTS.md with no setup.
- Check it
/memoryin Qoder CLI lists every memory file it loaded, including ones it picked up on demand.- Trust
- In an untrusted directory, Qoder CLI loads no project settings, hooks, MCP servers or
AGENTS.md. - File names
context.fileNamesets another file name or a list of them (the default isAGENTS.md), andagentsMdExcludesexcludes files.- Imports
@pathinAGENTS.mdimports another file, relative to thatAGENTS.md. Paths outside the project need approval.- IDE limit
- Qoder IDE caps all active rule files at 100,000 characters in total and truncates the rest.
- Live edits
- Qoder CLI watches loaded rule files and picks up edits on the next turn, with no restart.
Qoder runs the fix the rules ask for
Ultracite doesn’t configure a hook for Qoder, so after an edit Qoder runs ultracite fix when AGENTS.md tells it to. Qoder CLI and Qoder IDE do share hooks in .qoder/settings.json, and the docs show an auto-lint PostToolUse hook on Write|Edit; a PostToolUse hook can’t block, but it can pass the model additionalContext. A permission rule lets Qoder CLI run ultracite without asking.
{
"permissions": {
"allow": ["Bash(npx ultracite:*)"]
}
}- 01Qoder edits a file with its
WriteorEdittool. - 02Following
AGENTS.md, it runsnpx ultracite fix, asking first unless a permission rule allows it. - 03It reads the output and fixes what autofix left.
Worth knowing about Qoder
A hook can wake the model later
A Qoder CLI hook with
asyncRewake: trueruns in the background. If it exits with code 2, Qoder turns its output into a system reminder and wakes the model; the docs suggest it for long-running checks.Headless, with set permissions
qoder -pruns one prompt without the TUI. Pair it with--permission-mode accept_editsor--allowed-tools 'Bash(npx ultracite:*)'to decide what it may run in CI.Rules that load per file
A rule in
.qoder/rules/withtrigger: globorpathsloads only when Qoder CLI reads a matching file, and amodel_decisionrule adds just its description until the model asks for the body.The Ultracite skill
Qoder loads skills from
.qoder/skills/and~/.qoder/skills/, not from.agents/skills/. When you choose Qoder,initinstalls the Ultracite skill into.qoder/skills/as well.
Qoder questions, answered
- Does Qoder read AGENTS.md?
- Yes. Qoder IDE uses a project
AGENTS.mdwith no setup, and in Qoder CLI it’s the default context file, read from~/.qoder/, the project and its parent folders up to the git root. - What wins when AGENTS.md and .qoder/rules disagree?
- In Qoder IDE, the rules. Keep Ultracite’s rules in
AGENTS.mdand avoid rules in.qoder/rules/that contradict them. - How do I check Qoder CLI loaded the rules?
- Run
/memory. It lists the user, project and local memory files Qoder CLI loaded. IfAGENTS.mdis missing, make sure the directory is trusted and thatagentsMdExcludesdoesn’t exclude it. - Does Qoder support hooks?
- Yes. Qoder CLI, Qoder IDE and the JetBrains plugin read hooks from
~/.qoder/settings.json,.qoder/settings.jsonand.qoder/settings.local.json; the IDE and plugin run 12 of the CLI’s events and need a restart after you edit them. Ultracite doesn’t configure Qoder hooks. - How do I let Qoder CLI run ultracite without asking?
- Add
Bash(npx ultracite:*)topermissions.allowin.qoder/settings.json, or run/allow Bash(npx ultracite:*)in a session, which saves the rule to.qoder/settings.local.json.
Keep going
- AgentQwen CodeThe Qwen team’s open-source terminal coding agent, with editor and desktop front ends.
- AgentKiro CLIAWS’s terminal coding agent, formerly Amazon Q Developer CLI, with custom agents, steering and hooks.
- AgentAugment CodeCoding agent for VS Code and JetBrains, plus the Auggie CLI, built on a codebase context engine.
- DocsAgent rulesWhat
initwrites for every agent, and how to keep it current.
Ship less slop
One command sets up your linter, formatter, editor and agents. Works with Oxlint, Biome and ESLint.