feat: add Slack history backfill for Addie's search_slack tool#684
Merged
Conversation
Adds the ability to backfill historical Slack messages so Addie can search community discussions beyond the 5-day window of real-time indexing. Features: - Fetches messages from public channels (private opt-in) - Includes thread replies with rate limiting - Excludes sensitive channels (admin, billing) by default - Idempotent via upsert (safe to run multiple times) New API endpoints: - POST /api/admin/addie/backfill/slack - trigger backfill - GET /api/admin/addie/backfill/slack/status - check index stats 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Enables Addie to filter Slack search results by channel name, which is needed for requests like "summarize Governance working group discussions". Changes: - Added channel parameter to search_slack tool schema - Updated tool description with guidance on channel filtering - Database query now supports optional channel filtering with partial match - Increased default/max limits to support summary use cases (10/25) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds a dedicated tool for getting recent activity from a Slack channel without requiring keyword search. This is the right tool for requests like "summarize the Governance working group discussions". Changes: - Added get_channel_activity tool with channel, days, and limit params - Added getChannelActivity database method that fetches by recency - Response includes message count, most active users, and formatted messages - Provides guidance for synthesizing results into summaries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
search_slacktoolChanges
server/src/slack/client.ts: AddedgetChannelHistory,getFullChannelHistory, andgetThreadRepliesfunctions for fetching Slack message historyserver/src/addie/jobs/slack-history-backfill.ts: New backfill job with support for:server/src/routes/addie-admin.ts: Added admin API endpoints:POST /api/admin/addie/backfill/slack- Trigger backfill with optionsGET /api/admin/addie/backfill/slack/status- Check index statisticsTest plan
🤖 Generated with Claude Code