a small hackable library that makes it easier to do interpretability work with agents
Seer is a library for interpretability researchers who want to do research on or with agents. It makes use cases like creating environments for agents, equipping an agent with your technique and building on papers easier-and fixes some of the annoying things you get from just using Claude Code out of the box.
The core mechanism: you specify an environment (github repos, files, dependencies), Seer launches it as a sandbox on Modal (GPU or CPU), and an agent operates within it via an IPython kernel. This setup means you can see what the agent is doing as it runs, it can iteratively fix bugs and adjust its work, and you can spin up many sandboxes in parallel.
Seer is designed to be extensible - you can build on top of it to support complex techniques that you might want the agent to use, eg. giving an agent SAE tools to diff two Gemini checkpoints or building a Petri-style auditing agent with whitebox tools.
Receiving a code might take some time. In the meantime you can signup to Modal now and use the default $30 in free credits to start playing around with Seer.
- Exploratory investigations: You have a hypothesis about a model's behavior but want to try many variations quickly without manually rerunning notebooks
- Case study: Hidden Preference - investigate the model (from Cywinski et al. link) where a model has been finetuned to have a secret preference to think the user it's talking to is a female
- Give agents access to your techniques: Expose methods from your paper to the agent and measure how well they use them across runs
- Case study: Checkpoint Diffing - agent uses data-centric SAE techniques from [Jiang et al.](https://www.lesswrong.com/posts/a4EDinzAYtRwpNmx9 towards-data-centric-interpretability-with-sparse) to diff Gemini 2.0 and Gemini 2.5 checkpoints
- Build on existing papers: Clone a paper's repo into the environment and the agent can work with it directly - run on new models, modify techniques, or use their tools in a larger investigation
- Case study: Introspection — replicate the Anthropic introspection experiment on gemma3 27b (checkout this repo for more experiments)
- Building better agents: Test different scaffolding, prompts, or tool access patterns
- Case study: Give an auditing agent whitebox tools — build a minimal & modifiable Petri-style agent with whitebox tools (steering, activation extraction) for finding weird model behaviors
They're complementary - Seer uses Claude Code (or other agents) to operate inside sandboxes it creates.
Seer handles:
- Reproducibility: Complex environments, tools, and prompts defined as code
- Remote GPUs without setup: Sandboxes on Modal with models, repos, files pre-loaded
- Flexible tool injection: Expose techniques as tool calls or as libraries in the execution environment
- Run many experiments in parallel: Since its on a remote sandbox you can launch as many experiments in parallel as you want and benchmark different approaches across runs.
Modal has kindly offered to sponsor up to $250 in GPU credits for you to get started! Fill in this form to be able to recieve a code
See here to run an experiment locally without Modal
We use modal as the gpu infrastructure provider To be able to use Seer sign up for an account on modal and configure a local token (https://modal.com/)
Here the goal is to run an investigation on a custom model using predefined techniques as functions
0. Get a modal account
By default new accounts come with $30 USD in credits
# Clone and setup
git clone https://github.com/ajobi-uhc/seer
cd seer
uv sync# Authenticate with Modal
uv run modal token newCreate a .env file in the project root:
# Required for agent harness
ANTHROPIC_API_KEY=sk-ant-...
# Optional - only needed if using HuggingFace gated models
HF_TOKEN=hf_...4. Run the hidden preference investigation
cd experiments/hidden-preference-investigation
uv run python main.py- View the modal app that gets created https://modal.com/apps
- View the output directory where you ran the command and open the notebook to track progress
What happens:
- Modal provisions GPU (~30 sec) - go to your modal dashboard to see the provisioned gpu
- Downloads models to Modal volume (cached for future runs)
- Starts sandbox with specified session type (can be local or notebook)
- Agent runs on your local computer and calls mcp tool calls to edit the notebook
- Notebook results are continually saved to
./outputs/
Monitor in Modal:
- Dashboard: https://modal.com/dashboard
- See running sandbox under "Apps"
- View logs, GPU usage, costs
- Sandbox auto-terminates when script finishes
Costs:
- A100: ~$1-2/hour on Modal
- Models download once to Modal volumes (cached)
- Typical experiments: 10-60 minutes
Refer to docs to learn how to use the library to define your own experiments.
View some example results notebooks in example_runs
This project builds on excellent work from:
