Skip to content

feat: per-project model and effort overrides for Claude Code agents - #20

Merged
llbbl merged 1 commit into
mainfrom
feat/project-overrides
Oct 19, 2026
Merged

llbbl merged 1 commit into
mainfrom
feat/project-overrides

Conversation

@llbbl

@llbbl llbbl commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • agentsync override sets a per-project model and/or effort for named Claude Code subagents by writing a PreToolUse hook into the project's .claude/settings.local.json. The hidden agentsync hook claude-agent rewrites model/effort on calls to those subagents, so the shared agent file is never forked.
  • scan and optimize show active overrides; doctor checks that the PATH binary can run the hook.
  • Scope is per-user and per-checkout: the settings file is local and gitignored, so nothing is shared with other clones.
  • The stored command ends in || exit 1, so a failing hook never blocks a subagent call.
  • Verified live against Claude Code 2.1.303: the overridden agent ran on the override's model and effort; other agents were untouched.

Closes #18

agentsync override writes a PreToolUse hook into the project's
.claude/settings.local.json; the hidden `agentsync hook claude-agent`
rewrites model/effort on calls to the named subagents, without forking
the shared agent file. scan and optimize show overrides; doctor checks
the PATH binary can run the hook.
@llbbl
llbbl merged commit d5e197c into main Oct 19, 2026
2 checks passed
@llbbl
llbbl deleted the feat/project-overrides branch October 19, 2026 23:44
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.

feat: per-project model and effort overrides without forking shared agents

1 participant