Repository navigation
Description
Junior should be able to answer coworker-style questions about recent company activity by searching public Slack channels, not only the active thread or channels it has already seen.
Originally requested in a thinner form by @MisterJimson. Expanded into a PRD after product discussion on public-channel search vs join-all / private access.
Problem
People expect Junior to behave like a teammate: check announcements, sales chatter, company digests, and public mentions when asked what happened recently.
Today Junior mostly has:
- active-channel history
- thread reads for the current conversation / previously seen public destinations
- retained search over Junior's own public conversation transcripts
- fallbacks to Notion/docs when Slack workspace context is missing
It does not have workspace-wide Slack search. That makes ordinary internal-news questions fail closed even though the content is public in Slack.
Goals
- Answer questions that require public Slack context with evidence and permalinks
- Prefer real search over joining every channel and scraping history
- Stay privacy-conservative: public channels only in the first version
- Make the capability feel intentional and scoped, not like silent workspace surveillance
Non-goals (v1)
- Private channel search
- DM / MPIM search
- Auto-joining large sets of public channels
- Continuous background monitoring of the whole workspace
- Replacing Notion/docs/GitHub as sources; Slack is additive
Current behavior
From getsentry/junior today:
- Slack manifest includes
channels:history/channels:read, but notsearch:read.public - Tools cover active-channel history, thread read, user lookup, and retained Junior conversation search
- Cross-channel reads fail closed unless Junior has already observed that destination as public
- No wiring for
assistant.search.contextor legacysearch.messages
Relevant surface area:
packages/junior/slack-manifest.ymlpackages/junior/src/chat/slack/tools/channel-list-messages.tspackages/junior/src/chat/slack/tools/thread-read.tspackages/junior/src/chat/slack/tools/channel-access.tspackages/junior/src/chat/slack/tools/conversation-search.ts
Proposed product
MVP
Add public Slack message search:
- Scope:
search:read.public - API: Slack Real-time Search via
assistant.search.context - Default channel type:
public_channelonly - Bot-token path; handle Slack
action_tokenrequirements for bot calls - Return ranked results with channel, timestamp, snippet/text, and permalink
Expose this as a first-class Junior tool the model can use when a question needs workspace context.
Product rules
- Search only when the user asks, or the question clearly needs public workspace context
- Prefer named channels, keywords, people/usergroups, and time windows over unbounded scans
- Always cite sources with permalinks
- If results are thin/noisy, say so and fall back to other sources (Notion, docs, GitHub, etc.)
- Never imply private/DM access in v1
- Keep answers bounded; use canvas only when the digest is long-form
Optional v1.5
Config/allowlist of high-signal public “company pulse” channels for digest-style questions, so Junior can:
- run public search
- optionally pull recent history from those allowlisted public channels if search is insufficient
This is better than join-all.
API / implementation notes
Preferred path:
Why this path:
- Built for AI apps
- Bot token supported for public search
- Can search public channels the requesting user can access without the bot being a member of every channel
Avoid as primary design:
- Legacy
search.messages(user-token /search:read, marked legacy) - Join-all +
conversations.historypagination as the main strategy
Likely implementation work:
- Add
search:read.publicto the Slack app manifest / install scopes - Implement Slack client support for
assistant.search.context - Plumb bot
action_tokencorrectly for search calls - Add a read-only tool with query + optional time/channel constraints
- Teach tool guidance / prompts when to use public Slack search vs current-channel history vs Notion
- Resolve public channel names and usergroup mentions into useful query constraints where possible
- Add evals for internal-news / announcements / public-mention style questions
Success criteria
- Junior can answer “what happened publicly in Slack over the last N days?” with cited public sources
- Named public channels and public mention/usergroup queries work without Junior already being in those channels
- Private/DM content is not searched in v1
- Failures are explicit (“no public search results”, “scope missing”, “channel not public/readable”) rather than silent Notion-only answers presented as complete
- Existing current-channel / thread tools remain the default for local conversation context
Open questions
- How do we obtain/store
action_tokenreliably for non-assistant-thread mentions and resumed turns? - Should public search be available in all installs, or gated by workspace config / admin trust?
- Do we need channel-name resolution (
#announcements) and usergroup resolution as hard dependencies for MVP, or can v1 accept raw queries first? - What rate-limit / result-size budget keeps this useful without expensive fanout?
- Should allowlisted company-pulse channels be core config, deployment config, or later?
Out of scope follow-ups
search:read.private/search:read.im/search:read.mpimwith explicit user consent- Multi-source “company brief” productization beyond basic synthesis
- Proactive scheduled digests
Activity
[-]Feature request: a slack plugin that lets junior search across Slack. Similar to Notion/Linear search.[/-][+]Search public Slack channels for company context[/+]feat(slack): Add public channel search (getsentry#935)