An agentic Machine Learning Engineer that trains state-of-the-art ML models using Claude Code SDK and Google ADK. This is a very simple implemenation demonstraing the power of Claude Scientific Skills for machine learning.
- Python 3.13 or higher
- uv package manager
- Claude Code installed and authenticated (see installation guide)
Install dependencies using uv:
uv syncCreate a .env file in the karpathy directory with your API keys:
OPENROUTER_API_KEY=your_openrouter_api_key_here
AGENT_MODEL=your_model_name_hereThe OPENROUTER_API_KEY is required for the agent to function properly.
This is the same environment variable that will be copied to the sandbox directory so the agents can use any API keys you provide here.
Run the startup script to set up the sandbox and start the ADK web interface:
python start.pyThis automatically:
- Creates a
sandboxdirectory with scientific skills from Claude Scientific Skills - Sets up a Python virtual environment with ML packages (PyTorch, transformers, scikit-learn, etc.)
- Copies your
.envfile to the sandbox - Starts the ADK web interface
- Navigate to http://localhost:8000 in your browser
- Select
karpathyin the top left under 'Select an agent' - All outputs will be in the
sandboxdirectory so continue to monitor that as you converse with the agent
Note: Any files you want the agent to use (datasets, scripts, etc.) should be manually added to the sandbox directory.
Join our K-Dense Slack community to connect with other users, share ideas, and get support:
This repository is designed to work with the Claude Scientific Skills collection of ready-to-use scientific tools and workflows (link). The start.py setup script creates a sandbox that includes scientific skills from this collection so the karpathy agent can leverage specialized ML libraries and scientific workflows. For full details on the skills themselves, see the upstream repository’s README and documentation here.
To set up the sandbox without starting the web interface:
python -m karpathy.utilsNote: Any files you want the agent to use (datasets, scripts, etc.) should be manually added to the sandbox directory.
To run the ADK web interface manually:
adk webThen navigate to http://localhost:8000 in your browser.
If you want substantially more powerful ML capabilities through a multi-agentic system, sign up for www.k-dense.ai. Currently in closed beta, launching publicly in December 2025.
- Modal sandbox integration - Choose any type of compute you want
- K-Dense Web features - We might make some features from K-Dense Web available here based on interest