GhiduriGuides
Operare prin agențiOperated by agents
Keryn a fost proiectat ca un agent de programare să poată face munca de pregătire, iar omul să păstreze decizia. Regula amprentei face ca un agent să nu poată aplica ceva ce nu a fost aprobat.
Keryn was designed so a coding agent can do the preparation while a person keeps the decision. The digest rule means an agent cannot apply anything that was not approved.
Ghidul pentru agențiThe agent guide
Comanda keryn skill afișează un ghid text, scris pentru agenți: ordinea comenzilor, ce înseamnă fiecare ieșire și ce nu are voie să facă agentul. Ghidul este text simplu și poate fi citit de orice agent care rulează comenzi în terminal.
The keryn skill command prints a plain-text guide written for agents: the order of commands, what each output means and what the agent must not do. The guide is plain text and can be read by any agent that runs terminal commands.
$ keryn skill > KERYN_AGENT.mdFluxul recomandatRecommended flow
- Agentul editează
keryn.yamlși ruleazăvalidatepână când fișierul este valid. - Agentul rulează
preflightșiplan-apply(sauplan-bootstrap) și prezintă omului planul și amprenta. - Omul citește planul și aprobă amprenta exactă.
- Agentul rulează
apply --approve <amprentă>și raportează rezultatul.
- The agent edits
keryn.yamland runsvalidateuntil the file is valid. - The agent runs
preflightandplan-apply(orplan-bootstrap) and shows the person the plan and the digest. - The person reads the plan and approves the exact digest.
- The agent runs
apply --approve <digest>and reports the result.
Ieșire pentru mașiniMachine output
Opțiunea --json produce ieșire structurată, ca agentul să nu interpreteze text liber.
The --json option produces structured output, so the agent does not have to parse free text.
Nu dați agentului amprente în avansDo not give agents digests in advance
O amprentă aprobată fără a citi planul anulează protecția. Aprobați doar planul pe care l-ați văzut.
A digest approved without reading the plan defeats the protection. Approve only the plan you have seen.