npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-teleport

v0.3.1

Published

Convert AI coding agent sessions between formats. OpenCode, Claude Code, and more.

Readme

agent-teleport

License: MIT Bun TypeScript Tests GitHub release

Convert AI coding agent sessions between formats, switch between agents without losing conversation history

Currently supports: OpenCode → Claude Code

Why?

When you switch between AI coding agents (OpenCode, Claude Code, Codex, etc.), all conversation history is lost. agent-teleport reads sessions from one agent's storage and writes them into another agent's format, so you can pick up right where you left off.

Install

Requires Bun >= 1.0.

# Install globally
bun install -g agent-teleport

# Or run directly
bunx agent-teleport

Standalone binary

git clone https://github.com/tornikegomareli/agent-teleport.git
cd agent-teleport
bun install
bun run build  # produces ./agent-teleport binary

Usage

List sessions

# List all OpenCode sessions
agent-teleport list

# Filter by project directory
agent-teleport list -d /path/to/project

Sessions are grouped by project directory. Main sessions show with , subagent sessions are nested underneath with .

Convert sessions

# Interactive session picker
agent-teleport convert

# Convert a specific session
agent-teleport convert <session-id>

# Convert all sessions for a project
agent-teleport convert --all -d /path/to/project

# Preview without writing files
agent-teleport convert <session-id> --dry-run

# Read from OpenCode export JSON instead of DB
agent-teleport convert --from-json exported-session.json

# Custom database path
agent-teleport convert <session-id> --db /path/to/opencode.db

After converting, open Claude Code in the same project directory and run it with --continue flag.

Flags

| Flag | Description | |---|---| | --from | Source format (default: opencode) | | --to | Target format (default: claude-code) | | --db | Override OpenCode database path | | --from-json | Read from OpenCode export JSON file | | --all | Convert all sessions | | -d, --directory | Filter by project directory | | --dry-run | Print JSONL output without writing files | | -v, --verbose | Show detailed conversion info |

How it works

agent-teleport uses a pluggable reader/writer architecture with a common intermediate representation (IR):

Reader(source) → IR → Writer(target)

Adding support for a new agent only requires implementing a reader, a writer, or both — all existing conversions work automatically.

What gets converted

  • User messages and assistant responses
  • Tool calls (Bash, Read, Write, Edit, Glob, Grep, etc.) with inputs and outputs
  • Thinking/reasoning blocks with cryptographic signatures
  • Multi-step assistant turns (split by step boundaries)
  • Token usage metadata and model information

Edge cases handled

  • Pending/running tool calls → converted as error: [Tool execution was interrupted]
  • Compaction parts → skipped (internal to OpenCode context management)
  • Subtask/agent parts → included as text annotation
  • File attachments → converted to text: [Attached file: <filename>]
  • Error-only messages with no content → skipped

Supported agents

| Agent | Reader | Writer | |---|---|---| | OpenCode | Yes | — | | Claude Code | — | Yes | | Codex | Planned | Planned | | Cursor | Planned | Planned | | Aider | Planned | Planned |

Contributing

See CONTRIBUTING.md for how to add readers/writers for new agents.

License

MIT