File size: 2,102 Bytes
7a5c442
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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.