Claude Session Tracker: Auto-Save Claude Code Sessions to GitHub Issues

✍️ OpenClawRadar📅 Published: March 16, 2026🔗 Source
Claude Session Tracker: Auto-Save Claude Code Sessions to GitHub Issues
Ad

A developer has released claude-session-tracker, a tool that automatically saves Claude Code sessions to GitHub Issues to preserve conversation history that would otherwise be lost when sessions end.

How It Works

The tool creates one GitHub Issue per Claude Code session, automatically linked to a GitHub Projects board. Every prompt and response gets logged as issue comments with timestamps. The issue title auto-updates with the latest prompt for easy scanning.

Installation and Setup

Install with: npx claude-session-tracker

The installer handles everything: creates a private repository, sets up a Projects board with status fields, and installs Claude Code hooks globally. It requires the GitHub CLI (gh) - if missing, the installer detects this and walks you through setup. The installer is idempotent, so re-running just reuses existing config without creating duplicates.

Key Features

  • Creates an issue per session, linked to your Projects board
  • Logs every prompt/response with timestamps
  • Auto-updates issue title with latest prompt for easy scanning
  • claude --resume reuses the same issue
  • Auto-closes idle sessions (30 minute default)
  • Pause/resume functionality for sensitive work
Ad

Design Decisions

The tool doesn't use MCP (Model Context Protocol) to avoid consuming context window tokens for session tracking. Everything runs through Claude Code's native hook system. All hooks fire asynchronously with zero impact on Claude's response latency.

Why GitHub Over Other Platforms

The developer initially built integrations for Notion, Linear, and Plane but encountered two main issues: linking sessions back to PRs was never smooth, and API rate limits meant silently dropped entries since the tool fires on every single prompt and response. GitHub's API rate limits are generous enough that a single user's session traffic won't come close to hitting them.

This type of tool is useful for developers who want to maintain searchable history of their Claude Code sessions and trace back why specific decisions were made in PRs, since the session lives as a GitHub Issue in the same ecosystem where you can cross-reference PRs naturally.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also