agentleFS
niclasvestlund-YTniclasvestlund-YT/vibepulse/CLAUDE.md

vibepulse

CLAUDE.md207 starsChanged 2 months agoMITView on GitHub

Read README.md for the repository structure and build workflow. Follow CONTRIBUTING.md and docs/maintaining-contributions.md for contributions and merging. Maintainer changes also go through a PR with passing required checks. Documented local test omissions do not waive GitHub's merge requirements. Setting this repo up for someone (secrets, build, flash, tokenserver)? Follow docs/agent-setup.md — step-by-step, with verifications and a symptom→fix table. Never flash the board without the user explicitly asking you to. This workflow applies to the original 2.16 board. Update 2.41 V2,…

The file

We split this CLAUDE.md into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read README.md for the repository structure and build workflow.

    line 1
  2. Very specific:

    Follow CONTRIBUTING.md and docs/maintaining-contributions.md for contributions and merging.

    line 3
  3. Very specific:

    Never restart it by rerunning install-windows-task.ps1, which rebuilds the task's command line from that invocation's arguments and so …

    line 36
  4. Very specific:

    Use .claude/skills/iterating-esp32-amoled-ui/SKILL.md for AMOLED work.

    line 44
  5. Distinctive:

    Before each hardware build/install, resolve the intended physical unit from its board registry and the current session.

    line 60
  6. Very specific:

    Before proposing external hardware, declaring a device limitation, or designing a hardware-dependent feature, read spec/hardware.md, …

    line 91
  7. Distinctive:

    Never copy secrets or turn an opportunity into authorized implementation work.

    line 98

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Read README.md for the repository structure and build workflow.

Follow CONTRIBUTING.md and docs/maintaining-contributions.md for contributions and merging. Maintainer changes also go through a PR with passing required checks. Documented local test omissions do not waive GitHub's merge requirements.

Setting this repo up for someone (secrets, build, flash, tokenserver)? Follow docs/agent-setup.md — step-by-step, with verifications and a symptom→fix table. Never flash the board without the user explicitly asking you to.

Over-the-air updates

This workflow applies to the original 2.16 board. Update 2.41 V2, 1.91 Touch and 1.75 over USB using their board-specific guides; OTA and board identification in the update chain are not validated for these ports.

Day-to-day firmware goes over the air: idf.py build && tools/ota-flash.sh (device IP from git-ignored .ota-device). The full loop, consent model and troubleshooting live in docs/ota.md — read it before touching anything OTA. Non-negotiables: the maintenance window opens ONLY from the device (a 3 s KEY3 hold opens SETTINGS, where UPDATE opens it — greyed out without an address, since a window with no address cannot receive an upload; WIFI opens the setup window, see docs/wifi.md — or the UPDATE pill on the takeover) — never claim or imply a script can; the sender gates (newest-binary-at-send, version printed, -dirty refused) exist because a stale archived build once froze the panel — never bypass them with TG_OTA_ALLOW_DIRTY without the user saying so; and after editing tools/tokenserver/, restart the host service (macOS: launchctl kickstart -k gui/$(id -u)/se.torget.tokenserver; Windows has no launchd — the service runs under Task Scheduler, so restart it with Stop-ScheduledTask, a wait until it has actually stopped, and only then Start-ScheduledTask on the task VibePulse tokenserver; the task is registered -MultipleInstances IgnoreNew, so an immediate start is silently discarded and the service stays down until the five-minute watchdog — the snippet is under "Restarting the scheduled task" in docs/windows-setup.md. Never restart it by rerunning install-windows-task.ps1, which rebuilds the task's command line from that invocation's arguments and so silently drops the -PublishUrl, -GithubRepo and plan/cost settings it was installed with) — the running process keeps old code and the panel honestly shows the gap.

AMOLED visual work

