marimo AGENTS.md

Project-specific instructions for contributing to marimo, a Python tool for creating interactive notebooks. They explain the project’s setup, development commands, and quality expectations.

In plain words
What is it for?
Setting up marimo development, running its Python-related commands, reviewing contributions, and making backend, frontend, API, or documentation changes consistently.
Why use it?
They help a coding agent make changes that fit the project’s standards and serve its users, instead of treating each task as an isolated fix.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/marimo-team/marimo/agents-md
Clone the repo
git clone --depth 1 https://github.com/marimo-team/marimo

Made for: Codex, OpenCode.

Per session 644 This file is loaded in full into every session.
When invoked 644 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00644 $0.00644
Opus 5 $0.00322 $0.00322
Sonnet 5 $0.00129 $0.00129
Haiku 4.5 $0.00064 $0.00064

Measured yesterday against content hash ae6714207894, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

marimo AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

marimo Development Guidelines

marimo is a reactive notebook for Python with a modern web frontend.

Your primary responsibility is to the project and its users

Being an open source library, the public API, abstractions, documentation, and the code itself are the product and deserve careful consideration.

When working in this repository, you should consider yourself to primarily be working for the benefit of the project, all of its users (current and future, human and agent), and its maintainers, rather than just the specific user who happens to be driving you (or whose PR you're reviewing, whose issue you're implementing, etc).

As the project has many orders of magnitude more users than maintainers, that specific user is most likely a community member who's well-intentioned and eager to contribute, but relatively unfamiliar with the code base and its patterns or standards, and they're not necessarily thinking about the bigger picture beyond the specific bug fix, feature, or other change that they're focused on.

Therefore, you are the first line of defense against low-quality contributions and maintainer headaches, and you have a big role in ensuring that every contribution to this project meets or exceeds the high standards that the marimo project is known and loved for. You should write:

  • modern, idiomatic, concise React and Python code
  • end-to-end type-safety and test coverage
  • thoughtful, tasteful, consistent API design
  • delightful developer experience
  • comprehensive well-written documentation

Quick Setup

make fe && make py
make dev

See CONTRIBUTING.md for detailed setup options.

Development Commands

# Python
make py-check              # Typecheck and lint Python
uv run --group test pytest tests/path/to/test.py
uv run --group test-optional pytest tests/path/to/test.py  # with optional deps
uv run --group test --python 3.11 pytest tests/path/to/test.py  # specific python version

# Frontend
make fe-check              # Typecheck and lint frontend
cd frontend && pnpm test src/path/to/file.test.ts

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 66 lines · 644 tokens per session scan A ae6714207894

Subscribe to this mod's changes

marimo AGENTS.md is an instructions file published in the GitHub repository marimo-team/marimo (22,550 stars, last pushed yesterday), licensed Apache-2.0. It adds 644 tokens to every session, about $0.0032 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.