Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

refactor: Move dev resources to `dev/` directory

Maximilian Roosaa9e5d5d9e30
diff --git a/.claude-plugin/skills/worktrunk/reference/README.md b/.claude-plugin/skills/worktrunk/reference/README.md
index ac11de2d9..4386a3423 100644
--- a/.claude-plugin/skills/worktrunk/reference/README.md
+++ b/.claude-plugin/skills/worktrunk/reference/README.md
@@ -20,7 +20,7 @@ Worktrunk offers control, transparency & automation for this workflow.
## Demo
-![Worktrunk Demo](scripts/wt-demo/out/wt-demo.gif)
+![Worktrunk Demo](dev/wt-demo/out/wt-demo.gif)
## Quick Start
@@ -138,7 +138,7 @@ commit message prompts. Customize the prompts by setting `template` (inline) or
`template-file` (external file) in the `[commit-generation]` section. Use
`squash-template` / `squash-template-file` for squash commits.
-See [`config.example.toml`](config.example.toml) for complete template examples
+See [`config.example.toml`](dev/config.example.toml) for complete template examples
with all available variables (`git_diff`, `branch`, `recent_commits`, `commits`,
`target_branch`, `repo`).
diff --git a/.gitignore b/.gitignore
index 85fe858bb..3936f6b63 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
/target
-scripts/wt-demo/out/*
-!scripts/wt-demo/out/wt-demo.gif
+dev/wt-demo/out/*
+!dev/wt-demo/out/wt-demo.gif
# Lychee link checker cache
.lycheecache
diff --git a/CLAUDE.md b/CLAUDE.md
index 728230fa5..d169019af 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -54,7 +54,7 @@ The pre-merge hook runs the full test suite and is the recommended way to verify
When working in Claude Code web, run the setup script first:
```bash
-./scripts/setup-claude-code-web.sh
+./dev/setup-claude-code-web.sh
```
This installs required shells (zsh, fish) and builds the project. The permission tests (`test_permission_error_prevents_save`, `test_approval_prompt_permission_error`) automatically skip when running as root, which is common in containerized environments.
diff --git a/README.md b/README.md
index ac11de2d9..4386a3423 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ Worktrunk offers control, transparency & automation for this workflow.
## Demo
-![Worktrunk Demo](scripts/wt-demo/out/wt-demo.gif)
+![Worktrunk Demo](dev/wt-demo/out/wt-demo.gif)
## Quick Start
@@ -138,7 +138,7 @@ commit message prompts. Customize the prompts by setting `template` (inline) or
`template-file` (external file) in the `[commit-generation]` section. Use
`squash-template` / `squash-template-file` for squash commits.
-See [`config.example.toml`](config.example.toml) for complete template examples
+See [`config.example.toml`](dev/config.example.toml) for complete template examples
with all available variables (`git_diff`, `branch`, `recent_commits`, `commits`,
`target_branch`, `repo`).
diff --git a/config.example.toml b/dev/config.example.toml
similarity index 100%
rename from config.example.toml
rename to dev/config.example.toml
diff --git a/scripts/setup-claude-code-web.sh b/dev/setup-claude-code-web.sh
similarity index 99%
rename from scripts/setup-claude-code-web.sh
rename to dev/setup-claude-code-web.sh
index 5478d02d0..7089464cf 100755
--- a/scripts/setup-claude-code-web.sh
+++ b/dev/setup-claude-code-web.sh
@@ -18,7 +18,7 @@
# cargo run -- beta run-hook pre-merge # All tests (via pre-merge hook)
#
# Usage:
-# ./scripts/setup-claude-code-web.sh
+# ./dev/setup-claude-code-web.sh
#
###############################################################################
diff --git a/scripts/wt-demo-build.sh b/dev/wt-demo-build.sh
similarity index 100%
rename from scripts/wt-demo-build.sh
rename to dev/wt-demo-build.sh
diff --git a/scripts/wt-demo/CLAUDE.md b/dev/wt-demo/CLAUDE.md
similarity index 79%
rename from scripts/wt-demo/CLAUDE.md
rename to dev/wt-demo/CLAUDE.md
index 17259e18d..460c72516 100644
--- a/scripts/wt-demo/CLAUDE.md
+++ b/dev/wt-demo/CLAUDE.md
@@ -5,19 +5,19 @@
Build and record the demo GIF:
```bash
-./scripts/wt-demo-build.sh
+./dev/wt-demo-build.sh
```
This creates:
-- `scripts/wt-demo/out/wt-demo.gif` - The animated demo
-- `scripts/wt-demo/out/run.txt` - Text log of the output
+- `dev/wt-demo/out/wt-demo.gif` - The animated demo
+- `dev/wt-demo/out/run.txt` - Text log of the output
## Viewing Results
**Do NOT use `open` on the GIF** - that's for the user to do manually.
To inspect what the demo produces:
-- Read `scripts/wt-demo/out/run.txt` to see the text output
+- Read `dev/wt-demo/out/run.txt` to see the text output
- The GIF can be viewed in a browser or image viewer by the user
Claude Code cannot view GIFs directly. Use `run.txt` for verification.
diff --git a/dev/wt-demo/README.md b/dev/wt-demo/README.md
new file mode 100644
index 000000000..191e2685e
--- /dev/null
+++ b/dev/wt-demo/README.md
@@ -0,0 +1,10 @@
+# wt demo assets (VHS)
+
+- Primary asset: `dev/wt-demo/out/wt-demo.gif` (regenerated by the script; ~1.9 MB).
+- VHS tape: `dev/wt-demo/demo.tape` (edit this to adjust the recording).
+- Text transcript: `dev/wt-demo/out/run.txt` (captured from a clean run parallel to the GIF).
+- Regenerate everything with `./dev/wt-demo-build.sh` (depends on `wt`, `vhs`, `starship`).
+- Script creates a fresh temp repo under `dev/wt-demo/out/demo/` (gitignored), seeds 4 worktrees + 2 extra branches, shows `wt list --branches --full`, creates another worktree, edits a file (pre-commit hook visible during merge auto-commit), merges with `wt merge`, then shows the final list.
+- Defaults: light theme (GitHub-light-inspired palette), starship prompt, 1280x720 window. Worktree paths appear as `./wt-demo*` inside the session container for readability.
+- Inline viewing: `qlmanage -p dev/wt-demo/out/wt-demo.gif` (Quick Look) or `imgcat dev/wt-demo/out/wt-demo.gif` in iTerm2.
+- Recording log: `dev/wt-demo/out/record.log`.
diff --git a/scripts/wt-demo/demo.tape b/dev/wt-demo/demo.tape
similarity index 100%
rename from scripts/wt-demo/demo.tape
rename to dev/wt-demo/demo.tape
diff --git a/scripts/wt-demo/out/wt-demo.gif b/dev/wt-demo/out/wt-demo.gif
similarity index 100%
rename from scripts/wt-demo/out/wt-demo.gif
rename to dev/wt-demo/out/wt-demo.gif
diff --git a/scripts/wt-demo/README.md b/scripts/wt-demo/README.md
deleted file mode 100644
index df410d30b..000000000
--- a/scripts/wt-demo/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# wt demo assets (VHS)
-
-- Primary asset: `scripts/wt-demo/out/wt-demo.gif` (regenerated by the script; ~1.9 MB).
-- VHS tape: `scripts/wt-demo/demo.tape` (edit this to adjust the recording).
-- Text transcript: `scripts/wt-demo/out/run.txt` (captured from a clean run parallel to the GIF).
-- Regenerate everything with `./scripts/wt-demo-build.sh` (depends on `wt`, `vhs`, `starship`).
-- Script creates a fresh temp repo under `scripts/wt-demo/out/demo/` (gitignored), seeds 4 worktrees + 2 extra branches, shows `wt list --branches --full`, creates another worktree, edits a file (pre-commit hook visible during merge auto-commit), merges with `wt merge`, then shows the final list.
-- Defaults: light theme (GitHub-light-inspired palette), starship prompt, 1280x720 window. Worktree paths appear as `./wt-demo*` inside the session container for readability.
-- Inline viewing: `qlmanage -p scripts/wt-demo/out/wt-demo.gif` (Quick Look) or `imgcat scripts/wt-demo/out/wt-demo.gif` in iTerm2.
-- Recording log: `scripts/wt-demo/out/record.log`.
diff --git a/src/commands/config.rs b/src/commands/config.rs
index 98b7822bd..b72f10827 100644
--- a/src/commands/config.rs
+++ b/src/commands/config.rs
@@ -9,7 +9,7 @@ use worktrunk::styling::{
};
/// Example configuration file content
-const CONFIG_EXAMPLE: &str = include_str!("../../config.example.toml");
+const CONFIG_EXAMPLE: &str = include_str!("../../dev/config.example.toml");
/// Handle the config create command
pub fn handle_config_create() -> anyhow::Result<()> {