diff --git a/.gitignore b/.gitignore index 3ad678ef..9d68f8e8 100644 --- a/.gitignore +++ b/.gitignore @@ -141,3 +141,5 @@ bun.lockb # AI Agent Config (Generated) # ------------------------- .opencode +AGENTS.md +agents diff --git a/package.json b/package.json index be5ab107..ee73056e 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "scripts": { "prepare": "simple-git-hooks", - "postinstall": "pnpm link:opencode", + "postinstall": "pnpm link:opencode && pnpm link:agents", "build:packages": "turbo run build --filter='./packages/*'", "build:site": "turbo run build --filter=site", "build": "turbo run build", @@ -29,6 +29,7 @@ "lint:fix": "biome check . --write", "lint:fix:file": "biome check --write", "link:opencode": "[ -e .opencode ] || ln -s .claude .opencode", + "link:agents": "[ -e AGENTS.md ] || ln -s CLAUDE.md AGENTS.md; [ -e agents ] || ln -s .claude agents", "test": "turbo run test", "typecheck": "tsc --build" },