Single File Agents — AI skill for Claude Code
What if we could pack single purpose, powerful AI Agents into a single python file.
How to install Single File Agents
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open disler/single-file-agents and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Single File Agents does
What if we could pack single purpose, powerful AI Agents into a single python file?
Alternatives in AI
- Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
- Firecrawl MCP Server — 🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM c 6.1k ★
- AI Research SKILLs — Visual Skills Pack for Obsidian: generate Canvas, Excalidraw, and Mermaid diagrams from text with Claude Code 5.7k ★
README
Single File Agents (SFA)
Premise: #1: What if we could pack single purpose, powerful AI Agents into a single python file?
Premise: #2: What's the best structural pattern for building Agents that can improve in capability as compute and intelligence increases?


What is this?
A collection of powerful single-file agents built on top of [uv](https://github.com/astral/uv) - the modern Python package installer and resolver.
These agents aim to do one thing and one thing only. They demonstrate precise prompt engineering and GenAI patterns for practical tasks many of which I share on the [IndyDevDan YouTube channel](https://www.youtube.com/@indydevdan). Watch us walk through the Single File Agent in [this video](https://youtu.be/YAIJV48QlXc).
You can also check out [this video](https://youtu.be/vq-vTsbSSZ0) where we use [Devin](https://devin.ai/), [Cursor](https://www.cursor.com/), [Aider](https://aider.chat/), and [PAIC-Patterns](https://agenticengineer.com/principled-ai-coding) to build three new agents with powerful spec (plan) prompts.
This repo contains a few agents built across the big 3 GenAI providers (Gemini, OpenAI, Anthropic).
Quick Start
Export your API keys:
export GEMINI_API_KEY='your-api-key-here'
export OPENAI_API_KEY='your-api-key-here'
export ANTHROPIC_API_KEY='your-api-key-here'
export FIRECRAWL_API_KEY='your-api-key-here' # Get your API key from https://www.firecrawl.dev/
JQ Agent:
uv run sfa_jq_gemini_v1.py --exe "Filter scores above 80 from data/analytics.json and save to high_scores.json"
DuckDB Agent (OpenAI):
# Tip tier
uv run sfa_duckdb_openai_v2.py -d ./data/analytics.db -p "Show me all users with score above 80"
DuckDB Agent (Anthropic):
# Tip tier
uv run sfa_duckdb_anthropic_v2.py -d ./data/analytics.db -p "Show me al
Related Skills
Claude 3 7 Sonnet Starter Pack
Look, Anthropic's Claude-3.7-Sonnet is a powerful, hybrid CRASHOUT LLM. Let's understand this monumental relea
New Tool
Scaffold a single-purpose interactive PolicyEngine tool (calculator or widget) — Next.js 14 + Tailwind 4 + ui-
LLM Dark Patterns
Umbrella for the LLM Dark Patterns Hooks suite — single-purpose Claude Code Stop hooks that suppress sycophanc
AI Vampire Guard
Monitor your Claude Code burn rate. Prevent AI-amplified burnout. Single-file Python script with SVG gauge, tr
Cc Token Status
new macOS menu bar dashboard for Claude Code. Shows plan usage limits, costs, tokens, trends, model breakdown,
Brain CLI
Persistent memory for AI agents and personal knowledge management. Single-file Python CLI: hybrid semantic + k
Related Agents
Evidence Validator
Single-purpose verification agent — given a finding (a claim + file:line reference), reads the actual source a
Module Analyzer
Deep analysis agent for a single codebase module. Receives full source and a targeted question. Returns struct
Registry Search
Single-purpose, read-only dedup helper for reducer subagents. Given a discriminating query text + a sharded re