From bbcc5992e6bd84645aaf960a18b768609dc72f95 Mon Sep 17 00:00:00 2001 From: Michael Vawter Date: Tue, 6 Oct 2026 09:34:46 -0400 Subject: [PATCH] fix(coord): COORD_HUMAN accepts a leading @ The comment header adds its own @, so COORD_HUMAN="@login" produced "human: @@login". Both scripts now strip one leading @, and SKILL.md says either form works. Closes #128. Co-Authored-By: Claude Opus 5.5 --- .claude/skills/coordinate/SKILL.md | 2 +- .claude/skills/coordinate/scripts/coord.ps1 | 1 + .claude/skills/coordinate/scripts/coord.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.claude/skills/coordinate/SKILL.md b/.claude/skills/coordinate/SKILL.md index 54ddfb6..9238a01 100644 --- a/.claude/skills/coordinate/SKILL.md +++ b/.claude/skills/coordinate/SKILL.md @@ -68,7 +68,7 @@ unattended worker whose token should reach only this repo) signs for its human with `COORD_HUMAN`, so comments still read `human: @`: ```bash -export COORD_HUMAN="your-github-login" # defaults to the gh account +export COORD_HUMAN="your-github-login" # with or without @; defaults to the gh account ``` ## Start of every session diff --git a/.claude/skills/coordinate/scripts/coord.ps1 b/.claude/skills/coordinate/scripts/coord.ps1 index b916572..e997ee1 100644 --- a/.claude/skills/coordinate/scripts/coord.ps1 +++ b/.claude/skills/coordinate/scripts/coord.ps1 @@ -35,6 +35,7 @@ if ($LASTEXITCODE -ne 0) { Die 'gh is not authenticated; run: gh auth login' } $ME = (& $GH api user | ConvertFrom-Json).login # An agent with its own GitHub account signs for its human; defaults to the account itself. $HUMAN = if ($env:COORD_HUMAN) { $env:COORD_HUMAN } else { $ME } +$HUMAN = $HUMAN.TrimStart('@') # accept "@login" too: the header adds its own @ function Gh { & $GH @args diff --git a/.claude/skills/coordinate/scripts/coord.sh b/.claude/skills/coordinate/scripts/coord.sh index 80bbab4..a22e723 100644 --- a/.claude/skills/coordinate/scripts/coord.sh +++ b/.claude/skills/coordinate/scripts/coord.sh @@ -52,6 +52,7 @@ gh auth status >/dev/null 2>&1 || die "gh is not authenticated; run: gh auth log ME="$(gh api user --jq .login)" # An agent with its own GitHub account signs for its human; defaults to the account itself. HUMAN="${COORD_HUMAN:-$ME}" +HUMAN="${HUMAN#@}" # accept "@login" too: the header adds its own @ # ---------- helpers ---------- header() { printf '**%s** | agent: %s | human: @%s | at: %s' "$1" "$AGENT" "$HUMAN" "$(now)"; }