git init
git add .
git commit -m "Initial commit: Claude Code experimentation workspace"
claude-code-experiments)# Replace YOUR_USERNAME and REPO_NAME with your values
git remote add origin https://github.com/YOUR_USERNAME/REPO_NAME.git
git branch -M main
git push -u origin main
sandbox/ for quick experimentstemplates/ as starting pointsexperiments/ with datesTesting an idea:
# 1. Create a test file in sandbox
cd sandbox
touch test_idea.py
# 2. Ask Claude Code to help implement
# "Help me implement a function to parse JSON data"
# 3. Test it
python test_idea.py
# 4. If successful, move to experiments with date
mv test_idea.py ../experiments/2025-11-17_json_parser.py
Using a template:
# Copy a template to sandbox
cp templates/data_analysis.py sandbox/my_analysis.py
# Ask Claude Code to customize it
# "Modify my_analysis.py to analyze CSV data about sales"
Timer for performance testing:
from utils.timer import timer, Timer
@timer
def my_function():
# Your code here
pass
# Or use context manager
with Timer("My operation"):
# Your code here
pass
Logger for debugging:
from utils.logger import setup_logger
log = setup_logger("my_experiment")
log.info("Starting analysis")
log.debug("Debug details here")
sandbox/test.py to…”sandbox/python your_file.pyexperiments/sandbox/ → Quick tests, temporary work
experiments/ → Documented, working code
templates/ → Reusable starting points
utils/ → Helper functions (rarely modified)
YYYY-MM-DD_description.py
2025-11-17_api_performance_test.py2025-11-17_sorting_algorithm_comparison.pytest_api.pyquick_sort_test.py"Create a script in sandbox/ that tests different sorting algorithms
using the timer utility to compare performance"
"Copy the algorithm_test.py template and modify it to compare
three different approaches to finding prime numbers"
"Help me debug sandbox/my_test.py - it's throwing an IndexError"
"Review experiments/2025-11-17_data_parser.py and suggest improvements
for performance and readability"
"Add docstrings and comments to sandbox/working_code.py, then move it
to experiments/ with today's date"
# After successful experiments
git add experiments/2025-11-17_*.py
git commit -m "Add experiment: [description]"
git push
# Sandbox is git-ignored, so you can clean anytime
rm -rf sandbox/*
# Or keep a backup first
tar -czf sandbox_backup_$(date +%Y%m%d).tar.gz sandbox/
rm -rf sandbox/*
# After adding new utilities or templates
git add utils/ templates/ README.md
git commit -m "Update utilities and documentation"
git push
Update README.md with:
On your GitHub repo page, add topics:
pythonexperimentationclaude-codeprototypingdata-science, algorithms)Point people to specific experiments:
Check out my performance comparison:
github.com/YOUR_USERNAME/REPO_NAME/blob/main/experiments/2025-11-17_string_concat_perf.py
# Review sandbox contents
ls -la sandbox/
# Remove temporary files
rm sandbox/temp_*.py
# Commit any new experiments
git add experiments/
git commit -m "Add week's experiments"
git push
git checkout -b feature/new-experimentREADME.md for structureexperiments/2025-11-17_string_concat_perf.pyReady to start? Try running the example experiment:
python experiments/2025-11-17_string_concat_perf.py