Ejecutor del bucle de codificación agéntica

Rellenar este prompt

Ejecuta un bucle de codificación agéntica donde la tarea, el método de verificación y el criterio de finalización se seleccionan de forma independiente, iterando hasta que la comprobación externa pasa.

Plantilla de prompt

Execute the following task as an agentic loop. Do not ask for confirmation between iterations.

### TASK
Perform this action: {{Action: # Implement, Implement a new feature, Implement a missing function body, Write unit tests for existing code, # Fix, *Fix a failing test or bug, Fix all compiler warnings, Resolve linter violations, # Improve, Refactor without changing behavior, Optimize a slow code path, Migrate code to a newer API or framework version, Add missing error handling}}

### CONTEXT
{{Project Context: if used in an AI agent use the current project}}

### LOOP STRUCTURE
Repeat the following cycle:
1. ACT: Apply the smallest meaningful change toward the task.
2. VERIFY: Check the result using this method: {{Verification: # Automated, *Run the test suite, Compile or build the project, Run the linter and static analysis, Execute the script or program and inspect the output, Validate output against a schema or contract, # Manual proxy, Run a single reproduction case, Compare behavior before and after the change, Measure performance with a benchmark, Diff the output against a known-good reference}}
3. FEED BACK: If verification fails, take the raw error output (stack trace, test report, compiler message) unmodified into the next iteration. Do not summarize or interpret it before acting on it.

### COMPLETION CRITERION
Stop the loop only when this condition is met: {{Done When: *All tests pass with zero failures, Build succeeds with zero warnings, Linter reports zero violations, Program runs without exceptions on the given input, Output validates against the schema, Benchmark meets the target threshold, Reproduction case no longer fails, Behavior is identical before and after refactoring, All new code paths are covered by tests}}

### SAFEGUARDS
- Maximum {{Max Iterations:5}} iterations. If the limit is reached without success, stop and report the last error, what was attempted, and a hypothesis for the root cause.
- If the same error occurs in two consecutive iterations, stop immediately and report the stall instead of retrying.
- Touch only files required by the task.

### ADDITIONAL INFORMATION:
{{ Additional Information: none }}

After completion, summarize in 3 short bullet points: what was changed, how it was verified, and how many iterations were needed.

Guía del prompt

Ideal para

  • Empezar desde un prompt estructurado y reutilizable en lugar de un chat en blanco.
  • Adaptar el prompt a tus propios datos manteniendo intacta la intención original.
  • Flujos de trabajo relacionados con Software Development, Debug & Testing.

Cómo usarlo

  1. Copia la plantilla de prompt completa.
  2. Sustituye cada variable por tu propio contexto o elige una de las opciones sugeridas.
  3. Pega el prompt completado en ChatGPT, Claude, Gemini u otro asistente de IA.

Variables de este prompt

Action

# Implement, Implement a new feature, Implement a missing function body, Write unit tests for existing code, # Fix, Fix a failing test or bug, Fix all compiler warnings, Resolve linter violations

Project Context

if used in an AI agent use the current project

Verification

# Automated, Run the test suite, Compile or build the project, Run the linter and static analysis, Execute the script or program and inspect the output, Validate output against a schema or contract, # Manual proxy, Run a single reproduction case

Done When

All tests pass with zero failures, Build succeeds with zero warnings, Linter reports zero violations, Program runs without exceptions on the given input, Output validates against the schema, Benchmark meets the target threshold, Reproduction case no longer fails, Behavior is identical before and after refactoring

Max Iterations

5

Additional Information

none

Ejemplo de partida

Execute the following task as an agentic loop. Do not ask for confirmation between iterations.

### TASK
Perform this action: # Implement

### CONTEXT
if used in an AI agent use the current project

### LOOP STRUCTURE
Repeat the following cycle:
1. ACT: Apply the smallest meaningful change toward the task.
2. VERIFY: Check the result using this method: # Automated
3. FEED BACK: If verification fails, take the raw error output (stack trace, test report, compiler message) unmodified into the next iteration. Do not summarize or interpret it before acting on it.

### COMPLETION CRITERION
Stop the loop only when this condition is met: All tests pass with zero failures

### SAFEGUARDS
- Maximum 5 iterations. If the limit is reached without success, stop and report the last error, what was attempted, and a hypothesis for the root cause.
- If the same error occurs in two consecutive iterations...

Cómo funcionan las variables

Sintaxis de variables

Las variables van entre {{ y }} y siguen este patrón:

{{variable name: option1, option2, option3 }}

Variables predefinidas

Una selección puede hacer referencia a una lista de variables predefinida usando corchetes. Aparecen en [naranja] y proporcionan valores de uso común como colores, tonos o idiomas.

{{Tone: [tones] }}

Listas de selección personalizadas

También puedes proporcionar una lista de opciones en línea, separadas por comas.

{{Format: bullet points, paragraphs, numbered list }}
💡

Consejo: ¡no necesitas la app PUCO para usar estos prompts! Solo copia la plantilla y sustituye cada sección {{…}} por tu propio texto directamente en ChatGPT, Claude, Gemini o cualquier otro asistente de IA.

Usa este prompt en segundos, no en minutos

Instala PUCO para Mac: pulsa un atajo en cualquier app, rellena un formulario inteligente, pega en ChatGPT, Claude o Gemini. Cada variable se convierte en un menú desplegable curado. Tus últimos valores se recuerdan.

Descargar en el Mac App Store