From 38031739e551638e373fb553453256c23feeb41f Mon Sep 17 00:00:00 2001 From: John Kennedy <65985482+jkennedyvz@users.noreply.github.com> Date: Mon, 24 Aug 2026 14:42:27 -0700 Subject: [PATCH] docs: add Corridor agent instructions (#8677) Add a repository-wide `` block to `AGENTS.md` requiring agents to plan first and run Corridor `analyzePlan` before generating or modifying code. The tags are explicit and balanced so Corridor-specific guidance remains scoped. Validation: `git diff --check` and a tag-balance assertion. --------- Co-authored-by: langsmith-fleet[bot] --- AGENTS.md | 8 ++++++++ CLAUDE.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 7a8d1dc12..5e5f0c00b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,6 +2,14 @@ This repository is a monorepo. Each library lives in a subdirectory under `libs/`. + + +## Corridor security analysis + +When Corridor's `analyzePlan` tool is available, create a plan and use the tool to analyze it before generating or modifying code. Apply the resulting security guidance before writing code. + + + When you modify code in any library, run the following commands in that library's directory before creating a pull request: - `make format` – run code formatters diff --git a/CLAUDE.md b/CLAUDE.md index cc4ee1a9a..e86d91eaf 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,6 +2,14 @@ This repository is a monorepo. Each library lives in a subdirectory under `libs/`. + + +## Corridor security analysis + +Before generating or modifying code, create a plan and use Corridor's `analyzePlan` tool to analyze it. Apply the resulting security guidance before writing code. + + + When you modify code in any library, run the following commands in that library's directory before creating a pull request: - `make format` – run code formatters