Skip to content

docs+skills(join): align with auto-scope, add narrate-events guidance, scrub PII - #67

Merged
joelteply merged 3 commits into
canaryfrom
feat/join-skill-auto-scope-clarity
Apr 25, 2026
Merged

joelteply merged 3 commits into
canaryfrom
feat/join-skill-auto-scope-clarity

Conversation

@joelteply

@joelteply joelteply commented Apr 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Post-#66 docs+skills alignment. Three things observed during the auto-scope rollout demo:

  1. Skill file stale: examples, frontmatter, and Monitor description guidance still said #general. Updated throughout. New §2b "Narrate monitor events (critical UX)" — Claude Code's UI only shows the Monitor description per event, not the payload, so agents MUST echo events in chat or the user sees a wall of identical lines.

  2. README stale: the "Magic" bullet and table row still pitched "auto-#general." Added a top-level Auto-scope — the default room section with the rule, a worked example (~/work/my-org/* + ~/work/cambriantech/*), and a "scoping is the default, not a wall" subsection making cross-room access explicit (airc list, airc join --room <other>, AIRC_NO_AUTO_ROOM=1).

  3. PII scrub: original rollout README bullet + commit trail used joelteply, useideem, "Joel's Mac / Brian's Linux box" — scrubbed to generic my-org / your-username / cambriantech examples.

Plus one troubleshooting bullet: after airc canary / airc update, the running monitor still uses the old binary; airc teardown && airc join to pick up new code. Bit the authenticator-side Claude during the rollout demo.

Why

Auto-scope worked cleanly end-to-end (two tabs, two repos, same org → paired in #useideem, zero flags). But a user watching Claude Code's UI during that demo saw almost nothing meaningful because every Monitor event rendered as Monitor event: "airc" and nobody had told the agent to narrate. Fixing the skill forces narration; fixing the docs matches the story told to a fresh reader.

Pitch line for the Auto-scope section: eliminates noise and prioritizes meaningful collaborative defaults. Your work org's repos converge in one channel, your side projects converge in another, you don't think about room names.

Test plan

  • Skill frontmatter + markdown parse
  • README cross-link anchor #auto-scope--the-default-room resolves
  • PII scan clean — only cambriantech remains (Joel's public org, self-identified OK)
  • Next /join invocation narrates events as prescribed in §2b

🤖 Generated with Claude Code

Refine the /join skill after the auto-scope-from-git-org feature
landed (PR #66). Three changes:

1. Generalize "#general" → "#<room>" throughout. The skill described
   the pre-auto-scope world where every airc join landed in #general;
   the actual output now prints "Auto-scoped: #useideem ...", "Found
   #useideem on your gh account → joining", etc. Examples updated
   to match.

2. Add explicit Monitor description guidance: description="airc"
   (short, stable). Previous skill wording encouraged agents to
   put "auto-#general" in the description — which is wrong
   post-feature AND looks identical across every event in the UI,
   so users couldn't tell what was happening.

3. New §2b "Narrate monitor events (critical UX)". Claude Code's
   UI only renders the Monitor description per event; event bodies
   don't reach the user unless the agent echoes them. Skill now
   explicitly directs: one short chat line per event, paraphrase
   peer messages, stay silent on routine noise, surface state
   changes. This was the UX regression observed during the rollout
   — two tabs paired in #useideem but the user saw only a wall of
   identical "Monitor event" lines with no content.

Plus one troubleshooting bullet: after `airc canary` / `airc update`,
the running monitor still uses the old binary; teardown + rejoin
to pick up new code. Exactly what bit the authenticator-side Claude
on Monday demo morning.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings April 25, 2026 02:35
- New top-level section "Auto-scope — the default room" with:
    * The rule (git remote owner → parent-dir → #general)
    * Worked example with a generic ~/work/my-org/* + ~/work/cambriantech/* layout
    * "Scoping is the default, not a wall" subsection explaining airc list
      + airc join --room <other> + AIRC_NO_AUTO_ROOM=1 for cross-room hops
- Swap the old "The Magic" bullet from a verbose inline description
  to a short pitch + link into the new section.
- Update "Same gh account" setup to reference the auto-scope room
  rather than saying "hosts #general" (now only true when auto-scope
  falls through).
- Table row + skill descriptions + quick-start comments: rename
  "Auto-#general" to "Auto-scope" throughout.

Also scrub the skill file of PII from the original rollout (per
Joel): no joelteply/useideem references, no "Joel's Mac / Brian's
Linux box" phrasings. Generic my-org / your-username examples +
cambriantech where a concrete name helps (public, self-promoted).

Pairs with the auto-scope feature landed in #66; completes the
"make the docs match the behavior" pass that the rollout demo
surfaced.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@joelteply joelteply changed the title skills(join): align with auto-scope + add narrate-events guidance docs+skills(join): align with auto-scope, add narrate-events guidance, scrub PII Apr 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the /airc:join skill documentation to reflect the new auto-scope room resolution behavior and to improve UX by requiring narration of Monitor events in Claude Code.

Changes:

  • Updates default-room guidance from “always #general” to auto-scope based on git remote owner (with #general fallback).
  • Adds explicit guidance to keep Monitor description short/stable (e.g. "airc") and introduces a new “Narrate monitor events” section.
  • Adds troubleshooting guidance for needing to restart airc join after airc canary / airc update to pick up the new binary.
Comments suppressed due to low confidence (2)

skills/join/SKILL.md:32

  • This says gh is required with “no graceful degradation”, but airc intentionally falls back to long-invite-only behavior when gh is missing or unauthed (see cmd_connect() comments + runtime probe). Recommend rewording to something like: gh is required for gist-backed room auto-discovery/listing, but join/connect can still work via explicit invite strings without gh.
`gh` CLI is **required**, not optional. The whole substrate is built on it. If the user doesn't have it: `brew install gh && gh auth login`.

## 1. Install if needed

If `airc` is not on PATH:
```bash
curl -fsSL https://raw.githubusercontent.com/CambrianTech/airc/main/install.sh | bash

If gh is not on PATH or not authed: install + gh auth login. There's no graceful degradation here; the whole point of the substrate is that gh is the comm layer.

**skills/join/SKILL.md:53**
* Given the new guidance that Monitor `description` should be short/stable for UX, the subsequent Monitor examples omit `description="airc"`. That inconsistency makes it easy to copy the examples and end up with the “wall of identical events” problem this doc is trying to prevent. Consider adding `description="airc"` to the named-room / mnemonic / gist-id / invite examples too for consistency.

Named room (non-general channel):

Monitor(persistent=true, command="airc join --room project-x")
</details>



---

💡 <a href="/CambrianTech/airc/new/main?filename=.github/instructions/*.instructions.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add Copilot custom instructions</a> for smarter, more guided reviews. <a href="https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn how to get started</a>.

Comment thread skills/join/SKILL.md
---
name: airc:join
description: Join AIRC. Default = auto-join #general on the user's gh account (host it if nobody's there yet). Optional arg = mnemonic, gist id, room name, or inline invite.
description: Join AIRC. Default = auto-scope to the room matching the current git repo's owner (e.g. #my-org, #cambriantech); falls back to #general for non-git dirs. Optional arg = mnemonic, gist id, room name, or inline invite.

Copilot AI Apr 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The frontmatter description says the default room matches the git repo’s owner and otherwise falls back to #general for non-git dirs, but it omits the actual second-stage fallback for git repos without a parseable origin: airc falls back to the repo’s parent directory name (see infer_default_room() in airc). Consider updating this description to mention the parent-dir fallback so the skill summary matches current behavior.

Copilot uses AI. Check for mistakes.
Comment thread skills/join/SKILL.md
Defaults:
- `airc join` (no args) → auto-join `#general` on the user's gh account. If nobody's hosting it yet, this agent becomes the host.
- Same gh account = automatic mesh. Zero strings ever passed between tabs/machines. Just run `airc join`.
- `airc join` (no args) → auto-scope to the room matching the current git repo's owner: a `github.com/my-org/*` checkout lands in `#my-org`, a personal `github.com/your-username/*` side project lands in `#your-username`. Non-git dir or unparseable remote → `#general` (the lobby). If nobody's hosting the resolved room yet on the user's gh account, this agent becomes the host.

Copilot AI Apr 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bullet says “Non-git dir or unparseable remote → #general”, but airc join will still auto-scope in a git repo even when the remote org can’t be parsed by falling back to the parent-dir heuristic (infer_parent_room()). The “#general” fallback only happens when both org + parent heuristics refuse (or when not in a git repo).

Suggested change
- `airc join` (no args) → auto-scope to the room matching the current git repo's owner: a `github.com/my-org/*` checkout lands in `#my-org`, a personal `github.com/your-username/*` side project lands in `#your-username`. Non-git dir or unparseable remote → `#general` (the lobby). If nobody's hosting the resolved room yet on the user's gh account, this agent becomes the host.
- `airc join` (no args) → auto-scope to the room matching the current git repo's owner: a `github.com/my-org/*` checkout lands in `#my-org`, a personal `github.com/your-username/*` side project lands in `#your-username`. In a git repo, if the remote owner can't be parsed, AIRC may still auto-scope via the parent-dir heuristic; `#general` (the lobby) is the fallback for non-git dirs or when neither auto-scope heuristic resolves a room. If nobody's hosting the resolved room yet on the user's gh account, this agent becomes the host.

Copilot uses AI. Check for mistakes.
Comment thread skills/join/SKILL.md
@@ -34,14 +35,17 @@ If `gh` is not on PATH or not authed: install + `gh auth login`. There's no grac

AIRC auto-detects the scope — if you're inside a git repo, identity lives at `<repo-root>/.airc/`; otherwise `~/.airc/`. No env vars needed.

Copilot AI Apr 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scope location described here doesn’t match current airc behavior. airc stores state under $PWD/.airc by default (see detect_scope() in airc), not <repo-root>/.airc for git repos nor ~/.airc for non-git dirs (unless AIRC_HOME is explicitly set). Updating this will prevent users from forming the wrong mental model about where identity/state lives.

Suggested change
AIRC auto-detects the scope — if you're inside a git repo, identity lives at `<repo-root>/.airc/`; otherwise `~/.airc/`. No env vars needed.
AIRC stores state under `$PWD/.airc` by default. Room selection may still auto-resolve from the current git repo's owner, but the scope location is based on the current working directory unless `AIRC_HOME` is explicitly set.

Copilot uses AI. Check for mistakes.
Comment thread skills/join/SKILL.md
Keep the Monitor `description` short and stable — `"airc"` is ideal. DO NOT encode the room name ("airc join #my-org", "airc join (auto-#general)", etc.). The room is resolved at runtime based on the current git repo and the user's UI renders the description once per event, so anything clever-looking just goes stale the moment the user `cd`s to another repo. Event bodies land in your tool-result stream — narrate them per §2b.

Outcomes the monitor will print on its first events:
- `Auto-scoped: #<room> (from git org; override with --room or AIRC_NO_AUTO_ROOM=1)` — the resolver fired; `<room>` is the owner segment of `origin` (e.g. `my-org`, `cambriantech`) or the parent-dir fallback.

Copilot AI Apr 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This “Auto-scoped:” example hard-codes “from git org”, but airc prints the actual source (org or parent) in that position (e.g. “from git parent” when falling back). Suggest making the example reflect the real output format (e.g. from git <org|parent>) to avoid confusing copy/paste debugging.

Suggested change
- `Auto-scoped: #<room> (from git org; override with --room or AIRC_NO_AUTO_ROOM=1)` — the resolver fired; `<room>` is the owner segment of `origin` (e.g. `my-org`, `cambriantech`) or the parent-dir fallback.
- `Auto-scoped: #<room> (from git <org|parent>; override with --room or AIRC_NO_AUTO_ROOM=1)` — the resolver fired; `<room>` is the owner segment of `origin` (e.g. `my-org`, `cambriantech`) or the parent-dir fallback.

Copilot uses AI. Check for mistakes.
The mental-model table appears very early in the README (§"The
mental model: IRC..."), so a stale "airc join (auto-joins #general)"
row misleads first-time readers before they ever reach the
Auto-scope section. Replace with a one-line description that
matches the feature and anchors into #auto-scope--the-default-room
for the full worked example.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@joelteply
joelteply merged commit 11486bd into canary Apr 25, 2026
1 check passed
@joelteply
joelteply deleted the feat/join-skill-auto-scope-clarity branch April 25, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants