FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index latest AI news loops / bucles 🤖🔄
Posts: 44508
Joined: Thu Oct 06, 2005 05:47 PM

loops / bucles 🤖🔄

Posted: Mon Jun 22, 2026 08:48 AM

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

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44508
Joined: Thu Oct 06, 2005 05:47 PM

Re: loops 🤖🔄

Posted: Mon Jun 22, 2026 08:50 AM

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

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion