sensing_record_turn
Record a conversation turn to detect topic shifts. Use the returned flag to trigger context injection when needed.
Instructions
Record a completed conversation turn (user message + Claude reply). Call this after every exchange. Survives server restarts — keep using the same session_id even if the server reconnected mid-conversation. Returns whether a topic shift was detected — if true, call your context injection tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sequence | Yes | Turn number within the session, starting at 1 | |
| session_id | Yes | Session identifier from sensing_start_session | |
| claude_reply | Yes | The full Claude reply text | |
| user_message | Yes | The full user message text | |
| files_touched | No | Files read or modified during this turn | |
| injected_memory_ids | No | IDs of memories Control injected before this turn, for feedback scoring |