Skip to content

overlane rules check

Report drift between the rules source and each agent's file; exits 6 on drift, for CI

Updated View as MarkdownOpen in ChatGPTOpen in Claude

Compares .overlane/rules.md with AGENTS.md, CLAUDE.md, the Cursor rule, GEMINI.md and the Gemini settings, and changes nothing. A target is in sync, missing, unmanaged (no managed region yet), stale (the source changed), edited (a hand edit inside the region, with the first differing line) or damaged. Exit 0 when everything is in sync or the project has no rules source; exit 6 on any drift. Run it in CI and see it in overlane doctor.

Usage

overlane rules check

Examples

overlane rules check
overlane rules check --json

Behavior

  • Effect: read (changes nothing).
  • Needs credentials: no. Uses the network: no.
  • Supports --dry-run: no. Accepts --force: no.
  • Machine-readable description: overlane schema rules check.

Result

With --json (the default when stdout is not a terminal) the command prints this JSON Schema’s shape on stdout.

{
  "type": "object",
  "properties": {
    "configured": {
      "type": "boolean"
    },
    "revision": {
      "type": [
        "string",
        "null"
      ]
    },
    "sourceProblem": {
      "type": [
        "string",
        "null"
      ]
    },
    "drifted": {
      "type": "boolean"
    },
    "targets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "agents-md",
              "claude-md",
              "cursor",
              "gemini-md",
              "gemini-settings"
            ]
          },
          "path": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "in_sync",
              "missing",
              "unmanaged",
              "stale",
              "edited",
              "damaged"
            ]
          },
          "detail": {
            "type": "string"
          },
          "syncable": {
            "type": "boolean"
          },
          "firstDifference": {
            "type": "object",
            "properties": {
              "line": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "found": {
                "type": "string"
              },
              "expected": {
                "type": "string"
              }
            },
            "required": [
              "line",
              "found",
              "expected"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "path",
          "state",
          "detail",
          "syncable"
        ],
        "additionalProperties": false
      }
    },
    "nextCommand": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "configured",
    "revision",
    "sourceProblem",
    "drifted",
    "targets",
    "nextCommand"
  ],
  "additionalProperties": false
}

See exit codes for the status the process returns.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close

Overlane Agent

Ask about the docs. Answers are quoted from the pages, with links. This panel cannot change anything.

    Questions are answered in your browser from the docs index. Nothing you type here is stored or sent anywhere.