Kagi
Apr 2024 – PresentAI Engineer
- Prototyped the agentic, tool-calling loop that replaced Kagi Assistant's fixed multi-model pipeline; the prototype became the architecture behind the whole product
- Major contributor to a ground-up rewrite of the Assistant's agent stack onto Pydantic AI, replacing its custom in-house framework
- Created and maintain Kagi's official open-source MCP server (500+ GitHub stars), letting AI agents like Claude use Kagi Search; also published Kagi's Python API SDK to PyPI
- Designed and built Librarian, a retrieval sub-agent that reads whole documents and web pages and returns excerpts, full content or a direct answer as each query needs; it powered all document and web retrieval and still runs in about 1 in 5 Assistant turns
- Built and maintained the extraction pipelines Librarian reads from, covering web pages, documents, YouTube transcripts and Reddit threads; 19M+ extractions to date at a ~95% success rate, with provider fallbacks for reliability
- Maintained integrations for ~50 models across 17 providers, introduced prompt caching, and improved reliability and cost with failover and usage tracking
- Led development of a context management panel that lets users inspect and control what the Assistant is working with
- Built evaluation and benchmarking tooling to measure answer quality and guide model and prompt decisions