Lucider

•

Generates compact, drift-aware AI context from JavaScript and TypeScript codebases using comment directives, providing focused query packs for large language models.

Lucider optimizes the context provided to AI coding assistants by transforming JavaScript and TypeScript code into a concise, queryable code graph. Developers use specific comment directives (`ai-context`, `ai-body`, `ai-ignore`, `ai-deps`) to curate and define the relevant parts of their codebase. This allows AI models like Claude or Codex to receive highly focused 'query packs' instead of entire code dumps, significantly reducing token consumption and improving the relevance and quality of AI-assisted coding tasks. It supports both a command-line interface and an MCP server, enabling seamless integration into various development workflows and agent systems.

Key Features

010 GitHub stars
02Generates compact query packs for AI assistants, optimizing token usage by providing relevant code slices instead of full codebase dumps.
03Supports hybrid summaries, combining AST-derived information with authored `ai-context` directives for precise context definition.
04Includes drift-awareness through comment fingerprinting, marking context as 'stale' if code moves without corresponding comment updates.
05Ensures deterministic output, producing byte-identical JSON artifacts for identical inputs.
06Utilizes pluggable Tree-sitter parsers, with built-in support for JavaScript, TypeScript, and TSX files.

Use Cases

01Providing optimized and focused code context to large language model (LLM) coding assistants like Claude or Codex.
02Reducing token consumption and improving response quality for AI-driven code analysis, generation, and explanation tasks.
03Integrating code context validation into CI/CD pipelines to ensure AI directives remain current and free of staleness or malformed syntax.