Skip to content

Commit 170028e

Browse files
authored
Merge pull request #7 from andreyvelich/add-memory
feat: Support continuous conversation for Claude memory
2 parents 57089db + 16cbc67 commit 170028e

File tree

5 files changed

+2222
-27
lines changed

5 files changed

+2222
-27
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ target/
7878
# Jupyter Notebook
7979
.ipynb_checkpoints
8080

81+
# Jupyter AI chats
82+
*.chat
83+
8184
# IPython
8285
profile_default/
8386
ipython_config.py

README.md

Lines changed: 26 additions & 8 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
@@ -16,28 +17,26 @@ This project uses [pixi.sh](https://pixi.sh) for dependency management and envir
1617
### Prerequisites
1718

1819
Install pixi.sh:
20+
1921
```bash
2022
curl -fsSL https://pixi.sh/install.sh | bash
2123
```
2224

2325
### Installation
2426

2527
1. Clone the repository:
28+
2629
```bash
2730
git clone <repository-url>
2831
cd jupyter-ai-claude-code
2932
```
3033

31-
2. Install dependencies and set up the environment:
34+
2. Enter the pixi shell environment:
35+
3236
```bash
33-
pixi install
37+
pixi shell
3438
```
3539

36-
This will:
37-
- Install JupyterLab from conda-forge
38-
- Install Jupyter AI 3.0.0b5 from PyPI
39-
- Install the package in editable mode
40-
4140
## Usage
4241

4342
### Start JupyterLab
@@ -55,9 +54,28 @@ This will start JupyterLab with the Jupyter AI extension and Claude Code persona
5554
3. Select "Claude" persona
5655
4. Interact with Claude Code's development tools
5756

57+
#### Continuous Conversation
58+
59+
The Claude Code persona now supports continuous conversation, which maintains context across multiple messages in a chat session. This allows Claude to:
60+
61+
- Remember previous questions and answers
62+
- Build upon earlier context in the conversation
63+
- Provide more coherent multi-turn interactions
64+
65+
**Session Management:**
66+
67+
The persona automatically manages conversation sessions. Each time you send a message,
68+
it's added to the ongoing conversation context.
69+
70+
**How it works:**
71+
72+
- The first message automatically creates a new `ClaudeSDKClient` session.
73+
- Subsequent messages reuse the same client to maintain conversation context.
74+
- The client persists until you start a new session in the chat window.
75+
5876
### Build the Package
5977

60-
The package is automatically installed in editable mode during `pixi install`. To manually build:
78+
The package is automatically installed in editable mode during `pixi shell`. To manually build:
6179

6280
```bash
6381
pixi run python -m build

0 commit comments

Comments
 (0)