Skip to content

Commit cf360ad

Browse files
authored
Merge pull request #51 from stack127labs/chore/remove-agent-hooks
Remove redundant agent hooks
2 parents 2f8c7c6 + 8fd1d04 commit cf360ad

9 files changed

Lines changed: 3 additions & 234 deletions

File tree

‎.claude/settings.json‎

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎.codex/config.toml‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎.codex/hooks.json‎

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Work is split into three lanes. They are guidance for who usually does what, not
1212
| Sol | Newest GPT Sol | `high`, `xhigh` for hard or risky work | Code review, backend changes, and infra planning |
1313
| Luna | Newest GPT Luna | `xhigh`, `max` for deep research | Research, mass data gathering, and data work |
1414

15-
Claude Code sessions are the Opus lane. Codex sessions are Sol by default and Luna when started for research or data. Opus usually owns pages, components, styles, card art, and copy. Sol and Luna usually own `lib/`, API routes, scripts, migrations, tests, data, and infra. `scripts/stack127/agents/lanes.mjs` maps files to lanes. A hook adds a short note when you edit a file another lane usually owns. The note never blocks. Use your judgment.
15+
Claude Code sessions are the Opus lane. Codex sessions are Sol by default and Luna when started for research or data. Opus usually owns pages, components, styles, card art, and copy. Sol and Luna usually own `lib/`, API routes, scripts, migrations, tests, data, and infra. These lanes guide task assignment and review. They do not restrict which files an agent may edit when the task requires a cross-lane change.
1616

1717
The agent the user talks to is the coordinator:
1818

‎scripts/stack127/agents/lane-note.mjs‎

Lines changed: 0 additions & 59 deletions
This file was deleted.

‎scripts/stack127/agents/lanes.mjs‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

‎scripts/stack127/agents/models.mjs‎

Lines changed: 0 additions & 78 deletions
This file was deleted.

‎scripts/stack127/setup-worktree.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export async function setupWorktree() {
8888
await run(root, "npm", ["ci", "--include=dev", "--no-audit", "--no-fund"]);
8989
console.log("Generating this checkout's Next.js types...");
9090
await run(root, process.execPath, ["node_modules/next/dist/bin/next", "typegen"]);
91-
for (const name of [".agents/skills", ".claude/skills", ".codex/hooks.json", ".claude/settings.json"]) {
91+
for (const name of [".agents/skills", ".claude/skills"]) {
9292
await access(path.join(root, name));
9393
}
9494
console.log("Worktree ready. Use Dev and run or Build and run for a preview.");

‎tests/stack127/setup-worktree.test.mjs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ async function fixture(t) {
1717
const bin = path.join(directory, "bin");
1818
await mkdir(main);
1919
await mkdir(bin);
20-
for (const folder of ["skills", ".agents", ".claude/skills", ".codex"]) await mkdir(path.join(main, folder), { recursive: true });
20+
for (const folder of ["skills", ".agents", ".claude/skills"]) await mkdir(path.join(main, folder), { recursive: true });
2121
await symlink("../skills", path.join(main, ".agents/skills"));
2222
await writeFile(path.join(main, "skills/example.txt"), "skill fixture");
2323
await writeFile(path.join(main, ".claude/skills/example.txt"), "skill fixture");
24-
for (const file of [".codex/hooks.json", ".claude/settings.json"]) await writeFile(path.join(main, file), "{}");
2524
await writeFile(path.join(main, "package.json"), JSON.stringify({ name: "stack127" }));
2625
await writeFile(path.join(main, "package-lock.json"), "{}");
2726
await writeFile(path.join(main, ".gitignore"), ".env*\nnode_modules/\n.next/\ntmp/\n");

0 commit comments

Comments
 (0)