Repository navigation
Contextify v0.6.1
Contextify v0.6.1
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 installQuick Start (Docker)
docker run -d --name contextify -p 8420:8420 \
-v contextify-data:/var/lib/postgresql/data \
ghcr.io/atakanatali/contextify:0.6.1What's Changed
Added
Memory Consolidation & Deduplication
- Smart Store —
store_memorynow auto-detects duplicates on write- Similarity >= 0.92: automatic merge (configurable)
- Similarity 0.75-0.92: creates a pending suggestion for review
Store()returnsStoreResultwithaction(stored/merged) andsuggestionsfields
- 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_logtable,consolidation_suggestionstable,version/merged_from/replaced_bycolumns 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/configand.hg/hgrcparsed directly (no git/hg binary needed, works in Docker sandbox) - Normalization priority:
.contextify.ymlname > VCS remote URL > worktree suffix strip > raw path - Hybrid architecture: client-side hook + server-side safety net + background worker
- Server normalizes
project_idon both reads and writes for consistency - Background
ProjectNormalizerJob(hourly) re-normalizes legacy project_ids - Admin endpoint
POST /admin/normalize-projectsfor manual trigger - Database migration
003_normalize_project_ids.sql: strips worktree suffixes from existing data NormalizeProjectIDconfig toggle (default: true, env:NORMALIZE_PROJECT_ID)- Session-start hook rewritten with full VCS-agnostic normalization in bash
ProjectNormalizerwithsync.Mapcache for zero-cost repeated lookups- Post-tool-use hook state machine — enforces
store_memoryafter everygit commitwith violation nagging contextify updateandinstall.sh --updatenow force-overwrite tool configs (hooks, prompts, rules) with latest versionsUpdateConfiguredTools()function for centralized tool config updates- CLI self-update —
contextify updatenow updates both the Docker server and the CLI binary from GitHub Releases- Downloads platform-specific binary (darwin/linux, amd64/arm64), verifies it, and replaces the current binary
- Falls back to
sudoif direct replacement fails (e.g.,/usr/local/bin) --skip-cliflag to update server only
- Update confirmation prompt —
contextify updatewarns that active MCP sessions will disconnect and asks for confirmation (y/N)-y/--yesflag to skip the prompt (for scripts/CI)
Changed
- Post-tool-use hook output upgraded from soft reminder to aggressive required/violation messages
Commits
Features
- feat: CLI self-update and MCP session warning in contextify update (
15efcf9)
Full changelog: v0.6.0...v0.6.1