Writes every exchange to a dated file you keep.

Writes every exchange to a dated file you keep.
Status: stub. Tested with Claude Code 2.1.287.
hooks/register.ts 15 lines1import type { Register } from 'claude-code'
2
3// STUB. Loads, validates, and answers /record with what it will become.
4// The shape it is heading for: turn.complete appends the prompt and answer to a dated markdown file via $.fs
5export const register: Register = on => {
6 on('session.start', async ($, e, next) => {
7 await $.command.register({ name: 'record', description: "Writes every exchange to a dated file you keep." })
8 return next(e)
9 })
10
11 on('command.run', { command: 'record' }, async () => {
12 return { text: 'Not built yet. ' + "Writes every exchange to a dated file you keep." }
13 })
14}
15