AdaL rereads AGENTS.md on every turn
AdaL reads the AGENTS.md at your workspace root on every turn, so Ultracite’s rules stay in front of it for the whole session. Ultracite doesn’t configure AdaL’s hooks, so the agent runs ultracite fix through its bash tool when the rules tell it to.
AdaL by SylphAIChecked against AdaL 1.9.0
# 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
Default system promptAdaL’s general-purpose instructions, unless--prompt-filereplaces them. - 2
AGENTS.mdUltraciteAt the workspace root, read every turn and injected as project instructions. - 3
UserPromptSubmit hookA hook in~/.adal/settings.jsonwhose output is prepended to each prompt you send.
How AdaL reads the rules
AdaL has one project instructions file: AGENTS.md at the workspace root, injected every turn as project context. A custom prompt file changes AdaL’s role, not the project rules.
- Every turn
- AdaL reads
AGENTS.mdon each turn, not once per session. - /init
/initanalyzes the codebase and creates anAGENTS.md. If you run it after Ultracite, check its rules are still there;npx ultracite initadds them back.- Prompt files
--prompt-filereplaces the default role prompt for a run.AGENTS.mdstill loads as project context.
Rules every turn, commands through bash
AdaL runs ultracite fix because AGENTS.md tells it to. Its hooks live only in ~/.adal/settings.json: a PostToolUse hook can add context to a tool result through stdout on exit 0, while exit 2 blocks only PreToolUse and UserPromptSubmit. Ultracite doesn’t configure them.
- **Format code**: `npx ultracite fix`
- **Check for issues**: `npx ultracite check`
- **Diagnose setup**: `npx ultracite doctor`- 01AdaL changes a file with
create_file,replace_by_string,rewrite_fileordelete_lines. - 02Following
AGENTS.md, it runsnpx ultracite fixwithbash. - 03Your permission mode decides whether it asks first;
--yoloruns everything. - 04It reads the output and fixes what’s left before it answers.
Worth knowing about AdaL
Lint runners can skip the prompt
In
defaultmode, AdaL runs reads, searches, read-only shell commands and project test, build and lint runners without asking, and asks before file edits and other shell commands.acceptEditsalso lets edits through, and “allow always” covers one command prefix for the rest of the session.Unfinished replies get a nudge
AdaL uses Jev to notice when a model stops before the task is finished, and nudges the agent to keep going instead of handing back a half-done turn.
Worktrees live inside your project
AdaL’s worktree tool puts parallel work in
.agents/worktrees/<name>/on its own branch, inside your project. Add.agents/worktrees/to.gitignore, as AdaL’s docs advise, so those copies don’t show up as untracked files.The Ultracite skill
AdaL loads skills from
~/.adal/skills/, the project’s.adal/skills/and installed plugins, not from.agents/skills/. When you choose AdaL,initinstalls the Ultracite skill into.adal/skills/as well.
AdaL questions, answered
- Does AdaL read AGENTS.md?
- Yes. Put it at the workspace root: AdaL reads it every turn and injects it as project instructions, in interactive sessions and headless
adal -qruns alike. - Does AdaL support hooks?
- Yes, in
~/.adal/settings.jsononly; project and plugin hooks aren’t available yet. They use Claude Code’s event names, and aPostToolUsehook adds context to the tool result through stdout on exit 0. Ultracite doesn’t configure them. - Does --prompt-file drop the rules in AGENTS.md?
- No. A prompt file replaces AdaL’s default role prompt, but
AGENTS.mdstill loads as project context alongside it. - Can AdaL run Ultracite in CI?
- Use headless mode:
adal -q "…"runs a prompt without the interactive UI, and--yololets every tool call run without asking. AdaL followsAGENTS.mdthere as it does interactively.
Keep going
- AgentDroidFactory’s coding agent CLI, run interactively or headless in CI.
- AgentQwen CodeThe Qwen team’s open-source terminal coding agent, with editor and desktop front ends.
- AgentKimi Code CLIMoonshot AI’s terminal agent that edits code and runs shell commands.
- 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.