@remixhq/claude-plugin
v0.1.46
Published
Claude Code plugin for Remix collaboration workflows
Downloads
2,885
Readme
@remixhq/claude-plugin
Claude Code plugin for Remix collaboration workflows.
Install
/plugin marketplace add Remix/remix-claude-plugin
/plugin install remix@remixUsage
/reload-pluginsSubscription tier (plan) capture
When a Stop hook records a turn, the plugin attempts to resolve the user's
Claude Code subscription tier (e.g. pro, max, team, enterprise) and
attaches it to agent.plan on the recorded turn. The dashboard reads this
field to display "Charged on Max" alongside per-turn cost.
How it's resolved (no permission prompts):
- The plugin spawns
claude auth status --jsonand parsessubscriptionTypefrom the result. Because this command runs as theclaudebinary itself, macOS treats it as the keychain entry's owner and returns the data silently. - The result is cached at
${REMIX_COLLAB_STATE_ROOT:-~/.remix/collab-state}/claude-auth-cache.jsonfor one hour (five minutes on failure), so most Stop hooks read the cache file (~1 ms) rather than spawningclaude(~150–500 ms). - Failure modes (
claudenot on PATH, non-zero exit, malformed JSON, API-key-only auth, logged-out account) all degrade toagent.plan = nullwith no exception thrown.
Privacy posture:
- Only
subscriptionTypeis captured. Email, organization, and account IDs are intentionally NOT recorded, becauseagent.planships in the per-turnworkspace_metadatablob that's visible to every collaborator who can view the project's timeline.
Configuration:
REMIX_CLAUDE_AUTH_TIMEOUT_MS— override the spawn timeout (default5000).REMIX_COLLAB_STATE_ROOT— override the cache directory (default~/.remix/collab-state).
