t1385.6: Add Slack bot integration subagent doc#2766
t1385.6: Add Slack bot integration subagent doc#2766marcusquinn wants to merge 0 commit intomainfrom
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📥 CommitsReviewing files that changed from the base of the PR and between ac2beaf and 25d295db0140b83dc2cbda7bffe6d35c3ecae867. 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces comprehensive documentation for integrating Slack bots into the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Tue Mar 3 04:46:59 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive subagent document for Slack bot integration using the @slack/bolt SDK, covering various aspects such as connection modes, app manifest, OAuth scopes, messaging, slash commands, interactive components, and security considerations. The changes also include updates to subagent-index.toon and AGENTS.md to incorporate the new Slack entry. I have added a review comment to address a potential command injection vulnerability and suggest using child_process.spawn with a bash array for safer command execution.
Note: Security Review is unavailable for this PR.
| const result = execSync( | ||
| `runner-helper.sh dispatch "${runner}" "${prompt.replace(/"/g, '\\"')}"`, | ||
| { timeout: 600000, encoding: 'utf-8' } |
There was a problem hiding this comment.
high: The execSync command constructs a shell command with user-provided input (prompt) without proper sanitization, which could lead to command injection vulnerabilities. To prevent command injection, avoid using execSync with unsanitized input. Instead, use child_process.spawn with a bash array to build the command and its arguments safely.
const { spawn } = require('child_process');
async function dispatchToRunner(runner, prompt, channel, threadTs) {
// Add reaction to show processing
await client.reactions.add({
channel,
timestamp: threadTs,
name: 'hourglass_flowing_sand',
});
try {
// Dispatch via runner-helper.sh using spawn
const child = spawn('runner-helper.sh', ['dispatch', runner, prompt], {
timeout: 600000,
encoding: 'utf-8',
});
let result = '';
for await (const chunk of child.stdout) {
result += chunk;
}
// Post response in thread
await client.chat.postMessage({
channel,
thread_ts: threadTs,
text: result.trim(),
});
// Success reaction
await client.reactions.remove({ channel, timestamp: threadTs, name: 'hourglass_flowing_sand' });
await client.reactions.add({ channel, timestamp: threadTs, name: 'white_check_mark' });
} catch (error) {
// Failure reaction
await client.reactions.remove({ channel, timestamp: threadTs, name: 'hourglass_flowing_sand' });
await client.reactions.add({ channel, timestamp: threadTs, name: 'x' });
await client.chat.postEphemeral({
channel,
user: event.user,
text: `Runner dispatch failed: ${error.message}`,
});
}
}References
- To avoid command injection vulnerabilities when constructing shell commands dynamically, do not use
eval. Instead, use a bash array to build the command and its arguments safely.
25d295d to
7e385b9
Compare
|
This PR was superseded by the batch merge in PR #2771 (feat: t1385 — add 11 chat platform integration agents), which merged all the content from this branch. Closing as the content is already in main. |



Summary
.agents/services/communications/slack.md— comprehensive subagent doc for Slack bot integration using@slack/boltSDKsubagent-index.toonandAGENTS.mddomain index to include the new Slack entryWhat's Covered
xoxb-) and app-level token (xapp-) scopessay(),chat.postMessage, threads, ephemeral messages, Block Kit, reactions, file uploads, message updatesresponse_urlpatternsviews.open/view_submission), action handlersthreadStarted/userMessagehandlers, native streaming viachatStream(), feedback buttonsresponse_urlvalidityStyle
Follows existing communications subagent conventions (YAML frontmatter, AI-CONTEXT markers, architecture diagram, config reference, code examples, Related section). Consistent with
matrix-bot.md,matterbridge.md, andsimplex.mdpatterns.Closes #2753