cc-traj-seg

by Lucas Tonon · ★ 1 · updated 6 days ago

PanesGuardsCommandsvalidates

0

Trajectory segmentation for long Claude Code sessions: every N steps a model of your choice (haiku by default) reads the previous segments and the last 40 steps and either adds a segment of what Claude is doing now and the path it is on, amends the current one, or stays quiet. Cards in a pane on the right, each with an X. Needs Claude Code 2.1.289 or later.

install cc-traj-seg

Install

/plugin marketplace add lucastononro/cc-traj-seg
/plugin install cc-traj-seg@cc-traj-seg

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runui.closeui.messagetool.callturn.completeui.render
API calls
$.clock.now$.command.register$.env.get$.fs.read$.fs.write$.model.complete$.session.id$.session.messages$.session.usage$.store.get$.store.set$.ui.close$.ui.invalidate$.ui.log$.ui.open$.ui.resolve$.ui.toast
Draws
Pane
Can see
every tool call
Reach
level 2 of 3 writes filesdrives Claudereads filesreads env varsreads the transcriptpersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/lucastononro/cc-traj-seg
Path in repo
repository root
Source commit
6c3f4a6 the exact code the scan read
Author
Lucas Tonon @lucastononro
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.