context-keeper Claude Code mod

Shows context usage and helps prepare handoff checkpoints.

  • session.start
  • command.run
  • turn.complete
  • session.compact
  • ui.render

Install commands

Enter these two lines in the Claude Code prompt, in order.

1. Add marketplace   2. Install plugin
/plugin marketplace add mishgoldenberg/claude-mods
/plugin install context-keeper@claude-mods

Review the source before installing. Installation guide →

Permissions Facts

Can read files
–
Can write files
Yes
Can access the network
Yes
Can read environment variables
–
Can change prompts
Yes
Can intercept tool calls
–

Capability evidence is not a security certification; “–” does not mean a capability is absent.

Source & updates

Last updated
2026-10-06
License
MIT
Plugin version
0.1.2
Claude Code
2.1.287+
Source
0954c97
Repository stars
5 · Repository contains 12 mods in this directory

A usage estimate is not a billing statement.

Source files
Plugin manifest ↗Hooks configuration ↗Registered module ↗Marketplace manifest ↗

Source inventory

Declared events: session.start | command.run{command=ctx} | command.run{command=checkpoint} | command.run{command=resume-checkpoint} | turn.complete | session.compact | ui.render{component=Pane | requestId=context-keeper}

Declared API calls: $.clock.now (via archive | refresh | writeHandoff) | $.command.register | $.command.run | $.fs.write (via archive | $.model.fork (via writeHandoff) | $.prompt.fill | $.prompt.suggest | $.session.id (via writeHandoff) | $.session.root | $.session.turns (via writeHandoff) | $.session.usage (via refresh) | $.state.get | $.state.set | $.store.get | $.store.set (via remember) | $.ui.log | $.ui.open | $.ui.resolve | $.ui.status | $.ui.toast

Can write files evidence

context-keeper:145 ↗

await $.fs.write(path, header + result.text)

context-keeper:164 ↗

await $.fs.write(path, `# Transcript archived before compaction\n\n${lines.join('\n')}`)

Can access the network evidence

context-keeper:130 ↗

const result = await $.model.fork({ prompt: HANDOFF_PROMPT })

Can change prompts evidence

context-keeper:202 ↗

await $.prompt.fill({ text: `Read ${latest.path} and continue the work from where it left off. Confirm the next step before acting.` })

context-keeper:348 ↗

onPress={() => void $.prompt.fill({ text: `Read ${cp.path} and continue the work from where it left off. Confirm the next step before acting.` })}

Review methodology · Source and updates · Runtime limits · Function hooks guide