Skip to content

Commit 0a3d708

Browse files
Bruce Haumanclaude
andcommitted
Bump version to v0.1.12-alpha
Updates version tag and commit hash in README.md installation examples. Adds CHANGELOG.md entry documenting session persistence and resume functionality for the prompt CLI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 79b9d5a commit 0a3d708

File tree

2 files changed

+47
-4
lines changed

2 files changed

+47
-4
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,49 @@
22

33
## [Unreleased]
44

5+
## [0.1.12-alpha] - 2025-11-06 Prompt CLI Session Persistence
6+
7+
This release adds session persistence and resume functionality to the prompt CLI, making it easier to maintain context across multiple interactions.
8+
9+
### Added
10+
- **Session Persistence for Prompt CLI**: All prompt-cli sessions are now automatically saved to `.clojure-mcp/prompt-cli-sessions/` as timestamped JSON files
11+
- Captures full conversation history including user messages, AI responses, and tool executions
12+
- Stores model metadata with each session
13+
- Uses LangChain4j's ChatMessageSerializer for proper Java object serialization
14+
- **Resume Functionality**: New `-r/--resume` flag to continue from the last session
15+
- Loads previous conversation history into agent memory (up to 100 messages)
16+
- Displays complete session history when resuming with inline tool execution tracking
17+
- Can override model when resuming: `--resume -m :openai/gpt-4`
18+
- **Enhanced Session History Display**:
19+
- Shows user messages, AI responses, and tool executions in a clear format
20+
- Tool executions displayed inline with their requests and results
21+
- Better EDN conversion for message viewing
22+
23+
### Changed
24+
- **Message Tracking Architecture**: Added message-capturing listener that stores actual Java ChatMessage objects instead of EDN representations
25+
- **Tool Execution Display**: Split tool execution extraction into two functions
26+
- `extract-tool-executions`: Gets all tool executions from messages
27+
- `extract-latest-tool-executions`: Gets only the most recent tool executions for live display
28+
- **Pretty-print Listener**: Now uses `extract-latest-tool-executions` to show only current tool calls during interaction
29+
30+
### Technical Details
31+
- Sessions stored as JSON with format: `{:model "..." :created "..." :messages "..."}`
32+
- Filename format: `yyyy-MM-dd'T'HH-mm-ss.json`
33+
- Automatic memory persistence enabled with `:memory-size 100` when resuming
34+
- Imports added: `clojure.data.json`, LangChain4j serializers, `java.time` classes
35+
36+
### Usage Examples
37+
```bash
38+
# Start new session
39+
clojure -M:prompt-cli -p "Create a function"
40+
41+
# Resume latest session
42+
clojure -M:prompt-cli --resume -p "Continue previous task"
43+
44+
# Resume with different model
45+
clojure -M:prompt-cli --resume -p "Next step" -m :openai/gpt-4
46+
```
47+
548
## [0.1.11-alpha] - 2025-10-04 Error Handling Changes in ClojureMCP Tool Responses
649

750
Recent changes to Claude Desktop and Claude Code prompted me to

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ Add `clojure-mcp` as an alias in your `~/.clojure/deps.edn`:
259259
{:mcp
260260
{:deps {org.slf4j/slf4j-nop {:mvn/version "2.0.16"} ;; Required for stdio server
261261
com.bhauman/clojure-mcp {:git/url "https://github.com/bhauman/clojure-mcp.git"
262-
:git/tag "v0.1.11-alpha"
263-
:git/sha "7739dba"}}
262+
:git/tag "v0.1.12-alpha"
263+
:git/sha "79b9d5a"}}
264264
:exec-fn clojure-mcp.main/start-mcp-server
265265
:exec-args {:port 7888}}}}
266266
```
@@ -1091,8 +1091,8 @@ In order to generate the code index, you will need to set up an alias for this p
10911091
{:index
10921092
{:deps {org.slf4j/slf4j-nop {:mvn/version "2.0.16"} ;; Required for stdio server
10931093
com.bhauman/clojure-mcp {:git/url "https://github.com/bhauman/clojure-mcp.git"
1094-
:git/tag "v0.1.11-alpha"
1095-
:git/sha "7739dba"}}
1094+
:git/tag "v0.1.12-alpha"
1095+
:git/sha "79b9d5a"}}
10961096
:exec-fn clojure-mcp.code-indexer/map-project
10971097
:exec-args {}}}}
10981098
```

0 commit comments

Comments
 (0)