NodeForge AI is a production-ready Python CLI tool designed to scaffold, generate, and manage Node.js backend code using local LLMs (Ollama), RAG (ChromaDB), and tool execution.
The goal is to provide a highly modular, scalable, maintainable, and developer-friendly architecture that orchestrates multiple agents (planner, coder, debugger, etc.).
- CLI (
cli/): Built with Typer for an elegant, easy-to-use terminal interface. - Core (
core/): Contains theOrchestratorwhich manages the multi-agent task lifecycle. - Agents (
agents/): Individual agents (Planner, Coder, Reviewer) logic. - LLM (
llm/): Client connections to the local LLM via Ollama. - RAG (
rag/&vector_db/): Vector abstraction base and ChromaDB implementation for localized code indexing. - Tools (
tools/): Tools for file manipulation, terminal execution, and search.
- Python 3.9+
- Ollama running locally
Windows:
python -m venv .venv
.venv\Scripts\activateMac/Linux:
python -m venv .venv
source .venv/bin/activateInstall the required packages:
pip install -r requirements.txtCopy the example logic configuration:
cp .env.example .envAdjust the .env file as needed to point to your local LLM model path.
Generate a new feature (e.g., authentication routes):
node-agent generate authDebug and fix issues in the current scope:
node-agent fixAnalyze the codebase for improvements:
node-agent analyzeIndex the project files into the ChromaDB vector database:
node-agent index