MCPcopy Index your code
hub / github.com/KrystianJonca/lnai

github.com/KrystianJonca/lnai @v0.6.92

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6.92 ↗ · + Follow
199 symbols 609 edges 90 files 12 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LNAI Logo

npm version npm downloads build status license GitHub stars

LNAI

Stop maintaining separate config files for every AI coding tool. Define once in .ai/, sync everywhere.

LNAI Demo

Why LNAI?

  • One source of truth — Write your project rules, MCP servers, and permissions once
  • Works with your tools — Syncs to native formats each tool actually reads
  • Stay in sync — Update .ai/ and run lnai sync to propagate changes instantly
  • Automatic cleanup — Orphaned files are removed when configs change

Supported Tools

Tool Config Generated
Claude Code .claude/
Codex .codex/
Cursor .cursor/
Gemini CLI .gemini/
GitHub Copilot .github/copilot-instructions.md
OpenCode .opencode/
Windsurf .windsurf/

Quick Start

npm install -g lnai

lnai init      # Create .ai/ configuration
lnai validate  # Check for errors
lnai sync      # Export to native tool configs

Documentation

Full guides and configuration reference at lnai.sh

License

MIT


If you find LNAI helpful, please star us on GitHub!

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 126
Interface 34
Method 21
Class 18

Languages

TypeScript100%

Modules by API surface

packages/core/src/errors.ts21 symbols
packages/core/src/types/index.ts13 symbols
packages/core/src/writer/index.ts9 symbols
packages/core/src/plugins/codex/index.ts9 symbols
packages/core/src/plugins/registry.test.ts8 symbols
packages/core/src/validator/index.ts7 symbols
packages/core/src/utils/overrides.ts7 symbols
packages/core/src/plugins/registry.ts7 symbols
packages/core/src/__tests__/utils.ts7 symbols
packages/core/src/parser/index.ts6 symbols
packages/core/src/plugins/types.ts5 symbols
packages/core/src/plugins/cursor/transforms.ts5 symbols

For agents

$ claude mcp add lnai \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page