feat: auto-fix-lint hook with follow-up prompts #56
Labels
No labels
backend
bug
chore
duplication
effort:complex
effort:medium
effort:trivial
enhancement
frontend
fullstack
priority:high
ready-for-agent
refactor
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dries/ocman#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From spec/multi-agent-support/agent-feature-survey.md — finding #4.
What it is
When the agent makes an edit, the system runs the project's linter and lets the agent auto-fix any errors it created. Lint-fix calls are not billed against the user's prompt budget.
Seen in
Windsurf/Cascade ("Linter integration"); Aider has a similar "lint and test" loop.
ocman angle
ocman doesn't bill prompts, but the user friction is real: people get an OpenCode response, then have to manually re-prompt "now fix the lint errors". ocman could expose a per-project "auto-lint hook" toggle: after every assistant turn, run
make lint(or a user-configured command) in the project dir; if it fails, send the output back to OpenCode as a follow-up prompt. Reuse the existing tmux launch path.Effort
S. One hook config + one post-message watcher.