Skip to content
曾亮懿 ZengLiangYi Blog
Tag

#ChatCrystal

59 posts tagged "ChatCrystal".

MCP Boundaries: Discovery, Identity, and Call Permissions

Examine Model Context Protocol boundaries: tool discovery, server instance tracking, and execution permissions in reviewable developer environments.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #MCP #Node.js

SourceAdapter Internals: Content Hashing and Idempotent Sync

Trace ChatCrystal’s registry, importer, and remote payload to verify identity, canonical hashes, metadata shortcuts, and parser-version boundaries.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #TypeScript #Node.js

sql.js WASM Persistence: Memory, Exports and Nested Savepoints

Trace ChatCrystal’s database lifecycle with sql.js 1.14.2 fixtures, separating SQL commits, exports, file writes, foreign-key restoration, and nested rollback.

曾亮懿 曾亮懿
5 min read
#ChatCrystal #Node.js #SQLite

Team Knowledge Sharing: Access Tokens, Approvals, and Data Scopes

Separate current cloud tokens from proposed member permissions; test read operations and batch approval on fixtures and define recovery responsibilities.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Knowledge management #Architecture

Vectra Vector Search: Metadata, Updates, and Local Cache

Inspect Vectra 0.15.0 query and storage paths with temporary indexes, observing external metadata, files left after cancellation, and instance-cache boundaries.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Node.js #SQLite #Vector search

Building an Embedding Service: Text, Chunks, and Commits

Read ChatCrystal’s actual embedding pipeline, separate text selection, soft chunking, vector validation, and commits, and verify boundaries offline.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #AI #Node.js

Biome vs ESLint: Dividing Code Quality and Formatting in Repos

Read ChatCrystal’s scripts and Flat Config, verify ESLint diagnostics offline, and distinguish syntax rules, type checking, formatting, and CI gates.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #TypeScript #Node.js

A Minimal MCP Server: Register Tools and Verify Stdio Calls

Build an offline addition tool with TypeScript SDK, verify protocol discovery and calls, and inspect ChatCrystal adapter integration boundaries.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #MCP #Node.js

Conversation Parsing: JSONL, Events, and SQLite Read Boundaries

Trace ChatCrystal parsers with offline fixtures to test line framing and SQLite snapshots, separating decoding from message normalization guarantees.

曾亮懿 曾亮懿
6 min read
#ChatCrystal #Node.js #SQLite

Release Engineering: npm, Electron, and Tag-Driven CI

Trace ChatCrystal release workflows, verify tag plans, package fixtures, and failure exits offline, identifying steps that still require acceptance.

曾亮懿 曾亮懿
5 min read
#ChatCrystal #Node.js #Automation

Async Task Queues with p-queue: Concurrency, Limits, and Retries

Use p-queue to manage task concurrency, separate starts from model requests, and verify offline that clearing waiting work never interrupts active tasks.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Node.js #TypeScript

Multi-Source Ingestion Architecture: Decouple Scan and Parsing

Read adapter import contracts, verify selective parsing with fixtures, and check source registration, enablement, identity, and version boundaries.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #TypeScript #Node.js

Structured JSON Prompts: Field Design and Verifiable Evidence

Use ChatCrystal’s summaries and relations to define fields, visible evidence, and counterexamples, then distinguish shape and evidence checks with offline Zod.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #AI #Node.js

TanStack Query Data Flow: Keys, Invalidation, and Queries

Trace ChatCrystal hooks and API, verify parameterized query keys and prefix invalidation, and distinguish accepted requests from background refreshes.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #React #TypeScript

Testing Strategy: Counterexamples for SQL, Functions, and APIs

Check ChatCrystal’s Node test entry points, practice dependency isolation, SQL rollback, and Fastify inject offline, and state what those tests do not cover.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Node.js #TypeScript

TypeScript Monorepo Setup: Project References and Shared Types

Check ChatCrystal’s shared types, server, Vite client, and Electron settings, then reproduce an alias failure that passes compilation but fails at runtime.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #TypeScript #Node.js

