The open-source agent harness - the runtime layer that turns an LLM into a working agent.
Scope agent guidance to relevant packages
debajyoti-truefoundryc7f835748509
diff --git a/AGENTS.md b/AGENTS.mdindex b1bb3080f..7cabdf04a 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -5,7 +5,3 @@- Modules MUST use static `import` and `import type`; they MUST NOT use `require()`, `require.resolve()`, or lint suppressions to bypass import checks.- A change that makes code unused MUST remove that dead code in the same change; it MUST NOT leave stale exports, files, documentation, duplicates, or “just in case” shims.- Comments MUST explain intent, trade-offs, or constraints and remain concise; they MUST NOT restate the code or include issue-tracker IDs.--## Visual consistency loop--Only when the user supplies a screenshot or explicit UI feedback that needs visual validation: screenshot with `pnpm ui:shot -- <url> current.png`, compare against the reference, iterate until consistent, then `pnpm ui:clean` (no PNGs left in `ui-shots/`).diff --git a/packages/frontend/AGENTS.md b/packages/frontend/AGENTS.mdnew file mode 100644index 000000000..c4b880236--- /dev/null+++ b/packages/frontend/AGENTS.md@@ -0,0 +1,3 @@+## Visual consistency loop++Only when the user supplies a screenshot or explicit UI feedback that needs visual validation: screenshot with `pnpm ui:shot -- <url> current.png`, compare against the reference, iterate until consistent, then `pnpm ui:clean` (no PNGs left in `ui-shots/`).diff --git a/packages/harness/src/core/runtime/AGENTS.md b/packages/harness/src/core/runtime/AGENTS.mdnew file mode 100644index 000000000..9bfa8609d--- /dev/null+++ b/packages/harness/src/core/runtime/AGENTS.md@@ -0,0 +1,5 @@+- Durable state MUST follow:+ ```ts+ yield event; // consumer persists and may throw+ mutateMemory(); // runs only after persistence succeeds+ ```