Foker
AGENTS.md2 starsChanged 7 days agoApache-2.0View on GitHub
Un rol es una definición, no un proceso de Foker (FOKER-SPEC §12, ADR-011). El anfitrión ejecuta el LLM y sus subagentes; Foker guarda estado y evidencia por task_id. Sync exporta los dos roles MVP: subagentes en Claude Code/OpenCode/Codex y reglas en Antigravity. Su comportamiento real depende del anfitrión: PENDIENTE FKR-070, ver integraciones. Codex registra config_file por rol en .codex/config.toml y genera instrucciones TOML en .codex/agents/. El anfitrión decide cuándo delegar; la ejecución real de estos roles sigue pendiente de verificación.…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- asvs-l2-reviewSkill
- foker-workflowSkill
- next-routeSkill
- react-componentSkill
- secure-formSkill
- ts-strict-changeSkill
- write-testsSkill
The file
We split this agents.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 72
Default: 3 intentos, configurable 1–5.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agentes y tareas
Un rol es una definición, no un proceso de Foker (FOKER-SPEC §12, ADR-011). El anfitrión ejecuta
el LLM y sus subagentes; Foker guarda estado y evidencia por task_id.
| Rol | Estado y responsabilidad |
| Implementer | MVP: roles/implementer.md; begin → context → editar → check → submit. No aprueba. |
| Reviewer | MVP consultivo: roles/reviewer.md; lectura del diff, reglas y skill; comentarios Markdown. Su juicio no es gate ni cambia estados. |
| Validation | MVP determinista: packages/engine/src/tasks/gates.ts; ejecuta checks confiados y registra evidencia. No es LLM. |
| Planner | PENDIENTE V0.2 (§12.2; sin issue FKR asignado en el backlog): propone tareas PENDING y alcance para revisión. |
| Architect | PENDIENTE V0.2 (§12.2; sin issue FKR asignado): propone ADRs/estructura desde foker.md, con aprobación humana. |
Sync exporta los dos roles MVP: subagentes en Claude Code/OpenCode/Codex y reglas en Antigravity.
Su comportamiento real depende del anfitrión: PENDIENTE FKR-070, ver integraciones.
Codex registra config_file por rol en .codex/config.toml y genera instrucciones TOML
en .codex/agents/. El anfitrión decide cuándo delegar; la ejecución real de estos roles
sigue pendiente de verificación. Ninguna clave API de IA es obligatoria.
El handoff usa task_id y ledger, no memoria privada del agente.
Máquina de estados
packages/engine/src/tasks/fsm.ts define las transiciones. Begin del MVP exige alcance y crea RUNNING;
PENDING/PLANNED están representados, pero planificación/claim quedan para V0.2.
stateDiagram-v2
[*] --> RUNNING: begin con alcance
PENDING --> PLANNED: reservado V0.2
PLANNED --> RUNNING: claim reservado V0.2
RUNNING --> VALIDATING: submit
RUNNING --> BLOCKED: lease sin actividad 4 h
VALIDATING --> COMPLETED: gates pasan
VALIDATING --> REJECTED: fallo recuperable
VALIDATING --> AWAITING_APPROVAL: aprobación pendiente
VALIDATING --> BLOCKED: política o infraestructura
REJECTED --> RUNNING: quedan intentos
REJECTED --> FAILED: intentos agotados
AWAITING_APPROVAL --> COMPLETED: approve humano
AWAITING_APPROVAL --> REJECTED: reject humano
BLOCKED --> RUNNING: unblock humano
PENDING --> CANCELLED
PLANNED --> CANCELLED
RUNNING --> CANCELLED
REJECTED --> CANCELLED
AWAITING_APPROVAL --> CANCELLED
BLOCKED --> CANCELLED
COMPLETED --> [*]
FAILED --> [*]
CANCELLED --> [*]Qué significa COMPLETED
REQ-TSK-001 se evalúa sobre el árbol al enviar la tarea, con baseline autenticado:
| Gate | Condición implementada |
| G1 scope | Cambios dentro de scope y permisos de skill. Los borrados fuera de alcance pueden requerir aprobación; otros cambios fuera fallan. |
| G2 policy | Sin rutas protegidas ni secretos detectados; dependencias, lockfiles y rutas de aprobación requieren humano. Rutas protegidas o secretos bloquean. |
| G3 map | Refresco sin error y ningún archivo cambiado con parseStatus failed. No equivale a typecheck: partial no falla por sí solo. |
| G4 checks | Todos los checks declarados por el perfil pasan dentro del timeout. |
| G5 skill | Checks de la skill pasan; sin skill se registra skipped. |
Además, se escribe evidencia inmutable y se enlaza su hash en el evento. AWAITING_APPROVAL requiere
que no haya fallos ni bloqueos; approve humano completa la tarea con evidencia aprobada, sin volver
a ejecutar checks. Para comprobar el árbol actual usa foker task verify <id>: reevalúa y compara
la evidencia, sin modificar la tarea. COMPLETED no garantiza ausencia de vulnerabilidades desconocidas.
Reintentos
Default: 3 intentos, configurable 1–5. REJECTED es transitorio: genera evento y prepara RUNNING con intento incrementado, o FAILED al agotar el máximo. Submit puede devolver REJECTED aunque status ya muestre RUNNING. Los hallazgos guían la autocorrección. Un proceso que no llegó a ejecutarse bloquea con FKR-VAL-004 sin consumir intento; un timeout tras arrancar falla el check y consume intento. Unblock humano permite continuar y cambiar alcance. El lease de 4 h se comprueba al leer/listar y antes de mutar. Más detalles de locks, baseline, aprobaciones e integridad local: tasks.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

