
PostHog Claude Code Share Plugin
https://github.com/posthog/claude-code-share-plugin- Category
- AI Agents
- Rank
- No. 1648Tools index
- Pricing
- Open Source
- Type
- TOOL
- Builder
- posthog
- GitHub
- 5 stars
- Latest release
- v0.0.1
- Date
About
A Claude Code plugin that adds a /share command, letting you share conversations and sessions directly from the CLI.
What it does
It turns Claude Code’s JSONL logs into readable Markdown, groups entries by user and assistant, hides tool details inside collapsible sections, then commits the result to a configured GitHub repository.
Why it's ranked here
A focused, inspectable exporter with useful formatting and simple GitHub-backed storage. Its automatic publishing workflow is practical, but privacy exposure, hardcoded defaults, and a configuration precedence mismatch require care.
What's good
It removes sharing-command artifacts, preserves tool inputs in collapsible blocks, supports descriptive titles, organizes exports by GitHub username, and works with private repositories through existing GitHub authentication.
Tradeoffs
Sharing immediately commits and pushes potentially sensitive session content without a preview step. Each run clones the target repository. Branch and destination defaults are fixed, despite broader configurability claims. Documentation also reverses the implemented configuration precedence.
How to use it well
Use it for teams that want versioned, readable records of Claude Code work in a controlled private repository. Review generated content before distributing links. It does not provide redaction, approval workflows, or a broader collaboration platform.
Technical notes+
commands/share.md invokes scripts/share_session.py through Python. The script finds the newest JSONL log for the current project, parses nested message records, filters share-related content, renders tool calls with HTML <details>, and clones into /tmp/claude-share-temp before committing and pushing. get_config() reads ~/.claude/share-plugin-config.json before falling back to CLAUDE_SHARE_REPO, contrary to the README’s precedence claim. install.sh validates authenticated gh and claude commands, writes configuration, registers the marketplace, and installs the plugin. .claude-plugin/plugin.json and .claude-plugin/marketplace.json provide plugin and marketplace metadata.
Observed
- License
- MIT
- Primary language
- Python, with a Bash installer
- Install surface
- Claude Code plugin marketplace, local marketplace, or one-line installer
- Interface
- Claude Code slash command with an optional description
- Prerequisites
- Python 3.6 or newer, authenticated GitHub CLI, Claude Code, and a target GitHub repository
- Storage format
- Markdown files committed and pushed to a GitHub repository
- Core structure
- One Python script handles discovery, conversion, Git operations, and link output
Read from README.md, scripts/share_session.py, LICENSE, CLAUDE.md, install.sh, CONTRIBUTING.md, commands/share.md, .claude-plugin/plugin.json, .claude/settings.example.json, .claude-plugin/marketplace.json.
What it can do
Share conversations from CLI
Claude conversation or chat session → Shareable link or shared conversation
Share sessions directly from command line
Active Claude session → Shared session accessible to others
Execute share command
/share command with conversation data → Shared conversation URL or reference
Export Claude interactions for sharing
Claude conversation history → Exportable conversation format
Tags
Tech Stack
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.