Skip to content

Search public Slack channels for company context #267

Closed

Description

@MisterJimson

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 not search: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.context or legacy search.messages

Relevant surface area:

  • packages/junior/slack-manifest.yml
  • packages/junior/src/chat/slack/tools/channel-list-messages.ts
  • packages/junior/src/chat/slack/tools/thread-read.ts
  • packages/junior/src/chat/slack/tools/channel-access.ts
  • packages/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_channel only
  • Bot-token path; handle Slack action_token requirements 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:

  1. run public search
  2. 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.history pagination as the main strategy

Likely implementation work:

  1. Add search:read.public to the Slack app manifest / install scopes
  2. Implement Slack client support for assistant.search.context
  3. Plumb bot action_token correctly for search calls
  4. Add a read-only tool with query + optional time/channel constraints
  5. Teach tool guidance / prompts when to use public Slack search vs current-channel history vs Notion
  6. Resolve public channel names and usergroup mentions into useful query constraints where possible
  7. 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_token reliably 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.mpim with explicit user consent
  • Multi-source “company brief” productization beyond basic synthesis
  • Proactive scheduled digests

Activity

  1. changed the title [-]Feature request: a slack plugin that lets junior search across Slack. Similar to Notion/Linear search.[/-] [+]Search public Slack channels for company context[/+] on Jul 16, 2026
  2. added a commit that references this issue on Jul 17, 2026
    f0e35b8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions