Skip to content

✨ feat: broaden sub-agent prompt scope beyond lint fixes - #19

Merged
bdougie merged 1 commit into
mainfrom
broaden-agent-scope
Jun 26, 2026
Merged

bdougie merged 1 commit into
mainfrom
broaden-agent-scope

Conversation

@bdougie

@bdougie bdougie commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

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 — reworded agentPreamble to 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

  • Behavior-preservation is kept as the guardrail since it holds for all modes (refactors preserve behavior; tests/docs add artifacts without changing it) and underpins the agentic-usage framing.
  • The Task struct has no task-type field — all modes flow through the same file:line: message path, 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

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
@bdougie
bdougie merged commit a099c0b into main Jun 26, 2026
6 checks passed
@bdougie
bdougie deleted the broaden-agent-scope branch June 26, 2026 03:44
@Pant1f3r

Copy link
Copy Markdown

Nice job

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.

2 participants