Skip to main content
Glama

Context Crystal

An open, standardized context lifecycle and interchange format for human and machine collaboration.

Context Crystal decouples context, goals, transient resources, and entities from ephemeral chat sessions, IDE windows, and agent runtimes. Inspired by OpenTimelineIO (OTIO) and grounded in cybernetics, it structures AI-assisted collaborative work as an immutable, auditable state lattice (DAG).

Specification Build & Tests Zero Reflection License: MIT


Why Context Crystal?

Modern AI-assisted engineering suffers from a few critical bottlenecks:

  1. The Navigational Void (Context vs. Memory): Tools frequently conflate "context" with "memory" (vector databases, RAG retrieval, associative search, or endless chat transcripts). While memory attempts to simulate cognitive recall, engineering requires a navigational map and compass: a deterministic record of where we have been (verified milestones, executed tools, resolved friction) and where we are going (goal nucleus, active acceptance criteria). Crystals are self-contained and inert at rest; active use and hydration turn them into meaningful, high-bandwidth context.

  2. The Session Boundary Problem: Work is trapped in ephemeral chat windows. When a context window fills, a session restarts, or work hands off between human steersmen and autonomous agents, nuance evaporates. Summaries suffer from lossy compaction, prompt drift, and hallucinated progress.

  3. Repository Pollution & Accidental Exposure: Persistent context tools often clutter codebases with dotfiles, agent scratchpads, private identities, and conversational logs. Worse, unmonitored agent logs risk permanently committing sensitive credentials or authorization tokens into git history.

  4. The Token Tax & Trial-and-Error Loops: Traditional context summarizers consume substantial LLM tokens simply re-reading and re-summarizing prior chat turns. Worse, when an agent hits an architectural dead end, that negative knowledge is lost upon session compaction—causing subsequent agents to repeat the exact same failed attempts. Context Crystal operates with 0 LLM tokens consumed for context management, delivers sub-5ms native cold starts, and automatically projects unresolved lessons learned into hydrated beams so agents never repeat failed spikes.

Context Crystal solves these challenges: It provides a deterministic, machine-readable state transition DAG that acts as an auditable map and compass across sessions, guarantees a 100% clean codebase through decoupled out-of-tree storage, eliminates context overhead with zero LLM tokens consumed for state tracking, and enforces a strict zero-secret posture.


Related MCP server: ForkMind

Installation & Quickstart

Context Crystal binaries are pre-compiled with LLVM Thin Link-Time Optimization (Thin LTO) for maximum runtime speed and minimal disk footprint.

1. Universal POSIX Bootstrap (macOS & Linux)

Install the latest release binary into ~/.local/bin/ccrystal with a single command:

curl -fsSL https://raw.githubusercontent.com/oswaldo/context-crystal/main/install.sh | sh

To install into a custom directory or pin a specific release version:

curl -fsSL https://raw.githubusercontent.com/oswaldo/context-crystal/main/install.sh | sh -s -- --to /usr/local/bin --version v1.0.0

2. Homebrew (macOS & Linux)

brew install oswaldo/context-crystal/ccrystal

Or add the tap repository first:

brew tap oswaldo/context-crystal
brew install ccrystal

3. Coursier (Universal Zero-Install: Windows, macOS, Linux, BSD)

For developers and automated agents on any operating system with Java 17+ installed:

# Instant launch via official Coursier contrib channel:
cs launch --contrib ccrystal

# Or install globally to your PATH:
cs install --contrib ccrystal

(You can also launch directly via immutable Maven Central coordinates: cs launch io.github.oswaldo:ccrystal-cli_3:latest.release -- --help)

4. Platform Support Matrix

Platform

Tier

Architecture

Runtime / Engine

Status

Linux

Tier 1

x86_64, aarch64

Native binary (Thin LTO)

Fully supported

macOS

Tier 1

Apple Silicon (aarch64), Intel (x86_64)

Native binary (LLVM -O3)

Fully supported (tested on macOS 14, 15, and 26 Apple Silicon)

Windows (PowerShell / CMD)

Tier 1

Any architecture (x86_64, arm64)