Use .claude/skills/iterating-esp32-amoled-ui/SKILL.md for AMOLED work. Show exact native output at meaningful stages (2.16: 480 x 480; 2.41 V2: 600 x 450). Review the static physical AMOLED before motion. Studio approval never authorizes a flash; obtain explicit user authorization for the physical install.

Logs, errors, and learning from mistakes

docs/observability.md maps every log the system generates and contains the periodic comb routine — follow it when asked to comb, audit, or investigate logs or odd behavior. Findings go to docs/observability-backlog.md. Read docs/lessons.md before touching pollers, parsers, staleness logic, or the host-service setup: most sharp edges here have a story, and fixes with a root-cause story add an entry there.

Hardware-aware work

Before each hardware build/install, resolve the intended physical unit from its board registry and the current session. The unit used in the 2026-09-24 Lovable session was vibepulse-175-01: round 1.75, waveshare_175, 466 × 466, USB down, BOOT held three seconds for Settings. This is a recorded unit, not a permanent assumption about whichever screen is connected next. A USB port name or the ESP32-S3 chip type alone cannot identify the panel. Bind the connected ROM identity to the intended unit using the board's installation workflow; clarify only if the available evidence cannot resolve the model.

Inspect the effective CMake board and companion inputs before building. For a VibePulse-only install, explicitly exclude local Solelkollen/Buddy checkouts; do not let auto-discovery silently change the app registry. Review native-size output, pair display and touch rotation, and keep build, flash/hash verification, visual inspection and touch acceptance as separate evidence.

Select the board first. The five root files below describe 2.16 only. For the experimental 1.91 Touch AMOLED, use the five files under spec/boards/waveshare_191_touch/ and docs/waveshare-191-touch.md. Native geometry is 536 × 240; USB updates only. Keep its open physical verification items explicit. For the 1.8 V2 USB-only development profile, read the five files under spec/boards/waveshare_18_v2/ and docs/waveshare-amoled-18-v2.md. Four-corner touch and runtime transform-memory acceptance remain open. For 2.41 V2, read the same five filenames under spec/boards/waveshare_241_v2/; validate that directory separately. Never transfer installed firmware or physical verification between board registries. For the round 1.75, read the five files under spec/boards/waveshare_175/ and docs/waveshare-175-preview.md. PCB revision remains unknown; quota display is photographed on one unit, while touch decisions, OTA and automatic rotation remain unverified.

Before proposing external hardware, declaring a device limitation, or designing a hardware-dependent feature, read spec/hardware.md, spec/hardware-capabilities.yaml, spec/hardware-sources.yaml, spec/device-units.yaml, and spec/hardware-opportunities.md. State whether the idea is only silicon-capable, board-wired, firmware-enabled, and physically verified on the named unit. Mention a relevant unused onboard capability when it materially improves the request. Never copy secrets or turn an opportunity into authorized implementation work.

Releases and the README

Two rules, learned 2026-08-16, not optional:

  • When an important feature ships, update README.md in the same effort — headline it at the top (tagline + intro) AND add/refresh its own section with current native simulator frames (480 x 480 or 600 x 450). A feature nobody can see in the README is a feature nobody adopts.
  • Every GitHub release gets real feature images and a clean card. Embed the feature's simulator frames in the release body via absolute raw.githubusercontent.com/.../<tag>/... URLs. Do NOT open the body with a # Release: ... H1 — GitHub renders it huge and it collides with the title in the auto-generated OG card; lead with a plain intro paragraph instead. Releases are source-only — never attach torget.bin (WiFi creds + device key compiled in). The per-release OG card is auto-generated and NOT customisable; the one shared-link image you can set is the repo's Social preview (Settings -> Social preview) — refresh it for a major feature.
  • Tagging includes the documentation cut. In the same effort, move the shipped entries out of Unreleased into a dated version in CHANGELOG.md, leave a new empty Unreleased section at the top, update README's Latest release, and save the GitHub-ready body under docs/releases/. A tag on a commit whose changelog still calls its features unreleased is not a finished release.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.