codex-toys/README.md
matamune 7f4b346d81
Some checks failed
ci / check (push) Failing after 22s
Rename codex-flows to codex-toys
2026-05-29 23:26:26 +00:00

4.4 KiB

codex-toys

Codex app-server clients, turn automation, toybox tools, and repo-native workspace operations.

This repository is a monorepo. The npm package users should install is codex-toys, which publishes app-server client APIs, turn automation helpers, toybox helpers, the codex-toys CLI, and runnable proxy bins. The full user documentation lives in the Tome docs site under docs/pages.

Start Here

Repo Map

  • packages/codex-client: codex-toys, the app-server client, transports, turn automation helpers, toybox helpers, CLI, auth helpers, workbench reducers, and generated app-server protocol types.
  • automations: plugin-native turn automation examples that run code before skipping, starting, waiting on, or composing native Codex turns.
  • docs: Tome documentation source.

Common Commands

Install dependencies:

vp install

Run checks:

vp run check:types
vp run test
vp run docs:build

Run the stdio toybox directly:

codex-toys toybox serve --cwd /repo

Start the optional browser proxy:

codex-toys-proxy serve --cwd /repo --static ./dashboard

Inspect the CLI:

tsx packages/codex-client/src/cli/index.ts --help
codex-toys fetch
codex-toys remote status
codex-toys automation list
codex-toys automation run openai-codex-bindings --event event.json
codex-toys --ssh devbox --cwd /repo automation run openai-codex-bindings --event event.json
codex-toys --ssh devbox --cwd /repo fetch
codex-toys --ssh devbox --cwd /repo remote preflight
codex-toys --ssh devbox --cwd /repo app thread/list --params-json '{"limit":20,"sourceKinds":[]}'
codex-toys --ssh devbox --cwd /repo functions list --json
codex-toys --ssh devbox --cwd /repo functions call portfolioSnapshot --json
codex-toys --ssh devbox --cwd /repo turn run "Scan current folder" --wait --sandbox danger-full-access --approval-policy never
codex-toys workspace doctor
codex-toys toybox status
codex-toys memories transplant global-to-workspace
codex-toys threads transplant <thread-id> --from-codex-home ~/.codex --to-codex-home ./.codex

Install the shared Peezy Tech Codex plugin marketplace from GitHub. Use the granular plugin that matches the job:

codex plugin marketplace add peezy-tech/skills --ref main
codex plugin add codex-toys-author@peezy-tech
codex plugin add codex-toys-remote-control@peezy-tech
codex plugin add codex-toys-local-workspace@peezy-tech

Documentation Model

The root README is intentionally short. Canonical documentation belongs in the docs site:

  • Tutorials teach a first successful workflow.
  • Guides cover operational tasks such as turn automation, workspace autonomy, memory transplant, thread transplant, plugin install, optional pack copies, and toybox/proxy operation.
  • Reference pages define CLI commands, package exports, and proxy APIs.
  • Concepts explain boundaries between app-server clients, turn automation, toyboxes, and product-owned domain completion.

Package READMEs stay npm-focused: install, exports, minimal examples, and links back to the docs site.

Published Packages

The canonical user-facing package is:

  • codex-toys

Legacy automation packages have been removed from the monorepo; new automation surface belongs in the core package and plugin-native turn automation.

Release procedure and remote policy are in RELEASE.md. In short: jojo.build is the canonical development remote, Codeberg is a push mirror, and GitHub is used for the npm publishing workflow.