Personal Codex is a local-first coding assistant with a ChatGPT-style interface.
- Backend: FastAPI, SQLite, SQLAlchemy 2, Alembic, Ollama local HTTP client
- Frontend: Angular 18+ standalone app scaffold
- Streaming chat and conversation persistence implemented
- Workspace registration and secure root path canonicalization
- Repository browsing with file listing and content preview
- Read-only local workspace search with ripgrep integration
- Git status and diff support for registered repositories
- Native Ollama tool loop with compatibility handling for Qwen 2.5 Coder tool JSON
- Automatic, grounded whole-project analysis across backend, frontend, and VS Code extension manifests and entry points
- Read-only workspace tools run automatically; file writes and terminal commands remain approval-gated in VS Code
- Copilot-style Ask/Agent modes, live tool activity, conversation history, and actionable change proposals
-
Create and activate a Python environment:
python -m venv .venv .\.venv\Scripts\Activate.ps1 -
Install backend dependencies:
python -m pip install -r requirements.txt
-
Install frontend dependencies:
cd frontend npm install
-
Run the backend:
uvicorn main:app --reload -
Run the frontend:
cd frontend npm start
- Ollama must be running locally and accessible at
http://127.0.0.1:11434. - The default model is
qwen2.5-coder:7b. - API Base URL:
http://127.0.0.1:8000/api.