superset AGENTS.md

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

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/apache/superset/agents-md
Clone the repo
git clone --depth 1 https://github.com/apache/superset

Made for: Codex, OpenCode.

Per session 3,620 This file is loaded in full into every session.
When invoked 3,620 The same file — it is already loaded in full.
Security scan A 1 finding. 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.03620 $0.03620
Opus 5 $0.01810 $0.01810
Sonnet 5 $0.00724 $0.00724
Haiku 4.5 $0.00362 $0.00362

Measured yesterday against content hash 2828404559a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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 · 315 lines

How it starts

The opening of the file, as written. The whole thing — 315 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 - Migrating from Cypress
  • Cypress is deprecated - Will be removed once migration is completed
  • 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 · 315 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 · 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 (74,542 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,620 tokens to every session, about $0.0181 per session on Opus 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.