Internal Cleanup & Attachment Optimization
A housekeeping release that simplifies the codebase, removes unused dependencies, and optimizes how file attachments are processed.
What changed
Text attachment optimization — Text files attached to messages are now passed as file blocks (same pipeline as images) instead of being base64-decoded and inlined into the prompt. Claude CLI saves them to temp files and reads via its Read tool. This keeps prompts compact and avoids command-line length limits on Windows.
Removed engine column — The engine parameter was removed from session creation across all call sites (~10 locations in server.js). The column was no longer used since the CLI is the only execution engine.
Dropped @anthropic-ai/claude-code SDK — Removed from package.json dependencies. The project spawns the Claude CLI directly and doesn't use the SDK. This eliminates ~350 lines from package-lock.json and speeds up npm install.
Generic attachment label — "Attached images" renamed to "Attached files" in claude-cli.js since attachments can be any file type, not just images.
Details
| File | Change |
|---|---|
server.js
| Remove engine param from createSession INSERT + all 10 call sites; refactor buildAttachmentContentBlocks for text files
|
claude-cli.js
| "Attached images" → "Attached files" |
package.json
| Remove @anthropic-ai/claude-code dependency
|
package-lock.json
| −355 lines (SDK tree removed) |
Full Changelog: v5.36.0...v5.37.0