Skip to content

Contextify v0.6.0

Choose a tag to compare

@github-actions github-actions released this 12 Feb 08:57
· 55 commits to main since this release
81cef0b

Contextify v0.6.0

All-in-one Docker image — everything included, zero setup.

Quick Start (CLI)

curl -fsSL https://raw.githubusercontent.com/atakanatali/contextify/main/scripts/install-cli.sh | sh
contextify install

Quick Start (Docker)

docker run -d --name contextify -p 8420:8420 \
  -v contextify-data:/var/lib/postgresql/data \
  ghcr.io/atakanatali/contextify:0.6.0

What's Changed

Added

Memory Consolidation & Deduplication

  • Smart Store — store_memory now auto-detects duplicates on write
    • Similarity >= 0.92: automatic merge (configurable)
    • Similarity 0.75-0.92: creates a pending suggestion for review
    • Store() returns StoreResult with action (stored/merged) and suggestions fields
  • Merge strategies: latest_wins, append, smart_merge (default)
  • Background dedup scanner — periodic scan of all memories for duplicates
  • Consolidation suggestions — pending merge suggestions reviewable via Web UI or API
  • Consolidation audit log — every merge operation is recorded with before/after content
  • SUPERSEDES relationship — surviving memory links to absorbed memory
  • 3 new MCP tools: consolidate_memories, find_similar, suggest_consolidations
  • 7 new REST endpoints: merge, duplicates, batch consolidate, suggestions CRUD, consolidation log
  • Database migration 002_consolidation.sql: consolidation_log table, consolidation_suggestions table, version/merged_from/replaced_by columns on memories
  • Web UI Consolidation page for reviewing and acting on suggestions

Project ID Normalization

  • VCS-agnostic canonical project names — worktrees, different machines, renames all resolve to the same identity
  • File-based VCS detection — .git/config and .hg/hgrc parsed directly (no git/hg binary needed, works in Docker sandbox)
  • Normalization priority: .contextify.yml name > VCS remote URL > worktree suffix strip > raw path
  • Hybrid architecture: client-side hook + server-side safety net + background worker
  • Server normalizes project_id on both reads and writes for consistency
  • Background ProjectNormalizerJob (hourly) re-normalizes legacy project_ids
  • Admin endpoint POST /admin/normalize-projects for manual trigger
  • Database migration 003_normalize_project_ids.sql: strips worktree suffixes from existing data
  • NormalizeProjectID config toggle (default: true, env: NORMALIZE_PROJECT_ID)
  • Session-start hook rewritten with full VCS-agnostic normalization in bash
  • ProjectNormalizer with sync.Map cache for zero-cost repeated lookups
  • Post-tool-use hook state machine — enforces store_memory after every git commit with violation nagging
  • contextify update and install.sh --update now force-overwrite tool configs (hooks, prompts, rules) with latest versions
  • UpdateConfiguredTools() function for centralized tool config updates

Changed

  • Post-tool-use hook output upgraded from soft reminder to aggressive required/violation messages

Commits

Features

  • feat: memory consolidation, smart store dedup, and VCS-agnostic project ID normalization (eb46016)
  • feat: enforce store_memory after git commits + update tool configs on upgrade (a051804)

Documentation

  • docs: update CHANGELOG with store_memory enforcement and update configs (10c5a14)

Other

  • chore: prepare CHANGELOG for v0.5.3 release (21d82d9)

Full changelog: v0.5.3...v0.6.0