{"id":47709639,"url":"https://github.com/duolingo/slack-ai-agent","last_synced_at":"2026-04-02T18:27:27.865Z","repository":{"id":348427918,"uuid":"1190895687","full_name":"duolingo/slack-ai-agent","owner":"duolingo","description":"Slack AI Agent - a Slack app with MCP connections that can answer questions and perform agentic actions on Slack.","archived":false,"fork":false,"pushed_at":"2026-04-01T04:28:53.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-01T07:05:52.824Z","etag":null,"topics":["agent","mcp","slack","slack-app","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duolingo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-24T18:13:23.000Z","updated_at":"2026-04-01T04:28:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/duolingo/slack-ai-agent","commit_stats":null,"previous_names":["duolingo/slack-ai-agent"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/duolingo/slack-ai-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duolingo%2Fslack-ai-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duolingo%2Fslack-ai-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duolingo%2Fslack-ai-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duolingo%2Fslack-ai-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duolingo","download_url":"https://codeload.github.com/duolingo/slack-ai-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duolingo%2Fslack-ai-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","mcp","slack","slack-app","typescript"],"created_at":"2026-04-02T18:27:27.279Z","updated_at":"2026-04-02T18:27:27.846Z","avatar_url":"https://github.com/duolingo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack AI Agent\n\nA Slack app powered by Claude Code SDK. Responds in DMs, channels, and @-mentions with streaming responses, thread context, file uploads, and extensible MCP tool integrations.\n\n## Architecture\n\n- **`src/slack-handler.ts`** - Message routing and event handling\n- **`src/claude-handler.ts`** - Session management and Claude Code SDK integration\n- **`src/mcp-manager.ts`** - MCP server configuration and tool management\n- **`src/message-processor.ts`** - Stream processing and response formatting\n- **`src/tracking.ts`** - Analytics tracking for message processing and feedback\n- **`src/channel-config.ts`** - Channel-specific context and configuration management\n- **`src/user-utils.ts`** - User information and role-based access control\n\n## Setup\n\n### 1. Install\n\n```bash\ngit clone https://github.com/duolingo/slack-ai-agent.git\nnpm install\n```\n\n### 2. Create Slack App\n\n1. Go to [api.slack.com/apps](https://api.slack.com/apps) → \"Create New App\" → \"From an app manifest\"\n2. Paste the contents of `slack-app-manifest.yaml`\n3. Install the app to your workspace\n4. Copy the **Bot User OAuth Token** (`xoxb-...`) from \"OAuth \u0026 Permissions\"\n5. Generate an **App-Level Token** with `connections:write` scope (`xapp-...`) from \"Basic Information\"\n6. Copy the **Signing Secret** from \"Basic Information\"\n\n### 3. Configure Environment\n\n```bash\ncp .env.example .env\n```\n\nFill in your tokens. See `.env.example` for all available variables.\n\n### 4. Configure the Bot\n\nCopy the example configs and customize for your workspace:\n\n#### Required\n\n| Example file                                      | Copy to                                   | Purpose                                                     |\n| ------------------------------------------------- | ----------------------------------------- | ----------------------------------------------------------- |\n| `config/example-reactions.yaml`                   | `config/reactions.yaml`                   | Emoji reactions for thinking, completion, errors            |\n| `config/example-tool-allowlist.yaml`              | `config/tool-allowlist.yaml`              | Role-based tool access control (key order = role hierarchy) |\n| `config/example-tool-denylist.yaml`               | `config/tool-denylist.yaml`               | Tools the bot must never use                                |\n| `config/instructions/example-general-context.txt` | `config/instructions/general-context.txt` | Base system prompt injected into every response             |\n\n#### Optional\n\n| Example file                                             | Copy to                               | Purpose                                                                |\n| -------------------------------------------------------- | ------------------------------------- | ---------------------------------------------------------------------- |\n| `config/example-channels.yaml`                           | `config/channels.yaml`                | Channel auto-reply routing, keyword triggers, ephemeral summaries      |\n| `config/instructions/example-channel.txt`                | `config/instructions/\u003cname\u003e.txt`      | Channel-specific system prompt context (referenced by `channels.yaml`) |\n| `config/subagents/example-subagents.yaml`                | `config/subagents/\u003cname\u003e.yaml`        | Sub-agents for validation or post-processing                           |\n| `config/approvable-actions/example-approvable-action.ts` | `config/approvable-actions/\u003cname\u003e.ts` | Human-in-the-loop actions (auto-discovered)                            |\n| `data/example-employees.yaml`                            | `data/employees.yaml`                 | Employee directory for role assignment and people lookups              |\n| `mcp-servers.example.json`                               | `mcp-servers.json`                    | MCP server connections (GitHub, Slack, Jenkins, etc.)                  |\n\nQuick start:\n\n```bash\ncp .env.example .env\ncp config/example-reactions.yaml config/reactions.yaml\ncp config/example-tool-allowlist.yaml config/tool-allowlist.yaml\ncp config/example-tool-denylist.yaml config/tool-denylist.yaml\ncp config/instructions/example-general-context.txt config/instructions/general-context.txt\n```\n\n### 5. Run\n\n```bash\nnpm run dev    # development (auto-reload)\nnpm run build \u0026\u0026 npm run prod  # production\n```\n\n## Usage\n\n- **DMs**: responds to all messages\n- **Configured channels**: auto-replies based on `channels.yaml` rules\n- **All other channels**: responds only when @-mentioned\n- **File uploads**: supports images, code files, PDFs, and documents\n\n## Testing\n\n```bash\nnpm test              # run all tests\nnpx jest --watch      # re-run on file changes\nnpx jest src/logger   # run tests matching a pattern\n```\n\nTests use [Jest](https://jestjs.io/) with `ts-jest`. Test files live next to their source files as `*.test.ts`.\n\n## License\n\nApache 2.0 — see [LICENSE](LICENSE).\n\nDuolingo is hiring! Apply at https://www.duolingo.com/careers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduolingo%2Fslack-ai-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduolingo%2Fslack-ai-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduolingo%2Fslack-ai-agent/lists"}