{"repo":"SwiftedMind/monocle","free":true,"listed":false,"github":"https://github.com/SwiftedMind/monocle","clone":"git clone https://github.com/SwiftedMind/monocle.git","description":"Swift symbol lookup CLI powered by SourceKit-LSP, tuned for coding agents","language":"Swift","stars":50,"topics":["claude-code","cli","codex","gemini-cli","swift"],"license":"MIT","category":"cli-tools","readme_excerpt":"monocle A read-only CLI for Swift symbol lookup via SourceKit-LSP, designed specifically for coding agents. Point it at a file, line, and column, and monocle resolves the symbol and returns its definition location, signature, and documentation—perfect for agents that need to understand unfamiliar APIs, including types from external Swift packages, without opening Xcode. Table of Contents - Why monocle - Installation - Requirements - Quick start - Agent snippet for AGENTS.md - What agents get - Commands - Daemon mode - Output details - Troubleshooting - 🙏 Acknowledgments Why monocle - Built for agents: Stable, pretty-printed JSON output ( --json ) mirrors the internal SymbolInfo model, making it easy for tools and agents to parse. - Everything in one call: monocle inspect returns both definition and docs together—ideal for grabbing signatures and docstrings from third-party packages or unfamiliar frameworks. - Fast lookups across dependencies: Resolve symbols from your dependencies (SwiftPM or Xcode) without firing up an IDE. Great when agents need the actual implementation file and docstring. - Keep it warm: Optional monocle serve keeps SourceKit-LSP running to eliminate cold starts during repeated agent calls. - Workspace aware: Automatically finds your Package.swift , .xcodeproj , or .xcworkspace when you don't specify --workspace (or --project ). - Works everywhere: Supports both Swift packages and Xcode projects/workspaces. Installation Homebrew (recommended) From source","default_branch":null,"files":null,"tree":[],"storefront":"/r/SwiftedMind","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SwiftedMind/monocle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}