Rules for people and coding agents changing this repo. The README covers what Frametop is and how to install it; docs/reference.md covers each component, and docs/design.md records how SteamVR on the Frame behaves and why things are built the way they are. Read its notes on SteamVR before changing how the screens, the pointer, or the input relay talk to SteamVR.
docs/charts/ holds state charts and TLA+ models of how Frametop’s parts start, stop, hand things over and fail. When a question or change touches lifecycle, pausing for VR games, worn or away, remote displays and host input, input and the pointer, gaze, hand tracking, the desktop’s screens and panels, or another charted area, read the matching chart’s .mmd and model first. docs/charts/README.md says which group covers what, lists the rules each model checks and the open suspected bugs with their tickets, and shows how to re-run a check with frame-job.
Every script works in both modes, and must keep working in both:
~/dev/frametop on the Frame (scripts/sync.sh), and commands run there. scripts/_env.sh works out which mode applies (FRAME_LOCAL, FRAME_HOST, FRAME_REPO).scripts/sync.sh # PC -> ~/dev/frametop on the Frame
scripts/frame.sh -C <dir> '<build cmd>' # runs in the "dev" Fedora distrobox
scripts/frame.sh --host '<cmd>' # runs on the SteamOS host
sync.sh overwrites.dev container. The SteamOS host has a read-only root and no compilers. Container builds link against the container’s libraries, so they run in the container (distrobox enter dev -- ...); the SteamVR driver is built to run on the host.setup/packages.txt, the one list the dev container (setup/dev-container.sh) and the image (pack/Containerfile) install, so either can be rebuilt.build/ next to the sources. It’s gitignored and never synced.Commit it, then put the commit into the live release with scripts/fast-install. It rebuilds only the components whose sources changed since the release’s commit (in the release’s own container, so they link against what the release runs), puts the changed files and programs in place, and restarts the services running them, the Frametop desktop included. Python, QML and scripts take seconds, a rebuilt component a minute or two (the first build of hands, voice, stream or keyboard takes longer: it fetches and builds their libraries). scripts/fast-install status shows what’s on top of the release, undo puts the release back as it was, --dry-run shows what would change, and --no-restart leaves the services alone.
uv.lock, pyproject.toml, pack/Containerfile, the container’s packages) need the full build; it refuses them unless --partial. Changes an installer puts in place (units, menu entries, the SteamVR driver, /etc files) are copied into the tree and listed as steps left (exit 3), and so are restarts it left: run that installer from the live release, then scripts/fast-install done PATH, or do the full build. A changed ft-camd holds hand tracking back (a new one needs file capabilities): that takes the full build.ft dev build and get.sh --zip locally, or CI for a release. That’s also the only way to test the installers.--worn-ok: ask the wearer first.A Steam Frame is someone’s personal headset, and they may be wearing it while you work.
gamescope, steam, vrserver, vrcompositor, the gamescope session, or the Frametop desktop without asking. Each one ends or disrupts whatever is happening in VR.sudo, steamos-readonly disable, steamos-devmode changes, pacman installs, or reboots without explicit approval. Three installers need host sudo, and they ask for it: the Bluetooth fixes (setup/bluetooth/install.sh), hand tracking (hands/run.sh install and caps, which set ft-camd’s file capabilities with setcap, and uninstall and uncaps, which take them back), and our own eye tracker’s frame grabber (gaze/tracker/install.sh)./tmp, and the container unless told otherwise. scripts/fast-install writes into the live release and ~/.cache/frametop-fast. The installers are the exception: they write the user services, launchers, and the SteamVR driver into the home folder. The Bluetooth fixes and the eye tracker’s frame grabber also install root-owned files and system services under /etc (/etc/steamframe, /etc/frametop, /etc/systemd/system). When an installer starts writing something new outside the repo, or sets file capabilities, add it to uninstall.sh too: users uninstall with that script, not with each installer’s uninstall.testbench/) is the one exception: a development tool that never ships, so uninstall.sh leaves it alone and testbench/install.sh uninstall removes it. Its preload runs inside vrserver. A SteamVR that keeps crashing makes SteamOS repair Steam after three failed sessions and fall back to the other OS slot after four, so its loader leaves the proxy out after a failed session. Restart SteamVR with the testbench only through testbench/install.sh install|uninstall --restart, which checks for that, and never drive the pose while someone wears the headset..netrc, SSH keys, or Steam config off the Frame or into this repo..claude/skills/verify-frametop/: it drives the live Frametop through the testbench with nobody wearing the headset, and refuses otherwise.A SteamOS update replaces SteamVR, KWin, and gamescope with the rest of the OS image. When a change starts depending on something from the image (a host file, an OpenVR interface outside the bundled header, an undocumented layout or output format, a SteamVR or KWin quirk), add a check for it to scripts/update-check.py, or a retest hint for its package there. docs/design.md has the background.
pack/)pack/Containerfile builds Frametop as an OCI image; releases ship it inside Frametop.zip (get.sh --release, FrameDrop), so they install without building on the headset. pack/design.md explains why and what is open, and pack/README.md documents the specifics. Rules:
uv.lock (commit the lock, never a bare uv pip install), downloads by tag or commit and sha256, CI actions by commit SHA.build.sh scripts (FRAME_IN_BOX=1), and the OpenVR SDK they build against is pinned in scripts/openvr.sh. Change a build there, not in the Containerfile, and keep the Containerfile buildable on arm64, the only architecture the Frame has../ft dev test runs just test inside it, and CI runs the same recipes. A new offline test that needs no headset goes in the justfile too.scripts/install-lib.sh. Source it after scripts/_env.sh and use install_unit, enable_units and install_menu_entry rather than writing a template into ~/.config/systemd/user or ~/.local/share/applications by hand; scripts/tests/test_install_lib.py checks what it writes for each one.frame-job is the maintainer’s job runner, not part of Frametop. Docs and lab tools show commands through it (it sends heavy jobs to another machine or caps them on the Frame). Without it, run the command after -- directly. A .frame-job file is one machine’s settings, so .gitignore lists it; gaze/tracker/.frame-job.example shows one.docs/tests/test_doc_links.py (in just test) checks that every relative link in a doc, and every repo path a doc or a comment names, exists. frame-hands/notes/... is the separate frame-hands project’s research notes, not this repo, so it’s skipped. A doc past about 50 KB gets split into files beside it, leaving its headings with a link to where each went.User-facing names are “Frametop”, “Frametop Display Settings”, and “Frametop Input Settings”. Programs and files use the ft- / ft_ prefix (ft-screens, ft-pointer, ft-layout, the ft_pointer driver); config, units, and overlay keys use frametop. Program names must stay within 15 characters: Linux truncates process names there, and the scripts find programs with pgrep -x / pkill -x. One waiver: Full Keyboard’s programs keep upstream’s names, framekeyboard and framekeyboard-native-guard (keyboard/FRAMETOP.md).