Agent skill for Claude · v2.0.1 · MIT

Where was this indoor photo taken?

One photo in. Venue, address and coordinates out, with a confidence the evidence actually supports and a tidy case folder that shows every step.

claude.ai · Claude Desktop · Claude Code Python 3.9+, Pillow Never identifies people
Synthetic demo photo: a hotel desk with a tent card, a Wi-Fi card with a QR code and a British double socket on the wall.
London, United KingdomMEDIUM · city level · ±25 km
The demo photo is synthetic and the venue fictional. The boxes and the answer are real tool output.
13core methods, each logged
8evidence statuses, each capped in code
250countries & territories, offline
126offline tests passing
What you get

An answer you can check, and the folder that proves it

The chat answer names the place, the level it reached and why. The case folder keeps the ledger, the cited evidence and nothing else.

Answer for the demo photochat
📍 London, United Kingdom
51.507200, -0.127600 (WGS84) ± 25000 m · level: city · confidence: MEDIUM
Why
“Reception +44 20 7946 0321” read on the tent card: libphonenumber places +44 20 in London (computed). A BS 1363 Type G socket (observed) and “£14.50 per person incl. VAT” (read) agree on the UK.
Alternatives
Guernsey, Jersey, Isle of Man, Gibraltar, the Falklands and St Helena share the socket and the £. The +44 20 number separates them (2.7 % share each).
Not verified
The venue is fictional, so no site candidate exists and the site level stays open (with a real venue, an unverified hotel would appear here as the best lead, never as the answer). There is no EXIF time, so no sun or time-zone check.
larkspur-room-geolocation/browse ↗
answer, best lead, confidence by level, evidence, candidates, timeline, methods
the same as machine-readable JSON
every clue, link, attempt and timestamp
input/photo + metadata
evidence/6 cited files
grid view, scan, annotated scan, text crops, socket crop, tent-card crop
Tiles, caches and downloads live in .work/. finalize deletes them, plus any evidence nothing cites.
Demo walkthrough

One photo, six steps, every one on the record

Real output from scripts/igl.py, excerpted, with the case path shortened. The complete case folder is published next to this page.

The demo photo is a synthetic illustration. The Larkspur does not exist, +44 20 7946 0xxx is Ofcom's range reserved for drama, and .example is a reserved domain. So the online routes (reverse image, social, listings, maps) were skipped on purpose and logged as not_applicable.

Intake: copy, read, grid

The photo is copied byte for byte into a new case folder, which never overwrites an older one. Every metadata channel is read, and a labelled grid makes any region citable as C3:E5.

Here the file has no EXIF, and its C2PA content credentials say an AI assistant provided it. The report later states that the sun and time-zone checks were impossible, rather than skipping them silently.

intake
$ igl.py init larkspur-room.jpg
CASE   …/larkspur-room-geolocation
IMAGE  input/larkspur-room.jpg  1600x1000 JPEG
VIEW   evidence/E01_overview-grid.jpg  (grid 8 cols A.. x 5 rows 1..)

METADATA
  - no EXIF - stripped (messaging/social upload, screenshot,
    export) or synthetic; absence proves nothing
  - C2PA content credentials present (issued by Anthropic; …)
  - JPEG quality ~90
  - 1600x1000 without EXIF fits social-media recompression
    sizes (weak)
The demo photo with a labelled grid of columns A to H and rows 1 to 5.
E01: the grid view written by init.
How it works

From photo to verified place, recorded as it happens

SKILL.md gives the agent the workflow, the six ways indoor photos get located wrongly, and the evidence rules. A single CLI does the measurable parts and keeps the ledger; the agent's own web search, fetch and browser tools do the rest.

  1. Intake

    Byte-exact copy, every metadata channel, labelled grid view, and a check of which services the CLI can reach.

    init
  2. Hypotheses

    Two to four ranked hypotheses written before any tool output, then confirmed, refined or overturned.

    note --kind hypothesis
  3. Read the whole photo

    Precision-filtered OCR, QR and barcodes, then every tile by eye: identity carriers, fixed standards, local references.

    scancrop
  4. Search by the photo

    Reverse image search on the frame, crops and a mirror. Every hit is compared with the photo: copy, same scene, partial or unconfirmed.

    revsearchshare
  5. Names and region

    Names, phones and codes searched exactly; plugs, currency, script and other standards intersected over 250 countries.

    lookupcountries
  6. Search by pictures

    Image searches for the kind of venue in the area, and for every venue enumerated there. Results come back sorted by likeness to the photo.

    refsgeo poisocial
  7. Verify

    Falsification test first; the candidate's own photos next to yours; three named fixed features; the closest rival through the same comparison.

    refs --forcompare
  8. Consistency

    Time zone, sun, weather, season and standards against the candidate. Argue for the runner-up, re-run the deciding step differently.

    geo timezonesun
  9. Decide & finish

    Answer at the finest verified level, the best lead and its pin apart, confidence capped by rules, audit, tidy finalize.

    answer --leadcheckfinalize
Evidence you can audit

