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)"; }