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

@tisyn/codex

v0.3.1

Published

`@tisyn/codex` adapts OpenAI Codex to the portable `@tisyn/code-agent` contract.

Readme

@tisyn/codex

@tisyn/codex adapts OpenAI Codex to the portable @tisyn/code-agent contract.

It gives Tisyn workflows a Codex-backed coding-agent implementation without forcing workflow code to know whether Codex is reached through the TypeScript SDK or the codex exec CLI.

Where It Fits

@tisyn/codex occupies the same role for Codex that @tisyn/claude-code does for Claude Code.

  • @tisyn/code-agent defines the portable coding-agent contract.
  • @tisyn/codex implements that contract for Codex.
  • @tisyn/transport installs the returned binding into a local or remote Tisyn scope.

Use this package when you want Codex to satisfy the standard coding-agent contract used by workflows.

What It Provides

The public surface exported from src/index.ts includes:

  • createSdkBinding — create a LocalAgentBinding backed by @openai/codex-sdk
  • createExecBinding — create a LocalAgentBinding backed by codex exec --json
  • CodexSdkConfig — configuration for the SDK-backed adapter
  • CodexExecConfig — configuration for the CLI-backed adapter
  • SessionHandle, PromptResult, ForkData — portable contract types re-exported from @tisyn/code-agent

Adapter Modes

SDK binding

createSdkBinding() is the conforming adapter.

It creates persistent Codex threads and maps the portable contract onto SDK operations such as:

  • session creation
  • streamed prompt execution
  • session close

This is the adapter to use when prompts in the same session must preserve conversation history.

Exec binding

createExecBinding() is a convenience adapter around codex exec --json.

It is intentionally weaker:

  • each prompt runs in its own subprocess
  • no conversation history is preserved between prompts
  • it does not fully satisfy the portable CodeAgent contract's sequential-session expectations

It is useful for CI-like workflows where each prompt is independent, but it is not the contract-faithful backend.

Relationship to Other Packages

Boundaries

@tisyn/codex does not:

  • define the shared coding-agent contract
  • define the Tisyn protocol or session model
  • guarantee every Codex invocation mode is equally capable

It exists to make Codex usable behind the CodeAgent contract, with the SDK adapter as the primary conforming path.