Back to projects
Development

Spyglass

CLI tool published on npm that indexes any codebase locally using vector embeddings. Walks project files, chunks at function boundaries, embeds via Ollama (local) or OpenAI (cloud), and stores vectors in SQLite. Answers include exact source file and line number citations.

Node.jsTypeScriptRAGSQLiteOpenAIOllamaCLI
Spyglass preview

Key Features

  • Indexes codebases at function boundaries for precise answers
  • Supports both local (Ollama) and cloud (OpenAI) embeddings
  • Answers include source file and line number citations
  • Published as @mazion/spyglass on npm
  • Built with Node.js + Commander for a polished CLI experience