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 Bellows-AIv0.1.0MITIn 1 marketplace
Attributes Claude Code token usage to the git repo and branch each session runs in on a local Factory Stats dashboard. Hooks at session start, after Bash calls and at session end send only repo and branch, and it claims paths, prompts and file contents never leave your machine.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
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 posts session → (repo, branch) to a Factory dashboard, so token usage
is attributed to the repo. In-container twin: docker/executor-common/branch-reporter.cjs.
| Concern | Code |
|---|---|
| The report: payload, endpoint, credential, timeout, sampling | scripts/session-telemetry.mjs |
Which events fire it (SessionStart, PostToolUse on Bash, SessionEnd) | hooks/hooks.json |
The route it posts to (/api/sessions/branch) | server/src/routes/ingest.ts |
session.id; this hook is the only repo link. Without it a session is
counted in sessionsWithoutHook, not the totals — so OTEL_METRICS_INCLUDE_SESSION_ID must stay
true (the default).OTEL_LOG_* content switches off — docs/security.md.cwd and transcript_path are read locally and never transmitted. No prompts, no file
contents, no diff, no identity.AUTH_MODE=github, FACTORY_STATS_TOKEN must be a personal access token (fat_…); the
organization comes from the credential, never from the repo the report names. Organization
tokens (oat_…) are rejected.~/.claude/settings.json only — a repo's .claude/settings.json is tracked.
A credentialed report goes only to https:// or an explicit loopback host; otherwise it is dropped.git.claude plugin marketplace add /path/to/factory-ai
claude plugin install agent-telemetry@factory-ai
claude plugin validate ./plugins/agent-telemetry # malformed hooks.json = plugin loads, hooks don't
FACTORY_STATS_URL overrides the endpoint (default http://127.0.0.1:8080). Token counts come from
Claude Code's own OTLP export, configured separately — copy the env block of this repo's
.claude/settings.json.
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 bellows-ai/bellows --plugin agent-telemetryPlugins from other owners that cover similar ground