codex-toys/README.md

4.2 KiB

codex-flows

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

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

Start Here

Repo Map

  • packages/codex-client: @peezy.tech/codex-flows, the app-server client, transports, turn automation helpers, workspace backend helpers, CLI, auth helpers, workbench reducers, and generated app-server protocol types.
  • apps/workspace-backend: local workspace backend process with control WebSocket routes.
  • 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 local backend:

codex-flows workspace backend init local
codex-flows workspace backend start

Inspect the CLI:

tsx packages/codex-client/src/cli/index.ts --help
codex-flows fetch
codex-flows remote status
codex-flows automation list
codex-flows automation run openai-codex-bindings --event event.json
codex-flows --ssh devbox --cwd /repo automation run openai-codex-bindings --event event.json
codex-flows --ssh devbox --cwd /repo fetch
codex-flows --ssh devbox --cwd /repo app thread/list '{"limit":20,"sourceKinds":[]}'
codex-flows workspace doctor
codex-flows workspace backend status
codex-flows memories transplant global-to-workspace
codex-flows 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-flows-author@peezy-tech
codex plugin add codex-flows-remote-control@peezy-tech
codex plugin add codex-flows-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 local backend operation.
  • Reference pages define CLI commands, package exports, and backend APIs.
  • Concepts explain boundaries between app-server clients, turn automation, workspace backends, 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:

  • @peezy.tech/codex-flows

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.