Confidence is computed, not claimed

How a clue was obtained caps how much it can count. Agreement only counts across independent sources. The tier comes out of the ledger.

How much one clue can move the board

Maximum likelihood ratio per status, enforced by link.

Show as table
HIGH

A decisive clue, two independent lineages, a share of at least 0.80 and no open contradiction on the chain. A venue needs a reference match whose rival went through the same comparison, or decisive clues from two lineages.

MEDIUM

A decisive clue with a share of at least 0.50. Above venue level, two independent lineages also suffice. Resemblance and captions never make a venue MEDIUM.

LOW

Anything weaker: a lead to follow, not a finding.

Lineage, not count

Five décor clues are one source. Following an engine's guess into a database is circular.

Omission ≠ exclusion

Every level keeps an open block for what is not on the board, and a city is never more certain than its country.

Exclusion needs proof

Only read, computed or matched evidence with a file can rule a candidate out.

Verified answer, separate lead

A LOW site under a verified city is reported as the best lead, never as the answer.

Exhaust, never loop

13 core methods must each end as results, no_results or not_applicable. A blocked service is not an absence.

Identify, or merely fit

A name read in the photo identifies one place and is weighed against all alternatives together. A socket type fits fifty countries and competes with each.

A match names its features

Three specific fixed features and the comparison file, or it is not a match. A copy of the photo is provenance, never a confirmation.

The rival decides

If the rival's photos match as well, the features are a shared design. The match then belongs to the area, and the venues stay leads.

Where it looks

Every channel a photo can leak

Fixed fittings outrank movable décor, and text outranks taste. Each channel has a written playbook in references/.

Metadata

EXIF, GPS, XMP and IPTC, the embedded thumbnail, UTC offset to time zones, AI markers and C2PA credentials.

Text

Multi-pass OCR with script probes, filtered so that texture is not reported as text, and a prompt to re-read in the local language.

Codes

QR and barcodes: EMV merchant name and city, Swiss QR-bill, SEPA, UPI, Wi-Fi, vCard, GS1.

Phones & money

Phone numbers to city level, currencies including former ones, number formats, tax words.

Fixed standards

Sockets, switches, plumbing, heating, windows, safety signs, lift certificates, floor numbering.

Products & payments

Retail chains, payment schemes, regulatory marks, ISP routers, keyboard layouts.

Style & customs

Décor, patterns, religious and seasonal items. Always weighted as weak evidence.

Personal items

Uniforms, tickets, receipts and badges, read for what they say about the place, never about the person.

Window & light

Floor estimate, sun azimuth and elevation, bearings to landmarks, qibla, historical weather.

Image search

Reverse search on Yandex, TinEye and Baidu, Google Lens and Bing by URL in a browser, and picture search by text for every venue of a kind in an area. Each picture is compared with the photo and sorted by likeness.

Social media

Bluesky, Flickr, Openverse, Mastodon and Lemmy through open APIs, plus ready-made searches for 18 platforms. Places only.

Maps & open data

OSM co-location queries, Wikidata SPARQL, Commons, and listing platforms in about 50 countries.

Built to be trusted

Careful with people, strict with itself

Privacy by design

  • No face recognition and no identification of individuals. Social media is searched for places, never for people.
  • Private homes: the skill asks once what the result is for. Without a legitimate purpose it stops at city or neighbourhood level.
  • Secrets redacted: Wi-Fi passwords, IBANs and contact-card names, when decoded and when an engine or a page echoes them back. The demo's QR shows P:<redacted>.
  • Disclosed uploads: the report lists which engines received the photo and every temporary copy (metadata stripped, deleted after hours). Picture search sends only text, and the similarity model runs locally. No logins on anyone's behalf, no CAPTCHA solving.

Verified, not assumed

  • 126 offline tests cover ledger rules, caps, coherent shares, answer gating, image matching and ranking, parsers, redaction and geometry.
  • Sun position within 0.05° of NREL's SPA at 8 locations worldwide. Bearings within 0.13° of WGS84 geodesics.
  • Every command and option in the docs and on this page is checked against the CLI by the test suite, this page against the demo case and the rules in the code, and the zip against the skill folder. The offline tables are rebuilt from Unicode CLDR and Wikipedia by one script.
Install

Two minutes to your first case

Python 3.9+ and Pillow, plus tzdata on Windows. Everything else (tesseract, OpenCV, Playwright, onnxruntime, phonenumbers) is optional and only switches on its method.

  1. Download indoor-geolocator.zip from the latest release.
  2. Turn on code execution: Settings → Capabilities.
  3. Open Customize → Skills, click +, then Create skill → Upload a skill, and choose the zip.
  4. Attach an indoor photo and ask “where was this taken?”, or attach it with no text at all.
The zip holds the indoor-geolocator/ folder at its top level, as the upload requires.
Or let your agent do it. In Claude Code, or any agent that can run shell commands, say: “Install the indoor-geolocator skill from https://github.com/Ezharjan/indoor-geolocator”. The steps it needs are in the README and in llms.txt.