Everything you tell your coding AI is context Trillion can use: goals, decisions, people to reach out to, ideas. This hook copies each conversation into your Trillion as it happens, so any of your AIs can read it later with read_messages, and your own words can start work in Trillion.
What it records
- Your messages, with their original time and conversation. Each one arrives in Trillion as something you said, so it can start work.
- Your AI’s replies, with the model that wrote them.
- Nothing that nobody said. Text the AI app injects (system reminders, tool output, notes from other sessions, interruptions) is left out.
It remembers how far it has read each conversation, and only moves on after Trillion has accepted the message, so nothing is sent twice and nothing is skipped when your connection drops.
Which AI apps
A new app is one entry in record-every-message.json saying where it keeps its conversations and which lines are yours and which are its replies.
Install
In ~/.claude/settings.json, add one hook to hooks.Stop and one to hooks.UserPromptSubmit: In ~/.codex/hooks.json, add the same two hooks, with --harness codex on the second:Then approve both in Codex’s hook review; Codex skips a hook until you trust it.
Once this hook is on, your AI no longer needs to call record_messages for that conversation. The decisions-since hook tells it so at the start of each message.
Record an older conversation
To send one conversation you had before installing the hook:
How it behaves
It runs for at most 4 seconds per turn, never shows output, and always finishes without an error. Anything it could not send is sent at the next turn. Last modified on October 1, 2026