claude-history 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Benjamin Anderson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,113 @@
1
+ Metadata-Version: 2.4
2
+ Name: claude-history
3
+ Version: 0.5.0
4
+ Summary: CLI tool to explore and inspect past Claude Code conversations
5
+ Requires-Python: >=3.13
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Requires-Dist: click>=8.3.1
9
+ Requires-Dist: orjson>=3.10.0
10
+ Dynamic: license-file
11
+
12
+ # claude-history
13
+
14
+ CLI tool to explore and inspect past Claude Code conversation histories.
15
+
16
+ ## Installation
17
+
18
+ ```bash
19
+ # Install with uv
20
+ uv pip install -e .
21
+
22
+ # Or with pip
23
+ pip install -e .
24
+ ```
25
+
26
+ To also install the Claude Code skill:
27
+ ```bash
28
+ ./install.sh # Installs to ~/.claude/skills/
29
+ ./install.sh /custom/path # Installs to custom location
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ### List projects
35
+ ```bash
36
+ claude-history projects
37
+ ```
38
+ Shows all projects with conversation history, conversation counts, and last modified dates.
39
+
40
+ ### List conversations in a project
41
+ ```bash
42
+ claude-history list [PROJECT] [-n LIMIT]
43
+ ```
44
+ - `PROJECT`: Can be specified in multiple formats:
45
+ - Full filesystem path: `/Users/bob/myproject`
46
+ - Project name suffix: `myproject` (matches any project ending with that name)
47
+ - Path as shown by `projects` command: `/Users/bob/myproject`
48
+ - Without argument: lists recent conversations across all projects
49
+
50
+ ### View a conversation
51
+ ```bash
52
+ claude-history view SESSION_ID [-f|--full] [--no-tools] [-n LIMIT] [-o OFFSET]
53
+ ```
54
+ - `SESSION_ID`: Full ID, partial ID (e.g., first 8 chars), or file path
55
+ - `-f`: Show full message content (not truncated)
56
+ - `--no-tools`: Hide tool use details
57
+ - `-n`: Limit messages shown
58
+ - `-o`: Skip first N messages
59
+
60
+ ### Quick summary
61
+ ```bash
62
+ claude-history summary SESSION_ID
63
+ ```
64
+ Shows conversation metadata and a compact flow of user/assistant exchanges with tools used.
65
+
66
+ ### Search conversations
67
+ ```bash
68
+ claude-history search QUERY [-n LIMIT]
69
+ ```
70
+ Search all conversations for a text string.
71
+
72
+ ### Generate catchup context
73
+ ```bash
74
+ claude-history catchup SESSION_ID [-c MAX_CHARS] [--include-tools]
75
+ ```
76
+ Generates a markdown summary suitable for pasting into a new Claude session to restore context.
77
+
78
+ ### Project summary
79
+ ```bash
80
+ claude-history project-summary PROJECT_PATH [-n LIMIT] [-c MAX_CHARS]
81
+ ```
82
+ Summarizes recent conversations in a project.
83
+
84
+ ### Export
85
+ ```bash
86
+ claude-history export SESSION_ID [-f text|json]
87
+ ```
88
+ Export conversation to simplified text or JSON format.
89
+
90
+ ## Common Workflows
91
+
92
+ ### Catching up on a previous session
93
+ ```bash
94
+ # Find the session
95
+ claude-history list /path/to/project -n 10
96
+
97
+ # Get a catchup summary to paste into new context
98
+ claude-history catchup abc123def
99
+ ```
100
+
101
+ ### Finding where something was discussed
102
+ ```bash
103
+ claude-history search "authentication bug"
104
+ ```
105
+
106
+ ### Understanding project history
107
+ ```bash
108
+ claude-history project-summary /path/to/project -n 5
109
+ ```
110
+
111
+ ## License
112
+
113
+ MIT
@@ -0,0 +1,102 @@
1
+ # claude-history
2
+
3
+ CLI tool to explore and inspect past Claude Code conversation histories.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Install with uv
9
+ uv pip install -e .
10
+
11
+ # Or with pip
12
+ pip install -e .
13
+ ```
14
+
15
+ To also install the Claude Code skill:
16
+ ```bash
17
+ ./install.sh # Installs to ~/.claude/skills/
18
+ ./install.sh /custom/path # Installs to custom location
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ### List projects
24
+ ```bash
25
+ claude-history projects
26
+ ```
27
+ Shows all projects with conversation history, conversation counts, and last modified dates.
28
+
29
+ ### List conversations in a project
30
+ ```bash
31
+ claude-history list [PROJECT] [-n LIMIT]
32
+ ```
33
+ - `PROJECT`: Can be specified in multiple formats:
34
+ - Full filesystem path: `/Users/bob/myproject`
35
+ - Project name suffix: `myproject` (matches any project ending with that name)
36
+ - Path as shown by `projects` command: `/Users/bob/myproject`
37
+ - Without argument: lists recent conversations across all projects
38
+
39
+ ### View a conversation
40
+ ```bash
41
+ claude-history view SESSION_ID [-f|--full] [--no-tools] [-n LIMIT] [-o OFFSET]
42
+ ```
43
+ - `SESSION_ID`: Full ID, partial ID (e.g., first 8 chars), or file path
44
+ - `-f`: Show full message content (not truncated)
45
+ - `--no-tools`: Hide tool use details
46
+ - `-n`: Limit messages shown
47
+ - `-o`: Skip first N messages
48
+
49
+ ### Quick summary
50
+ ```bash
51
+ claude-history summary SESSION_ID
52
+ ```
53
+ Shows conversation metadata and a compact flow of user/assistant exchanges with tools used.
54
+
55
+ ### Search conversations
56
+ ```bash
57
+ claude-history search QUERY [-n LIMIT]
58
+ ```
59
+ Search all conversations for a text string.
60
+
61
+ ### Generate catchup context
62
+ ```bash
63
+ claude-history catchup SESSION_ID [-c MAX_CHARS] [--include-tools]
64
+ ```
65
+ Generates a markdown summary suitable for pasting into a new Claude session to restore context.
66
+
67
+ ### Project summary
68
+ ```bash
69
+ claude-history project-summary PROJECT_PATH [-n LIMIT] [-c MAX_CHARS]
70
+ ```
71
+ Summarizes recent conversations in a project.
72
+
73
+ ### Export
74
+ ```bash
75
+ claude-history export SESSION_ID [-f text|json]
76
+ ```
77
+ Export conversation to simplified text or JSON format.
78
+
79
+ ## Common Workflows
80
+
81
+ ### Catching up on a previous session
82
+ ```bash
83
+ # Find the session
84
+ claude-history list /path/to/project -n 10
85
+
86
+ # Get a catchup summary to paste into new context
87
+ claude-history catchup abc123def
88
+ ```
89
+
90
+ ### Finding where something was discussed
91
+ ```bash
92
+ claude-history search "authentication bug"
93
+ ```
94
+
95
+ ### Understanding project history
96
+ ```bash
97
+ claude-history project-summary /path/to/project -n 5
98
+ ```
99
+
100
+ ## License
101
+
102
+ MIT
@@ -0,0 +1,16 @@
1
+ [project]
2
+ name = "claude-history"
3
+ version = "0.5.0"
4
+ description = "CLI tool to explore and inspect past Claude Code conversations"
5
+ readme = "README.md"
6
+ requires-python = ">=3.13"
7
+ dependencies = [
8
+ "click>=8.3.1",
9
+ "orjson>=3.10.0",
10
+ ]
11
+
12
+ [project.scripts]
13
+ claude-history = "claude_history.cli:main"
14
+
15
+ [dependency-groups]
16
+ dev = []
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """Claude Code conversation history viewer."""
2
+
3
+ __version__ = "0.1.0"