You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renames server-side chat events to drop the wa_ prefix (since they fire from
multiple sources), adds a new tool_used event for unified tool call tracking
across the ask agent and MCP server, and introduces client-side wa_ask_* events
for accurate web-only usage dashboards.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,12 @@ if (!value) { return; }
57
57
if (condition) doSomething();
58
58
```
59
59
60
+
## PostHog Event Naming
61
+
62
+
- The `wa_` prefix is reserved for events that can ONLY be fired from the web app (e.g., `wa_login_with_github`, `wa_chat_feedback_submitted`).
63
+
- Events fired from multiple sources (web app, MCP server, API) must NOT use the `wa_` prefix (e.g., `ask_message_sent`, `tool_used`).
64
+
- Multi-source events should include a `source` property to identify the origin (e.g., `'sourcebot-web-client'`, `'sourcebot-mcp-server'`, `'sourcebot-ask-agent'`).
65
+
60
66
## Tailwind CSS
61
67
62
68
Use Tailwind color classes directly instead of CSS variable syntax:
0 commit comments