ChatCrystal

v0.7.1
io.github.ZengLiangYi/chatcrystal Checked 3 hours ago Published 19 days ago

Local-first AI PKM memory for coding conversations.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_knowledge

Semantic search across your AI conversation knowledge base. Returns matching notes ranked by relevance.

ParameterTypeDescription
query *stringSearch query text
limitnumberMaximum number of results

get_note

Get the full content of a note including title, summary, key conclusions, code snippets, and tags.

ParameterTypeDescription
id *numberNote ID

list_notes

List note summaries for browsing and narrowing the ChatCrystal knowledge base. Use this when you need paginated notes filtered by tag or title/summary keyword. Use search_knowledge instead for semantic relevance ranking, and get_note when you already have an id and need the full note body. Returns note metadata and summaries, not full note content.

ParameterTypeDescription
pagenumber1-based page number for paginated note summaries. Each page returns up to 20 notes.
searchstringLiteral keyword filter applied to note title and summary; not semantic search.
tagstringExact tag name to filter notes by, for example "mcp" or "cursor".

get_relations

Get related notes for a given note, including relationship type and confidence score.

ParameterTypeDescription
noteId *numberNote ID to find relations for

recall_for_task

Retrieve reusable task memories before starting substantive coding work. Use this at the beginning of implementation, debugging, migration, configuration, investigation, refactor, or optimization tasks to load project-scoped memories first and optional global lessons second. Use mode="debug" when the user reports an error, failing command, regression, or incident; include error_signatures and related_files when available. Use search_knowledge instead for ad hoc semantic note search that is not tied to the current task. This tool is read-only and returns ranked memories plus optional related-no…

ParameterTypeDescription
task *objectCurrent task context used to retrieve relevant project and global memories.
modestringUse task for normal work and debug when the task starts from an error, failing test, or incident.
optionsobjectOptional limits and relation expansion controls for recall results.

validate_task_memory

Dry-run validation for a candidate task memory before calling write_task_memory. Use this after meaningful work and before persisting a lesson to check whether the candidate is durable, specific, reusable, and shaped like a high-quality ChatCrystal note. It has no side effects and never writes to the knowledge base. Returns acceptance, rejection reason, warnings, and materialized note fields so agents can revise the candidate or skip weak work logs.

ParameterTypeDescription
memory *objectCandidate ChatCrystal note content to validate or persist as reusable task memory.
mode *stringUse auto for agent-generated writebacks and manual for explicit user-curated memories.
task *objectCurrent task context used to scope, rank, and store memories.
scopestringStore as project memory by default; global is reserved for broadly reusable manual lessons.
source_run_keystringIdempotency key for auto writebacks; required in auto mode to avoid duplicate memory receipts.

write_task_memory

Persist a task memory only when it can become a high-quality ChatCrystal note: specific title, concrete summary, meaningful key conclusions, and a durable reusable lesson such as a pitfall, fix, decision, pattern, or symptom-to-resolution mapping. Do not write one-time environment checks, version/status reports, ordinary progress logs, or vague robustness claims. Weak auto writebacks are skipped by core validation and recorded only as receipts.

ParameterTypeDescription
memory *objectCandidate ChatCrystal note content to validate or persist as reusable task memory.
mode *stringUse auto for agent-generated writebacks and manual for explicit user-curated memories.
task *objectCurrent task context used to scope, rank, and store memories.
scopestringStore as project memory by default; global is reserved for broadly reusable manual lessons.
source_run_keystringIdempotency key for auto writebacks; required in auto mode to avoid duplicate memory receipts.