From 9fbbfcd58525d8740c0c15e2c1be54f7fa9828e7 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 27 Apr 2026 01:37:52 +0000 Subject: [PATCH] huskies: merge 667_story_agent_prompt_target_maximum_file_size_of_800_lines_as_a_soft_guide_decompose_larger_files_by_concern --- .huskies/AGENT.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.huskies/AGENT.md b/.huskies/AGENT.md index c6b2029d..69ee857d 100644 --- a/.huskies/AGENT.md +++ b/.huskies/AGENT.md @@ -20,5 +20,8 @@ The frontend is embedded into the Rust binary via `rust-embed`. Run `npm run bui Clippy is zero-tolerance: no warnings allowed. Fix every warning before committing. +## File size +Target a maximum of 800 lines per source file as a soft guide. If a file grows beyond 800 lines, decompose it by concern into smaller modules. Split at natural seams: group related types, functions, or handlers together and move each cohesive group to its own file. This keeps files readable and diffs focused. + ## Runtime validation The `validate_agents` function in `server/src/config.rs` rejects unknown runtimes. Supported values: `"claude-code"` and `"gemini"`. Adding a new runtime requires updating that function.