JVM / Coursier (cs launch)

Fully supported via Maven Central; standalone native MSVC binary planned for post-1.0

Windows (WSL)

Tier 1

x86_64 (WSL / Ubuntu)

Native binary / POSIX script

Fully supported

Universal (BSD, Solaris, etc.)

Tier 1

Any POSIX / JVM target

JVM (cs launch)

Fully supported via Maven Central (io.github.oswaldo:ccrystal-cli_3)


Zero-Learning-Curve: Agent-as-Operator

Human developers never need to memorize ccrystal commands, flags, or installation scripts.

Context Crystal is designed around the Agent-as-Operator paradigm:

  • Humans instruct in natural language.

  • Agents self-bootstrap and operate the crystal.

When an AI agent (Google Antigravity, Claude Code, Cursor, Windsurf, Copilot, etc.) encounters this repository or a project referencing Context Crystal, it reads the native agent skill, self-detects whether the binary is present, runs self-installation if missing, and manages state transitions autonomously.

Natural Language Workflows

Developer Utterance

What the Agent Executes Behind the Scenes

"Let's start working on the user authentication refactor."

Self-bootstraps ccrystal, calls ccrystal init auth-refactor -g "...", and sets the goal lattice nucleus.

"What did we accomplish on this branch yesterday?"

Calls ccrystal hydrate auth-refactor to inject verified checkpoints and task statuses directly into the prompt.

"While refactoring auth, I noticed our token parser fails on empty strings."

Calls ccrystal slice auth-refactor ... --fork-to token-parser-bug --prune to fork an adjacent crystal without derailing the current task.

"Spin up a temporary mock auth server for testing."

Leases a transient resource via ccrystal transient lease ... -t mock_service --policy delete_after_test.

"We're done! Wrap up and clean up."

Verifies all transient resource leases are resolved, records lessons learned, and marks tasks complete.


100% Clean Codebase Guarantee (Decoupled Storage)

Context Crystal adapts to your team's workflow without polluting your code:

┌────────────────────────────────────────────────────────┐
│               Target Project Repository                │
│    (100% Clean: No agent dotfiles, zero tool noise)    │
└───────────────────────────┬────────────────────────────┘
                            │
              Points to context store via:
              • CLI flag:    --store <path>
              • Environment: CCRYSTAL_STORE=<path>
              • File pointer: .ccrystal-store
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│           Decoupled Context Companion Repo             │
│   (Immutable DAG, transient leases, lessons learned)   │
└────────────────────────────────────────────────────────┘
  • In-Tree Mode (.ccrystals/): Default for internal projects where teams want context history versioned alongside source code.

  • Decoupled Out-of-Tree Mode (CCRYSTAL_STORE): Set an environment variable or add a single .ccrystal-store pointer line. All crystals, entity logs, and transient leases are written to an isolated companion repository. Your public source repository remains pristine.


