Update documentation from claude-opus-4 to claude-opus-4-5 (#190)

* Initial plan

* Update all references from claude-opus-4 to claude-opus-4-5

Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>

* Use shorthand model names (haiku, sonnet, opus) throughout codebase

Updated model references to use shorthand names that automatically forward to latest versions:
- UI components (Sidebar, ContextSettingsModal)
- Documentation (configuration.mdx, worker-service.mdx)
- Build artifacts (viewer-bundle.js)

Shorthand names provide forward compatibility without requiring version-specific updates.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>
Co-authored-by: Alex Newman <thedotmack@gmail.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Copilot
2025-12-09 23:07:48 -05:00
committed by GitHub
parent fb9cccd350
commit 41fbb87aa0
5 changed files with 31 additions and 29 deletions
+6 -7
View File
@@ -14,7 +14,7 @@ The worker service is a long-running HTTP API built with Express.js and managed
- **Port**: Fixed port 37777 (configurable via `CLAUDE_MEM_WORKER_PORT`) - **Port**: Fixed port 37777 (configurable via `CLAUDE_MEM_WORKER_PORT`)
- **Location**: `src/services/worker-service.ts` - **Location**: `src/services/worker-service.ts`
- **Built Output**: `plugin/scripts/worker-service.cjs` - **Built Output**: `plugin/scripts/worker-service.cjs`
- **Model**: Configurable via `CLAUDE_MEM_MODEL` environment variable (default: claude-sonnet-4-5) - **Model**: Configurable via `CLAUDE_MEM_MODEL` environment variable (default: sonnet)
## REST API Endpoints ## REST API Endpoints
@@ -390,14 +390,13 @@ The worker service routes observations to the Claude Agent SDK for AI-powered pr
Set the AI model used for processing via environment variable: Set the AI model used for processing via environment variable:
```bash ```bash
export CLAUDE_MEM_MODEL=claude-sonnet-4-5 export CLAUDE_MEM_MODEL=sonnet
``` ```
Available models: Available shorthand models (forward to latest version):
- `claude-haiku-4-5` - Fast, cost-efficient - `haiku` - Fast, cost-efficient
- `claude-sonnet-4-5` - Balanced (default) - `sonnet` - Balanced (default)
- `claude-opus-4` - Most capable - `opus` - Most capable
- `claude-3-7-sonnet` - Alternative version
## Port Allocation ## Port Allocation
+15 -14
View File
@@ -13,7 +13,7 @@ Settings are managed in `~/.claude-mem/settings.json`. The file is auto-created
| Setting | Default | Description | | Setting | Default | Description |
|-------------------------------|---------------------------------|---------------------------------------| |-------------------------------|---------------------------------|---------------------------------------|
| `CLAUDE_MEM_MODEL` | `claude-haiku-4-5` | AI model for processing observations | | `CLAUDE_MEM_MODEL` | `haiku` | AI model for processing observations |
| `CLAUDE_MEM_CONTEXT_OBSERVATIONS` | `50` | Number of observations to inject | | `CLAUDE_MEM_CONTEXT_OBSERVATIONS` | `50` | Number of observations to inject |
| `CLAUDE_MEM_WORKER_PORT` | `37777` | Worker service port | | `CLAUDE_MEM_WORKER_PORT` | `37777` | Worker service port |
| `CLAUDE_MEM_SKIP_TOOLS` | `ListMcpResourcesTool,SlashCommand,Skill,TodoWrite,AskUserQuestion` | Comma-separated tools to exclude from observations | | `CLAUDE_MEM_SKIP_TOOLS` | `ListMcpResourcesTool,SlashCommand,Skill,TodoWrite,AskUserQuestion` | Comma-separated tools to exclude from observations |
@@ -33,10 +33,11 @@ Configure which AI model processes your observations.
### Available Models ### Available Models
- `claude-haiku-4-5` - Fast, cost-efficient (default) Shorthand model names automatically forward to the latest version:
- `claude-sonnet-4-5` - Balanced
- `claude-opus-4` - Most capable - `haiku` - Fast, cost-efficient (default)
- `claude-3-7-sonnet` - Alternative version - `sonnet` - Balanced
- `opus` - Most capable
### Using the Interactive Script ### Using the Interactive Script
@@ -52,7 +53,7 @@ Edit `~/.claude-mem/settings.json`:
```json ```json
{ {
"CLAUDE_MEM_MODEL": "claude-haiku-4-5" "CLAUDE_MEM_MODEL": "haiku"
} }
``` ```
@@ -285,7 +286,7 @@ Token economics help you understand the value of cached observations vs. re-read
| Setting | Default | Description | | Setting | Default | Description |
|---------|---------|-------------| |---------|---------|-------------|
| **Model** | claude-haiku-4-5 | AI model for generating observations | | **Model** | haiku | AI model for generating observations |
| **Worker Port** | 37777 | Port for background worker service | | **Worker Port** | 37777 | Port for background worker service |
| **MCP search server** | true | Enable Model Context Protocol search tools | | **MCP search server** | true | Enable Model Context Protocol search tools |
| **Include last summary** | false | Add previous session's summary to context | | **Include last summary** | false | Add previous session's summary to context |
@@ -345,12 +346,13 @@ npm run worker:restart
Edit `~/.claude-mem/settings.json`: Edit `~/.claude-mem/settings.json`:
```json ```json
{ {
"CLAUDE_MEM_MODEL": "claude-opus-4" "CLAUDE_MEM_MODEL": "opus"
} }
``` ```
Then restart the worker: Then restart the worker:
```bash ```bash
export CLAUDE_MEM_MODEL=opus
npm run worker:restart npm run worker:restart
``` ```
@@ -448,13 +450,12 @@ npm run worker:logs
### Invalid Model Name ### Invalid Model Name
If you specify an invalid model name, the worker will fall back to `claude-haiku-4-5` and log a warning. If you specify an invalid model name, the worker will fall back to `haiku` and log a warning.
Valid models: Valid shorthand models (forward to latest version):
- claude-haiku-4-5 - haiku
- claude-sonnet-4-5 - sonnet
- claude-opus-4 - opus
- claude-3-7-sonnet
### Port Already in Use ### Port Already in Use
File diff suppressed because one or more lines are too long
@@ -497,12 +497,13 @@ export function ContextSettingsModal({
tooltip="AI model used for generating observations" tooltip="AI model used for generating observations"
> >
<select <select
value={formState.CLAUDE_MEM_MODEL || 'claude-haiku-4-5'} value={formState.CLAUDE_MEM_MODEL || 'haiku'}
onChange={(e) => updateSetting('CLAUDE_MEM_MODEL', e.target.value)} onChange={(e) => updateSetting('CLAUDE_MEM_MODEL', e.target.value)}
> >
<option value="claude-haiku-4-5">claude-haiku-4-5 (fastest)</option> {/* Shorthand names forward to latest model version */}
<option value="claude-sonnet-4-5">claude-sonnet-4-5 (balanced)</option> <option value="haiku">haiku (fastest)</option>
<option value="claude-opus-4">claude-opus-4 (highest quality)</option> <option value="sonnet">sonnet (balanced)</option>
<option value="opus">opus (highest quality)</option>
</select> </select>
</FormField> </FormField>
+4 -3
View File
@@ -223,9 +223,10 @@ export function Sidebar({ isOpen, settings, stats, isSaving, saveStatus, isConne
value={formState.CLAUDE_MEM_MODEL} value={formState.CLAUDE_MEM_MODEL}
onChange={e => updateFormState('CLAUDE_MEM_MODEL', e.target.value)} onChange={e => updateFormState('CLAUDE_MEM_MODEL', e.target.value)}
> >
<option value="claude-haiku-4-5">claude-haiku-4-5</option> {/* Shorthand names forward to latest model version */}
<option value="claude-sonnet-4-5">claude-sonnet-4-5</option> <option value="haiku">haiku</option>
<option value="claude-opus-4">claude-opus-4</option> <option value="sonnet">sonnet</option>
<option value="opus">opus</option>
</select> </select>
</div> </div>
<div className="form-group"> <div className="form-group">