From b21edc39350a6fc4f6a9faf7958007d4caa27400 Mon Sep 17 00:00:00 2001 From: mths-mcfs Date: Mon, 23 Nov 2026 19:35:06 -0300 Subject: [PATCH] chore(agentes): CLAUDE.md importa o AGENTS.md em vez de repetir Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index ab7de15..43c994c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,27 +1 @@ -# agent-code-mode - -An MCP stdio server that exposes one tool, `run`: the model writes a JavaScript script that runs in an isolated QuickJS-ng WASM sandbox and calls async bindings (`bash`, `read`, `write`, `edit`, `grep`, `glob`). -Every binding call is prepared, authorized against the host's permission rules and PreToolUse hooks (Claude Code or Codex CLI, fail-closed), and only then committed exactly as authorized. - -## Verification - -`npm run verify` (typecheck, tests, build). It must pass before any change is considered done. - -## Repo rules - -- English only: code, comments, tests, commit messages, PRs, README. -- The repo is public: nothing private (personal names, emails, home-directory paths, machine names, personal hook or config names). Test fixtures use generic example hooks. -- No `docs/` folder and no extra markdown files; the only markdown files are README.md, CLAUDE.md and AGENTS.md. -- Validate outside data at the boundary with zod (MCP requests, sandbox IPC, hook stdout, config files, `_meta`); never use `as` on unvalidated data. Internal code trusts validated types. -- TypeScript strict, ESM, Node >= 22. Keep dependencies small and justified. - -## Module map - -- `src/core`: frozen contracts (`types.ts`), boundary schemas, dispatcher (prepare, authorize, commit), run orchestration, output shaping, command hooks. -- `src/server`: MCP stdio server, host detection, runtime factory. -- `src/sandbox`: QuickJS-ng WASM sandbox in a child process. -- `src/hosts/claude`: Claude Code host adapter (settings, permission rules, hooks). -- `src/hosts/codex`: Codex CLI host adapter (config, exec policy, hooks). -- `src/tools`: tool runtime (`bash`, `read`, `write`, `edit`, `grep`, `glob`), journal and rollback. -- `src/testing`: fakes for tests (sandbox, host adapter, in-memory tool runtime). -- `bench`: benchmark. +@AGENTS.md