superset: Instructions file for Codex

AGENTS.md

superset AGENTS.md is an instructions file for Codex, OpenCode from apache/superset. It costs 3,824 tokens per session, scanned A, original, Apache-2.0.

A set of development instructions for Apache Superset, a web application for exploring and visualizing data. It covers checks before pushing code and conventions for its Python backend and React/TypeScript frontend.

In plain words
What is it for?
Use it when changing Superset code, especially when staging files, running pre-commit, handling automatic fixes, or checking Python and frontend quality issues.
Why use it?
It helps contributors run the same formatting, linting, type, and pre-commit checks expected by the project while avoiding deprecated patterns.

Instructions file for CodexOpenCode ✓ vendor

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Gemini CLI.

This is apache/superset's own configuration. It tells Codex and OpenCode how to work on superset itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything superset configures →

About the project

Apache Superset is a web application for exploring data, querying databases, and creating charts and dashboards. Analysts, business users, administrators, and developers use it for business intelligence and data visualization. The catalogue add-ons support workflows for operating, extending, or working with Superset.

apache/superset · 75,425 stars · on GitHub · superset.apache.org

Reuse

Borrowing it

Nothing to install: this file belongs to apache/superset. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/apache/superset/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/apache/superset

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for superset AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/apache/superset/agents-md/github.svg)](https://agentmods.dev/instructions/apache/superset/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/apache/superset/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/superset/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for superset AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/apache/superset/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/superset/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,824 This file is loaded in full into every session.
When invoked 3,824 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03824 $0.03824
Opus 5.5 $0.01530 $0.01530
Sonnet 5.5 $0.00765 $0.00765
Haiku 4.5 $0.00382 $0.00382

Measured 14d ago against content hash b050831b28f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

superset AGENTS.md scanned grade A with 1 finding 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 14d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -f http://localhost:8088/health || echo "❌ Setup required - see https://superset.apache.org/docs/contributing/development#working-with-llms"
AGENTS.md · 317 lines

How it starts

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

LLM Context Guide for Apache Superset

Apache Superset is a data visualization platform with Flask/Python backend and React/TypeScript frontend.

Run Pre-commit Before Pushing

Always run pre-commit against the files changed by the current branch before pushing. This matches CI and keeps unrelated failures already present on master from blocking otherwise independent work.

# Stage your changes first
git add .

# Run pre-commit on staged files
pre-commit run

# If there are auto-fixes, stage them and commit
git add .
git commit --amend  # or new commit

Use pre-commit run --all-files when auditing or repairing the repository-wide baseline. If that check finds failures in files untouched by the current branch, fix them in a separate branch rather than adding unrelated changes to the current pull request.

Common pre-commit failures:

  • Formatting - black, oxfmt, eslint will auto-fix
  • Type errors - mypy failures need manual fixes
  • Linting - ruff, pylint issues need manual fixes

⚠️ CRITICAL: Ongoing Refactors (What NOT to Do)

These migrations are actively happening - avoid deprecated patterns:

Frontend Modernization

  • NO any types - Use proper TypeScript types
  • NO JavaScript files - Convert to TypeScript (.ts/.tsx)
  • Use @superset-ui/core - Don't import Ant Design directly, prefer Ant Design component wrappers from @superset-ui/core/components
  • Use antd theming tokens - Prefer antd tokens over legacy theming tokens
  • Avoid custom css and styles - Follow antd best practices and avoid styling and custom CSS whenever possible

Testing Strategy Migration

  • Prefer unit tests over integration tests
  • Prefer integration tests over end-to-end tests
  • Use Playwright for E2E tests - Cypress has been removed
  • Use Jest + React Testing Library for component testing
  • Use test() instead of describe() - Follow avoid nesting when testing principles

Read the full file on GitHub · 317 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. 14d ago Changed · +1 lines · +24 tokens per session b050831b28f7
  2. 1mo ago Changed · -6 lines · -66 tokens per session 268794528cb0
  3. 1mo ago Changed · +7 lines · +246 tokens per session 69224058c18f
  4. 2mo ago First seen · 315 lines · 3,620 tokens per session scan A 2828404559a3

Subscribe to this mod's changes

superset AGENTS.md is an instructions file published in the GitHub repository apache/superset (75,425 stars, last pushed today), licensed Apache-2.0. It adds 3,824 tokens to every session, about $0.0153 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

superset AGENTS.md compared with instructions from other repositories

superset AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
superset AGENTS.mdapache/supersetInstructions file75ktodayApache-2.0A3,824Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode