Skip to content
WordllbanPublic

About

My personal coding & work setup configurations

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

53 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

This repository collects the custom configurations I use for coding and everyday tools so they can be shared, versioned, and reproduced across machines.

Setup

Run from the repository root:

./scripts/setup.sh --dry-run
./scripts/setup.sh

Setup uses symlinks by default. Use --copy to install independent copies:

./scripts/setup.sh --copy

Existing destination files are never discarded. Before replacement they are moved under ~/.dotfiles-backups/<timestamp>-<pid>/. Re-running setup is safe: already-current copies and links are skipped.

Claude's status line requires jq. Cursor extensions are installed from home/.cursor/extensions.txt when the cursor CLI is on PATH. Agent skills from home/.agents/skills.txt are optional - pass --skills to install or refresh them via npx skills (needs Node.js, jq, and python3).

Each skills line is <owner/repo> <skill> <mode> using Claude Code's skillOverrides values:

Mode Claude Code Cursor
on name + description; model may invoke same via frontmatter
name-only name listed only treated like on (no Cursor equivalent)
user-invocable-only slash-only (/skill) disable-model-invocation: true
off hidden not installed for Cursor

--skills runs npx skills update, installs missing skills, writes Claude skillOverrides into home/.claude/settings.json, and re-applies Cursor frontmatter so Matt Pocock (and other) skill updates stay compatible.

./scripts/setup.sh --skills
./scripts/setup.sh --dry-run --skills

Orca plugins from home/.orca/plugins.txt are installed while Orca is running. Orca preferences are written only with --orca, and only while Orca is quit (see Orca).

The other applications must be installed separately. Script output is colorized in a terminal. Set NO_COLOR=1 for plain logs. Set VERBOSE=1 to print low-level shell commands during dry runs.

Shared helpers live under scripts/lib/ and are sourced by the entry scripts; they are not meant to be run directly.

