A Python framework for creating interactive data applications and dashboards.
On this page
Overview
Streamlit gives its Python, React, and protobuf layers different checks. The guide also records exceptions to dependency policy, restart rules for debugging, and test wrappers needed for reliable local results.
Documents
├── ├── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md├── .claude│ ├── agents│ │ ├── │ │ └── · imports ./AGENTS.md│ └── skills│ ├── debugging-streamlit│ │ └── │ ├── │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md├── .github│ └── workflows│ ├── │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md├── e2e_playwright│ ├── │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md├── frontend│ ├── │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md├── lib│ ├── streamlit│ │ ├── .agents│ │ │ └── skills│ │ │ ├── │ │ │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md│ │ ├── │ │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md│ ├── │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md├── proto│ └── streamlit│ └── proto│ ├── │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md├── scripts│ ├── │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md├── specs│ ├── │ └── · same content as .claude/agents/CLAUDE.md · imports ./AGENTS.md└── wiki └──
The debugging section distinguishes application script reruns from edits to the Streamlit library itself. Agents must restart the combined server for library changes instead of trusting a page that still runs old code.
Source excerpt starting at line 81.
81 - Backend hot-reload: Only changes to the **app script** trigger a rerun. Changes to the Streamlit library itself (`lib/streamlit/`) require restarting `make debug`.
02 / Behavioral framing
Keep concurrent debugging evidence tied to a session
Logs are stored per session, and the latest symlink can change when another session starts. The file recommends the printed session directory so an investigation does not silently switch to someone else's logs.
Source excerpt starting at line 83.
83 - `work-tmp/debug/latest/` is a symlink to the most recent debug session (e.g. `work-tmp/debug/latest/backend.log`). If multiple sessions are running simultaneously, this symlink can move—prefer using the session directory printed by `make debug`.
03 / Pointing at the source of truth
Separate development locks from public dependency contracts
The lockfile owns root dependency versions, but published package ranges are a user-facing contract. The explicit exception prevents internal policy from narrowing that contract.
Source excerpt starting at line 40.
40- The dev/CI `[dependency-groups]` in the root `pyproject.toml` use bare package names because `uv.lock` owns the versions: do not add lower-bound floors, reserve exact `==` pins for tools we deliberately hold back, and add upper caps (`<`) only for versions known to break us (mirrored by `ignore` entries in `.github/dependabot.yml`); a `!=` exclusion of a single known-broken release needs no `ignore` entry. This does NOT apply to `lib/pyproject.toml`, whose version ranges are the published package's contract with users. See the comment above `[dependency-groups]` in the root `pyproject.toml` for details.
04 / Verification by change type
Account for the environment used by hooks
The shell policy requires running hook-triggering Git commands inside uv. It gives the pre-commit tools' environment requirement as the reason, covering commands that do not look like Python tasks.
Source excerpt starting at line 37.
37- Always use `uv run` for git commands that trigger hooks (e.g. `uv run git commit`, `uv run git push`). Pre-commit hooks require the uv environment to run linters and formatters.
Ideas for your repo
01Document what hot reload can and cannot observe.
02Use stable session paths for concurrent debugging evidence.
03Scope dependency rules separately for development and published packages.
04Include hook environments in command guidance.
Sponsored by
Give your agents the whole story.
These instructions explain how to work in Streamlit. Modem shows your agents what customers said, who is affected, and what changed.