Page 1 of 1

loops / bucles 🤖🔄

Posted: Mon Jun 22, 2026 8:48 am
by Antonio Linares

The narrative is shifting radically from 'knowing how to write the perfect prompt' to 'designing the right loop'

Image

I want you to operate following a strict Agentic Loop workflow with state persistence. Do the following:

  1. FIND WORK: Scan the project for [specify your task, e.g., functions lacking try/catch error handling].
  2. STATE FILE: Create a todo_state.json file to log your progress. If it already exists, read it to resume the work.
  3. HAND IT TO THE AGENT: Take the first pending task from the state file and apply the necessary changes to the code.
  4. CHECK RESULT: Immediately after, execute the console using [e.g., pytest / npm run lint] to verify the result.
  5. DECIDE NEXT MOVE:
    • If the command succeeds (exit code 0), update the State File as 'Completed' and go back to step 1.
    • If it fails, read the error, fix the code, and try again (maximum of 3 retries).
    • If you run out of retries, mark the status as 'Manual Review Required' and move on to the next task.

Begin by informing me what tasks you have found in step 1.


Re: loops 🤖🔄

Posted: Mon Jun 22, 2026 8:50 am
by Antonio Linares

la narrativa está cambiando radicalmente de "saber escribir el prompt perfecto" a "diseñar el bucle (loop) correcto

Image

Quiero que operes siguiendo un flujo estricto de Agentic Loop con persistencia de estado. Haz lo siguiente:

  1. FIND WORK: Escanea el proyecto en busca de [especifica tu tarea, ej: funciones que no tengan manejo de errores try/catch].
  2. STATE FILE: Crea un archivo todo_state.json para registrar tu progreso. Si ya existe, léelo para retomar el trabajo.
  3. HAND IT TO THE AGENT: Toma la primera tarea pendiente del estado y aplica los cambios necesarios en el código.
  4. CHECK RESULT: Inmediatamente después, ejecuta la consola usando [ej: pytest / npm run lint] para verificar el resultado.
  5. DECIDE NEXT MOVE:
    • Si el comando tiene éxito (exit code 0), actualiza el State File como 'Completado' y vuelve al paso 1.
    • Si falla, lee el error, corrige el código y vuelve a probar (máximo 3 reintentos).
    • Si agotas los reintentos, marca el estado como 'Manual Review Required' y avanza a la siguiente tarea.

Comienza informándome qué tareas has encontrado en el paso 1.