# AGENTS.md This file is the short, durable entrypoint for AI contributors working on `icat_app`. `icat_app` is a Streamlit app (8 tabs, one tool per tab) that auto-deploys to a Hugging Face Space on every push to `main`. Treat any change to runtime files as deploy-affecting. ## Read these first, in this order 1. `CLAUDE.md` — repo-level base rules, reviewer procedure, destructive-op rules, plugin requirements, repo-specific section. 2. `docs/INDEX.md` — map to all in-repo documentation (architecture, guides, reference, policies, progress). 3. `docs/guides/protected-boundary-policy.md` — what auto-deploys and the rules around touching it. 4. `docs/guides/review-workflow.md` — findings-first reviewer contract and the `.decode-reviewer-clean` marker. 5. `docs/guides/git-and-pr-rules.md` — branch model, PR rules, observed branches. ## Hard limits (also enforced by hooks) - No `git add -A` / `git add .` — stage files by name. - No destructive git ops (`push --force`, `reset --hard`, `clean -f`, `branch -D`, etc.) — blocked by `.claude/hooks/block-dangerous-git.sh`. Ask the user to run them manually. - No writes to `.env*`, `credentials*`, `*.pem`, `*.key` — blocked by `.claude/hooks/block-env-writes.sh`. - No AI attribution in commit messages — conventional format, human author. - No commits touching `*.py` / `scripts/` without a fresh `.decode-reviewer-clean` marker (enforced by `.githooks/commit-msg`). - No direct push to `main` — `main` auto-deploys to `huggingface.co/spaces/DecodeMarketing/decode_tools` via `HF_TOKEN`. PRs only. ## Local verification ```bash python scripts/repo_validate.py ``` This is the one-command structural check (py_compile sweep + `requirements.txt` parseable + README HF frontmatter sanity). It runs on every PR via `.github/workflows/repo_validate.yml`. Ruff lint over changed Python runs separately via `.github/workflows/gate.yml`. This file is intentionally short. Do not duplicate `CLAUDE.md` content here. Update `CLAUDE.md` (with reviewer) for behavior changes; update this file only when the entrypoint changes.