codesense-cli
v0.4.1
Published
AI-powered code documentation and context generation for LLMs
Maintainers
Readme
CodeSense: Faster, more accurate LLMs for your codebase
AI tool that makes LLMS faster, more accurate, and uses 70% less tokens. Auto updates context cross repo with no manual work.
CodeSense scans your repository and generates structured context files that your LLM tools (Claude, Cursor, Copilot) can read. A pre-commit hook keeps everything up to date automatically. Connect to the platform to get cross-repo context and LLM-powered directory summaries.
Languages supported: TypeScript and Python. More languages coming soon.
What it generates
ARCHITECTURE.md— tech stack, entry points, module map, plain-English overview.codesense/context/<dir>.yaml— per-directory exports, dependencies, and summaries.codesense/interfaces.yaml— detected REST endpoints and exported APIsCLAUDE.md/.cursorrules/.github/copilot-instructions.md— tool-specific context injected automatically
Quick Start
npm
npm install -g codesense-cliHomebrew
brew tap codesenseai/codesense
brew install codesenseai/codesense/codesense-cli# In any git repo:
codesense initThat's it. init scans your repo, generates context files, installs a pre-commit hook, and wires up your LLM tools.
Commands
| Command | Description |
| -------------------------- | ---------------------------------------------------------- |
| codesense init | Scan repo, generate context files, install hook |
| codesense update | Re-scan changed files (runs automatically on every commit) |
| codesense status | Check coverage, hook status, and platform connection |
| codesense integrate | Regenerate Claude / Cursor / Copilot config files |
| codesense link <api-key> | Connect to the CodeSense platform |
| codesense pull | Sync cross-repo context from the platform |
| codesense unlink | Remove stored credentials |
Platform (coming soon)
The CodeSense platform is launching soon. It will add:
- Cross-repo context — push interfaces from any repo, pull
external.yamlto see what other repos expose - Pro: LLM-powered summaries — plain-English directory descriptions generated by Claude, cached and delivered on every
codesense update
Once live, linking takes one command:
codesense link cs_live_...License
UNLICENSED © Jashan66
