Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Walma-Labsv0.1.0Apache-2.0In 1 marketplace
Identifies the git repository each Claude Code session works in — reliable repo attribution and governance for your AI Hub. Fire-and-forget; never blocks or denies a tool call.
Run automatically on Claude Code events. Claude doesn't decide.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that registers your workspace with your organization's AI
Hub. It ships one PreToolUse hook that reads the org-qualified git remote
of the current session and reports it to the AI Hub's /signals endpoint, keyed by
the same subscription key the CLI already uses. This gives AI Hub admins reliable
repo attribution and policy — something the AI Hub can't get from the request stream
alone (it only sees the working-directory name, not the org-qualified remote).
async, so Claude Code never waits on
it; it also always exits 0 and never denies a tool call.~/.claude/plugins/ like any plugin.git, run via execFile (no shell), so there's nothing OS-specific to quote.{ remote_url, repo (owner/repo), branch } — never file
contents, tool inputs, or command output. A non-git directory sends nothing.On each tool call, to POST <ai-hub>/signals with header x-api-key: <subscription key>:
{
"type": "repo",
"session_id": "<claude session id>",
"ts": "2026-06-12T10:03:48.262Z",
"hook_version": "0.1.0",
"payload": { "remote_url": "https://github.com/your-org/your-repo.git", "repo": "your-org/your-repo", "branch": "main" }
}
When the session isn't in a git repo (e.g. Claude Code launched from a non-repo directory), it sends a lightweight heartbeat instead — so the AI Hub can tell "plugin installed & running" from "not installed", independent of repo work:
{ "type": "heartbeat", "session_id": "<claude session id>", "ts": "…", "hook_version": "0.2.0", "payload": {} }
The envelope is deliberately generic (type + opaque payload): future signal kinds
are a new type, not a new endpoint or a new plugin.
/plugin marketplace add Walma-Labs/walma-marketplace
/plugin install walma-repo-context@walma
The hook reads its configuration from the environment the CLI already has:
| Variable | Purpose | Default |
|---|---|---|
ANTHROPIC_BASE_URL | AI Hub base; /signals is derived from it | — (required unless WALMA_SIGNALS_URL set) |
ANTHROPIC_API_KEY | subscription key, sent as x-api-key | — (required unless WALMA_GATEWAY_KEY set) |
WALMA_SIGNALS_URL | explicit signals endpoint override | derived from ANTHROPIC_BASE_URL |
WALMA_GATEWAY_KEY | explicit key override | ANTHROPIC_API_KEY |
WALMA_HOOK_DEBUG=1 | log what the hook did to stderr (claude --debug) | off |
If neither a signals URL nor a key is resolvable, the hook silently does nothing — so it's safe to enable everywhere; it only acts when the AI Hub env is present.
This plugin lives in the walma marketplace (repo root), one plugin among a
growing catalog. See that README for how the marketplace is added and served. In short:
/plugin marketplace add Walma-Labs/walma-marketplace then
/plugin install walma-repo-context@walma. The repo is public, so no GitHub access grant is
needed. Pin a release with @<tag> if you want./plugin marketplace add <path-to-the-marketplace-root>.GATEWAY_ONBOARDING_MARKETPLACE_URL=Walma-Labs/walma-marketplace +
GATEWAY_ONBOARDING_PLUGIN=walma-repo-context@walma, walking an un-instrumented user
through those two commands in-conversation..claude-plugin/plugin.json plugin manifest (points hooks -> hooks/hooks.json)
hooks/hooks.json PreToolUse, async, exec-form: node scripts/repo-signal-hook.mjs
scripts/repo-signal-hook.mjs the hook (git remote -> /signals)
(The marketplace catalog lives at the repo root in .claude-plugin/marketplace.json,
not in this plugin dir.)
claude plugin validate <path-to-the-marketplace-root>
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub walma-labs/walma-marketplace --plugin walma-repo-contextPlugins from other owners that cover similar ground