Repository navigation
v0.2.0: Custom prompts, historical summarise, nested session fix #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
df3e3fa
Add SEAMLESS_PROMPT_FILE support for custom compaction prompts
RemoteCTO 83ef612
Add User Intent section to default compaction prompt
RemoteCTO 047a9c4
Bump version to 0.2.0
RemoteCTO d7040d3
Document SEAMLESS_PROMPT_FILE and User Intent section in README
RemoteCTO d378645
Add v0.2.0 changelog entry
RemoteCTO f4347f2
Add claude-summarise and fix nested session guard
RemoteCTO 894619e
Fix biome formatting in validate.mjs
RemoteCTO 5b2bb1d
Address review: guard statSync race, fix README example
RemoteCTO File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| #!/usr/bin/env node | ||
| /** | ||
| * Summarise a historical Claude Code session. | ||
| * | ||
| * Usage: | ||
| * claude-summarise <id-or-prefix> | ||
| * claude-summarise <id-or-prefix> --force | ||
| * claude-summarise --list [prefix] | ||
| * claude-summarise --help | ||
| */ | ||
|
|
||
| import { execFileSync } from 'node:child_process' | ||
| import { dirname, join } from 'node:path' | ||
| import { fileURLToPath } from 'node:url' | ||
|
|
||
| const ROOT = dirname( | ||
| dirname(fileURLToPath(import.meta.url)), | ||
| ) | ||
| const SCRIPT = join( | ||
| ROOT, 'scripts', 'summarise.mjs', | ||
| ) | ||
|
|
||
| const USAGE = `\ | ||
| Usage: claude-summarise [options] <session> | ||
|
|
||
| Summarise any historical Claude Code session | ||
| by running the seamless-claude compactor against | ||
| its transcript. | ||
|
|
||
| Options: | ||
| --list List available sessions | ||
| --force Re-summarise even if summary exists | ||
| --help Show this help | ||
|
|
||
| Arguments: | ||
| session UUID or short prefix (min 8 chars) | ||
|
|
||
| Examples: | ||
| claude-summarise 97aac477 | ||
| claude-summarise --list | ||
| claude-summarise --list baldyak | ||
| claude-summarise 97aac477 --force` | ||
|
|
||
| const arg = process.argv[2] | ||
|
|
||
| if (arg === '--help' || arg === 'help') { | ||
| process.stdout.write(`${USAGE}\n`) | ||
| process.exit(0) | ||
| } | ||
|
|
||
| try { | ||
| execFileSync( | ||
| process.execPath, | ||
| [SCRIPT, ...process.argv.slice(2)], | ||
| { stdio: 'inherit' }, | ||
| ) | ||
| } catch (err) { | ||
| process.exit(err.status ?? 1) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.