Key Capabilities

  1. Topological State DAG: Context is structured as an immutable directed acyclic graph capturing human prompts, agent reasoning, tool executions, and verifiable checkpoints.

  2. Capture Fidelity Guarantees: Distinguishes between Inferred context (agent synthesis, chain-of-thought) and Intercepted execution records (deterministic, verbatim tool input/output), preventing synthetic hallucinations from masquerading as verified facts.

  3. First-Class Transient Resource Leases: Tracks temporary resources (git_worktree, test environment overrides, mock services, dummy assets) with automated cleanup gates before task conclusion.

  4. Context Cleavage & Slicing (ccrystal slice): Prune context lattices to avoid token saturation, or slice and fork unexpected discoveries into linked child crystals with full parent lineage.

  5. Selective Context Hydration & Beam Shaping (ccrystal cast/hydrate --from): Reconstitutes living state (Goal, Tasks, Leases, Lessons) while focusing the state transition beam on a specific milestone (--from <anchor|id>, --to <anchor|id>, --tail <N>), keeping prompts lean without permanent forking.

  6. Continuous Improvement & Lessons Learned: Built-in ledger tracking friction, root causes, and verified action audit trails.

  7. Sub-Millisecond Atomic Batching: Pipelined CLI execution (ccrystal batch "...") combines multi-step state transitions into a single roundtrip, eliminating agent latency and token waste.

  8. Deterministic Zero-LLM Housekeeping & Melting: Sub-DAG topological melting (ccrystal melt) collapses intermediate transition chains into consolidated checkpoint nodes with aggregated artifact links, preserving key decisions while drastically reducing prompt token overhead with zero LLM dependency.

  9. Cold Storage Archiving & Cave Hygiene Triage: Classify workspace health into Active, Solid, and Stale states (ccrystal triage --solid/--stale). Move completed crystals to cold storage (ccrystal archive) to keep active context listings lean while preserving full history and artifacts.

  10. Secret Sanitization & Zero-Leak Invariant: Context crystals capture operational lineage without compromising security. Enforces a strict pointers over values invariant (referencing env:VAR or vault keys rather than literal credentials) with automated scanning recommendations (such as Betterleaks or Gitleaks) to prevent sensitive token exposure in context repositories.

  11. Multi-Dimensional Search & Temporal Scoping (ccrystal search / crystal_search): Query cave history across full-text contents, temporal bounds (--since 7d, --today, --yesterday), active leases, touching paths, open tasks, aging status, and author identities, with deterministic sorting and defensive pagination.


Pre-Packaged Agent Adapters

Context Crystal includes ready-to-use skills and instruction adapters for major agent harnesses:


Native Model Context Protocol (MCP) Server (ccrystal mcp)

