Skip to content
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
All notable changes to devkit. Versions follow CalVer `YY.MM.PATCH` (PATCH restarts at 0 each month); tags are
`vYY.MM.PATCH`. Sections follow [Keep a Changelog](https://keepachangelog.com/).

## [26.11.25] - 2026-11-18

### Fixed

- `dev pr merge` works again: 26.11.24 asked `gh repo view` for an auto-merge field it does not have, so every merge
failed with `Unknown JSON field: "autoMergeAllowed"`. Only `--auto` now reads the setting, from GitHub's REST API.
- `dev ci --run` blocks the evidence for a check piped into the home folder through `sudo tee`, or into a dotfile or
dot folder there (`pytest | tee ~/log ~/.bashrc`, whatever the order of the targets), instead of skipping the step
as setup or overwriting the developer's settings; the same writes with no check beside them are still the runner's
setup.
- `dev docs check` no longer applies the diagram rules to images in test fixture folders (`fixtures`, `__fixtures__`,
`testdata`), which tests load rather than readers see, and judges only the folders inside the checkout, so a
managed worktree, or a checkout under a folder named `build`, `dist` or `testdata`, has its images checked again.

## [26.11.24] - 2026-11-18

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26.11.24
26.11.25
2 changes: 1 addition & 1 deletion desktop/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": "0.4",
"name": "devkit",
"display_name": "devkit",
"version": "26.11.24",
"version": "26.11.25",
"description": "Every repo in its place. Every agent on the same page. Your devkit portfolio, project status, tasks, CI and team, in Claude Desktop chat and Cowork.",
"long_description": "devkit connects Claude Desktop to **devkit** from Firefly Software Solutions Inc.: every repository in its place under ~/Development, one handoff repository that keeps each project's status, tasks, plans, lessons and session log, and the same rules for Claude Code, Codex and the team. Claude Code already uses devkit through its plugin; this extension brings it to Desktop chat and Cowork.\n\n**What you can ask**\n\n- **Where things stand:** the portfolio overview, one project's status, its tasks, a standup of the last days, and a status report for the team or management.\n- **Delivery:** live CI/CD runs with job progress and an ETA, and a project's delivery policy (versioning, test gate, release flow) with its gaps.\n- **Team and history:** who is working on what, devkit's crew of specialist agents and the decisions waiting for you, lessons learned, devkit's audit trail, its scheduled jobs, and a health check of the whole setup.\n- **Tasks:** add a task, or start, finish, block, unblock or release one. Changes go through the `dev` command, so devkit's audit trail applies exactly as it does in the terminal.\n\nWhen Claude reports a project's status, it starts with the devkit status block (**[Firefly> DevKit]**), the same one Claude Code and Codex use.\n\n**Setting it up.** devkit must be installed on this Mac: run `./install.sh` in the devkit repository, which runs `dev setup`. The extension finds devkit on its own; set the devkit folder only if devkit is not where `dev setup` put it. At startup, the extension selects the configured devkit folder or the installed `dev` link. Install or update devkit through its supported policy, then restart Claude Desktop or turn the extension off and on to load the new tools. A running server keeps the version it started with. It needs Python 3.9 or later, which comes with the macOS Command Line Tools.\n\n**Privacy.** Everything runs on your Mac through the `dev` command and reads your workspace and handoff repository. The project status, CI status and doctor tools ask GitHub or your CI provider through your existing sign-in (for example `gh auth login`); task changes are pushed to your own handoff repository. No token is stored by the extension.",
"author": {
Expand Down
5 changes: 3 additions & 2 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ Local CI evidence: proof that what CI runs passed on your Mac, on exactly the fi

| Option | Effect |
| --- | --- |
| `--run` | Runs the `run:` steps of the workflows that run on pushes and pull requests, in order, and records the evidence when all pass. Setup actions, dependency installs, side effects, a hosted runner's own setup (deletions outside the checkout, Docker prunes, setup run with `sudo`, OS package installs, `playwright install`, `git config --global`, Linux-only system setup such as `fc-cache`, `ldconfig`, or `locale-gen`, and `mkdir`, `cp`, `mv`, `ln`, `install`, `touch`, `tee`, or `rsync` writes into the home folder outside the checkout, unless the same pipeline runs a check, as `pytest \| tee ~/pytest.log` does), and steps that need CI secrets are skipped, each with a line that says why. In a step that sets up a tool and runs it (`brew install gitleaks && gitleaks detect`), only the setup is left out and the check runs, so a tool missing on this Mac fails the evidence. A script run with `source` or `.`, and a command or process substitution, count as checks. A check that cannot be separated from its setup (a nested shell, a subshell, a substitution, a heredoc, a `case`), a check run with `sudo` (including `sudo test`, `sudo [`, and a reporting command with a substitution, such as `sudo echo "$(…)"`), and a step that names a Docker context this Mac lacks block the evidence (see [Git and GitHub › Local CI evidence](git-and-github.md#local-ci-evidence)) |
| `--run` | Runs the `run:` steps of the workflows that run on pushes and pull requests, in order, and records the evidence when all pass. Setup actions, dependency installs, side effects, a hosted runner's own setup (deletions outside the checkout, Docker prunes, setup run with `sudo`, OS package installs, `playwright install`, `git config --global`, Linux-only system setup such as `fc-cache`, `ldconfig`, or `locale-gen`, and `mkdir`, `cp`, `mv`, `ln`, `install`, `touch`, `tee`, or `rsync` writes into the home folder outside the checkout, unless the same pipeline runs a check, as `pytest \| tee ~/pytest.log` does; a check piped into the home folder through `sudo tee`, or into a dotfile such as `~/.bashrc`, blocks the evidence instead), and steps that need CI secrets are skipped, each with a line that says why. In a step that sets up a tool and runs it (`brew install gitleaks && gitleaks detect`), only the setup is left out and the check runs, so a tool missing on this Mac fails the evidence. A script run with `source` or `.`, and a command or process substitution, count as checks. A check that cannot be separated from its setup (a nested shell, a subshell, a substitution, a heredoc, a `case`), a check run with `sudo` (including `sudo test`, `sudo [`, and a reporting command with a substitution, such as `sudo echo "$(…)"`), and a step that names a Docker context this Mac lacks block the evidence (see [Git and GitHub › Local CI evidence](git-and-github.md#local-ci-evidence)) |
| `--dry-run` | With `--run`: the plan, without running anything |
| `--keep-going` | With `--run`: do not stop at the first failure |
| `--step-timeout MIN` | With `--run`: minutes per step (default 30) |
Expand Down Expand Up @@ -886,7 +886,8 @@ checks before using the result as security evidence.
### `dev docs check [<paths>…] [--online] [--fix] [--no-prose]`

Checks documentation in one pass, covering Markdown structure (markdownlint), links and anchors (lychee), prose (Vale with the
Google and write-good styles) and, when no paths are given, every SVG in the repository. The repository's own
Google and write-good styles) and, when no paths are given, every SVG in the repository except those in test fixture
folders (`fixtures`, `__fixtures__`, `testdata`), which tests load rather than readers see. The repository's own
configuration files win over devkit's defaults.

| Option | Effect |
Expand Down
2 changes: 1 addition & 1 deletion docs/git-and-github.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ Steps that cannot or must not run on your Mac are skipped, with the reason:
| Setup actions (`uses:`) | Your local toolchain stands in for them |
| Dependency installs (`npm ci`, `pip install`, `uv sync`, …) | Your local environment is used; nothing is reinstalled |
| Side effects: publishing, deploying, pushing, system installs, coverage uploads | They change things outside your Mac |
| A hosted runner's own setup: a step that deletes a path not inside the checkout (`rm -rf /opt/hostedtoolcache/…`), `docker` or `podman … prune`, setup run with `sudo` (`sudo systemctl …`), OS package installs and updates (`apt-get`, `brew`, `dnf`, `apk`, `choco`, …), `playwright install` and `install-deps`, `git config --global` or `--system`, a Linux runner's own system setup (`fc-cache`, `ldconfig`, `locale-gen`, `update-ca-certificates`, …), and `mkdir`, `cp`, `mv`, `ln`, `install`, `touch`, `tee`, or `rsync` writing into the home folder outside the checkout (`mkdir -p ~/.local/share/fonts`), unless the same pipeline runs a check (`pytest \| tee ~/pytest.log` runs) | They would delete your caches and images, install system packages, rewrite your settings, or fill your home folder; a Mac has no use for a Linux runner's system caches. Each skipped step gets a line that says why. devkit also reads the script a step hands to a shell with `-c` (`xvfb-run bash -c …`) |
| A hosted runner's own setup: a step that deletes a path not inside the checkout (`rm -rf /opt/hostedtoolcache/…`), `docker` or `podman … prune`, setup run with `sudo` (`sudo systemctl …`), OS package installs and updates (`apt-get`, `brew`, `dnf`, `apk`, `choco`, …), `playwright install` and `install-deps`, `git config --global` or `--system`, a Linux runner's own system setup (`fc-cache`, `ldconfig`, `locale-gen`, `update-ca-certificates`, …), and `mkdir`, `cp`, `mv`, `ln`, `install`, `touch`, `tee`, or `rsync` writing into the home folder outside the checkout (`mkdir -p ~/.local/share/fonts`), unless the same pipeline runs a check (`pytest \| tee ~/pytest.log` runs; into the home folder through `sudo tee`, or into a dotfile such as `~/.bashrc`, it blocks the evidence) | They would delete your caches and images, install system packages, rewrite your settings, or fill your home folder; a Mac has no use for a Linux runner's system caches. Each skipped step gets a line that says why. devkit also reads the script a step hands to a shell with `-c` (`xvfb-run bash -c …`) |
| Steps that need CI secrets or write CI plumbing (`$GITHUB_ENV`, `$GITHUB_OUTPUT`) | They only make sense on the runner |
| Jobs that deploy or publish, run on Windows, or only on other events | They are not part of the check of a change |

Expand Down
7 changes: 6 additions & 1 deletion lib/devkit/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
VALE_STYLES = HOME / ".local" / "share" / "devkit" / "vale" / "styles"
VALE_INI = HOME / ".local" / "share" / "devkit" / "vale" / ".vale.ini"
MD_SKIP = ("node_modules", ".venv", "vendor", "dist", ".git", "build", "target", ".worktrees")
# Folders of test fixtures: the images there are what a test loads, not a picture a reader sees, so the diagram rules
# (a title, no scripts, readable type) do not apply to them.
FIXTURE_DIRS = ("fixtures", "__fixtures__", "testdata")
VALE_WARNINGS_SHOWN = 40 # Vale's errors are all listed; its warnings up to this many, then a count and the command


Expand Down Expand Up @@ -125,7 +128,9 @@ def check(root: Path, paths=None, online=False, fix=False, prose=True) -> int:
else:
print(f" {ui.WARN} vale not available (brew install vale)")

svgs = [p for p in root.rglob("*.svg") if not any(s in p.parts for s in MD_SKIP)] if not paths else []
# only the folders inside the checkout count: a checkout under testdata/ or .worktrees/ still has its images checked
svgs = [p for p in root.rglob("*.svg") if not any(s in p.relative_to(root).parts for s in MD_SKIP + FIXTURE_DIRS)] \
if not paths else []
if svgs:
print(ui.section(f"Diagrams · {len(svgs)} SVG(s)"))
try:
Expand Down
49 changes: 37 additions & 12 deletions lib/devkit/gitx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2374,10 +2374,14 @@ def _informational(argv, words) -> bool:
return os.path.basename(words[0]) in _INFO or words[1:] in _VERSION_ARGS


_HOME_KINDS = ("home", "home-dot", "home-root") # a write into the home folder, least to most severe


def _prep_one(argv, words, as_root: bool, state: dict):
"""("setup", why) when this one command only sets up a hosted runner, ("home", why) when it writes into the home
folder outside the checkout (setup unless its piece runs a check), ("root", why) when it is a check that runs as
root, or None. `state` carries the folder `cd` went to ("here"), the checkout ("top") and the variables."""
folder outside the checkout (setup unless its piece runs a check), ("home-dot", why) or ("home-root", why) when
that write goes into a dotfile or a dot folder, or runs as root (setup with no check beside it, and a block next
to one), ("root", why) when it is a check that runs as root, or None. `state` carries the folder `cd` went to ("here"), the checkout ("top") and the variables."""
if not words:
return None
env, top = state["env"], state["top"]
Expand Down Expand Up @@ -2417,12 +2421,19 @@ def _prep_one(argv, words, as_root: bool, state: dict):
return "setup", f"runner prep ({name} sets up the Linux runner's own system; a Mac has no use for it)"
elif name in _WRITERS:
home = os.path.realpath(env.get("HOME") or os.path.expanduser("~"))
found = None # the most severe of its targets: one command can write several (tee ~/log ~/.bashrc)
for w in _written(words, _WRITERS[name]):
p = _shell_path(w, state["here"], env)
if p and (p == home or p.startswith(home + os.sep)) and p != top and not p.startswith(top + os.sep):
# "home": setup only when its piece runs no check (_classify); a check's log piped to tee still runs
return ("setup" if as_root else "home"), \
f"runner prep (writes {w} into the home folder, outside the checkout)"
# "home": setup only when its piece runs no check (_classify); a check's log piped to tee still runs.
# A dotfile or dot folder holds the developer's own settings, and a write as root cannot run here:
# next to a check, either one blocks the step instead.
dot = any(part.startswith(".") and part != "." for part in os.path.relpath(p, home).split(os.sep))
kind = "home-root" if as_root else "home-dot" if dot else "home"
if found is None or _HOME_KINDS.index(kind) > _HOME_KINDS.index(found[0]):
found = (kind, f"runner prep (writes {w} into the home folder, outside the checkout)")
if found:
return found
if as_root: # setup the runner does as root, or a check that runs as root, which cannot run here
if _informational(argv, words) and (name in ("test", "[", "[[") or
any("$(" in w or "`" in w for w in words[1:])):
Expand Down Expand Up @@ -2527,14 +2538,21 @@ def _classify(piece: dict, state: dict, installs: bool) -> dict:
piped = _PIPED_INSTALLER.search(code)
setup = "runner prep (curl … | sh runs an installer downloaded from the internet)" if piped else None
first = "curl … | sh" if piped else None
install, checks, roots, nested, home = None, [], [], False, None
install, checks, roots, nested, home, held = None, [], [], False, None, None
for argv, words, as_root, container in _commands(code, state=state):
nested = nested or container
if container:
continue
got = _prep_one(argv, words, as_root, state)
if got and got[0] == "home":
if got and got[0] in ("home", "home-dot", "home-root"):
home = home or (got[1], " ".join(words[:2]))
target = got[1].split("writes ", 1)[1].split(" into the home folder", 1)[0]
if got[0] == "home-root":
held = held or ("root", f"runs {os.path.basename(words[0])} as root (sudo), which dev ci --run does "
f"not do on this Mac")
elif got[0] == "home-dot":
held = held or ("tangled", f"writes {target} into a dotfile of the home folder next to a check, which "
f"would change this Mac's own settings: write the log inside the checkout")
elif got and got[0] == "setup":
setup = setup or got[1]
first = first or " ".join(words[:2])
Expand All @@ -2545,6 +2563,8 @@ def _classify(piece: dict, state: dict, installs: bool) -> dict:
roots.append(got[1])
elif not _informational(argv, words):
checks.append(words)
if held and (checks or roots): # a check whose output goes into a dotfile or through sudo: it cannot run here
return {"kind": held[0], "why": held[1]}
if home and not (checks or roots): # it only writes into the home folder and reports: the runner's setup
setup, first = setup or home[0], first or home[1]
for script in _substitutions(shellparse.strip_heredocs(code)):
Expand All @@ -2555,7 +2575,7 @@ def _classify(piece: dict, state: dict, installs: bool) -> dict:
inside = dict(state) # it runs in a subshell of its own: a `cd` in it holds for the rest of it only
for argv, words, as_root, container in _commands(script, state=inside):
got = None if container else _prep_one(argv, words, as_root, inside)
if got and got[0] in ("setup", "home"):
if got and got[0] in ("setup", "home", "home-dot", "home-root"):
setup, first, nested = setup or got[1], first or " ".join(words[:2]), True
why = setup or install
if why and (checks or roots) and (nested or piece["subshell"]):
Expand Down Expand Up @@ -4171,7 +4191,7 @@ def _pr_merge(c, a) -> int:
if why:
return refuse(f"not merging #{n}: " + "; ".join(why))
repo, err = gh_json(["repo", "view", c.slug, "--json", "squashMergeAllowed,mergeCommitAllowed,rebaseMergeAllowed,"
"deleteBranchOnMerge,viewerDefaultMergeMethod,autoMergeAllowed"], c)
"deleteBranchOnMerge,viewerDefaultMergeMethod"], c)
if repo is None:
return fail(f"cannot read the repository's merge settings: {err}")
method, err = merge_method(repo, a.method)
Expand All @@ -4181,9 +4201,14 @@ def _pr_merge(c, a) -> int:
if auto and (p.get("mergeStateStatus") or "") in MERGEABLE_NOW: # merge_gate refused it with checks running
auto = False # gh merges it at once anyway: a plain merge, with the branch deleted and its items closed
info(f"#{n} can be merged now (its checks passed and nothing on GitHub holds it): merging it, no auto-merge")
elif auto and repo.get("autoMergeAllowed") is False:
return refuse(f"not merging #{n}: the repository does not allow auto-merge",
f"wait for the checks (dev pr checks {n} --watch), then dev pr merge {n}")
elif auto:
# gh's repo view has no auto-merge field: the REST API's allow_auto_merge says whether GitHub takes the request
settings, err = gh_json(["api", f"repos/{c.slug}"], c)
if not isinstance(settings, dict) or "allow_auto_merge" not in settings:
return fail(f"cannot tell whether the repository allows auto-merge: {err or 'no allow_auto_merge field'}")
if settings["allow_auto_merge"] is not True:
return refuse(f"not merging #{n}: the repository does not allow auto-merge",
f"wait for the checks (dev pr checks {n} --watch), then dev pr merge {n}")
args = ["pr", "merge", str(n), "-R", c.slug, f"--{method}", "--match-head-commit", p.get("headRefOid", "")]
if method == "squash":
conv = title_convention(c)
Expand Down
2 changes: 1 addition & 1 deletion plugin/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devkit",
"version": "26.11.24",
"version": "26.11.25",
"description": "Every repo in its place, every agent on the same page: project context and handoff notes, tasks, a portfolio overview, local-first delivery (one push, one CI run), backend methodology, and managed worktrees.",
"icon": "./assets/icon.png",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion plugin/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devkit",
"version": "26.11.24",
"version": "26.11.25",
"description": "Every repo in its place, every agent on the same page: project context and handoff notes, tasks, a portfolio overview, local-first delivery (one push, one CI run), backend methodology, and managed worktrees.",
"author": {
"name": "Firefly Software Solutions Inc.",
Expand Down
Loading
Loading