Local Vector Search with Vectra: Metadata Filters and Persistence

Run a deterministic Vectra 0.15.0 exercise in a temporary directory to check cosine scores, metadata filters, reopening, and canceled updates.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #AI #Node.js #Vector search

Structured Notes with Vercel AI SDK: Schema and Business Checks

Read ChatCrystal’s AI SDK 7 calls, distinguish provider adaptation from output shape and factual validity, and test description limits with offline Zod.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #AI #Node.js

Electron tray and window state: hide, restore, and quit

Read ChatCrystal’s mode-aware tray, saved window bounds, and shutdown flow, including what persistence restores and which failures still need testing.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Electron #Node.js

Fastify Static Assets: Same-Port SPA Fallback and Error Handling

Check ChatCrystal’s build outputs and static-root discovery, then use isolated inject exercises to distinguish pages, unknown APIs, and missing assets.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Fastify #Node.js

Electron Basics: Main Process, WebPages, and Bounded IPC

Follow ChatCrystal’s modes, BrowserWindow, preload, and Fastify startup to understand desktop permissions and lifecycle boundaries.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Electron

Evaluate embedding retrieval with fixed notes and labeled queries

Compare local and cloud embeddings with labeled queries and separate indexes, checking rebuild completion, retrieval quality, and resource costs.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #Embedding #Evaluation

Fastify in Production: Plugins, Schema Validation, and Failures

Read the actual createServer and route boundaries, then use an isolated inject exercise to check success, invalid input, and missing routes.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #Fastify #Node.js

Comparing LLM Summaries: Fixed Inputs and Verifiable Evidence

Evaluate local vs cloud LLM summarization on identical transcripts, field review, and failure logs, separating model quality from app pipelines.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #LLM #Evaluation

sql.js Practice: In-Memory SQLite, Foreign Keys, and Saves

Read ChatCrystal’s loading, transaction, and export boundaries, then verify foreign keys, rollback, and reload with an isolated exercise.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #SQLite

Tailwind CSS v4 and Vite: Compiling Utilities and Variables

Check ChatCrystal’s two-package installation, Vite plugin, and CSS variable themes while separating build-time utilities from runtime values.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #Tailwind CSS #Frontend

Local AI Knowledge Base Setup: Install, Ingest, and Search

Verify installation, the local service, both model configurations, import, summarization, and search with the actual ChatCrystal 0.6.1 CLI.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Node.js #Knowledge management

Configure MCP Server: Connect Claude Code to Local Knowledge

Connect ChatCrystal to Claude Code with a project-scoped stdio server, then verify its seven tools, HTTP backend, approvals, and request path.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #MCP #Claude Code

How to Parse and Import Claude Code Chats: Paths and Extraction

Locate Claude Code session paths, parse JSONL message blocks and tool events, and handle incremental sync edge cases with test fixtures.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Claude Code #Data parsing

Filtering Claude Code JSONL: Events, Blocks, and Omissions

Follow ChatCrystal relevance checks, content extraction, and tag cleanup to distinguish top-level filtering from nested thinking and tool flags.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Claude Code #Data parsing

MCP-Based Claude Code Memory Workflow: Recall, Verify, Write Back

Use recall, validation, and write-back MCP tools for an auditable memory workflow, without treating protocol setup as an automatic-memory guarantee.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #MCP #Claude Code

Configuring Cloud LLMs: Providers, Endpoints, and Summaries

Follow ChatCrystal provider registrations to configure remote generation and check native APIs, gateways, persisted settings, credentials, and test boundaries.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #AI #LLM

Parsing Codex, Trae, and Copilot Chat Logs: 3 Storage Formats

Check source directories, event extraction, and snapshot boundaries in ChatCrystal, then verify each adapter against a conversation you know.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Data parsing #Knowledge management

Memory Budgets for Large Chat Imports: Measure Before Batching

Profile memory peaks in large chat imports with sql.js and task queues. Size batches from reproducible benchmarks instead of arbitrary fixed thresholds.

曾亮懿 曾亮懿
6 min read
#ChatCrystal #Node.js #Data parsing #Performance

