# Claude Code ray-traces the spinning black hole at the center of our galaxy in raw WebGL2 and checks its shadow against the textbook answer

> Gabriele Bolognese gave Claude Code (Opus 5.5 at xhigh effort) a physics brief: a spinning Kerr black hole with the mass and distance of Sagittarius A*, every pixel an exact light path traced backward from the camera on the GPU, a thin accretion disk with a flaring hot spot and a virtual Event Horizon Telescope watching through the night. With no libraries (raw WebGL2, canvas 2D and 7 Web Workers) it worked alone for 179 minutes over 262 turns, wrote 4,316 lines and cost $113.94 at API prices. The rendered shadow came out at 51.167 microarcseconds, 0.000196% off Bardeen's analytic curve. The hard part was 32-bit floats: rays bounced off nothing until it re-projected the radial velocity, and it cut the planned 40,960 rays per frame to about 8,192 to fit his laptop's integrated GPU.

- Agent(s): [Claude Code](https://agent-uses.com/agents/claude-code/)
- Category: [Research & Learning](https://agent-uses.com/categories/research-and-learning/)
- Tag: Niche (individuals, hobbies, small operators or odd experiments)
- Original source: [Gabriele Bolognese (@bologabriele) on X](https://x.com/bologabriele/status/2124080596049613283)
- Original author: [Gabriele Bolognese (@bologabriele)](https://x.com/bologabriele)
- Source type: [Posts on X](https://agent-uses.com/sources/#x)
- Added: 2026-11-24
- Last updated: 2026-11-24
- Web page: https://agent-uses.com/use-cases/claude-code-ray-traces-the-spinning-black-hole-at-the-center-of-our-galaxy-in-raw-webgl2-and-checks-its-shadow-against-the-textbook-answer/

## Cite this use case

AI Agent Use Cases. (2026). Claude Code ray-traces the spinning black hole at the center of our galaxy in raw WebGL2 and checks its shadow against the textbook answer. Retrieved from https://agent-uses.com/use-cases/claude-code-ray-traces-the-spinning-black-hole-at-the-center-of-our-galaxy-in-raw-webgl2-and-checks-its-shadow-against-the-textbook-answer/ (original source: https://x.com/bologabriele/status/2124080596049613283)

## Related use cases

- [Amateur hunts exoplanets in NASA TESS data](https://agent-uses.com/use-cases/amateur-hunts-exoplanets-in-nasa-tess-data.md) (Claude Code, OpenAI Codex)
- [A skill that turns Claude Code or Codex into a careful genealogist for former Soviet archives](https://agent-uses.com/use-cases/a-skill-that-turns-claude-code-or-codex-into-a-careful-genealogist-for-former-soviet-archives.md) (Claude Code, OpenAI Codex)
- [A 3D open-pit mine blast built with Claude Code to train crews before they stand on a real bench](https://agent-uses.com/use-cases/a-3d-open-pit-mine-blast-built-with-claude-code-to-train-crews-before-they-stand-on-a-real-bench.md) (Claude Code)
- [An engineer uses Claude Code to write Christian arguments from Scripture as Lean 4 proofs that a machine checks premise by premise](https://agent-uses.com/use-cases/an-engineer-uses-claude-code-to-write-christian-arguments-from-scripture-as-lean-4-proofs-that-a-machine-checks-premise-by-premise.md) (Claude Code)
- [A Codex agent writes a daily Torah study brief, source sheet and lesson plan and publishes it](https://agent-uses.com/use-cases/a-codex-agent-writes-a-daily-torah-study-brief-source-sheet-and-lesson-plan-and-publishes.md) (OpenAI Codex)
- [Explain Snell's law to kids with an archerfish game](https://agent-uses.com/use-cases/explain-snell-s-law-to-kids-with-an-archerfish-game.md) (Grok Bot)

---
From AI Agent Use Cases (https://agent-uses.com/), a directory of real AI agent use cases, each linked to its public source. Index for LLMs: https://agent-uses.com/llms.txt
