Cloudflare Git

Repos/herdr-appPublic

main
45 lines · 3.4 KBRaw

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this repo is

Customizations for the Herdr app, the macOS desktop app for terminals and coding agents, which runs on the herdr-core service (hc). The app's whole interface is files in ~/.config/herdr-app (HERDR_APP_HOME overrides it). It reloads them within about a second of a save.

The predecessor is ~/Developer/projects/herdr-kit, made for the old herdr TUI. Treat it as a list of features to port, not as code to reuse. The config format, key model and extension API are all different now.

Read ~/.config/herdr-app/AGENTS.md before any change. The app rewrites it on every start to match the installed version (~72KB), so read the section you need. Types are in herdr.d.ts and gpui-kit.d.ts beside it. Never edit those, frame/, icons/, or the app-written state files (view.json, shared.json, data/, installed.json, seen.json, window*.json). Shipped layouts and mods belong to Herdr: clone them (layout.clone, mod.clone), never edit them.

This repo is the source of truth

Edit here, never in ~/.config/herdr-app or ~/.claude, then run ./install.sh. It copies files into place (never symlinks) and checks every mod. When a clone command creates something in the config folder, copy it into the repo right away. Never overwrite a config-folder file this repo didn't create.

Folder What Installs to
keys/ the key map ~/.config/herdr-app/keys.json
layouts/ the kit layout ~/.config/herdr-app/layouts/
themes/ the kit light/dark color themes ~/.config/herdr-app/themes/
mods/ panels (gpui-kit JavaScript) ~/.config/herdr-app/mods/
hooks/ agent hooks (Claude Code, Codex) ~/.claude/hooks/, registered in ~/.claude/settings.json and ~/.codex/hooks.json
mockups/ the mockup canvas source not installed; published to the artifact (see mockups/CLAUDE.md)

Every top-level folder (including mockups/) has its own detailed CLAUDE.md. Give any new top-level folder one in the same change, and update it whenever the folder changes.

Mockups

All mockups for this project go in one artifact, a Design canvas: https://claude.ai/artifact/W2ptkfrJT1LW2NuJdx817V. Never create another one. Its source is mockups/project/ (canvas.json plus one .dc.html per artboard). Publish with url = that link, root = mockups, sending only the changed files.

Keep it current: whenever a change here alters what the window looks like (layout, mods, fonts, sizes), update the matching artboard in the same session. New ideas get their own artboard next to the current-state one.

Commands

./install.sh                     # copy everything into place and check every mod
herdr-app status                 # what the window shows + load errors
herdr-app shot <file.png>        # screenshot the window; the real test of any UI change
herdr-app commands               # every command and its args
herdr-app do <command> '<json>'  # run a command, e.g. layout.switch
hc --help                        # herdr-core: terminals, agents, labels

An invalid config file is ignored and the last good version stays: check for a sibling <name>.error after edits. Escape hatch: ctrl-alt-shift-escape resets the shown layout and keys.json to defaults.