marvin
CLAUDE.md6.2k starsChanged 15 months agoApache-2.0View on GitHub
Marvin is a lightweight AI engineering toolkit for building natural language interfaces that are reliable, scalable, and easy to trust.
We split this CLAUDE.md into the rules it gives an agent
12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 6
use the repros folder to reproduce the results (e.g.
- Distinctive: line 11
Aggressively minimal and elegant: Keep implementations simple and focused
- Distinctive: line 12
Functional first: Prefer functional approaches, use classes where justified
- Very specific: line 14
Private internals: Keep implementation details "private" (e.g.
- Very specific: line 29
Use X | Y instead of Union[X, Y]
- Very specific: line 30
Use builtins like list, dict instead of typing.List, typing.Dict
- Very specific: line 34
Use uv for dependency management and script execution
- Very specific: line 36
Run scripts: uv run some/script.py or uv run --with pandas script.py
- Very specific: line 40
Use rg for searching, not grep
- Very specific: line 41
Use ls and tree for navigation
- Distinctive: line 42
Check git context with using the GitHub MCP server
- Distinctive: line 48
Don't obsess over upstream linter errors, use as clues when relevant
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Marvin - AI Engineering Toolkit
Marvin is a lightweight AI engineering toolkit for building natural language interfaces that are reliable, scalable, and easy to trust.
Reproductions
- use the repros folder to reproduce the results (e.g.
uv run repros/1234.py) - this folder is not checked into git
Architecture & Design Philosophy
- Aggressively minimal and elegant: Keep implementations simple and focused
- Functional first: Prefer functional approaches, use classes where justified
- Type-safe: Full type annotations, modern Python syntax (3.10+)
- Private internals: Keep implementation details "private" (e.g.
def _impl)
Key Components
- Engine: Core AI interaction layer
- Tasks: Structured AI task definitions and execution
- Tools: Extensible function calling capabilities
- Agents: AI agents with tool access and memory
- Memory: Persistent conversation and context storage
- Handlers: Event processing and routing
- CLI: Command-line interface for common operations
Development Guidelines
Type Hints
- Use
X | Yinstead ofUnion[X, Y] - Use builtins like
list,dictinstead oftyping.List,typing.Dict - Use
T | Noneinstead ofOptional
Dependencies & Running
- Use
uvfor dependency management and script execution - Install deps:
uv syncoruv sync --extra foo - Run scripts:
uv run some/script.pyoruv run --with pandas script.py - Testing:
uv run pytestoruv run pytest -n3for parallel
Finding Things
- Use
rgfor searching, not grep - Use
lsandtreefor navigation - Check git context with using the GitHub MCP server
- Think like a hacker with good intentions - search in site-packages when needed
Linter Philosophy
- Empirically understand by running code
- Linter tells basic truths but may be orthogonal to goals
- Don't obsess over upstream linter errors, use as clues when relevant
Trending
Less talk lately.about the whole repository
Who's talking about PrefectHQ/marvin
- A Hacker News story“Show HN: Marvin – build AI functions that use an LLM as a runtime”Hacker News · Mar 30, 2023 · 127 points
- @zzstoatzz.io“you may be interested in github.com/PrefectHQ/ma...! x.com/karpathy/sta...”Bluesky · Mar 12, 2025 · 3 likes
- @tom-doerr.bsky.social“https://github.com/PrefectHQ/marvin”Bluesky · Sep 4, 2025 · 1 likes
- @austegard.com“Have you seen Marvin and ControlFlow from prefect.io? github.com/PrefectHQ/ma...”Bluesky · Feb 7, 2025 · 1 likes
- vitalops/openvibe“Make this compatible with Marvin / Langchain”GitHub · Apr 26, 2023 · 1 reactions
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub, Bluesky and Hacker News (16 times).
On GitHub · 12
- Apr 26, 2023Make this compatible with Marvin / Langchain — vitalops/openvibe1 reaction · 1 comment
- Oct 19, 2026[bot] Instrument marvin (59,567 weekly downloads) — braintrustdata/braintrust-sdk-python0 reactions · 1 comment
- Aug 6, 2026research(runtime): evaluate PrefectHQ/marvin against fak — anthony-chaudhary/fak0 reactions
- Jul 9, 2026feat(content): add Marvin — JSONbored/awesome-claude0 reactions · 1 comment
- Jun 3, 2026[Add] Marvin (PrefectHQ/marvin) — PyTorchKR/landscape0 reactions
7 more on GitHub
- Apr 27, 2026Add Marvin, Atomic Agents, and PocketFlow to catalog — nimit2801/Agentic-AI-For-Good0 reactions · 2 comments
- Mar 20, 2026bug: Modify contact extractor example for a2a-sdk refactor — rossoctl/examples0 reactions
- Aug 11, 2025fix: update dependencies to fix marvin issue — rustic-ai/rustic-ai0 reactions
- Jun 8, 2025`add_metadata` fails when called from a `@task` — PrefectHQ/prefect0 reactions · 1 comment
- Jan 31, 2025[wip] omit `parallel_tool_calls` for `o3-mini` — pydantic/pydantic-ai0 reactions
- Jul 13, 2023Marvin on npm? — chiel/marvin.js0 reactions
- May 8, 2023Implement a runtime version for `auto-implement` — minskylab/auto-rust0 reactions
On Bluesky · 3
- Mar 12, 2025you may be interested in github.com/PrefectHQ/ma...! x.com/karpathy/sta... — @zzstoatzz.io3 likes and reposts · 1 reply
- Sep 4, 2025https://github.com/PrefectHQ/marvin — @tom-doerr.bsky.social1 likes and repost
- Feb 7, 2025Have you seen Marvin and ControlFlow from prefect.io? github.com/PrefectHQ/ma... — @austegard.com1 likes and repost · 1 reply
On Hacker News · 1
- Mar 30, 2023Show HN: Marvin – build AI functions that use an LLM as a runtime127 points · 44 comments
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

