2026-03-16 09:37:28 -04:00
# Remote Questions
docs: update documentation for v2.20.0 release
Update README and docs/ to cover new features and changes in v2.20.0:
- commands.md: Added /gsd quick, /gsd mode, /gsd help, /gsd skill-health,
/gsd hooks, /gsd run-hook, gsd --debug flag. Reorganized into
Session Commands, Configuration & Diagnostics, Git, and Session Management.
- skills.md: Added Skill Lifecycle Management section covering telemetry,
health dashboard (/gsd skill-health), staleness detection, and heal-skill
post-unit analysis.
- remote-questions.md: Added Telegram as a third channel alongside
Slack and Discord, with setup instructions and bot requirements.
- configuration.md: Added skill_staleness_days preference.
- README.md: Added skill_staleness_days to key settings table, new
Agent Instructions section, and Debug Mode section.
2026-03-16 14:50:36 -04:00
Remote questions allow GSD to ask for user input via Slack, Discord, or Telegram when running in headless auto-mode. When GSD encounters a decision point that needs human input, it posts the question to your configured channel and polls for a response.
2026-03-16 09:37:28 -04:00
## Setup
### Discord
```
/gsd remote discord
```
The setup wizard:
1. Prompts for your Discord bot token
2. Validates the token against the Discord API
3. Lists servers the bot belongs to (or lets you pick)
4. Lists text channels in the selected server
5. Sends a test message to confirm permissions
6. Saves the configuration to `~/.gsd/preferences.md`
**Bot requirements:**
- A Discord bot application with a token (from [Discord Developer Portal ](https://discord.com/developers/applications ))
- Bot must be invited to the target server with these permissions:
- Send Messages
- Read Message History
- Add Reactions
- View Channel
- The `DISCORD_BOT_TOKEN` environment variable must be set (the setup wizard handles this)
### Slack
```
/gsd remote slack
```
The setup wizard:
1. Prompts for your Slack bot token (`xoxb-...` )
2. Validates the token
2026-03-16 11:01:41 -04:00
3. Lists channels the bot can access (with manual ID fallback)
2026-03-16 09:37:28 -04:00
4. Sends a test message to confirm permissions
5. Saves the configuration
**Bot requirements:**
- A Slack app with a bot token (from [Slack API ](https://api.slack.com/apps ))
- Bot must be invited to the target channel
2026-03-16 11:01:41 -04:00
- Typical scopes for public/private channels: `chat:write` , `reactions:read` , `reactions:write` , `channels:read` , `groups:read` , `channels:history` , `groups:history`
2026-03-16 09:37:28 -04:00
docs: update documentation for v2.20.0 release
Update README and docs/ to cover new features and changes in v2.20.0:
- commands.md: Added /gsd quick, /gsd mode, /gsd help, /gsd skill-health,
/gsd hooks, /gsd run-hook, gsd --debug flag. Reorganized into
Session Commands, Configuration & Diagnostics, Git, and Session Management.
- skills.md: Added Skill Lifecycle Management section covering telemetry,
health dashboard (/gsd skill-health), staleness detection, and heal-skill
post-unit analysis.
- remote-questions.md: Added Telegram as a third channel alongside
Slack and Discord, with setup instructions and bot requirements.
- configuration.md: Added skill_staleness_days preference.
- README.md: Added skill_staleness_days to key settings table, new
Agent Instructions section, and Debug Mode section.
2026-03-16 14:50:36 -04:00
### Telegram
```
/gsd remote telegram
```
The setup wizard:
1. Prompts for your Telegram bot token (from [@BotFather ](https://t.me/BotFather ))
2. Validates the token against the Telegram API
3. Prompts for the chat ID (group or private chat)
4. Sends a test message to confirm permissions
5. Saves the configuration
**Bot requirements:**
- A Telegram bot token from [@BotFather ](https://t.me/BotFather )
- Bot must be added to the target group chat (or use private chat with the bot)
- The `TELEGRAM_BOT_TOKEN` environment variable must be set
2026-03-16 09:37:28 -04:00
## Configuration
Remote questions are configured in `~/.gsd/preferences.md` :
```yaml
remote_questions:
docs: update documentation for v2.20.0 release
Update README and docs/ to cover new features and changes in v2.20.0:
- commands.md: Added /gsd quick, /gsd mode, /gsd help, /gsd skill-health,
/gsd hooks, /gsd run-hook, gsd --debug flag. Reorganized into
Session Commands, Configuration & Diagnostics, Git, and Session Management.
- skills.md: Added Skill Lifecycle Management section covering telemetry,
health dashboard (/gsd skill-health), staleness detection, and heal-skill
post-unit analysis.
- remote-questions.md: Added Telegram as a third channel alongside
Slack and Discord, with setup instructions and bot requirements.
- configuration.md: Added skill_staleness_days preference.
- README.md: Added skill_staleness_days to key settings table, new
Agent Instructions section, and Debug Mode section.
2026-03-16 14:50:36 -04:00
channel: discord # or slack or telegram
2026-03-16 09:37:28 -04:00
channel_id: "1234567890123456789"
timeout_minutes: 5 # 1-30, default 5
poll_interval_seconds: 5 # 2-30, default 5
```
## How It Works
1. GSD encounters a decision point during auto-mode
2. The question is posted to your configured channel as a rich embed (Discord) or Block Kit message (Slack)
3. GSD polls for a response at the configured interval
4. You respond by:
- **Reacting** with a number emoji (1️ ⃣, 2️ ⃣, etc.) for single-question prompts
- **Replying** to the message with a number (`1` ), comma-separated numbers (`1,3` ), or free text
5. GSD picks up the response and continues execution
2026-03-16 11:01:41 -04:00
6. A ✅ reaction is added to the prompt message to confirm receipt
2026-03-16 09:37:28 -04:00
### Response Formats
**Single question:**
2026-03-16 11:01:41 -04:00
- React with a number emoji (single-question prompts)
2026-03-16 09:37:28 -04:00
- Reply with a number: `2`
- Reply with free text (captured as a user note)
**Multiple questions:**
- Reply with semicolons: `1;2;custom text`
- Reply with newlines (one answer per line)
### Timeouts
If no response is received within `timeout_minutes` , the prompt times out and GSD continues with a timeout result. The LLM handles timeouts according to the task context — typically by making a conservative default choice or pausing auto-mode.
## Commands
| Command | Description |
|---------|-------------|
| `/gsd remote` | Show remote questions menu and current status |
| `/gsd remote slack` | Set up Slack integration |
| `/gsd remote discord` | Set up Discord integration |
| `/gsd remote status` | Show current configuration and last prompt status |
| `/gsd remote disconnect` | Remove remote questions configuration |
## Discord vs Slack Feature Comparison
| Feature | Discord | Slack |
|---------|---------|-------|
| Rich message format | Embeds with fields | Block Kit |
2026-03-16 11:01:41 -04:00
| Reaction-based answers | ✅ (single-question) | ✅ (single-question) |
2026-03-16 09:37:28 -04:00
| Thread-based replies | Message replies | Thread replies |
| Message URL in logs | ✅ | ✅ |
2026-03-16 11:01:41 -04:00
| Answer acknowledgement | ✅ reaction on receipt | ✅ reaction on receipt |
2026-03-16 09:37:28 -04:00
| Multi-question support | Text replies (semicolons/newlines) | Text replies (semicolons/newlines) |
2026-03-16 11:01:41 -04:00
| Context source in prompt | ✅ (footer) | ✅ (context block) |
| Server/channel picker | ✅ (interactive) | ✅ (interactive + manual fallback) |
2026-03-16 09:37:28 -04:00
| Token validation | ✅ | ✅ |
| Test message on setup | ✅ | ✅ |
## Troubleshooting
### "Remote auth failed"
- Verify your bot token is correct and not expired
- For Discord: ensure the bot is still in the server
- For Slack: ensure the bot token starts with `xoxb-`
### "Could not send to channel"
- Verify the bot has Send Messages permission in the target channel
- For Discord: check the bot's role permissions in Server Settings
- For Slack: ensure the bot is invited to the channel (`/invite @botname` )
### No response detected
- Ensure you're **replying to** the prompt message (not posting a new message)
- For reactions: only number emojis (1️ ⃣-5️ ⃣) on single-question prompts are detected
- Check that `timeout_minutes` is long enough for your response time
### Channel ID format
- **Slack:** 9-12 uppercase alphanumeric characters (e.g., `C0123456789` )
- **Discord:** 17-20 digit numeric snowflake ID (e.g., `1234567890123456789` )
- Enable Developer Mode in Discord (Settings → Advanced) to copy channel IDs