AstroQore

Agent Session Kit — AI skill for Claude Code

AI community

Swift package that reads the local session stores of AI coding agents (Claude Code, Codex, Cursor, Grok Build, AntiGravity) and tails them live; MCP Unix-socket/stdio transport.

How to install Agent Session Kit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open AstroQore/agent-session-kit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Session Kit does

Swift package that reads the local session stores of AI coding agents (Claude Code, Codex, Cursor, Grok Build, AntiGravity) and tails them live; MCP Unix-socket/stdio transport.

Alternatives in AI

  • Tokentab — A CLI that reads Claude Code, Codex, and Gemini CLI session logs and works out how much they cost, by model, p 226 ★
  • SwiftAgent — A type-safe, declarative AI agent framework for Swift 100 ★
  • Opendray — Self-hosted gateway for Claude Code, Codex, Antigravity, Grok Build, OpenCode 59 ★

README

agent-session-kit

A Swift package that reads the session stores AI coding agents leave on your Mac, and serves them over MCP.

Every coding agent keeps a local record of what you asked it — Codex writes rollout JSONL, Claude Code writes transcript JSONL, Cursor and AntiGravity write SQLite databases another process holds open. Each one has its own layout, its own idea of a "session id", and its own way of spelling a timestamp. This package hides all of that behind one adapter protocol, a searchable index, and a local MCP transport.

No third-party dependencies. Foundation, Darwin, and the system SQLite.

.package(url: "https://github.com/AstroQore/agent-session-kit", exact: "0.3.0")

`exact:` while the package is `0.x` — see [Versioning and releases](#versioning-and-releases).

Targets

Target What it is
AgentSessionKit Discovery, parsing, deletion planning, the FTS5 session index, and the MCP Unix-socket / stdio transport.
AgentSessionLive Live views over the same stores — the unified event model, the state reducer, and the tailing protocols.

Requires macOS 26 and Swift 6.2.

Architecture

Two targets, one boundary. `AgentSessionKit` answers "what is on disk right now" — one pass, one snapshot, no observers: discovery, parsing, the FTS5 index, deletion planning, and the MCP transport. `AgentSessionLive` is everything that *watches*: FSEvents, incremental tailing, the unified event model, and the state reducer. It depends on the Kit; the Kit knows nothing about it. If a type debounces, polls, or holds a cursor, it belongs in Live.

The package knows about the **usage axis** — the harness that produced a session — and deliberately nothing about the **billing axis** (quotas, plans, prices, companies). A host that models both writes that mapping in its own module.

There are **no third-party dependencies**: Foundation, Darwin, Dispatch, `os.log`, `CryptoKit`, and the system SQLite. That is a deliberat