Callee

Put repeatable agent work in the repository
Useful agent workflows quickly outgrow a chat prompt. They need several roles,
local checks, approval points, routing, bounded iteration, and shared context.
When that logic lives in one conversation, it is difficult to review,
reproduce, or improve as a team.
Callee turns that logic into versioned Markdown or YAML resources. Compose AI
roles, shell scripts, human decisions, and typed model judgments with
sequential, parallel, loop, and router control flow. Callee validates the whole
graph before execution, carries one explicit state object through the run, and
returns one final artifact.
- Review the workflow like code. Prompts, models, permissions, inputs, and
control flow live beside the project that uses them.
- Use the right kind of step. A workflow can call a coding model, run a
deterministic check, ask a person, or request a typed decision from TypeSafe
or OpenRouter.
- Run it anywhere. Invoke the same resource from a terminal or through
Codex, Claude Code, Grok Build, Copilot CLI, OpenCode, or Cursor.
Supported agent kinds
All ten public callee.metalagman.dev/v1alpha1 kinds fit into three groups.
See Choose an agent kind for the complete chooser.
- Leaves: Role gives a coding agent a task with
static provider configuration; DynamicRole
renders provider configuration from visit-time state;
Script runs a deterministic local shell step;
Human pauses for one operator response.
- Typed evaluators: TypeSafeJev is the
native TypeSafe System One/Jev evaluator;
OpenRouterDecision uses the
OpenRouter Decisions API with a selected model and is not Jev-only.
- Composite workflows: Sequential orders
children; Parallel fans out and joins
unattended work; Loop repeats children within a
bound; Router deterministically selects one
branch.
A workflow is a small, inspectable graph
This workflow runs several reviewers concurrently, then gives their combined
output to an architect:
apiVersion: callee.metalagman.dev/v1alpha1
kind: Sequential
spec:
description: Collects independent reviews, then produces one plan.
body: "{{ .Input }}"
children:
- ref: workflows/parallel-review
alias: reviews
- ref: roles/architect
alias: architect
input: |
Task:
{{ .Input }}
Reviews:
{{ .State.outputs.reviews }}
output: "{{ .State.outputs.architect }}"
References resolve before the run starts. Each Role or DynamicRole visit gets a
fresh model session; Scripts run local commands; Human nodes collect an operator response;
typed evaluation nodes call their own HTTP APIs. Composite nodes only control
data flow and execution order, so a child can be any resource kind.
Try it
Install six editable starter resources and the integration for your coding
agent:
npx --yes @baldaworks/callee@latest setup codex
Replace codex with claude, grok, copilot, opencode, or cursor as
needed. Then inspect and run a workflow directly:
npx --yes @baldaworks/callee@latest agent view workflows/investigate
npx --yes @baldaworks/callee@latest agent run workflows/investigate \
--message "Explain this project's architecture and main entry points"
Or ask your coding agent to run it. In Codex:
$callee Run workflows/investigate to explain this project's architecture and main entry points.