> Codex helps you think. Tandem runs and governs. This plugin glues the two
> together without replacing either.
---
## 1. What this is
A focused Codex plugin (skill + Tandem Docs MCP + shared design rules + worked
examples) that:
- Walks you through designing a Tandem workflow from intent
(`/create-workflow` template) or by hand-assembling a complex multi-agent DAG
(`/build-complex-workflow` template).
- Calls the **real Tandem HTTP API** to draft, preview, validate, and apply
workflows — so the engine is always the source of truth.
- Bakes in Tandem's actual policy primitives: `tool_policy`, `mcp_policy`,
`approval_policy`, `scope_policy`, `model_policy`, `output_contract`,
schedules, and triage gates.
- Refuses to apply or run anything destructive, externally visible, public,
paid, or irreversible without explicit user approval.
## 2. Who it's for
- **Tandem operators** who use Codex daily and want a structured way to
design new workflows without leaving the CLI.
- **Workflow authors** who already know Tandem and want a faster scaffolding
loop than a blank editor.
- **Teams** who want Codex's design help while keeping all execution and
governance inside Tandem.
This plugin does **not** target users who have never used Tandem. It assumes
a running Tandem engine, an engine token, and a Tandem-configured model
provider/default model for workflows that execute model work.
## 3. How it helps Tandem users
- Accelerates the **first 80%** of authoring: trigger, agents, per-stage
prompts, output contracts, approval gates, MCP allowlists.
- Forces good defaults: every external write is approval-gated, every stage
has an explicit `output_contract`, every agent has a tool allowlist.
- Treats source-only fields as engine-validated, not Codex-fabricated. When
Codex doesn't know an exact field name, it asks the engine instead of
guessing.
- Surfaces engine errors verbatim, then helps you fix them.
## 4. Install in Codex
### From GitHub
```bash
codex plugin marketplace add frumu-ai/tandem-codex-plugin
```
In the Codex TUI:
```
/plugins
```
Find **Tandem Workflow Architect** and install it. The plugin skill and
bundled Tandem Docs MCP server appear once installed.
The files in `commands/` are workflow templates the skill can follow.
Some Codex builds may expose them as slash commands; if yours does not,
describe the same goal in chat and the skill will use the corresponding
template.
You can pin a branch, tag, or commit with:
```bash
codex plugin marketplace add frumu-ai/tandem-codex-plugin@main
```
### From a local checkout (development)
Use a local marketplace root only when developing or testing unpublished
changes:
```bash
git clone https://github.com/frumu-ai/tandem-codex-plugin.git
cd tandem-codex-plugin
codex plugin marketplace add "$(pwd)"
```
Codex accepts `owner/repo[@ref]`, HTTPS Git URLs, SSH URLs, and local
marketplace root directories. It caches installed plugins under
`~/.codex/plugins/cache/