Source Code AI — an agentic, local-first CLI that understands your codebase and lets you interact with it in natural language.
Install from npmSCAI’s interactive REPL is a persistent, context-aware coding agent. It reasons over indexed files, functions, and modules — not just tokens.
Ask questions like "Which files handle authentication?" or "Where are database queries defined?"
SCAI builds deep context from your repository before answering, enabling accurate, grounded responses.
Understand systems, data flow, and responsibilities across large or unfamiliar codebases.
The REPL is not just chat — it’s an execution environment that combines AI reasoning with deterministic control.
Run standard CLI actions inside the REPL
(/git commit, /index switch).
Execute shell commands inline using
!git status or !ls.
SCAI dynamically routes tasks based on indexed repositories and active context.
Generate meaningful commit messages from staged changes and repository context — entirely locally, with no token cost.
Powered by local models via Ollama. Your code never leaves your machine.
Full documentation, commands, and examples are available on npm:
https://www.npmjs.com/package/scai