Jinn — Autonomous Local AI Agent
Winner of the Google Gemma Track at Hacktoberfest Hack Day 2026. Jinn is a privacy-first, 100% local AI desktop agent and CLI that transforms voice and text commands into multi-step OS actions, workspace audits, and UI automations on macOS with zero cloud data egress.
Features
- Won 1st Place in the Hacktoberfest 2026 Gemma Track by building an offline desktop agent running Google Gemma 4 (e4b/e2b) locally via Ollama.
- Engineered 59 native tools across macOS Accessibility trees, Apple Vision OCR, Chrome form automation, and local file systems summoned via an Option + Space voxel lamp HUD.
- Implemented a 4-layer safety guardrail system featuring risk-based approvals, app/shell blocklists, and one-command transactional rollback (undo) for file and system mutations.
- Built hybrid local memory combining BM25 keyword search and semantic rank fusion alongside a zero-dependency Python CLI for AST code auditing and task planning.
Tech stack
- Python
- Swift
- Gemma 4
- Ollama
- macOS Accessibility
- Vision OCR
- BM25
- GitHub Actions
What I learned
- Small local models (2B–4B) need plain-text tool-call rescue and loop detection to act reliably as agents
- OS-level AI automation requires strict permission gates and atomic undo ledgers to prevent destructive mistakes
- Hybrid BM25 and semantic rank fusion outperforms raw context stuffing under tight local token budgets
- Decoupling headless agent engines from native GUI layers is essential for automated CI/CD verification