[epic] Build a member-facing helper bot

Open
#81 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
8/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript
Domain
ai, backend

Research direction

This is a tracking epic, not a starting task; the work lives in its child issues (#68, #70, #71, #239, #240). Read the design spec at docs/superpowers/specs/2026-07-05-helper-bot-epic.md and the helper feature in discord-bot/src/helperService.js to understand the boundaries. Pick a single child issue with a clear scope, and treat this epic as done only when its listed children are closed.

Written by the indexing model from the issue text.

Description

area/bot area/docs-system area/service epic type/feature
Current delivery status

Helper threads, reply follow-ups, private DMs, per-user limits, LLM tool support and long-message handling are merged. The authorized executor (#71 / PR #290) and channel configuration (#239 / PR #298, with append in #303) are also merged. Cited staging channel answers and actual Discord delivery have passed, including the passage-length and editor-link fixes (#309/#312). #278 closed on October 28 after Ethan confirmed he had tested it and requested closure. #72 remains deferred. The other open native child, #382, tracks production policy-refusal handling and recovery of later harmless requests in the same thread. The separate indexing-to-retrieval gate #277 is complete.

Area

bot, service, docs-system

Outcome

Members need answers grounded in UTMIST documents in server threads and personal DMs. Channel answers use the configured teams' group access; DMs use the authenticated person's full document access. This epic owns the bot experience and guardrails; #77 supplies access configuration and #125 supplies retrieval.

Definition of done
  • #66 provides @mention-triggered threads, personalized LLM responses, and follow-up context.
  • #68 enforces per-user request/spending limits before additional paid calls.
  • #70 exposes tool-use responses from the LLM service.
  • #71 implements the bot client and executor for authorized, explicitly safe tools, tested with mocked retrieval and enforced round/cost limits.
  • #239 lets admins configure channel access.
  • #240 adds personal DM conversations.
  • #71 implements and tests trusted destination context, authorization, history/cache invalidation and publication checks with mocked retrieval.
  • #278 connects retrieval and configured channels to DM/thread answers. Closed on Ethan's testing confirmation on October 28; its acceptance note and original citation/follow-up/revocation/scope-change criteria remain in the issue.
  • #72 provides confirmed, triage-gated bug intake if that deferred work is resumed; it remains deferred and is not part of the current delivery focus.
  • #382 distinguishes policy refusals from outages and restores later valid requests in the affected thread.
Ownership

discord-bot owns helper threads, DMs, channel configuration commands, member context, consumer limits, tool execution, and bug intake. services/llm owns the reusable tool-use API (#70). Retrieval is owned by #125 and consumed here.

Parallel work

#70, #176, #210 and #238 are complete, and retrieval's shared contract/fixture is available. #71 and #239 are implemented and merged. #278's integrated DM/channel and access-change work is closed on operator acceptance after the shipped release. Basic DM transport (#240) is complete. #72 remains deferred.

Task breakdown
Task Area Effort
#68 — Limit helper-bot requests and spending per user bot S
#70 — Add tool-use support to the LLM chat endpoint service L
#71 — Build the authorized bot tool executor bot M
#278 — Integrate document answers in DMs and configured channels bot, docs-system, integration TBD
#72 — File member bug reports into a triage inbox bot, integration M
#239 — Configure channel access through the bot bot M
#240 — Chat with Misty in DMs bot M
Earlier decisions and completed history

Completed children: #66, #68, #70, #71, #235, #239, #240, #252, #276, #278 and #310. Additional shipped bot capabilities include authenticated command tools (#311) and public replies/batch confirmations (#314). Their existing issue states and discussions retain the completion, cancellation, or supersession details.

Scope and implementation notes

Design: docs/superpowers/specs/2026-07-05-helper-bot-epic.md.

Implementation boundary: This is an in-process feature of discord-bot/src/helperService.js, not a separate service. Reuse the Discord client, principal.js, directory/doc clients, and LLM service #33 over authenticated internal HTTP. The bot owns thread/context orchestration, shares the bot deployment, and needs the privileged Message Content intent.

Delivery tracking: Children: #66, #68, #70, #71, #72, #235, #239, #240, #278. #235 retains reply-triggered follow-ups inside helper threads. The mocked executor task #71 and the indexing-to-retrieval gate #277 are complete; #278's separate document-answer integration/acceptance is now closed on Ethan's testing confirmation. The current priority is RAG and related access work; retaining #72 here does not resume bug work.

Out of scope: Building the retrieval substrate (#125); this epic consumes it.

Working conventions

Filed tasks are direct sub-issues of this epic. GitHub Relationships record the existing hard prerequisites; the task table summarizes the work and existing project Size estimates. Keep each task independently reviewable and normally within one CODEOWNERS zone; explain deliberate cross-zone changes. Misty issues may carry several area labels; zones apply to PRs. Follow AGENTS.md and the affected service's CONTRIBUTING.md for implementation, tests, and documentation.

Dominant language
Python
Stars
0
Forks
2
Avg merge
3d 3h
Merged PRs (30d)
31

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UTMIST/Misty

All issues in UTMIST/Misty

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.