Home / Claude Code mods / Interface / cc-traj-seg

cc-traj-seg

cc-traj-seg is a Claude Code mod by lucastononro that 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.

Updated 2026-10-06

What is cc-traj-seg?

cc-traj-seg is a Claude Code mod by lucastononro that 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. It is listed under Interface and has 1 GitHub stars.

TypeClaude code mod
Authorlucastononro
Repositorylucastononro/cc-traj-seg
Popularity1 GitHub stars
CategoryInterface
SecurityReview before installing (72/100)
Rank#1,942 of 5,272 Claude Code mods; #779 in Interface
LicenseMIT
Last commit2026-10-06
Hooks7 events
Seesevery tool call
Draws onPane

Is cc-traj-seg safe to install?

cc-traj-seg scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.readreads files
$.fs.writewrites files
$.model.completedrives Claude
$.session.id
$.session.messagesreads the transcript
$.session.usage
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.closedraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install cc-traj-seg?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/lucastononro/cc-traj-seg
    claude plugin validate ./cc-traj-seg/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add lucastononro/cc-traj-seg && claude plugin install cc-traj-seg@cc-traj-seg

Or ask Claude to set it up

Paste this into Claude Code and it installs cc-traj-seg for you:

Install the "cc-traj-seg" Claude Code mod from https://github.com/lucastononro/cc-traj-seg. Run claude plugin validate on it first and show me what it can access before you enable it.