Getting started with the tbr-site website using Codex or Claude Code
tbr-site is the Django application behind Tahoe Backcountry Radio: the read API, the check-in and planning pages, the admin pages, and in time the Patrol's own sites. This page gets a volunteer from nothing to a running copy on a laptop, with an AI coding agent that follows the project's rules.
1. Access
The repository, snowyogi/tbr-site, is private. Ask Jamie to add your GitHub account as a collaborator, then sign in the GitHub command line once:
gh auth login
2. Tools (a Mac with Homebrew)
brew install uv postgresql@18 gh brew services start postgresql@18
Python 3.12 comes through uv; Postgres 18 is used everywhere, tests included.
3. A running copy
gh repo clone snowyogi/tbr-site cd tbr-site uv venv .venv --python 3.12 uv pip install --python .venv/bin/python -r requirements-dev.txt createdb tbr_dev .venv/bin/python manage.py migrate DEBUG=True .venv/bin/python manage.py runserver
Open http://127.0.0.1:8000. Your copy is empty: real member data never comes to a laptop except through the steps in the repo's runbooks.
4. Checking your work
.venv/bin/pytest .venv/bin/ruff check . && .venv/bin/ruff format --check . .venv/bin/lint-imports
Every pull request runs the same three on GitHub before it can merge.
5. Working with an agent
- Claude Code (terminal, desktop app or IDE): open the
tbr-sitefolder. It readsCLAUDE.md, the project's rules, by itself. - Codex: open the same folder. Codex reads
AGENTS.md, which sends it toCLAUDE.md. Ask it to confirm it has readCLAUDE.mdbefore it starts.
Either way, start a task by naming the ticket ("build #65 from its agent brief") and asking the agent how it will check its work.
6. The rules that matter most
- A push to
mainis a deploy. Work on a branch and open a pull request; only the person you are working with (Jamie or Chuck) says when it merges. - No member data in the repo, a ticket, a test or a prototype: invented people only (
example.com,555-01xx). - Times written for people are Pacific, labelled PT.
- Stage files by name, never
git add .;render.yamlchanges only when asked. - No screen or member-facing words without a prototype Jamie has reacted to.
7. Where to begin
- The maps: issues #37 (the TBR application) and #1 (Beacon and tbsp.org).
- Tickets labelled
ready-for-agentcarry an Agent Brief comment: that comment is the contract. - The words:
GLOSSARY.md. The decisions:docs/adr/. The how-tos:docs/runbooks/. - The screens: this journey site; the parts behind them: the architecture page.
Written 2026-10-22 PT. Back to the map.