Skip to content

feat(goose): add a global-only checks target for goose review - #3395

Merged
dyoshikawa merged 5 commits into
mainfrom
resolve-issue-2404-goose-global-checks
Oct 11, 2026
Merged

dyoshikawa merged 5 commits into
mainfrom
resolve-issue-2404-goose-global-checks

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Covers gap 1 of #2404: the goose review checks adapter.

Goose discovers repository checks in .agents/checks/*.md and 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 existing amp checks target already writes. Earlier status comments left the gap open on that ownership question: should two targets own the same path, or should goose be global-only?

This PR takes the global-only option, which leaves the existing amp output untouched:

  • GooseCheck (src/features/checks/goose-check.ts) writes ~/.config/goose/checks/<name>.md. It is modeled on AmpCheck, and its frontmatter is Amp's (name from the file name, description, severity-default from severity, tools) plus Goose's model and turn-limit, authored in a goose: section. Import reads the global directory back.
  • supportsProject meta: a new optional flag on the checks processor. It defaults to true, and goose sets false, so generate --targets goose in project scope reports checks as unsupported instead of writing a second copy of .agents/checks/. Users who want project-scope Goose checks enable the amp checks target, which Goose already reads.
  • Registration: goose is added to checksProcessorToolTargetTuple, the global e2e matrix, and the supported-tools tables (regenerated).
  • Docs: a "Goose note (checks)" in docs/reference/file-formats.md.

Still open on #2404: a canonical PreToolUseResult hook event, and MCP sse handling in config.yaml (an ownership change).

Refs #2404

🤖 Generated with Claude Code

https://claude.ai/code/session_01TMP9AiZudwa2b154EMY4FS

dyoshikawa and others added 5 commits October 11, 2026 20:26
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
@dyoshikawa
dyoshikawa merged commit 44943c6 into main Oct 11, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2404-goose-global-checks branch October 11, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant