Feature: dynamic workflows (Claude Code parity)

Abierto
#1,116 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript

Línea de trabajo

Start by reading the existing agent and agent_output delegation entry points, then trace how the CLI handles background work and interactive views. The issue describes a new workflow script API, resumable orchestration, progress controls, and workflow storage, but does not identify files or tests; first map the relevant subsystems and discuss scope with maintainers. Done means scripts can fan out agents and return a final result, with saved runs and the requested controls covered by tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Feature Description

Add dynamic workflows, like Claude Code's: a workflow tool that takes a JavaScript orchestration script, runs it in the background, and fans work out across dozens to hundreds of subagents. Intermediate results stay in script variables, so the main session only receives the final answer and stays responsive while agents run.

The script gets a small API: agent(prompt, opts) to spawn one subagent (optionally returning JSON that matches a schema), pipeline(items, fn) and parallel([...]) to fan out, and phase() / log() for progress. A /workflows view shows phases and per-agent progress, with pause, stop, restart, and save.

Runs can be saved to .commandcode/workflows/ (project) or ~/.commandcode/workflows/ (personal) and re-run as /<name>.

Use Case

Today delegation is turn-by-turn through agent / agent_output: one prompt at a time, and every result lands back in the parent's context. That doesn't fit tasks needing more agents than one conversation can coordinate:

  • audit every route handler for missing auth, then verify each finding
  • migrate hundreds of files, each in its own isolated copy
  • review every changed file in a PR and merge the findings into one ranked summary
  • keep fixing type errors until tsc --noEmit passes or two rounds make no progress

A workflow moves the plan into code, so the orchestration is repeatable and the parent context holds only the final report.

Additional Context

Reference behavior and API: https://code.claude.com/docs/en/workflows

Minimal script shape:

export const meta = { name: 'audit-routes', description: 'Audit handlers for missing auth' }

const { files } = await agent('List every .ts file under src/routes/.', {
  schema: { type: 'object', required: ['files'], properties: { files: { type: 'array', items: { type: 'string' } } } },
})

const audits = await pipeline(files, (file) =>
  agent(`Audit ${file} for missing authentication checks.`, { label: file }),
)

return audits.filter(Boolean)

Worth keeping from the reference design: approval before the first launch, resumable runs (completed agents return cached results on relaunch), a configurable concurrency cap (default ~16), and a total-agent cap. The script itself should have no filesystem or shell access — agents do the work.

How important is this to you?

Important for my workflow

Lenguaje dominante
Sin datos de lenguaje
Estrellas
4.2k
Forks
377
Merge medio
1 d 17 min
PR fusionados (30 d)
7

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CommandCodeAI/command-code

Todos los issues de CommandCodeAI/command-code

Issues similares

Más issues de AI Infra & Agents

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.