Type to search the docs and updates.

Browse documentation

Lint codes

Run agnostic-ai explain LINT011 for one code, or lint to check your specs. An error fails lint; with lint --strict, any warning fails too.

CodeFinding
LINT001Warning. A spec has no body and no description. Hook specs are skipped; see LINT052.
LINT003Error, also from validate. Two specs of one kind share a name. The finding names the file that wins. Hooks that share an event and matcher are fine.
LINT004Warning, also a note: from validate. No enabled target reads the spec, so sync writes it nowhere: none supports its kind, or sync leaves the spec out for each one that does, because of its targets: or because it is a portable on: hook that tool maps to no event. The finding lists the tools that support the kind. Not reported for a spec handed to an enabled external adapter on PATH, which declares no kinds.
LINT005Warning. A hook sets matcher on an event that reads none. Drop it or use a tool-call event such as PreToolUse.
LINT006Error, also from validate. Frontmatter opens with --- and never closes.
LINT007Warning, also printed by sync. A frontmatter key one edit away from one agnostic-ai reads (glob: for globs:), so the setting is lost. Put tool-native keys under x-<target>:. Keys some tools read at the top level (Qoder's glob:, OpenCode's and Kilo's mode:) are flagged only when none of those tools is in targets. Settings and environment specs are not checked.
LINT008Error. A stdio MCP server lacks command:, an http/sse/ws one lacks url:, or type: is not stdio, http, sse, ws, local, streamable-http, or remote. x-<target> cannot set either field.
LINT009Warning. A permission that covers more than it says: allow: Bash(git * main) also matches a force push to main. Write the exact value, or keep * at the end (Bash(go test:*)). A deny rule of that shape blocks nothing in Claude Code, so it is flagged too.
LINT010Error, --scope user only. A rule with scope, path, glob, or target conditions.
LINT011Warning. Startup instructions exceed a word or byte budget. See context budgets.
LINT012Warning. A skill or agent description (or x-<target>.description) is longer than lint.description-chars (default 1024). A skill description past 1024 warns even with a higher budget.
LINT013Error, also from validate. A rule's globs, paths, or x-<target>.globs is neither a string nor a list of strings, or paths and globs name different patterns, or scope is not one folder inside the project.
LINT014Error, --scope user only. A settings effort or permissions.default-mode that a tool's user settings cannot take, such as effort max for Claude or Copilot. sync --scope user drops it with a note.
LINT015Warning. A spec body names another spec by a target-native path such as .claude/skills/style/SKILL.md. The finding gives the .agnostic-ai/ source path.
LINT016Error. A dev-commands entry in an environment spec has no name:, has neither command: nor url:, repeats a name, is not a mapping, sets a key no tool reads, or gives cwd, url, auto-port, port, or env the wrong type. A url: entry with no command: is reported only for a tool that needs a command, such as Codex.
LINT017Warning. A gitignore.commit entry such as cursor:environments names a target missing from targets.
LINT018Warning. A skill's frontmatter sets scope, which does nothing; the folder under skills/ sets the scope.
LINT019Warning. A skill or command uses Claude Code body syntax (!`command`, a ```! block, $ARGUMENTS, $0, $1) outside a ::target fence, so other tools read it as text. See Claude Code body syntax.
LINT020Warning. A rule sits in a folder named for a project directory, such as rules/backend/, but its scope: points elsewhere. scope: wins. Move the file or drop scope.
LINT021Warning. With Codex enabled: a Bash allow or deny rule in portable Settings or outputs.claude.settings.permissions has no Codex prefix with the same decision. See Bash permission translation.
LINT022Warning. A settings protected path covers a file sync writes, such as .claude/**. Protect the spec under .agnostic-ai/ instead. See protected paths.
LINT023Error, and sync fails. A settings protected block has no paths, a decision other than ask or deny, an unknown key, or a path outside the project or with a character class, brace, or negation.
LINT024Warning. A coverage.accept entry matches no coverage note on one of its targets. Remove the entry or that target.
LINT025Warning. A models tier a spec names has no entry and no default for an enabled tool that writes the spec, so that tool uses its default model. Also raised for a tier named like a Claude model, such as opus.
LINT026Warning. A Claude model name reaches a tool that cannot load it, through an agent's model or its tier's default. Write model: {claude: <name>} or add the tool to the tier.
LINT027Error, also from validate, and sync fails. An MCP spec holds a value JSON cannot hold, such as YAML .nan or .inf. The finding names the field, for example x-amp.timeout.
LINT028Warning. An MCP url or args element holds a reference form only one tool reads, such as ${env:NAME}, {env:NAME}, or ${{ secrets.NAME }}; the other tools get it as text. Write ${NAME}, or move the value under x-<target>:.
LINT029Warning. With Kiro and a tool that writes rules into AGENTS.md (such as Codex) enabled, a Kiro agent sets x-kiro.resources without file://AGENTS.md. With Kiro's chat.disableInheritingDefaultResources on, that agent loads no always-on rules. Add file://AGENTS.md to its resources.
LINT030Warning. A Gemini CLI hook command has a bare $GEMINI_PROJECT_DIR, $GEMINI_CWD, $GEMINI_PLANS_DIR, $GEMINI_SESSION_ID, or $CLAUDE_PROJECT_DIR, which Gemini replaces as text before the shell runs. Write "${NAME}".
LINT031Warning. A spec's description starts with TODO, the placeholder agnostic-ai new writes. Tool pickers show it, and it decides when a skill fires.
LINT032Error. A hook's on: or match: holds an unknown value, is mixed with event: or matcher:, names an event an enabled tool reads differently (such as on: stop on Crush), or a tool kind that tool lacks (such as match: read on Codex). Sync leaves the hook out for that tool. See portable events.
LINT033Error. A spec body holds an agent or skill reference to a name that does not exist or does not sync to a tool the spec reaches. The finding lists the known names or the tools.
LINT034Warning, project only. A hook's event: and matcher: have a portable form that gives every enabled tool the same native event and matcher, such as event: PreToolUse with matcher: Bash. The finding names the on: and match: to write; agnostic-ai migrate --only hooks rewrites them.
LINT035Error, and sync stops. An MCP env or headers value is neither a ${NAME} reference nor marked !literal, so it may be a secret sync writes into every tool. The finding names the server, field, and key, never the value. agnostic-ai migrate --only secrets turns a credential into a reference and marks the rest. For a server written into an agent file (agent-only servers), it also fires on a credential in url, args, an x-<target> block, or a reference default. See secrets and plain settings.
LINT036Error, also from validate, and sync stops. An agent's can: or skill's allowed-tools holds an unknown capability, a malformed read(<path>), edit(<path>), shell(<pattern>), or mcp:<server>, or is not a list; for an agent, also can: beside tools: or under x-<target>. A settings permission rule is an unknown capability, has a pattern on one that takes none (such as write(.env)), has an empty pattern, or is not a string (such as an unquoted rule holding : ). See capabilities and permission rules.
LINT037Warning, only with --suggest-capabilities. A tool alias has an exact neutral form.
LINT038Warning. A bare capability under settings permissions.allow or permissions.ask covers a whole tool. The finding names the tools that take it and a scoped alternative. Scoped and deny rules do not warn. See permission rules.
LINT039Warning, project only, with the memory built-in. A shared memory index has more than 100 lines, or the two indexes pass 6,000 bytes. When a target loads memory through the session-start hook, the finding names the first 10 facts that hook never loads; otherwise it names the targets that load the whole indexes every session. Merge or drop facts.
LINT040Error, project only. A memory index line links a fact file that does not exist. Restore the file, or run memory index to drop the line.
LINT041Warning, project only. A memory fact file has no index line, so no tool loads it. memory index adds one.
LINT042Error, project only. A line in a memory index or fact file looks like a credential, such as a prefixed token, a URL password, or a Bearer token. The finding names the line, never the value.
LINT043Warning, project only. A memory store no tool reads any longer holds facts personal memory lacks: Claude Code's own store once sync points Claude at personal memory, or the other personal folder after a memory.personal switch. When both checkouts use checkout mode, lint checks the project's personal memory in the linked worktree and the main checkout for Claude Code fact files. The finding names the folder and the memory import command that copies the facts. Facts are counted by file name, plus one for notes in that store's index; none is printed. Facts you decline with memory import --skip or --skip-rest stop counting.
LINT044Error in project memory, warning in personal memory; not checked by lint --scope user. A memory index or fact line holds a character a reviewer cannot see, such as a zero-width character, a bidirectional control, or a Unicode tag. The finding names the line and code points, never the text. hook memory leaves these characters out. A zero-width joiner or non-joiner between two non-ASCII characters, as in an emoji or a Persian word, is fine.
LINT067Warning, project only, with the memory built-in. The project memory index .agnostic-ai/memory/MEMORY.md is missing while Claude Code, Kiro, Antigravity, OpenCode, or Kilo Code is a target. Their generated files name it by path, so the generated CLAUDE.md, for example, imports nothing. Run memory index to create it, then commit it. Personal memory is not checked.
LINT045Error. session-retention-days must be an integer of 1 or more. Remove the field to leave native retention unchanged.
LINT046Warning. A spec writes one top-level key more than once, in frontmatter or in a YAML spec such as a hook or MCP server. Sync uses the last value; other YAML parsers reject the file. Remove the extra lines.
LINT047Warning. With Claude Code enabled, a skill or command name holds a character Claude Code refuses, so it does not load: a control, zero-width, text-direction, or private-use character, < or >, or a blank other than one plain space between words. The finding names the code points. Rename the folder or file, or edit name:.
LINT048Warning. An agent with a body has no description. Tools read it to decide when to hand the agent a task, and Claude Code skips an agent file without one, so sync writes the name there instead. Add a description: that says when to use the agent.
LINT049Warning. An MCP spec holds what looks like a credential where LINT035 does not look: user info or a token in url, a token in args, an env or headers value in an x-<target> block, or the default of a ${NAME:-default} reference. The finding names the server and field, never the value. Write a ${NAME} reference with no default; !literal plain settings pass. See secrets and plain settings.
LINT050Error, and sync stops before writing any agent. An agent's maxTurns is not a whole number of 1 or more, or its background is not true or false. Values under x-<target> are not checked.
LINT051Warning, also printed by sync. A file under .agnostic-ai/overlays/ is not one sync reads, so its keys reach no tool. A <target>.settings.* file of a tool that merges x-<target> from a settings spec, such as gemini.settings.json, points there. Any other file, such as a misspelled claude.setings.json, gets the list of overlays sync reads; a case-only mismatch is told to rename. Dot files, dot folders, and top-level README files are skipped.
LINT068Warning, also printed by sync. A folder under .agnostic-ai/ holds spec files and has a name one letter away from a spec folder, such as rule/ for rules/, so its specs reach no tool. Rename it, or point sources at it.
LINT069Warning. A description is a list, a map or a number, an agent's model is a list or a number, or an agent's tools or disallowedTools holds an entry that is not a tool name. Sync copies it as written and the tool ignores the field or skips the file. Write it as text.
LINT070Warning, also printed by sync. A hook reaches Cursor with an event: that .cursor/hooks.json does not take, such as PreToolUse, while another target the hook reaches has it. Sync leaves the hook out of that file, or stops with on-unsupported: error. With Claude Code enabled, Cursor runs the Claude Code copy while its third-party hooks setting is on. Write a portable on: event, set x-cursor.event, or add target-exclude: cursor.
LINT052Error, also reported by validate. A hook spec has no command, no other handler such as prompt or url, at the top level or under an x-<target> block, and no native form such as x-kiro.action or x-gemini.hooks, so no tool runs it. A key such as run: or comand: is named as the likely misspelling.
LINT053Error. A tool in targets refuses a spec or setting, and sync stops for every tool. CodeBuddy takes agent names of lowercase letters and hyphens. Zed and OpenCode take skill names of 1 to 64 lowercase letters or digits with single hyphens, and Junie takes agent names that start with a lowercase letter or digit followed by lowercase letters, digits, hyphens, or underscores, including commands and agents written as skills. Grok refuses rules while gitignore.enabled is on and gitignore.commit lacks grok:instructions. Rename the spec, or add grok:instructions to gitignore.commit. Gemini refuses an agent tool restriction when none of its names map. Set x-gemini.tools to the intended native names. Each tool reports its first refusal. Tools outside targets and lint --scope user are not checked.
LINT054Error, and sync stops before changing any tool settings. A settings spec's voice is not a mapping, or voice.enabled is not true or false, voice.mode is not hold or tap, voice.language is not text, or it holds another key. Set other native voice keys under x-<target>. See voice dictation.
LINT055Warning. An empty (null) key in agnostic-ai.local.yaml, such as outputs: with every child commented out, is ignored over a shared group of settings, so the shared value stays. Over a list or single value, null replaces the shared value, and an empty targets: replaces the default targets. Remove the key. Write {} to clear a shared group, except a model tier, where {} fails to load. An empty requires: is not reported, since it turns the version check off.
LINT056Warning. A Markdown file's opening block is not a YAML mapping, so sync keeps it as body text.
LINT057Warning, also printed by sync. A sync.unmanaged entry uses **, which acts like * and stays inside one folder name. **/x matches one folder deep and misses the root and deeper folders, so add one entry per depth. dir/** matches only files directly inside dir/; write dir/ instead.
LINT058Warning. An MCP spec that reaches Codex sets experimental_environment, a key Codex no longer reads. Sync writes local as environment_id = "local" and leaves any other value out, with a note on project sync. Run agnostic-ai migrate --only mcps for local; otherwise set environment_id to a configured executor ID, or remove the key.
LINT059Warning. An MCP spec that reaches Crush, Pi or Junie sets timeout below 1000. The field is milliseconds: Crush and Pi read seconds, so sync writes a limit of one second or less, and Junie accepts 1000 ms or more. Such a value is likely seconds, from an older import or the old Pi page: multiply it by 1000, or set x-crush.timeout or x-pi.timeout in seconds, or x-junie.timeout in milliseconds, for one tool. It also warns, and sync prints a note, when timeout or x-junie.timeout above 3600000 (one hour) reaches Junie, which ignores it and uses 60 seconds. Lower it to 3600000 or less.
LINT060Error, also refused by sync and validate. An MCP spec's roots is not a list, or an item is not a mapping with a text uri, such as - file:///path. Every tool would drop it silently. Write - uri: file:///path, with an optional name.
LINT061Warning. outputs.<target>.rules-mode holds a value that target does not read, so sync ignores it. Claude reads import and Trae reads entry-point; no other target reads the key. Fix the value or remove the key; a later release will refuse it.
LINT062Warning. outputs.<target>.rules-file is set on a target that writes no merged rules file, so sync ignores it and the target writes as if it were unset. See which targets write one. Remove the key.
LINT063Warning. outputs.<target>.rules-file names a file that sync also writes as another enabled target's instructions file. Sync writes that file after the merged one, so the key has no effect. Nothing is lost: the target still reads the file, and the other target's version carries every rule. When rules would be lost, sync stops with AAI-102 instead. Remove the key, or point it at another path.
LINT064Error, also from validate. A project's agnostic-ai.yaml or agnostic-ai.local.yaml sets an approvals key other than mode: ask. A cloned repository, a pull request, or the agent itself can write those files, so approvals that loosen are read only from the home config, and the key is ignored. Move it to $AGNOSTIC_AI_HOME/agnostic-ai.yaml. A project file may keep approvals.mode: ask to turn approvals off for the repository.
LINT065Error. A Copilot environment spec sets an invalid x-copilot.setup-steps value or job option. Use the supported setup options.
LINT066Error. An environment requirement holds a value, repeats a variable name, or uses an invalid name, domain, or field shape. The finding identifies the field or list entry. Enter values in the cloud tool UI.

Context budgets

LINT011 warns when a tool loads more words at session start than lint.instructions-words allows (default 2000), counting the entry-point file as sync writes it (a root AGENTS.md another tool writes counts for Cursor, for Copilot when VS Code reads it, and for Trae only with outputs.trae.rules-mode: entry-point), always-on rule files, skill and agent descriptions, and @-imported rule files. Claude Code leaves out a skill with disable-model-invocation: true until you invoke it, so its description does not count for Claude. explain --context ranks what adds the most. Tools with the same numbers share one line:

LINT011 [warn] AGENTS.md: codex, cursor, windsurf load 2427 words every session: AGENTS.md 2126 (AGNOSTIC_AI.md 136, rules 1940), skill descriptions 195, agent descriptions 106; budget 2000 (lint.instructions-words).

It also warns past a tool's own cap:

ToolCap
CodexStops reading AGENTS.md at 32 KiB (project_doc_max_bytes).
AntigravityTruncates rule files past 24,000 bytes.
Claude CodeWarns at startup when the combined agent descriptions pass 15,000 tokens. LINT011 estimates 4 characters per token and warns past the same figure.
LINT011 for the Codex AGENTS.md chain

Codex also reads each scoped AGENTS.md between the root and its working directory, and stops at the same 32 KiB across the chain. LINT011 sums the chain per scope and warns past lint.codex-chain-bytes (default 32768), naming the scope, the total, and each file with its size. A review spec with target: cursor is left out of Codex's AGENTS.md.