Back to all rules / Hidden content and security

unlinted-steering-target

A steering file or import loads a file AsItIs could not lint.

error by default Hidden content and security Config or baseline only

Source: Claude Code docs: How Claude remembers your project (code.claude.com), read 14 October 2026.

On GitHub: the rule doc and the tests.

Jump to another rule89

Severity: error for a symlinked steering file; a warning for an @import of a text file that is not markdown.

What it catches#

A steering file or import loads a file AsItIs could not lint.

A steering file AsItIs could not lint although the agent tools load it: a CLAUDE.md or AGENTS.md (any steering file name) that is a symlink to a file that isn't markdown or that lives outside the project folder, and an @import of a text file that isn't markdown, such as @notes.txt.

Why it matters#

A CLAUDE.md that is a symlink to a non-markdown file or to a file outside the project, or an @import of a .txt file, still loads into the agent's context. AsItIs does not read those files, so hidden text in them would pass a CI gate unseen.

Bad example#

$ ls -l
CLAUDE.md -> notes.txt

Claude Code follows the link and loads notes.txt as the project instructions. AsItIs reads only markdown, so before this rule it skipped the file with a notice and the CI gate passed, whatever notes.txt hid.

# CLAUDE.md

See @notes.txt

Claude Code loads notes.txt with the instructions; AsItIs doesn't open it.

Good example#

$ ls -l
CLAUDE.md -> AGENTS.md

A link to a markdown file inside the project is linted like any other file.

How to fix#

Replace the link with the file itself, or point it at a markdown file inside the project. For an import of a text file, rename the file to .md so it gets linted, or review it by hand. The symlink case is an error by default so the default --fail-on error stops it in CI; the import case is a warning, because @package.json and similar imports are common and rarely hide anything.

Suppress or configure#

unlinted-steering-target is a security rule, so it cannot be suppressed with a comment in the file: a suppression comment is itself a hidden comment, and an attacker who can add a payload can add one next to it. A comment that tries gets a suppression-not-allowed warning.

Turn it off, or change its severity, in .asitisrc.json, which shows up in review:

{ "rules": { "unlinted-steering-target": "off" } }

Or accept the findings you have today in a baseline, so only new ones fail the build:

asitis lint --format json --write-baseline > .asitis-baseline.json
asitis lint --baseline .asitis-baseline.json

Source#

Claude Code docs: How Claude remembers your project, read on 14 October 2026.

See what an agent changed in your CLAUDE.md. Keep or revert each change.

The linter is free and needs no signup. I'm also building a desktop editor for the markdown your agents write and read. It shows what an agent changed since you last looked, lets you keep or revert each change, and never touches a line you didn't edit. No release date yet. One email to confirm, one when the paid beta opens, one when 1.0 ships. $29 once for a founding licence, with 24 months of updates.

Or add the linter to CI, no email needed.

Your address is stored with Cloudflare, which hosts this site. No IP address is kept. See the privacy policy.

Run the rule

Back to all rules

This page is generated from the plugin's rule registry. Edit it on GitHub. False positive? Open an issue with the line it fired on.