enquire-mcp API reference - v3.9.0-rc.4
    Preparing search index...

    Function lintWiki

    • Karpathy-style LLM-Wiki lint — single-call audit of orphans, broken links, stubs, stale notes, and concept candidates.

      Implements the "lint" workflow from Karpathy's LLM-Wiki gist (which named ingest/query/lint as the three primitives). Returns five finding buckets, each capped to max_per_bucket for bounded responses. Findings are shaped so the agent can act on them via existing tools (validateNoteProposalcreateNote / appendToNote / renameNote).

      Concept candidates use a capitalised-phrase heuristic: 1-3 CapitalCase tokens that appear in ≥ concept_min_mentions notes but don't have a page of their own. Stop-words ("The", "This", etc.) at phrase start are dropped.

      Parameters

      Returns Promise<LintWikiResult>

      A LintWikiResult with summary counts + per-bucket findings.

      If folder resolves outside the vault.

      const lint = await lintWiki(vault, {
      folder: "Wiki",
      stub_word_threshold: 50,
      stale_days: 180
      });
      console.log(`Orphans: ${lint.summary.orphans}, Stubs: ${lint.summary.stubs}`);
      for (const f of lint.findings.broken_links) console.log(f.message);