Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

agentmd-lint

Latest version: v0.1.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: ppanql
0 Stars
0 Forks
2 Versions
JavaScript Repo language

Scan summary

agentmd-lint was last scanned on 28 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 28 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 28 Nov 2026 No rules fired
0.0.0-stage 28 Nov 2026 Not shown

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

agentmd-lint

Zero-dependency CLI linter and sync tool for AI coding agent instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules, .cursor/rules/*, and .github/copilot-instructions.md).

Keep your repository's agent instructions accurate, safe, lean, and aligned across tools—without stale file paths, leaked API keys, or bloated context windows.

Why?

Teams using multiple AI coding tools (Codex, Claude Code, Gemini CLI, Cursor, GitHub Copilot) often run into:

  • Broken paths inside AGENTS.md after refactors or file renames
  • Accidentally pasted secrets (API keys or tokens) in instruction files
  • Oversized instruction files that burn context tokens on every session
  • Out-of-sync copies across AGENTS.md, CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md

agentmd-lint catches these issues locally and in CI with zero runtime dependencies.

Quick Start

Download the source from GitHub Releases, extract it, and run the CLI with Node.js 18.18 or later. The project has no dependencies to install.

node bin/agentmd-lint.js check /path/to/your/repository

After the npm release, run directly with npx.

npx agentmd-lint

Or install globally:

npm install -g agentmd-lint

Commands

check (default)

Validate instruction files for broken relative paths, leaked secrets, empty files, oversized token budgets, sync drift, and Cursor rule frontmatter.

agentmd-lint check
agentmd-lint check --strict --max-tokens 3000
agentmd-lint check --recursive --json
sync

Use AGENTS.md as your single source of truth and sync it to sibling tool files:

# Preview changes without writing
agentmd-lint sync --dry-run

# Sync to default targets (CLAUDE.md, GEMINI.md, .github/copilot-instructions.md)
agentmd-lint sync

# Sync to specific targets
agentmd-lint sync --targets claude,gemini,copilot,cursor

If a target resolves to the source file, sync exits before writing any targets. Use --dry-run to review intended updates.

init

Generate a starter AGENTS.md tailored to your repository's detected scripts and directory layout:

agentmd-lint init

Configuration (.agentmdlintrc.json)

Add an optional .agentmdlintrc.json in your repository root:

{
  "maxTokens": 3500,
  "recursive": false,
  "ignorePaths": ["docs/generated/", "src/virtual.ts"],
  "ignoreRules": [],
  "syncSource": "AGENTS.md",
  "syncTargets": ["claude", "gemini", "copilot"]
}

syncSource and syncTargets also control the sync-drift check. Set syncTargets to [] to disable drift checking for all targets.

You can also suppress a single line inline inside Markdown:

Planned module: `src/future-module.ts` <!-- agentmd-lint-ignore -->

Built-in Rules

Rule Severity What it checks
broken-path error Relative Markdown links or inline code paths that do not exist on disk
cursor-frontmatter error / warning Malformed frontmatter or missing descriptions in .cursor/rules/*.mdc
possible-secret error Common API keys/tokens accidentally pasted into instruction files
empty-file error Instruction file with no content
large-context warning Estimated token count exceeds maxTokens (default 4000)
sync-drift warning / info Sibling tool files out of sync with AGENTS.md

Path checks accept relative paths with forward slashes or Windows backslashes. For Markdown links, the check uses the file or directory portion and skips query strings, fragments, and external or absolute destinations. Write link destinations containing spaces as <docs/a guide.md> or use percent encoding.

Cursor frontmatter uses --- delimiters at the top of the file. This basic check supports a flat mapping with plain or quoted scalar values, block text, and simple lists. Quote values with a colon followed by a space, and quote glob patterns that begin with *. A missing or blank description is a warning, including for rule types where Cursor makes it optional. Use --strict to fail on warnings or add cursor-frontmatter to ignoreRules to disable the check.

---
description: "Frontend: component and test conventions"
globs: src/**/*.tsx, tests/**/*.test.tsx
alwaysApply: false
---

Use the shared component library for new UI.

GitHub Actions CI Example

name: Lint Agent Instructions
on: [push, pull_request]

jobs:
  agentmd-lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npx agentmd-lint check --strict

Exit Codes

  • 0: All checks passed (or only warnings/info when --strict is not set).
  • 1: One or more errors found, warnings with --strict, invalid CLI arguments, or an invalid repository directory passed to check.

Contributing

See CONTRIBUTING.md. Run the test suite before submitting changes:

npm test
npm run lint:self

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm agentmd-lint

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229