opencode-sessions

Maps OpenCode session storage locations and exports session bundles to NDJSON and SESSION.md.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/alexgorbatchev/ai-registry --skill opencode-sessions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-sessions
Source: https://github.com/alexgorbatchev/ai-registry/tree/main/harnesses/opencode/skills/opencode-sessions
Command: npx skills add https://github.com/alexgorbatchev/ai-registry --skill opencode-sessions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bun:sqlite, and includes scripts (resource) components.

What problem does it solve?

OpenCode stores and indexes session data across local stores, workspaces, and project contexts, and this skill provides clear guidance on where to locate, inspect, and audit those sessions.

Core Features & Use Cases

  • Locate root and descendant sessions within the OpenCode SQLite store.
  • Inspect project sessions, workspaces, permissions, and session shares for auditing and analysis.
  • Export deep analysis bundles via the bundled export script to NDJSON and SESSION.md formats for offline review.

Quick Start

Use bun scripts/export.ts <session-id> to export a complete session bundle for analysis.

Frequently Asked Questions about opencode-sessions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I locate OpenCode session data stored in SQLite for a specific project?

To locate OpenCode session data, you can map the local SQLite storage locations to discover root and descendant sessions within a specific project or repository context. This allows quick discovery of workspaces, permissions, and shares.

How do I export OpenCode session data to NDJSON for offline analysis?

Export OpenCode session data to NDJSON by running the bundled export script with a specific session ID. This workflow maps storage locations and outputs a structured bundle containing core store paths and related entities.

Can I use bun to inspect OpenCode workspaces and session shares?

Yes, you can use bun to inspect OpenCode workspaces and session shares. The skill relies on the bun:sqlite dependency to locate and audit project sessions, permissions, and shares across the repository context.

What is the best way to audit OpenCode permissions and session metadata?

The best way to audit OpenCode permissions and session metadata is to run the export script, which generates a SESSION.md file. This structured bundle reports core store paths and related entities for comprehensive analysis.

Does the OpenCode session export workflow support locating descendant sessions?

Yes, the OpenCode session export workflow supports locating descendant sessions. It maps the SQLite store to identify both root and descendant sessions, applying project and repository context boundaries for accurate discovery.