GitHubGet started
← All use cases

A data detective

Analyses the ICIJ Offshore Leaks database with SQL and Python it writes itself.

Python with uvPython · Node.js · Rust

It writes its own queries

The leaks are loaded into DuckDB, and the agent queries them with the skill's oldb.py or Python of its own.

the skill, oldb.py
  • → oldb.py search 'mossack fonseca' --kind intermediary
  • → oldb.py node 11011863
  • → oldb.py sql "SELECT jurisdiction_description, count(*) …"

Ask a question of your own

Answers come back as reports, tables and charts. Being in the data is not evidence of wrongdoing, as ICIJ says.

ailoy-examples/offshore_leaks/python
  • $ uv run main.py "Which South Korean officers appear in more than one leak?"

In a microVM of its own

The database stays read-only. Only ./artifacts is written.

the agent's microVM
  • python:3.12-slim-trixiewith DuckDB, pandas, matplotlib
  • 2 vCPUs · 2 GiBno GPU
  • /contextoffshore_leaks.duckdb, read-only
  • /artifactsreports, tables, charts

Run it

git clone https://github.com/brekkylab/ailoy
git clone https://github.com/brekkylab/ailoy-examples
cd ailoy-examples/offshore_leaks/python
uv run main.py
needs Python with uv · and a logged-in Claude Code, Codex or Gemini CLI, or an API key

Run your first agent
in its own microVM

Install the package, name a model and run it