Included configuration

  • Cursor editor settings, keybindings, extensions list, agent permissions, and hooks
  • Global agent skills list (home/.agents/skills.txt) installed via skills.sh
  • Repository-authored skills under home/.agents/skills/ linked into Claude and Cursor (/recaper rebuilds session context after switching terminals, /signoff lists what is waiting on my decision, /rules re-reads the instruction files and corrects drift)
  • Shared destructive-command guard hook (home/.agents/hooks/guard-destructive.sh)
  • Global AGENTS.md instructions shared with Claude via CLAUDE.md import
  • Claude settings (default Bash allow for gh / acli, ask rules for destructive commands, PreToolUse guard) and status line (official code-review plugin disabled in favor of Matt Pocock's skill)
  • herdr key bindings and UI preferences
  • Herdr desktop app keys, settings, themes, the Islands layout with its mods (rotating wallpapers, picker tweaks, Material file icons) and workspace icons (home/.config/herdr-app/)
  • WezTerm appearance and key bindings
  • Orca preferences, layout choices, shortcuts and plugin list (home/.orca/)

Files under home/ are organized by application. The manifest maps them to the appropriate home-directory destinations on macOS and Linux.

Agent command permissions

Claude Code and Cursor use different permission models, so this repo configures both deliberately:

Tool Default allow Destructive guard
Claude Code permissions.allow for Bash(gh *) and Bash(acli *) permissions.ask for destructive patterns (ask beats allow), plus a PreToolUse hook
Cursor Broad autoRun.allow_instructions for everyday local/dev commands plus routine gh / acli (Auto-review mode) Narrow autoRun.block_instructions plus a fail-closed beforeShellExecution hook

Cursor's recommended run mode is Auto-review. This repo intentionally does not set terminalAllowlist in permissions.json, because that key replaces the in-app terminal allowlist and can prevent selecting Auto-review. Expand everyday command prefixes in the IDE terminal allowlist instead (git, npm, pnpm, yarn, and similar).

The shared hook script asks before destructive rm/git/gh/acli patterns. It is installed to both ~/.agents/hooks/ and ~/.cursor/hooks/.

The application requested as "herdr" is installed on this machine with that exact lowercase name and stores its configuration in ~/.config/herdr.

Herdr desktop app

Every file under home/.config/herdr-app/ is installed to the same path under ~/.config/herdr-app/; adding a file to that folder adds it to the manifest. Herdr replaces layouts/islands.json and settings.json when it saves them (the wallpaper rotation saves the layout), so those links become plain files over time. Run ./scripts/update.sh to collect them back.

On macOS, setup also builds the default workspace icon (space-icons/_default.png, used by every workspace without its own) from the local Terminal app's icon, since that artwork is Apple's and stays out of the repository.

The Islands Files panel (mods/islands-files, a clone of Herdr's Files mod) draws the same file and folder icons as the editor's Material Icon Theme. Setup copies them from the newest pkief.material-icon-theme installed in Cursor or VS Code into mods/islands-files/material/, and skips that step when neither has it (the panel then shows Herdr's generic icons).

The Islands wallpapers are other people's Steam Workshop items, so the repository keeps their IDs instead of the images. Fetch them with a Steam account that owns Wallpaper Engine:

brew install --cask steamcmd
steamcmd +login <steam-username> +quit   # once, interactive
./scripts/herdr-wallpapers.sh <steam-username>

Orca

Orca has no preferences file: it keeps them in its profile database (profile-state.db) and has no export, import or sync for them. So this repository keeps a readable copy instead of a linked file:

File Holds Direction
home/.orca/preferences.json Preferences (theme, fonts, terminal, agent defaults, notifications) and layout choices (status bar items, card properties, board statuses) update.sh collects, setup.sh --orca writes
home/.orca/keybindings.json Custom shortcuts, a normal Orca file Linked by the manifest
home/.orca/plugins.txt Catalog ids of the installed plugins update.sh collects, setup.sh installs

On a new machine:

./scripts/setup.sh          # with Orca running: links shortcuts, installs plugins
./scripts/setup.sh --orca   # with Orca quit: writes the preferences

Start Orca once before the first run so its profile exists. --orca refuses to run while Orca is open, because Orca holds the preferences in memory and would conflict with the change. It merges the file over the machine's own values in one transaction, the way Orca's own offline commands write them, and first saves a copy of the database under ~/.dotfiles-backups/. It also refuses when the database is not in the format the script was written for (a later Orca may change it); scripts/lib/orca_preferences.py then needs updating.

Plugins that run code are not approved for you: setup names them and you approve their access with orca plugin install <id>.

Orca saves the shortcuts file by replacing it, so the link becomes a plain file after a shortcut changes. Run ./scripts/update.sh to collect it back.

Updating the repository

After changing local application settings, preview and collect the allowlisted files:

./scripts/update.sh --dry-run
./scripts/update.sh

scripts/lib/manifest.sh is the single allowlist used in both directions. The Orca preferences and plugin list are read from Orca itself, so they are only refreshed on a machine that has Orca (the plugin list needs it running). The update script refuses files that match common credential patterns and copies through a temporary file before replacing repository content.

Deliberate exclusions

Only portable, user-controlled configuration is included. In particular:

  • .cursor/mcp.json is excluded because the local file contains a credential.

  • .cursor/permissions.json steers Auto-review via autoRun (allow everyday local/dev commands and routine gh / acli, block destructive patterns). It does not set terminalAllowlist.

  • .cursor/hooks.json and the shared guard script enforce approval for destructive shell commands.

  • Cursor and Claude histories, sessions, plans, project state, telemetry, databases, OAuth state, extension/plugin caches, and generated IDE state are excluded.

  • .cursor/argv.json is excluded because it contains generated crash-reporting state and a machine identifier.

  • Claude's externally managed skill symlinks under ~/.claude/skills/ are excluded; install them via home/.agents/skills.txt and scripts/setup.sh. Skills authored in this repository live under home/.agents/skills/ and are linked into ~/.claude/skills/ and ~/.cursor/skills/ by the manifest instead.

  • herdr logs, Unix sockets, session.json, and release-notes.json are excluded.

  • WezTerm's generated check_update state is excluded.

  • Herdr app files the app rewrites on every start (AGENTS.md, *.d.ts, frame/, icons/, shipped layouts and mods), its state (shared.json, view.json, window.json, layouts/.state/, data/, telemetry), the wallpaper images and the Material Icon Theme icons are excluded.

  • Orca's machine-specific settings (workspace folder, proxy, devices, accounts, telemetry, plugin approvals, migration markers), its projects, worktrees, sessions, bots and the rest of its profile are excluded. The lists are in scripts/lib/orca_preferences.py.

Do not add credentials directly to this repository. Configure secrets locally after setup.

License

This project is available under the MIT License.

About

My personal coding & work setup configurations

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages