Skip to content

fix(slack-researcher): make Slack research opt-in, surface workspace identity#521

Merged
tmchow merged 7 commits intomainfrom
tmchow/slack-multi-instance
Apr 6, 2026
Merged

fix(slack-researcher): make Slack research opt-in, surface workspace identity#521
tmchow merged 7 commits intomainfrom
tmchow/slack-multi-instance

Conversation

@tmchow
Copy link
Copy Markdown
Collaborator

@tmchow tmchow commented Apr 6, 2026

Summary

Partially reverts the auto-dispatch behavior introduced in #495. The slack-researcher agent and its synthesis capabilities are preserved, but it is now opt-in only.

  • Makes the slack-researcher agent opt-in only — removes automatic dispatch from ce-ideate, ce-plan, and ce-brainstorm. The Slack MCP provides no way to identify which workspace it's connected to, so auto-dispatching risks silently searching the wrong workspace and injecting misleading context.
  • Each calling skill now shows a lightweight "Slack is connected" hint when slack_* tools are detected, so users know it's available without the risk.
  • The agent now extracts the workspace subdomain from search result permalinks and surfaces it in the output header (**Workspace: mycompany.slack.com**), making it clear which instance was searched.
  • Adds search modifier reference (location, date, content type filters) from the official Slack plugin's slack-search skill to improve search precision.
  • Removes examples block from the agent to match all other agents in the plugin.

Test plan

  • Run bun run release:validate — passes (50 agents, 41 skills)
  • Verify ce-ideate/ce-plan/ce-brainstorm no longer auto-dispatch slack-researcher when slack_* tools are present
  • Verify the three skills show the Slack availability hint instead
  • Verify the agent surfaces workspace identity in output when explicitly invoked

🤖 Generated with Claude Code

…ce identity

The slack-researcher was auto-dispatched by ce-ideate, ce-plan, and
ce-brainstorm whenever slack_* tools were detected, with no way to know
which Slack workspace was connected. This risks silently searching the
wrong workspace and injecting misleading context into plans and ideas.

Now the agent only runs when the user explicitly asks for Slack context.
The three calling skills show a lightweight hint ("Slack is connected")
instead of auto-dispatching. The agent itself now extracts the workspace
subdomain from search result permalinks and surfaces it in the output
header so users can verify the right instance was searched. Also adds
search modifier reference from the official Slack plugin's slack-search
skill and removes examples block to match other agents.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4608b79026

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- Skills now dispatch slack-researcher when the user explicitly asks for
  Slack context, rather than only showing a hint. This closes the gap
  where the consolidation step referenced Slack findings but nothing
  gathered them.
- No-results template handles the case where no permalinks are available
  to extract a workspace subdomain (falls back to "unknown").

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e4958cfe71

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…s connected' (#521)

The hint checked tool presence, not actual connectivity. 'Slack tools
detected' accurately reflects what we know (tools registered) without
implying verified auth. The slack-researcher agent itself still performs
a runtime connectivity check when actually invoked.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7ae9a443bf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

tmchow and others added 3 commits April 6, 2026 11:18
…s missing (#521)

When a user explicitly requests Slack context but no slack_* tools are
available, the skills now surface a clear message instead of silently
skipping the request.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…le (#521)

Replace dense prose paragraph with a 2x2 routing table (tools
available x user asked) for clearer agent processing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Simpler and renders more reliably across contexts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8f9922485

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…quest (#521)

The consolidation step should include Slack context only when the
researcher actually returned findings, not merely because the user
asked. Prevents the model from inventing Slack-derived constraints
when Slack was requested but unavailable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tmchow tmchow merged commit 6f9069d into main Apr 6, 2026
2 checks passed
@github-actions github-actions bot mentioned this pull request Apr 6, 2026
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