Skip to content

Add Addie operating rules and member tools#392

Merged
bokelley merged 3 commits into
mainfrom
bokelley/addie-operating-rules
Dec 30, 2025
Merged

Add Addie operating rules and member tools#392
bokelley merged 3 commits into
mainfrom
bokelley/addie-operating-rules

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

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:

  • Database-backed operating rules (150+ rules covering identity, expertise, behaviors, constraints)
  • Member tools for working groups, profile management, agent validation, GitHub issue drafting
  • Per-request tool support in Claude client for dynamic tool composition
  • Dynamic suggested prompts based on user account status
  • Proactive account linking messages and pagination support

Code quality improvements:

  • Prevent negative priority values in SQL migrations
  • Support BASE_URL environment variable for deployment
  • Proper error response fields and URL length warnings

Test plan

  • TypeScript type checking passes
  • All existing tests pass (schemas, examples, error handling, migrations)
  • Commit passed precommit hook (npm test)
  • No breaking changes to existing APIs

bokelley and others added 3 commits December 30, 2025 07:26
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.
@bokelley bokelley merged commit c389356 into main Dec 30, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant