Geo-sleuth Turns Any Coding Agent Into an Open-Source Photo Detective
Geo-sleuth is an open-source agent skill that locates photos to within meters using OpenStreetMap, elevation skylines, satellite tiles and street view, with no landmarks required.
Takeaways
- Geo-sleuth is an open-source agent skill that locates photos with no GPS or landmarks
- Works with Claude Code, Codex, Cursor, Gemini CLI, OpenCode and GitHub Copilot via a standard SKILL.md
- Combines OpenStreetMap geometry, elevation skylines, CLIP satellite tile ranking and DINOv2 street view matching
- Documented cases hit 2 m, 87 m and 3 m from the true camera position in 32 to 72 minutes
- Scripts rank candidates and the model only judges the top few, with every claim tied to a file
- MIT licensed, needs Python 3.10+, uv, curl and Chrome or Playwright Chromium
Geo-sleuth is an open-source skill for Claude Code, Codex, Cursor, Gemini CLI, OpenCode, and GitHub Copilot. Given a photo without GPS metadata, readable signs, license plates, or recognizable landmarks, it estimates the camera’s location and heading, then generates a satellite view and supporting evidence. The repository has attracted more than 3,200 GitHub stars.
The project formulates geolocation as a geometry and data-search problem. Pier spacing can estimate distance, shadows can constrain camera direction, and a ridge line can be compared with terrain models. Scripts search and rank candidate locations using public datasets; the language model reviews a short list and cites artifacts generated during the run.
Scripts do the searching
Geo-sleuth follows the Agent Skills format, with a SKILL.md instruction file and roughly 20 single-purpose Python scripts. Its tools cover six main sources of evidence:
| Signal | Method | Purpose |
|---|---|---|
| Metadata and text | EXIF extraction, OCR through Apple Vision or RapidOCR, and reverse image search through Baidu and Yandex | Find embedded coordinates, camera details, visible words, or matching images |
| Map geometry | OpenStreetMap queries through Overpass | Locate roads, railways, power lines, bridges, and other linear features |
| Terrain | Skyline rendering and ridge matching with AWS Terrain Tiles | Compare visible mountain profiles with elevation data |
| Satellite imagery | CLIP zero-shot scoring | Rank tiles containing features such as running tracks, factories, or silos |
| Street-level imagery | DINOv2 similarity and SIFT feature matching | Rank panoramas by overall appearance and matching local details |
| Light and shadow | Sun-position geometry | Estimate latitude bands, time of day, and camera heading |
The evidence policy requires each conclusion to cite a file produced by a command that ran during the session. Visual impressions can adjust a candidate’s score, while exclusion requires measurable evidence. This structure limits unsupported model reasoning and preserves a trail of ranked candidates, overlays, and calculations.
Three photos, three evidence chains
A viaduct becomes a ruler
A phone photo of a rice paddy, distant viaduct, and mountain began with 27,335 railway bridge segments. Geo-sleuth reduced them to 171 sites, evaluated 14,372 possible camera positions, and selected a point about 2 meters from the recorded location. Catenary masts identified an electrified railway, repeated pier spacing provided a distance estimate, and the mountain ridge matched elevation data.
Camera tilt changes the winner
A sparsely featured skyline exposed a weakness in the original ridge-matching method. The top 25 candidates produced ridge errors between 9.6 and 11.7 pixels, leaving the true site in ninth place. A sideways camera tilt of one degree can shift a ridge by about 10 pixels across the frame, so the fitting process was updated to solve for camera roll alongside the horizon offset.
After that change, the true site’s ridge-alignment error fell from 11.1 to 6.2 pixels; the next candidate scored 9.4. A blind rerun with a fresh agent finished in 32 minutes and selected a point 87 meters from the recorded camera position.
City tree records narrow a block
A photo of a flowering cherry tree on a Vancouver sidewalk relied on the city’s public tree inventory, which includes species, trunk diameter, and address. The search selected flowering cherries with trunks at least 40 centimeters wide, then prioritized blocks containing three or more matching trees. Shadow direction and terrain-derived cross-slope measurements narrowed the result further. A blind run took 53 minutes and finished 3 meters from the camera location.
Install it as an agent skill
The installation command adds Geo-sleuth globally to all six supported coding agents:
npx skills add Oldcircle/geo-sleuth -g -a claude-code -a codex -a cursor \
-a gemini-cli -a opencode -a github-copilot -y
Runtime requirements include Python 3.10 or later, uv, curl, and either Google Chrome or Playwright Chromium for reverse image search. The match and sat_scan tools use CUDA on supported Nvidia hardware, MPS on compatible Apple hardware, and CPU as a fallback. Model weights require an initial download of about 2.4 GB. The code is available under the MIT license.
Benchmarks with narrow boundaries
The published benchmarks measure two ranking tasks:
| Task | Dataset | Result |
|---|---|---|
| Satellite tile ranking | 40 running tracks across a 4-by-8-kilometer area of Shenzhen | 17 targets appeared in the first 20 results, 32 appeared in the first 100, and the median rank was 23 |
| Street-view ranking | Eight cases | The correct panorama ranked within the top six in every case and ranked first in four cases |
The two blind reruns used cases whose earlier solutions had already informed the skill’s methods. Those runs serve as regression checks; performance on previously unseen photos remains unmeasured.
Geometry helps, coverage limits
Geo-sleuth performs best when an image contains measurable structure, such as a clear ridge, repeated piers or pylons, visible shadows, or mapped infrastructure. Its candidate search also depends on the coverage and quality of OpenStreetMap, terrain tiles, civic datasets, satellite imagery, and street-level imagery.
- Images dominated by trees, clouds, or sky may provide too few constraints.
- Sparse or outdated map data can omit the correct candidate.
- Reverse image searches may stop at CAPTCHAs.
- Terrain rendering and large candidate searches make runs slow.
- Documented case runs took between 32 and 72 minutes.
A reusable pattern for research agents
For developers building OSINT, forensic, or research-automation agents, Geo-sleuth demonstrates a bounded division of labor: specialized programs collect evidence and score candidates, while the language model interprets a small ranked set. Requiring generated artifacts for every claim gives reviewers a path from the final answer back to the underlying calculation or image comparison.
Photo geolocation can expose a person’s home, workplace, or movements. The project’s responsible-use guidance limits use to personal photos and images whose subjects have agreed to be located.