Skip to content

Commit 5be9f67

Browse files
committed
feat: Support continuous conversation for Claude memory
1 parent 57089db commit 5be9f67

File tree

3 files changed

+3110
-12
lines changed

3 files changed

+3110
-12
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Jupyter AI integration with Claude Code persona for enhanced development capabil
55
## Features
66

77
- **Claude Code Integration**: Full Claude Code persona for Jupyter AI
8+
- **Continuous Conversation**: Maintains conversation context across multiple messages
89
- **Development Tools**: Access to Claude Code's built-in development tools
910
- **Seamless Integration**: Works with existing Jupyter AI workflow
1011
- **Template Management**: Interactive task progress tracking and updates
@@ -55,6 +56,30 @@ This will start JupyterLab with the Jupyter AI extension and Claude Code persona
5556
3. Select "Claude" persona
5657
4. Interact with Claude Code's development tools
5758

59+
#### Continuous Conversation
60+
61+
The Claude Code persona now supports continuous conversation, which maintains context across multiple messages in a chat session. This allows Claude to:
62+
- Remember previous questions and answers
63+
- Build upon earlier context in the conversation
64+
- Provide more coherent multi-turn interactions
65+
66+
**Session Management:**
67+
68+
The persona automatically manages conversation sessions. Each time you send a message, it's added to the ongoing conversation context. If you want to reset the conversation and start fresh, you can programmatically call:
69+
70+
```python
71+
# From within the ClaudeCodePersona instance
72+
await persona.reset_conversation()
73+
```
74+
75+
This will clear the conversation history and start a new session with the next message.
76+
77+
**How it works:**
78+
79+
- The first message automatically creates a new `ClaudeSDKClient` session
80+
- Subsequent messages reuse the same client to maintain conversation context
81+
- The client persists until you explicitly reset it or the JupyterLab session ends
82+
5883
### Build the Package
5984

6085
The package is automatically installed in editable mode during `pixi install`. To manually build:

0 commit comments

Comments
 (0)