Add Addie operating rules and member tools#392
Merged
Conversation
Implement comprehensive behavioral guidelines for Addie via database-backed rules, and introduce user-scoped member tools for profile management, working groups, agent testing, and account linking. Add per-request tool support to Claude client to enable dynamic tool composition. **Key features:** - Database-backed operating rules (150+ rules covering identity, expertise, behaviors, constraints) - Member tools: working groups, profile management, agent validation, GitHub issue drafting - User-scoped tool handlers that only operate on behalf of the authenticated user - Dynamic suggested prompts based on user's account status - Proactive account linking messages after successful signup - Pagination support for working groups listing - URL length warnings for GitHub issue drafting **Fixes:** - Prevent negative priority values in SQL migrations - Support BASE_URL environment variable for deployment - Add proper tool_executions field to error responses 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Add comprehensive unit tests for member tools: - Tool definitions validation (all 15 tools) - Handler creation and registration - get_account_link: already linked, no slack_user_id, generate link cases - draft_github_issue: URL generation, default repo, length warnings - User-scoped tools: authentication requirement checks 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Resolve conflicts and rename migration 048 to 053 to avoid collision with 048_addie_knowledge_slack.sql from main.
This was referenced Jun 18, 2026
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
Implement comprehensive behavioral guidelines for Addie AI assistant via database-backed rules, and introduce user-scoped member tools for profile management, working groups, agent testing, and account linking.
Key features:
Code quality improvements:
Test plan