Skip to content

feat: make the secretary opt-in instead of on by default - #107

Merged
atman-33 merged 1 commit into
mainfrom
feature/secretary-default-off
Aug 13, 2026
Merged

feat: make the secretary opt-in instead of on by default#107
atman-33 merged 1 commit into
mainfrom
feature/secretary-default-off

Conversation

@atman-33

@atman-33 atman-33 commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Secretary agent (T-0154) now defaults to off instead of on — consulting it costs tokens on every question, and a fresh install should not pay that unasked (T-0158).
  • The app default flips in models.rs; a value already stored in ~/.workhub/config.json is left untouched, since serde's default only fills a missing key.
  • Both hook readers (plugins/workhub/hooks/lib.mjs and the OpenCode secretary-plugin.ts) moved from !== false to === true, so the feature can no longer run behind a Settings toggle that reads "off".
  • Docs (help-view.tsx, .claude/rules/secretary-agent.md, CHANGELOG.md) updated to match. App bumped to 0.74.1, workhub plugin to 0.20.0.

Test plan

  • cargo test --release — 217 passed / 0 failed
  • cargo clippy -- -D warnings — clean
  • cargo fmt --check — clean
  • npm run build — passes
  • npm run check:opencode — passes
  • Manual: fresh config (no secretary_enabled key) shows the Settings checkbox unchecked, and no secretary hooks fire

🤖 Generated with Claude Code

Consulting the secretary costs tokens on every question a session would
otherwise put to the owner, and a fresh install should not pay that unasked.
The app default flips to off; a value already stored in config.json is left
alone, since serde's default only fills a missing key.

The hooks had to move with it. Both readers tested `!== false`, which treats a
missing key as enabled — with the app defaulting to off, that would run the
secretary behind a Settings toggle reading "off". They now require `=== true`,
on the Claude Code side (hooks/lib.mjs) and in the OpenCode plugin alike.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@atman-33
atman-33 merged commit dfea294 into main Aug 13, 2026
1 check passed
@atman-33
atman-33 deleted the feature/secretary-default-off branch August 13, 2026 00:53
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