dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide CI runs update pi git workflows for jj
1604373fdca3373c6d7c9f6653f4fa14f4574680
Oliver Jan Krylow <oliver@bugabinga.net > · 24 May 2026
unsigned
Browse files Compare with HEAD
Changed files (5) Diff layout Auto Unified Split
pi/agent/AGENTS.md Modified +7 / −0 text lines
5 5 DEATH TO LEGACY/COMPAT/HEDGING!DEATH TO LEGACY/COMPAT/HEDGING!6 6 DEATH TO EDGE CASES! FOUND SOME? TELL ME.DEATH TO EDGE CASES! FOUND SOME? TELL ME.
9 + - Prompts MUST be fair and profile-neutral.10 + - Never add task instructions that name, require, forbid, or steer toward/away from an extension/tool under test.11 + - Do not ban normal baseline strategies just to force extension usage.12 + - If an extension needs evaluation, design neutral workloads where its natural behavior can help.13 + - Extension-specific forcing belongs only in explicit debug experiments, not benchmark prompts.pi/agent/prompts/ci.md Modified +10 / −7 text lines
2 - description: Commit current git changes2 + description: Commit current git/jj changes3 3 argument-hint: "[hint]"argument-hint: "[hint]"6 6 Commit current repo changes. Hint: $ARGUMENTSCommit current repo changes. Hint: $ARGUMENTS
8 + If `jj root` succeeds, use jj; otherwise use git.8 10 1. Inspect:1. Inspect:9 - - `git status --short --branch`10 - - `git diff --stat && git diff`11 - - `git diff --cached --stat && git diff --cached` if staged12 - - read untracked files before staging11 + - jj: `jj status`, `jj diff --stat && jj diff`12 + - git: `git status --short --branch ` , ` git diff --stat && git diff ` , ` git diff -- cached --stat && git diff --cached` if staged13 + - read untracked files before committing/ staging13 14 2. Stop if clean.2. Stop if clean.14 15 3. Exclude generated/cache/secret files. Ask only if ambiguous.3. Exclude generated/cache/secret files. Ask only if ambiguous.15 16 4. Split unrelated changes into focused commits when safe; otherwise ask.4. Split unrelated changes into focused commits when safe; otherwise ask.16 17 5. Run obvious fast checks if available. Skip expensive/unclear checks with reason.5. Run obvious fast checks if available. Skip expensive/unclear checks with reason.17 - 6 . Stage relevant files. Commit . If hooks change files, inspect, restage, retry once.19 + - jj: `jj commit -m "subject"` (no staging)20 + - git: stage relevant files, then commit . If hooks change files, inspect, restage, retry once.18 21 7. Do not push.7. Do not push.19 - 8. Report hash, subject, checks.22 + 8. Report hash/change id , subject, checks.21 24 Message style:Message style:pi/agent/prompts/ff.md Modified +16 / −3 text lines
2 - description: Sync current branch into trunk via rebase + fast-forward2 + description: Sync current git/jj branch into trunk via rebase + fast-forward3 3 argument-hint: "[trunk] [test-command ]"argument-hint: "[trunk] [test-command ]"6 - Sync current branch into trunk. Linear history only. No merge commits. Never force-push trunk.6 + Sync current branch/bookmark into trunk. Linear history only. No merge commits. Never force-push trunk.8 - Args: if `$1` is branch/ref → trunk, `${@:2}` → tests. Else infer trunk, `$ARGUMENTS` → tests.8 + Args: if `$1` is branch/ref/bookmark → trunk, `${@:2}` → tests. Else infer trunk, `$ARGUMENTS` → tests.10 + If `jj root` succeeds, use jj:12 + 1. Inspect: `jj status`, `jj bookmark list`, `jj git remote list`, `jj log -r '<trunk>..@'`.13 + 2. Stop on conflicts, dirty unrelated working-copy change, ambiguous trunk/bookmark, or non-git-backed jj repo when push is needed.14 + 3. Fetch/update: `jj git fetch --remote <remote>`.15 + 4. Rebase current stack if needed: `jj rebase -b @ -o <trunk>`.17 + 6. Fast-forward trunk bookmark: `jj bookmark move <trunk> --to @` (never `--allow-backwards`).18 + 7. Push: `jj git push --remote <remote> --bookmark <trunk>`. On reject: fetch, re-evaluate, rebase once if safe, retest, retry.19 + 8. Report: trunk/remote, change old→new, rebase yes/no, tests, pushed change, follow-up.11 24 - Run: `git status --short --branch`, `git branch --show-current`, `git remote -v`, `git worktree list --porcelain`, `git branch -vv`. - Run: `git status --short --branch`, `git branch --show-current`, `git remote -v`, `git worktree list --porcelain`, `git branch -vv`.pi/agent/prompts/pr.md Modified +15 / −15 text lines
2 - description: Review, checkout, test, and prepare PR merge2 + description: Review, checkout, test, and prepare PR merge for git/jj repos 3 3 argument-hint: "<pr-url|number|branch|ref > [test-command]"argument-hint: "<pr-url|number|branch|ref > [test-command]"6 - Review PR end-to-end and prepare merge. Do **not** merge until explicit user OK.6 + Review PR end-to-end and prepare merge. Do **not** merge until explicit user OK. If ` jj root ` succeeds, use jj-native status/diff/workspace commands; otherwise use git. 9 9 **Test command override**: ${@:2}**Test command override**: ${@:2}13 13 1. **Identify**1. **Identify**14 - - Detect host/tooling: GitHub `gh` if available; otherwise generic ` git` .14 + - Detect VCS: ` jj root ` → jj, else git. Detect host/tooling: GitHub `gh` if available; otherwise generic git remote .15 15 - Resolve PR metadata: title, author, base, head, URL, status, CI, labels. - Resolve PR metadata: title, author, base, head, URL, status, CI, labels.16 - - Fetch latest base/head.16 + - Fetch latest base/head: jj `jj git fetch`; git `git fetch`/`gh pr checkout` path.18 18 2. **Protect local work**2. **Protect local work**19 - - Check `git status --short`.20 - - If dirty unrelated work exists: do not overwrite. Prefer isolated worktree.21 - - Detect repo style via `git worktree list`, existing branch/worktree conventions.19 + - Check jj `jj status ` or git ` git status --short`.20 + - If dirty unrelated work exists: do not overwrite. Prefer isolated jj workspace or git worktree.21 + - Detect repo style via jj `jj workspace list` or git `git worktree list`.23 23 3. **Checkout**3. **Checkout**24 - - Prefer worktree when repo uses worktrees, current tree is dirty, or PR needs isolation.25 - - Use branch when repo convention/current state is clean and branch checkout is safe.26 - - GitHub path: `gh pr checkout <PR>` or fetch ref, then create branch/worktree.27 - - Generic path: fetch PR/head ref or remote branch, then create branch/worktree.24 + - jj: prefer isolated workspace: `jj workspace add <path> -r <head-rev>`; otherwise `jj new <head-rev>` only when safe.25 + - git: prefer worktree when repo uses worktrees, current tree is dirty, or PR needs isolation; otherwise branch checkout when clean .26 + - GitHub path: use `gh` for metadata/merge; use VCS-native fetch/checkout/workspace for files.27 + - Generic path: fetch PR/head ref or remote branch/bookmark , then create branch/worktree/workspace .29 29 4. **Review diff**4. **Review diff**30 - - Compare PR head vs base.30 + - Compare PR head vs base: jj `jj diff --from <base> --to <head>`; git `git diff <base>...<head>`.31 31 - Read relevant files, tests, docs, configs. - Read relevant files, tests, docs, configs.32 32 - Check correctness, security, perf, API compat, migrations, UX, error handling. - Check correctness, security, perf, API compat, migrations, UX, error handling.33 33 - Verify PR matches issue/description. - Verify PR matches issue/description.42 42 6. **Report**6. **Report**43 43 - Produce structured report: - Produce structured report:44 44 - PR summary - PR summary45 - - Checkout location + base/head SHAs45 + - Checkout location + base/head SHAs/change IDs 46 46 - Review findings: blockers / warnings / notes with file:line refs - Review findings: blockers / warnings / notes with file:line refs47 47 - Tests run: command → pass/fail - Tests run: command → pass/fail48 48 - Merge readiness: READY | NOT READY - Merge readiness: READY | NOT READY52 52 7. **Wait**7. **Wait**53 53 - Stop after report. - Stop after report.54 54 - Ask for explicit OK to merge only if READY. - Ask for explicit OK to merge only if READY.55 - - On OK: re-fetch, verify PR still current/mergeable, run critical checks if needed, then merge using repo convention (`gh pr merge`, platform tool, or local merge). Report final status.56 - - After successful merge: remove worktree/branch of PR55 + - On OK: re-fetch, verify PR still current/mergeable, run critical checks if needed, then merge using repo convention (`gh pr merge`, platform tool, jj bookmark move/push, or local git merge). Report final status.56 + - After successful merge: remove jj workspace or git worktree/branch of PRpi/agent/settings.json Modified +6 / −11 text lines
2 - "lastChangelogVersion" : "0.74.0" ,2 + "lastChangelogVersion" : "0.75.4" ,4 3 "theme" : "terminal" , "theme" : "terminal" ,5 4 "enabledModels" : [ "enabledModels" : [6 5 "openai-codex/gpt-5.5" , "openai-codex/gpt-5.5" ,18 17 "editorPaddingX" : 1 , "editorPaddingX" : 1 ,19 18 "sessionDir" : "~/.local/state/pi/sessions" , "sessionDir" : "~/.local/state/pi/sessions" ,20 19 "hideThinkingBlock" : false , "hideThinkingBlock" : false ,23 - "reserveTokens" : 32768 ,24 - "keepRecentTokens" : 8000
26 20 "devil" : { "devil" : {27 21 "model" : "zai/glm-5.1" "model" : "zai/glm-5.1" 36 30 "executor" : "minimax/MiniMax-M2.7-highspeed" , "executor" : "minimax/MiniMax-M2.7-highspeed" ,37 31 "advisor" : "zai/glm-5.1" "advisor" : "zai/glm-5.1"
34 + "executor" : "zai/glm-5.1" ,35 + "advisor" : "kimi-coding/kimi-for-coding" 47 45 "sessionRecap" : { "sessionRecap" : {48 46 "model" : "minimax/MiniMax-M2.5-highspeed" "model" : "minimax/MiniMax-M2.5-highspeed" 51 - "model" : "minimax/MiniMax-M2.7-highspeed"
54 49 "enabled" : true "enabled" : true 56 - "flowModelConfig" : "mimo" ,
57 51 "npmCommand" : [ "npmCommand" : [59 53 "--prefix" , "--prefix" ,60 54 "/home/me/.local" "/home/me/.local"