Extract and Parse Cursor Chat History: Workspaces and Messages

Trace how ChatCrystal joins Cursor SQLite data, discovers orphan sessions, and extracts messages, then verify the import with a known conversation.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Cursor #SQLite #Data parsing

Reverse Engineering Cursor SQLite: Debugging Missing Messages

Check paired databases, key prefixes, unknown versions, and orphan discovery to distinguish unreadable data, parsing omissions, and absent records.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Cursor #SQLite #Data parsing

Configuring Embeddings: Model Selection and Rebuilding

Check task support, actual embedding inputs, and index compatibility, then accept model settings and changes with known notes and no-answer queries.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #Embedding #Vector search

Decoupling LLMs and Embeddings: Separating Roles Under Gateways

Distinguish text generation from vector generation, then verify ChatCrystal model settings, connection tests, and index rebuilding boundaries.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #AI #Vector search

Note Relations and Graph Views: Discover, Project, and Verify

Trace ChatCrystal relation APIs, candidate discovery, and graph projections, keeping generated edges and tag co-occurrence within verified boundaries.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #Knowledge management #Knowledge graph

Ollama Local Workflow: Generation, Vectors, and Retrieval

Run local LLMs with Ollama: test generation endpoints, embedding dimensions, vector consistency, and ChatCrystal integration boundaries offline.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #AI #RAG

Recover Debugging Notes: Semantic Search and Reusable Solutions

Use a constructed debugging scenario to check notes, vectors, and search results, then compare the original conversation with the current project.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Semantic search #Debugging

Semantic Search and Context: Finding Hidden Code Dependencies

Combine vector search with one-hop graph relation expansion in code refactoring, keeping similarity scores, candidates, and sources verifiable on disk.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #Semantic search #Knowledge graph

Semantic Search: Candidate Deduplication and Graph Context

Trace query vectors, candidate growth, lexical boosts, and relation expansion in ChatCrystal, distinguishing list filtering from semantic retrieval.

曾亮懿 曾亮懿
3 min read
#ChatCrystal #Semantic search #RAG

Debugging Corrupted Vectra Vector Indexes: Repair and Rebuilds

Diagnose semantic-search failures across note status, Vectra files, and cleanup tasks, then choose a single-note or full-index recovery path.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #Vector search #Debugging

Exporting AI Notes to Obsidian: Markdown Formatting and Tags

Export ChatCrystal notes to Obsidian with stable links and IDs, distinguishing a readable snapshot from ongoing editing and incremental synchronization.

曾亮懿 曾亮懿
6 min read
#ChatCrystal #Node.js #Knowledge management

Choosing a Lightweight Local Vector DB: Vectra, Chroma, hnswlib

Compare Vectra, Chroma, and hnswlib through ChatCrystal’s deployment constraints: integration, retrieval cost, backups, and recovery boundaries.

曾亮懿 曾亮懿
6 min read
#ChatCrystal #TypeScript #Vector search #Architecture

AI Assistant Chat Formats: Parsing JSONL Events and SQLite Stores

Parse Claude Code, Codex, Cursor, Trae, and Copilot chats, comparing how JSONL messages, event streams, SQLite KV stores, and database snapshots differ.

曾亮懿 曾亮懿
7 min read
#ChatCrystal #TypeScript #AI #Data parsing

From RAG to Knowledge Graphs: Preserving Context in Retrieval

Compare keyword search, vectors, and knowledge graphs. Trace one-hop candidate expansion in ChatCrystal and identify boundaries relationships cannot prove.

曾亮懿 曾亮懿
5 min read
#ChatCrystal #RAG #Knowledge graph

Local-First and Cloud AI: Understanding Data Boundaries

Trace storage, embeddings, summaries, and agent recall in ChatCrystal to identify which data boundaries local-first architecture actually controls.

曾亮懿 曾亮懿
5 min read
#ChatCrystal #Architecture #AI

From writing to code

Explore ChatCrystal, developer tools and daily learning notes on my GitHub. Questions about the implementation are welcome.