SCAI
Your AI Coding Agent — in the Terminal

Source Code AI — an agentic, local-first CLI that understands your codebase and lets you interact with it in natural language.

Install from npm

🧠 Agentic REPL

SCAI’s interactive REPL is a persistent, context-aware coding agent. It reasons over indexed files, functions, and modules — not just tokens.

Natural Language Queries

Ask questions like "Which files handle authentication?" or "Where are database queries defined?"

Context Construction

SCAI builds deep context from your repository before answering, enabling accurate, grounded responses.

Architecture Insight

Understand systems, data flow, and responsibilities across large or unfamiliar codebases.

⚙️ Commands, Agents & Execution

The REPL is not just chat — it’s an execution environment that combines AI reasoning with deterministic control.

Slash Commands

Run standard CLI actions inside the REPL (/git commit, /index switch).

Shell Passthrough

Execute shell commands inline using !git status or !ls.

Agent Routing

SCAI dynamically routes tasks based on indexed repositories and active context.

📦 Indexing & Memory

🔧 Git Intelligence

Generate meaningful commit messages from staged changes and repository context — entirely locally, with no token cost.

🔒 Local-first & GDPR-friendly

Powered by local models via Ollama. Your code never leaves your machine.

📚 Documentation & Install

Full documentation, commands, and examples are available on npm:
https://www.npmjs.com/package/scai