Skip to content

fix: ensure tool documentation always included in Addie's system prompt#763

Merged
bokelley merged 4 commits into
mainfrom
bokelley/addie-meetings
Jan 14, 2026
Merged

fix: ensure tool documentation always included in Addie's system prompt#763
bokelley merged 4 commits into
mainfrom
bokelley/addie-meetings

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Fix architectural issue where Addie didn't know about meeting scheduling tools
  • Tool documentation was only in a hardcoded fallback prompt that wasn't used when database rules existed
  • Now tool reference is always appended to the system prompt

Test plan

  • Verified Addie now says "I can help with meeting scheduling" instead of "I can't schedule meetings yet"
  • Ran typecheck and all tests pass
  • Code review addressed (added tool reference to eval service too)

🤖 Generated with Claude Code

bokelley and others added 4 commits January 13, 2026 20:51
Tool documentation was only in a hardcoded fallback prompt that wasn't used
when database rules existed. This caused Addie to not know about meeting
scheduling and other tools.

Changes:
- Add ADDIE_TOOL_REFERENCE constant with tool documentation (tied to code)
- Add ADDIE_FALLBACK_PROMPT for minimal fallback when DB unavailable
- Always append tool reference to system prompt in claude-client.ts
- Also append in eval-service.ts for consistency
- Remove unused ADDIE_SYSTEM_PROMPT (was 400+ lines of dead code)

Architecture: DB rules handle behavioral guidance (editable), tool reference
handles tool existence (tied to code implementations).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The v2.6-rc docs have WIP governance links that don't exist yet.
Temporarily hide the directory during the check until the governance
section is completed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… check

Renaming the directory to v2.6-rc.hidden still allowed mintlify to scan it.
Deleting the directory entirely and restoring from git ensures it's excluded.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Applying the same fix to the local pre-push hook - remove v2.6-rc
directory during check since it has WIP governance links.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley force-pushed the bokelley/addie-meetings branch from dedcd6f to f558c44 Compare January 14, 2026 01:52
@bokelley bokelley merged commit 36a98c3 into main Jan 14, 2026
6 checks passed
bokelley added a commit that referenced this pull request Jan 16, 2026
…pt (#763)

* fix: ensure tool documentation always included in Addie's system prompt

Tool documentation was only in a hardcoded fallback prompt that wasn't used
when database rules existed. This caused Addie to not know about meeting
scheduling and other tools.

Changes:
- Add ADDIE_TOOL_REFERENCE constant with tool documentation (tied to code)
- Add ADDIE_FALLBACK_PROMPT for minimal fallback when DB unavailable
- Always append tool reference to system prompt in claude-client.ts
- Also append in eval-service.ts for consistency
- Remove unused ADDIE_SYSTEM_PROMPT (was 400+ lines of dead code)

Architecture: DB rules handle behavioral guidance (editable), tool reference
handles tool existence (tied to code implementations).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* ci: exclude v2.6-rc from broken-links check

The v2.6-rc docs have WIP governance links that don't exist yet.
Temporarily hide the directory during the check until the governance
section is completed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: delete v2.6-rc directory instead of renaming during broken-links check

Renaming the directory to v2.6-rc.hidden still allowed mintlify to scan it.
Deleting the directory entirely and restoring from git ensures it's excluded.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: exclude v2.6-rc from pre-push broken-links check

Applying the same fix to the local pre-push hook - remove v2.6-rc
directory during check since it has WIP governance links.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
bokelley added a commit that referenced this pull request Jan 20, 2026
…pt (#763)

* fix: ensure tool documentation always included in Addie's system prompt

Tool documentation was only in a hardcoded fallback prompt that wasn't used
when database rules existed. This caused Addie to not know about meeting
scheduling and other tools.

Changes:
- Add ADDIE_TOOL_REFERENCE constant with tool documentation (tied to code)
- Add ADDIE_FALLBACK_PROMPT for minimal fallback when DB unavailable
- Always append tool reference to system prompt in claude-client.ts
- Also append in eval-service.ts for consistency
- Remove unused ADDIE_SYSTEM_PROMPT (was 400+ lines of dead code)

Architecture: DB rules handle behavioral guidance (editable), tool reference
handles tool existence (tied to code implementations).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* ci: exclude v2.6-rc from broken-links check

The v2.6-rc docs have WIP governance links that don't exist yet.
Temporarily hide the directory during the check until the governance
section is completed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: delete v2.6-rc directory instead of renaming during broken-links check

Renaming the directory to v2.6-rc.hidden still allowed mintlify to scan it.
Deleting the directory entirely and restoring from git ensures it's excluded.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: exclude v2.6-rc from pre-push broken-links check

Applying the same fix to the local pre-push hook - remove v2.6-rc
directory during check since it has WIP governance links.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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