Repository navigation
feat(connect): auto-scope default room from git remote org - #66
Merged
Merged
Conversation
When `airc join` is run with no --room flag, derive the default
channel from the git repo at $PWD:
1. Primary — gh org from origin URL (github/gitlab/bitbucket/self-
hosted, whatever owner sits between host and repo). Stable
across machines: useideem/vHSM on a Mac and useideem/authenticator
on a Linux box both default to #useideem without coordinating
paths. Matches airc's "gh OAuth scope IS the trust boundary"
philosophy — the org that owns the code owns the room.
2. Fallback — parent-directory basename, for local-only repos with
no remote. Skipped when parent is $HOME / / / a generic workspace
root (Development, work, src, projects, github, …).
3. Backstop — #general when both signals refuse (non-git dirs).
Explicit --room X still wins. AIRC_NO_AUTO_ROOM=1 disables the
inference entirely. `airc list` continues to show every room on
the account, so switching scope is always one `/join --room <x>`
away.
97/97 integration tests pass — no regression to #general or
--no-general flows.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
3 of 4 tasks
joelteply
added a commit
that referenced
this pull request
Apr 25, 2026
- 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]>
This was referenced Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
airc joinwith no--roomnow picks the default channel based on the git repo at\$PWD— primary signal is the org segment of theoriginURL, fallback is the parent-dir basename, backstop is#general.useideem/*checkout anywhere on disk, on any OS, defaults to#useideem. Anycambriantech/*→#cambriantech. Anyjoelteply/*personal project →#joelteply.--room Xunchanged.AIRC_NO_AUTO_ROOM=1disables.airc list+/join --room <x>cross-scope access unchanged.Why
Today
airc joindumps every tab on the gh account into one#general. If you work across multiple orgs (day job, side project, OSS, client work), that room becomes a firehose — hobbies and work agents trample each other's signal. Segregating by the owner of the code that each tab lives in matches how developers actually think about scope, without requiring anyone to type--roomor remember names.Using the gh org (not the parent dir name) as the primary signal is deliberate: path conventions vary per dev (`
/Development/`, `/work/`, `C:\work`), but the remote URL is canonical. Joel on Mac and Brian on Linux agree on#useideemfor free.Behavior
~/Development/ideem/vHSM#useideem~/Development/ideem/authenticator#useideem~/Development/cambrian/airc#cambriantech~/personal-project(no remote)#personal-project/tmp,\$HOME, non-git dirs#generalTest plan
test/integration.sh— 97/97 passed (room / part / handshake / gist-discovery unaffected)main🤖 Generated with Claude Code