Repository navigation
feat(goose): add a global-only checks target for goose review - #3395
Merged
Merged
Conversation
goose review reads user-wide checks from ~/.config/goose/checks/. Its project directory is the cross-tool .agents/checks/ the amp target already writes, so the new goose checks target is global-only: a supportsProject meta flag keeps it out of project scope. The frontmatter is Amp's plus Goose's model and turn-limit, authored in a goose: section. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TMP9AiZudwa2b154EMY4FS
…n goose: AmpCheck now takes its tool target, frontmatter schema and tool-only keys from overridable static hooks and builds instances with new this, so GooseCheck is a thin subclass instead of a copy. Import moves Goose's model and turn-limit into the goose: section, so they no longer leak into amp output, and turn-limit must be a non-negative integer as Goose reads it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TMP9AiZudwa2b154EMY4FS
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TMP9AiZudwa2b154EMY4FS
Regenerate src/generated/docs-content.ts after the conflict. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TMP9AiZudwa2b154EMY4FS
Regenerate src/generated/docs-content.ts after the conflict. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TMP9AiZudwa2b154EMY4FS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Covers gap 1 of #2404: the
goose reviewchecks adapter.Goose discovers repository checks in
.agents/checks/*.mdand user-wide checks in~/.config/goose/checks/, then~/.config/agents/checks/(crates/goose/src/checks/mod.rs). Its source says the project directory is a deliberate cross-tool location shared with Amp, which is the path the existingampchecks target already writes. Earlier status comments left the gap open on that ownership question: should two targets own the same path, or shouldgoosebe global-only?This PR takes the global-only option, which leaves the existing
ampoutput untouched:GooseCheck(src/features/checks/goose-check.ts) writes~/.config/goose/checks/<name>.md. It is modeled onAmpCheck, and its frontmatter is Amp's (namefrom the file name,description,severity-defaultfromseverity,tools) plus Goose'smodelandturn-limit, authored in agoose:section. Import reads the global directory back.supportsProjectmeta: a new optional flag on the checks processor. It defaults totrue, andgoosesetsfalse, sogenerate --targets goosein project scope reports checks as unsupported instead of writing a second copy of.agents/checks/. Users who want project-scope Goose checks enable theampchecks target, which Goose already reads.gooseis added tochecksProcessorToolTargetTuple, the global e2e matrix, and the supported-tools tables (regenerated).docs/reference/file-formats.md.Still open on #2404: a canonical
PreToolUseResulthook event, and MCPssehandling inconfig.yaml(an ownership change).Refs #2404
🤖 Generated with Claude Code
https://claude.ai/code/session_01TMP9AiZudwa2b154EMY4FS