Context Crystal includes an embedded, zero-overhead MCP server built directly into the native binary. It connects Claude Desktop, Cursor, Zed, Windsurf, and agent harnesses to your workspace crystals with zero Python or Node.js runtime dependencies.

  • Compound Atomic Tools (17 tools):

    • Batching & Inception: crystal_batch, crystal_init.

    • Transitions & Provenance: crystal_checkpoint, crystal_task_transition, crystal_goal_transition.

    • Artifacts & Leases: crystal_artifact, crystal_transient_lease.

    • Context Shaping & Slicing: crystal_hydrate, crystal_slice_fork.

    • Lattice Bonds & Topology: crystal_connect (cross-crystal relations, cycle-defended directed DAG edges, and depth-1 defensive hydration context projection).

    • Metrics, Search & Lifecycle: crystal_stats, crystal_search (multi-dimensional filtering and pagination), crystal_triage, crystal_melt, crystal_archive, crystal_unarchive, crystal_prune.

  • Dynamic Context Resources (ccrystal://):

    • ccrystal://{id}/state: Living state container JSON (Goal status, pending tasks, active leases, open lessons).

    • ccrystal://{id}/dag: Normalized DAG nodes and parent lineage JSON.

    • ccrystal://{id}/hydrate: Synthesized Markdown context beam formatted for immediate LLM prompt injection (supports ?from=...&to=...&tail=... query parameters).

    • ccrystal://{id}/bonds: Lattice bonds and inbound/outbound topology JSON.

    • ccrystal://artifacts: Global cave artifact registry.

    • ccrystal://{id}/artifacts: Crystal-scoped referenced artifacts.

    • ccrystal://entities: Registered cave identities and authors.

  • Prompt Beams & Triage: Hydrate shaped context beams directly via hydrate_context (accepting from, to, tail, depth) and review cave lifecycle hygiene via triage_cave.

Client Configuration

Add to your MCP client settings (e.g., Claude Desktop claude_desktop_config.json, Cursor .cursor/mcp.json, or Antigravity mcp_config.json):

{
  "mcpServers": {
    "context-crystal": {
      "command": "ccrystal",
      "args": ["mcp"]
    }
  }
}

For detailed protocol specifications and editor templates, see docs/mcp/README.md.


Verified CLI Quickstart

If you want to run commands directly or script automation, the native CLI is fast and ergonomic.

Install the standalone native binary for Linux or macOS with a single command:

curl -fsSL https://raw.githubusercontent.com/oswaldo/context-crystal/main/install.sh | sh

The script automatically detects your OS and architecture (linux-x86_64, macos-aarch64, macos-x86_64), installs ccrystal into ~/.local/bin, and verifies binary execution.

Building from Source (Alternative)

If you prefer building from source, ensure you have:

  • Java Development Kit (JDK): Version 21+ (verified on JDK 21 LTS and bleeding-edge OpenJDK 26 across Linux x86_64 and macOS Apple Silicon)

  • Build Tool: sbt 1.10+

  • Compiler: Scala 3.9+

  • Native Linker: clang (for Scala Native LLVM target; sudo apt install clang / sudo dnf install clang on Linux, or included with Xcode CommandLineTools on macOS)

TIP

Collaborator Quickstart & Hardware Baseline:

  • Idiomatic Bleeding-Edge Setup: We recommend bootstrapping your environment with Coursier:

    # Single command installs bleeding-edge JDK 26, sbt, scalafmt, scala-cli, and configures PATH
    cs setup --jvm 26 -y
  • Shell PATH: Ensure ~/.local/bin and Coursier's application bin directory (~/.local/share/coursier/bin on Linux, or ~/Library/Application Support/Coursier/bin on macOS) are exported in your ~/.bashrc, ~/.zshrc, or shell profile.

  • Memory Baseline: Scala Native Thin LTO linking benefits from 8 GB+ RAM. A .jvmopts baseline (-Xmx4g) is included in the repository. On lightweight machines, run sbt "coreJVM/test; cliJVM/test" for fast local iteration.

  • Contributing: See docs/contributing.md for our dual-key cryptographic policy and local verification workflow.

# 1. Fast build (development mode, ~10s)
sbt "cliNative/nativeLink"

# 2. Optimized release build with Thin LTO (~25s, dead-code elimination, peak runtime performance)
sbt 'set cli.native / nativeConfig ~= { _.withMode(scala.scalanative.build.Mode.releaseFast).withLTO(scala.scalanative.build.LTO.thin) }; cliNative/nativeLink'

# Install into local user PATH (portable across macOS BSD and Linux GNU)
mkdir -p ~/.local/bin
rm -f ~/.local/bin/ccrystal
cp ./cli/native/target/scala-3.9.0/ccrystal-cli ~/.local/bin/ccrystal
chmod +x ~/.local/bin/ccrystal
strip ~/.local/bin/ccrystal

Essential Commands

# 1. Initialize a new crystal
ccrystal init auth-refactor -g "Refactor JWT Validation" -i "Replace legacy parser with Nimbus"

# 2. Add and check off task milestones
ccrystal task add auth-refactor -d "Write failing reproduction test"
ccrystal task done auth-refactor -t t1

# 3. Append verifiable state transitions to the DAG
ccrystal node add auth-refactor -k human_prompt -s "Investigate parser NPE"
ccrystal node add auth-refactor -k tool_execution -s "sbt test" --fidelity intercepted

# 4. Track temporary scaffolding with transient resource leases
ccrystal transient lease auth-refactor -t git_worktree -p "../ccrystal-worktrees/auth" -d "Isolated worktree" --policy revert_on_conclusion

# 5. Hydrate prompt / inspect context (markdown view)
ccrystal hydrate auth-refactor

# 6. Execute atomic multi-command batch (ideal for agents)
ccrystal batch "task add auth-refactor -d 'Deploy to staging'; transient clean auth-refactor -l l1; node add auth-refactor -k checkpoint -s 'Ready for review'"

# 7. Context Cleavage: slice and fork into a child crystal
ccrystal slice auth-refactor --from node-1 --to node-3 --fork-to auth-edge-cases --prune

# 8. Selective Context Hydration & Beam Shaping
ccrystal hydrate auth-refactor --from v1-checkpoint --tail 5

# 9. Deterministic Sub-DAG Melting (Squash intermediate node chains)
ccrystal melt auth-refactor --from node-auth-refactor-init --to checkpoint-1 --summary "Finalized initial auth spec & scaffolding"

# 10. Cross-Crystal Lattice Bonds & Defensive Hydration Paging
ccrystal connect auth-core api-gateway -r depends_on -d "Gateway relies on token contract"
ccrystal connections auth-core        # Inspect outbound and inbound bonds
ccrystal disconnect auth-core api-gateway # Sever cross-crystal link

# 11. Cave Metrics & Storage Footprint
ccrystal stats                     # High-level cave metrics, disk footprints, and token savings
ccrystal stats --since 7d --detailed # Scoped breakdown for crystals updated in last 7 days

# 12. Cave Hygiene Triage, Cold Storage Archiving & Retention Pruning
ccrystal triage --solid               # Inspect concluded crystals ready for cleanup
ccrystal archive auth-refactor        # Move completed crystal to cold storage (.ccrystals/archive/)
ccrystal unarchive auth-refactor      # Restore crystal to active cave
ccrystal search --archived            # Search across active and archived crystals
ccrystal prune auth-refactor -f       # Permanently prune single crystal with entity cascade
ccrystal prune --older-than 90d       # Prune archived crystals exceeding 90-day retention
ccrystal prune --older-than 30d --dry-run # Preview candidates and freed bytes without deleting

# 13. Dual-Audience Guidance & Entity Conventions
ccrystal --for-ai               # Operational invariants, PII rules, and entity schemes for AI agents
ccrystal entity conventions     # Display canonical entity prefixes (usr_, agt_, mdl_, tool_, sys_)

# 14. Universal Agent Runtime Onboarding & The Golden Triad
ccrystal agent doctor                  # Diagnose Golden Triad status (Runtime Binary, MCP Server & Agent Skill)
ccrystal agent doctor --json           # Machine-readable JSON diagnostic report
ccrystal agent install --dry-run       # Preview automated MCP and skill distribution without disk changes
ccrystal agent install                 # Safely auto-configure detected agent harnesses and deploy agent skills
ccrystal agent install --symlink-skill # Symlink canonical skill from workspace instead of copying
ccrystal agent install --workspace-skill # Install canonical skill into local workspace (.agents/skills/context-crystal/SKILL.md)
ccrystal agent install --no-skill      # Configure MCP server only without installing skill files
ccrystal agent install --target cursor # Auto-configure specific harness (cursor, claude-code, zed, etc.)

Repository & Monorepo Architecture

Context Crystal is built as a high-performance cross-compiled Scala 3 monorepo:

├── spec/          # Vendor-neutral JSON Schema v1 specification & compliance suite
├── core/          # Pure functional models, DAG engine, codecs, and FsCrystalStore SPI
│   ├── shared/    # Cross-platform core logic (Scala 3)
│   ├── jvm-native/# Shared filesystem engine, POSIX locks & OCC rebase (JVM & Native)
│   ├── jvm/       # JVM target-specific platform primitives
│   ├── native/    # Scala Native (LLVM) target-specific platform primitives
│   └── js/        # Scala.js target
├── cli/           # Decline-based command-line interface & native MCP server
├── skills/        # Canonical agent skills and IDE/CLI adapters (Antigravity, Claude, Cursor)
├── docs/          # Cybernetic philosophy & operational guidelines (for_devs.md, for_ais.md)
└── conductor/     # Conductor Spec-Driven Development (SDD) tracks & system tenets

Storage Isolation & Concurrency Control

Context Crystal is engineered for safe simultaneous collaboration across multiple human developers and autonomous AI agents:

  • Atomic Inode Replacement: File writes stage to .<target>.tmp-<time>-<nano> in the target directory and perform an atomic swap via POSIX rename(2) (REPLACE_EXISTING), eliminating torn reads.

  • Optimistic Concurrency Control (OCC): The storage-isolated CrystalStore.update(id)(f) API executes pure functional transformations with deterministic 128-bit ContentFingerprint validation and automatic bounded rebase retries.

  • Defensive Agent Installation: ccrystal agent install checks pre-read fingerprints to detect external file modifications, preventing data loss or clobbering of concurrent user edits.

  • Ephemeral Mutex Serialization: Short-lived .lock mutex files with PID tracking and 5-second staleness auto-expiration prevent filesystem races during multi-entity write operations.

Running Tests

# Run full cross-platform test suite (Native, JVM, JS)
sbt test

# Fast iteration on JVM only
sbt "coreJVM/test; cliJVM/test"

# Run formatting and scalafix linter checks
sbt "scalafmtCheckAll; scalafixAll"

Quality Guards & Automated Git Hooks

Context Crystal includes repository-managed git hooks in .githooks/ to enforce zero push-fail cycles:

# Activate automated pre-commit and pre-push quality guards
./scripts/setup-hooks.sh
  • pre-commit: Runs sbt scalafmtCheckAll on staged .scala files.

  • pre-push: Runs sbt "scalafmtCheckAll; scalafixAll --check" and sbt test before pushes.


Philosophy & Foundations

We model human and machine collaborators not as theatrical roleplaying personas, but as self-governing Entities operating on explicit feedback loops toward measurable goals:

  • 👨‍💻 For Developers: Why shedding anthropomorphic overhead lowers cognitive fatigue and accelerates flow.

  • 🤖 For AI Entities: How immutable context lattices prevent attention degradation and prompt drift.

  • 📖 System Tenets & Specification: Detailed architectural tenets, including capture fidelity, transient leasing, and decoupled storage.

Craftsmanship: Proudly Human-in-the-Loop (Not AI Slop)

Context Crystal firmly rejects the paradigm of unsupervised brute-force agent swarms and synthetic slop. It is proudly human-in-the-loop — conceived, architected, audited, and reviewed with care, love, and rigor in deliberate partnership with computational intelligence. We treat AI not as a reckless replacement for human judgment and discernment, but as a cognitive amplifier operating under rigorous human stewardship, using its extraordinary capabilities for what they were genuinely destined to achieve.


Contributing

All development strictly follows Conductor Spec-Driven Development (SDD) and strict Git worktree isolation.

Please read AGENTS.md before starting any work or submitting pull requests.

Available Tools

23 tools
crystal_archiveA

Archive a concluded or inactive crystal to cold storage (.ccrystals/archive/) to reduce cave bloat while preserving all state and artifacts.

Inputs: crystal_id (required).

crystal_artifactC

Register, list, inspect, or delete virtual and physical artifacts across cave or crystal.

Inputs: action (required), id, uri, cave, +10 more.

crystal_batchB

Execute compound semicolon-delimited atomic transition recipes (e.g. 'node add -s "..." demo; task done -t task-1 demo'). Maximizes efficiency by minimizing roundtrips.

Inputs: commands (required).

crystal_checkpointC

Create an anchor checkpoint node in the crystal DAG.

Inputs: summary (required), crystal_id (required), anchor, fidelity.

crystal_connectB

Connect, disconnect, or inspect directed lattice bonds between crystals in the cave, enforcing an acyclic graph invariant and supporting cross-crystal context hydration.

Inputs: action, relation, crystal_id, description, +3 more.

crystal_extension_callB

Universal dynamic dispatch invocation for any extension (embedded or drop-in executable) with structured action and JSON payload parameters, avoiding MCP schema changes for future extensions.

Inputs: action (required), crystal_id (required), extension_id (required), payload.

crystal_extension_commsC

Send messages or inspect inboxes/outboxes/audit logs via the embedded Crystal Comms extension.

Inputs: action (required), to, ack, body, +11 more.

crystal_extension_listA

Discover and list extensions across the 3-tier scoping cascade (host, cave, crystal) including embedded Scala Native modules and declarative/executable drop-ins.

Inputs: scope, crystal_id, json_output.

crystal_extension_manageB

Enable or disable an extension at Cave or Crystal scope.

Inputs: action (required), extension_id (required), cave, crystal_id.

crystal_extension_runC

Execute a drop-in extension's declared executable entrypoint within isolated crystal context.

Inputs: extension_id (required), arguments, crystal_id.

crystal_goal_transitionB

Transition a crystal's top-level goal status (conclude successfully, abandon, or reopen) with optional resolution summary or reason.

Inputs: status (required), crystal_id (required), summary.

crystal_hydrateC

Hydrate context beam from a crystal with selective shaping (tail, slice range from/to, depth, or summary only).

Inputs: crystal_id (required), to, all, from, +3 more.

crystal_initC

Initialize a new context crystal.

Inputs: goal (required), name (required), tasks, author, +1 more.

crystal_lessonC

Record, resolve, or list lessons learned across crystals to prevent cognitive regression, repeated friction, and agent amnesia.

Inputs: action (required), id, status, actor_id, +5 more.

crystal_meltC

Melt and squash intermediate sub-DAG transitions into a single consolidated checkpoint node with aggregated artifact links (Zero-LLM deterministic squashing by default).

Inputs: to (required), from (required), crystal_id (required), anchor, +1 more.

crystal_pruneB

Permanently prune a crystal or cold storage archives by retention policy (with entity and artifact cascade).

Inputs: all, force, dry_run, crystal_id, +2 more.

crystal_slice_forkC

Extract crystal fragment or fork sub-DAG into a new crystal.

Inputs: fork_to (required), crystal_id (required), prune, from_anchor.

crystal_statsB

Compute and inspect workspace cave statistics, temporal genesis, structural totals, physical disk footprints, and quantitative prompt token savings across global cave or filtered search criteria.

Inputs: aging, query, since, until, +9 more.

crystal_task_transitionC

Add or complete a task in a crystal.

Inputs: action (required), crystal_id (required), description_or_id (required).

crystal_transient_leaseC

Create, clean, or promote a transient resource lease.

Inputs: action (required), crystal_id (required), lease_id, description, +1 more.

crystal_triageB

Triage workspace cave crystals for lifecycle hygiene and aging, categorizing them into keep (active), candidates for cleanup (concluded/abandoned with 0 open leases), and requires review.

Inputs: aging, json_output, include_archived.

crystal_unarchiveA

Restore an archived crystal from cold storage (.ccrystals/archive/) back to the active cave.

Inputs: crystal_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 23 tools

    Disambiguation3/5

    Core lifecycle tools (init, checkpoint, goal_transition, task_transition, hydrate, prune) are clearly distinct, but the extension cluster is muddled: crystal_extension_call explicitly duplicates crystal_extension_run, and crystal_extension_comms overlaps both, while crystal_extension_manage/list are separate concerns. Additionally crystal_batch is a meta-tool that re-executes the semantics of nearly every other tool, and crystal_search overloads two modes (crystal listing vs DAG node inspection), creating real selection ambiguity.

    Naming Consistency4/5

    Nearly all tools use a consistent snake_case crystal_<verb> or crystal_<verb>_<noun> pattern (crystal_triage, crystal_archive, crystal_hydrate, crystal_prune). The extension tools deviate into a crystal_extension_<verb> noun-scoped subgroup, which is a minor but defensible deviation rather than chaotic mixing.

    Tool Count3/5

    At 23 tools the surface sits in the heavy band for a single-domain server; the five extension tools plus crystal_batch and crystal_extension_call push it past what the core crystal lifecycle actually needs. A few tools (extension_call, batch) feel like escape hatches rather than earned primitives.

    Completeness4/5

    The domain is well covered: creation (init), DAG mutation (checkpoint, transitions, melt, slice_fork), retrieval (hydrate, search), lifecycle hygiene (triage, archive/unarchive, prune), artifacts, lessons, stats, lattice bonds, and extensions. Minor gaps exist around crystal metadata update/rename and bulk export, but no workflow dead-ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Production-grade, autonomous Model Context Protocol (MCP) server that elevates AI models from stateless code generators into persistent, self-verifying software engineers.
      21
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Local-first MCP server that lets AI agents query their own LLM call history as a branchable DAG and offload conversation context into immutable, AES-256-GCM-encrypted capsules — restorable in full or per segment, crypto-shreddable, with RAID-style replication. 12 tools, no API keys, no cloud.
      78 npm
      3
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Enables local-first LLM orchestration with persistent memory, knowledge management, routing, swarm patterns, API probing, tests, automation planning, and plugin discovery via a stdio MCP server, using SQLite for offline storage.
      51
      219 npm
      2
      MIT