feat: split dirigent_tools + human @mention override #14

Merged
hzhang merged 37 commits from feat/split-tools-and-mention-override into main 2026-03-08 08:02:28 +00:00
Collaborator

Changes

Feature 1: Split dirigent_tools into Individual Tools

  • Replace monolithic dirigent_tools (9 actions) with 9 individual tools
  • Discord: dirigent_channel_create, dirigent_channel_update, dirigent_member_list
  • Policy: dirigent_policy_get, dirigent_policy_set, dirigent_policy_delete
  • Turn: dirigent_turn_status, dirigent_turn_advance, dirigent_turn_reset

Feature 2: Human @Mention Override

  • Temporarily override turn order when humanList user @mentions agents
  • Cycle through mentioned agents, restore original order when complete

Version bump: 0.2.0 → 0.3.0

## Changes ### Feature 1: Split dirigent_tools into Individual Tools - Replace monolithic `dirigent_tools` (9 actions) with 9 individual tools - Discord: `dirigent_channel_create`, `dirigent_channel_update`, `dirigent_member_list` - Policy: `dirigent_policy_get`, `dirigent_policy_set`, `dirigent_policy_delete` - Turn: `dirigent_turn_status`, `dirigent_turn_advance`, `dirigent_turn_reset` ### Feature 2: Human @Mention Override - Temporarily override turn order when humanList user @mentions agents - Cycle through mentioned agents, restore original order when complete Version bump: 0.2.0 → 0.3.0
zhi added 1 commit 2026-03-07 16:55:23 +00:00
Feature 1: Split dirigent_tools
- Replace monolithic dirigent_tools (9 actions) with 9 individual tools
- Discord: dirigent_channel_create, dirigent_channel_update, dirigent_member_list
- Policy: dirigent_policy_get, dirigent_policy_set, dirigent_policy_delete
- Turn: dirigent_turn_status, dirigent_turn_advance, dirigent_turn_reset
- Extract shared executeDiscordAction() helper

Feature 2: Human @mention override
- When humanList user @mentions agents, temporarily override turn order
- Only mentioned agents cycle, ordered by their turn order position
- Original order restores when cycle returns to first agent or all NO_REPLY
- New: setMentionOverride(), hasMentionOverride(), extractMentionedUserIds()
- New: buildUserIdToAccountIdMap() for reverse userId→accountId resolution

Bump version to 0.3.0
nav added 1 commit 2026-03-07 17:04:46 +00:00
- Delete NEW_FEAT.md
- Create FEAT.md with complete feature documentation across all versions
- Update README.md to reflect individual tool names and add @mention override
nav added 1 commit 2026-03-07 17:24:39 +00:00
- Remove turn management tools (turn-status/advance/reset) — internal only,
  accessible via /dirigent slash commands
- Rename discord tools: dirigent_discord_channel_create,
  dirigent_discord_channel_update, dirigent_discord_member_list
- Rewrite install script:
  - Dynamic OpenClaw dir resolution (OPENCLAW_DIR env → openclaw CLI → ~/.openclaw)
  - Plugin installed to $(openclaw_dir)/plugins/dirigent
  - New --update mode: git pull from latest branch + reinstall
  - Cleaner uninstall: removes installed plugin files
- Update docs (FEAT.md, README.md, CHANGELOG.md, TASKLIST.md)
nav added 1 commit 2026-03-07 17:32:32 +00:00
- Add waitIdentifier config (default: 👤) to DirigentConfig and plugin schema
- Prompt injection: tells agents to end with 👤 when they need a human reply,
  warns to use sparingly (only when human is actively participating)
- Detection in before_message_write and message_sent hooks
- Turn manager: new waitingForHuman state
  - checkTurn() blocks all agents when waiting
  - onNewMessage() clears state on human message
  - Non-human messages ignored while waiting
  - resetTurn() also clears waiting state
- All agents routed to no-reply model during waiting state
- Update docs (FEAT.md, CHANGELOG.md, TASKLIST.md, README.md)
nav added 1 commit 2026-03-07 18:40:01 +00:00
Priority: --openclaw-profile-path arg >  env > ~/.openclaw
Remove openclaw CLI command attempts, simplify to 3 clear sources
hzhang added 2 commits 2026-03-07 19:24:28 +00:00
hzhang added 27 commits 2026-03-08 07:25:43 +00:00
Reviewed-on: #16
hzhang added 3 commits 2026-03-08 08:02:15 +00:00
hzhang merged commit 68c13d9eef into main 2026-03-08 08:02:28 +00:00
hzhang deleted branch feat/split-tools-and-mention-override 2026-03-08 08:02:28 +00:00
Sign in to join this conversation.
No Reviewers
No Label
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nav/Dirigent#14