Get started
Quick start
Add the plugin to your agent, open a React project, and ask for a change. Fragments checks the turn that writes it.
Add the plugin
Two commands in your terminal. No account.
$ claude plugin marketplace add fragments-sdk/agent-plugin$ claude plugin install fragments@fragments
- Claude Code
- Restart any open session.
- Codex
- Asks to trust the Fragments hooks: choose Trust all and continue.
Ask for a change
Ask your agent for a screen, as you do today. Each edit is checked in the turn that writes it.
>Feature this weekend's walk at the top of the Walks page
See the check
What drifts from your system comes back in the same turn, with the line and the token to use. Here three edits clear all seven before the turn ends.
tarnside — claude
>Feature this weekend's walk at the top of the Walks page
Write(src/pages/Featured.tsx)
Fragments advisory: this edit added 7 drifts:
-src/pages/Featured.tsx:19 #a7aeaa: no project value is close
-src/pages/Featured.tsx:25 #1e3a2f: the project uses --color-fell
… +5 lines (ctrl+o to expand)
Update(src/pages/Featured.tsx)
+ color: 'var(--color-muted)',
-<button style={{ height: 46, padding: '0 22px',
- borderRadius: 999, background: '#1e3a2f', … }}>
fragments - check (MCP)(files: ["src/pages/Featured.tsx"])
⎿No drift.
tarnside — claude
>Feature this weekend's walk at the top of the Walks page
Write(src/pages/Featured.tsx)
Fragments advisory: this edit added 7 drifts:
-src/pages/Featured.tsx:19 #a7aeaa: no project value is close
-src/pages/Featured.tsx:25 #1e3a2f: the project uses --color-fell
… +5 lines (ctrl+o to expand)
Update(src/pages/Featured.tsx)
+color: 'var(--color-muted)',
-<button style={{ height: 46, padding: '0 22px', borderRadius: 999, background: '#1e3a2f', … }}>
fragments - check (MCP)(files: ["src/pages/Featured.tsx"])
⎿No drift.
If you see Fragments advisory or No drift. under an edit, the plugin is running. If you see neither, restart the session.
Open the app
The desktop app shows each turn's page before it and now, draws directions on your own components, and undoes a turn in one step.
Walks page· this turnSide by sideSwipe
BeforeWalks in the Lake District.AllEasyModerateHardButtermere roundEasyButtermere · 7 km · 2 hrs
NowWalks in the Lake District.AllEasyModerateHardThis weekendCatbellsA short, steep ridge above Derwentwater. Small fell, big view.
This turn“Feature this weekend’s walk”No driftUndoKeep Walks page · this turn
BeforeWalks in the Lake District.AllEasyModerateHardButtermere roundEasyButtermere · 7 km · 2 hrs
NowWalks in the Lake District.AllEasyModerateHardThis weekendCatbellsA short, steep ridge above Derwentwater. Small fell, big view.
This turn “Feature this weekend’s walk”No driftUndoKeep