Repository navigation
✨ feat: broaden sub-agent prompt scope beyond lint fixes - #19
Merged
Merged
Conversation
The agent preamble and per-builder instructions still scoped work to "fix lint issues" only, contradicting the expanded use cases already documented in the README and skill (test repair, docs, refactoring). - Reword agentPreamble to name the full maintenance scope and keep the compliance/safety framing (automated tool, human review, no commit, no external services, preserve existing behavior). - Drop "Only fix lint issues" from all prompt builders; standardize on "Address each issue. Preserve existing behavior. Commit nothing." - Sync SKILL.md identity line and documented prompt samples. Claude-Session: https://claude.ai/code/session_01StS4YhGVxqfpQT4iKMK7NY
|
Nice job |
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
The sub-agent system prompt still told agents their "sole task is to fix lint issues" and to "Only fix lint issues", contradicting the expanded scope already documented in the README and
skills/sweeper/SKILL.md(test repair, docs, refactoring, TODO resolution, etc.).Changes
pkg/worker/task.go— rewordedagentPreambleto name the full maintenance scope (lint, tests, docs, refactoring) while keeping the compliance/safety framing intact: automated tool, human reviews all changes, no commit, no external services, preserve existing behavior. Dropped "Only fix lint issues" from every prompt builder and standardized the trailing instruction on "Address each issue. Preserve existing behavior. Commit nothing."SKILL.md— updated the identity line and the two documented prompt samples to match.Notes
Taskstruct has no task-type field — all modes flow through the samefile:line: messagepath, so wording is generic and the issue messages carry the specific goal.Testing
go test ./pkg/worker/ ./pkg/agent/passes. No test pinned the lint-only phrasing.https://claude.ai/code/session_01StS4YhGVxqfpQT4iKMK7NY