codevira 3.3.0__tar.gz → 3.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codevira-3.3.0 → codevira-3.5.0}/CHANGELOG.md +191 -0
- {codevira-3.3.0/codevira.egg-info → codevira-3.5.0}/PKG-INFO +63 -67
- {codevira-3.3.0 → codevira-3.5.0}/README.md +61 -65
- {codevira-3.3.0 → codevira-3.5.0/codevira.egg-info}/PKG-INFO +63 -67
- {codevira-3.3.0 → codevira-3.5.0}/codevira.egg-info/SOURCES.txt +29 -15
- {codevira-3.3.0 → codevira-3.5.0}/codevira.egg-info/requires.txt +1 -1
- {codevira-3.3.0 → codevira-3.5.0}/docs/architecture.md +13 -4
- {codevira-3.3.0 → codevira-3.5.0}/docs/roadmap.md +0 -1
- codevira-3.5.0/docs/troubleshooting/antigravity.md +21 -0
- codevira-3.5.0/indexer/outcome_classifier.py +92 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/outcome_tracker.py +13 -48
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/__init__.py +1 -1
- codevira-3.5.0/mcp_server/_ghost_check.py +99 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli.py +104 -0
- codevira-3.5.0/mcp_server/cli_eval.py +90 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_projects.py +183 -9
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_reflect.py +11 -1
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/crash_logger.py +62 -1
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/doctor.py +79 -18
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/anti_regression.py +36 -16
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/blast_radius.py +5 -1
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/decision_lock.py +233 -10
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/relevance_inject.py +47 -6
- codevira-3.5.0/mcp_server/engine/wiring/_diff_envelope.py +149 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/wiring/claude_code_hooks.py +27 -65
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/wiring/mcp_dispatch.py +9 -0
- codevira-3.5.0/mcp_server/eval/__init__.py +13 -0
- codevira-3.5.0/mcp_server/eval/composite.py +128 -0
- codevira-3.5.0/mcp_server/eval/judge.py +134 -0
- codevira-3.5.0/mcp_server/eval/relevance.py +215 -0
- codevira-3.5.0/mcp_server/eval/report.py +114 -0
- codevira-3.5.0/mcp_server/eval/weight_tuner.py +109 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/global_sync.py +17 -1
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/http_server.py +8 -1
- codevira-3.5.0/mcp_server/ingest/__init__.py +30 -0
- codevira-3.5.0/mcp_server/ingest/claude_code.py +163 -0
- codevira-3.5.0/mcp_server/ingest/codex.py +160 -0
- codevira-3.5.0/mcp_server/ingest/gemini.py +148 -0
- codevira-3.5.0/mcp_server/ingest/heuristics.py +117 -0
- codevira-3.5.0/mcp_server/ingest/models.py +79 -0
- codevira-3.5.0/mcp_server/ingest/scan.py +95 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/paths.py +50 -0
- codevira-3.5.0/mcp_server/project_binding.py +250 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/server.py +204 -13
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/agents_md_generator.py +141 -23
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/decisions_store.py +24 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/fts5_index.py +26 -3
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/jsonl_store.py +33 -21
- codevira-3.5.0/mcp_server/storage/learned_weights.py +86 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/outcomes_writer.py +8 -23
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/reflections_store.py +46 -1
- codevira-3.5.0/mcp_server/storage/synonyms.py +76 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/code_reader.py +38 -4
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/learning.py +5 -1
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/preferences.py +6 -1
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/reflections.py +7 -1
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/search.py +110 -13
- {codevira-3.3.0 → codevira-3.5.0}/pyproject.toml +5 -4
- codevira-3.5.0/tests/test_binding_e2e.py +211 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_cli_induce.py +5 -9
- codevira-3.5.0/tests/test_cli_projects.py +454 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_cli_version.py +11 -3
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_crash_logger.py +82 -1
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_doctor.py +60 -3
- codevira-3.5.0/tests/test_e1_summary_first.py +230 -0
- codevira-3.5.0/tests/test_eval_e3.py +196 -0
- codevira-3.5.0/tests/test_ghost_check.py +198 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_global_sync.py +3 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_http_server.py +215 -138
- codevira-3.5.0/tests/test_ingest_e2.py +350 -0
- codevira-3.5.0/tests/test_managed_files_e4.py +134 -0
- codevira-3.5.0/tests/test_outcome_reconcile_p17.py +106 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_outcome_tracker.py +129 -41
- codevira-3.5.0/tests/test_project_binding.py +241 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_reflections.py +47 -6
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_server.py +313 -189
- codevira-3.5.0/tests/test_synonym_widening_e5.py +72 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_tools_code_reader.py +101 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_tools_learning.py +147 -17
- codevira-3.5.0/tests/test_weight_tuning_p13.py +195 -0
- codevira-3.3.0/agents/builder.md +0 -84
- codevira-3.3.0/agents/developer.md +0 -111
- codevira-3.3.0/agents/documenter.md +0 -138
- codevira-3.3.0/agents/orchestrator.md +0 -96
- codevira-3.3.0/agents/planner.md +0 -106
- codevira-3.3.0/agents/reviewer.md +0 -82
- codevira-3.3.0/agents/tester.md +0 -83
- codevira-3.3.0/docs/troubleshooting/antigravity.md +0 -131
- codevira-3.3.0/mcp_server/_ghost_check.py +0 -88
- codevira-3.3.0/mcp_server/data/agents/builder.md +0 -84
- codevira-3.3.0/mcp_server/data/agents/developer.md +0 -111
- codevira-3.3.0/mcp_server/data/agents/documenter.md +0 -138
- codevira-3.3.0/mcp_server/data/agents/orchestrator.md +0 -96
- codevira-3.3.0/mcp_server/data/agents/planner.md +0 -106
- codevira-3.3.0/mcp_server/data/agents/reviewer.md +0 -82
- codevira-3.3.0/mcp_server/data/agents/tester.md +0 -83
- codevira-3.3.0/tests/test_cli_projects.py +0 -224
- codevira-3.3.0/tests/test_ghost_check.py +0 -116
- {codevira-3.3.0 → codevira-3.5.0}/LICENSE +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/MANIFEST.in +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/01-code-review.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/02-adversarial-fix-review.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/03-cross-module-impact.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/06-doc-drift.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/07-security-audit.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/12-llm-redteam.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/13-multi-ide-schema.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/22-competitor-benchmark.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/README.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/tier2-scripts.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/agents/qa/tier3-manual.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/codevira.egg-info/dependency_links.txt +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/codevira.egg-info/entry_points.txt +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/codevira.egg-info/top_level.txt +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/config.example.yaml +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/alpha-tester-invites.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/audit-2026-05-22.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/demo/README.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/foolproof-product-charter.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/00-engine.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/01-decision-lock.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/02-anti-regression.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/03-scope-contract.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/04-blast-radius.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/05-cross-session.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/06-token-budget.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/07-live-style.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/08-decision-replay.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/09-intent-inference.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/10-ai-promotion.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/README.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/heroes/pillar-1-setup.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/hn-launch-day.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/internal/competitive-landscape.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/local-pypi-https.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/morning-handoff-2026-05-22.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/plans/v2.1.2.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/plans/v2.1.3.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/plans/v2.2.0.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/plans/v3.0.0.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/qa-playbook.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/release-notes/v3.1.1.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/release-process.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/surface-cuts-2026-05-22.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/v2-completion-plan.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/v2-execution-log.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/v2-master-plan.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/docs/vs-other-memory-tools.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/graph/_schema.yaml +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/__init__.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/_dedupe_migration.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/_fork_safety.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/_sqlite_util.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/chunker.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/fix_history.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/global_db.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/graph_generator.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/index_codebase.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/sqlite_graph.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/indexer/treesitter_parser.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/__main__.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/_mcp_registry.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/_project_inventory.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/_prompts.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/_repair_init.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/_safe_crash.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/auto_init.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_consensus.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_export.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_graph.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_hooks_admin.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_induce.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_init.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_replay.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_sync.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_transfer.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_uninstall.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/cli_working.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/__init__.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/affordances.yaml +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/config.example.yaml +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/hooks/session_start.sh +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/hooks/stop.sh +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/prompts/reflection_v1.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/coding-standards.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/git_commits.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/incremental-updates.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/master_rule.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/multi-language.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/persistence.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/resilience-observability.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/smoke-testing.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/data/rules/testing-standards.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/decision_replay.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/detect.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/__init__.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/demo_policy.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/events.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/memory_fanout.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/__init__.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/_signature_detect.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/prompt_capture.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policies/token_budget.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/policy.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/runner.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/signals.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/token_meter.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/engine/wiring/__init__.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/gitignore.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/graph/__init__.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/graph/template.html +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/ide_inject.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/launchd.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/log_retention.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/migrate.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/prompts.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/roadmap_drift.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/setup_wizard.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/__init__.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/activity_store.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/atomic.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/config.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/consensus_store.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/digest.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/manifest.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/origin.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/paths.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/sanitize.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/sessions_store.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/skills_store.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/token_estimator.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/storage/working_store.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/__init__.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/changesets.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/check_conflict.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/consensus.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/graph.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/playbook.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/roadmap.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/skills.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/spatial.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/tools/working.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/mcp_server/update_check.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/coding-standards.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/engineering-excellence.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/git-cicd-governance.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/git_commits.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/incremental-updates.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/master_rule.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/persistence.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/resilience-observability.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/smoke-testing.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/rules/testing-standards.md +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/setup.cfg +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test__prompts.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_auto_init.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_call_edge_fk_safety.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_check_conflict.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_chunker.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_cli_consensus.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_cli_export.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_cli_graph.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_cli_replay.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_cli_transfer.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_cli_uninstall.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_cli_working.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_consensus_handshake.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_dedupe_migration.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_detect.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_fk_safety_extended.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_fork_safety.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_gitignore.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_global_db.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_graph_generator.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_hook_resilience.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_ide_inject.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_index_codebase.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_launchd.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_log_retention.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_migrate.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_paths.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_preferences_tools.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_prompts.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_record_decision.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_repair_init.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_roadmap_drift.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_setup_wizard.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_sqlite_graph.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_sqlite_util.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_tools_graph.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_tools_playbook.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_tools_roadmap.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_tools_skills.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_tools_spatial.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_tools_working.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_treesitter_parser.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_update_check.py +0 -0
- {codevira-3.3.0 → codevira-3.5.0}/tests/test_watcher_circuit.py +0 -0
|
@@ -7,6 +7,197 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [Unreleased]
|
|
11
|
+
|
|
12
|
+
## [3.5.0] — 2026-06-19
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **Summary-first decision payloads + `expand` (E1).** `search_decisions` and
|
|
17
|
+
`list_decisions` now default to compact rows (one-line decision + key
|
|
18
|
+
fields), dropping the heavy per-row snippet/origin. A new `expand(ids=[…])`
|
|
19
|
+
tool fetches full records on demand. `full=true` still works;
|
|
20
|
+
`CODEVIRA_DECISION_DETAIL=full` restores the pre-E1 verbose default. (D0000ZQ)
|
|
21
|
+
- **Read-only session-transcript ingest (E2).** `codevira reflect
|
|
22
|
+
--from-sessions` scans local Claude Code / Codex / Gemini logs, heuristically
|
|
23
|
+
flags tool failures + user corrections (no LLM), and folds a sanitized,
|
|
24
|
+
capped digest into the existing reflect pipeline. Candidates only — never
|
|
25
|
+
auto-creates decisions. (D00010W)
|
|
26
|
+
- **Read-side relevance eval (E3).** `codevira eval` measures whether the read
|
|
27
|
+
surface surfaces the right memory (recall@k / MRR / precision) on cases
|
|
28
|
+
self-derived from real `.codevira/` memory — no hand-maintained fixtures.
|
|
29
|
+
Deterministic lexical scoring by default; LLM-as-judge offline. Non-gating.
|
|
30
|
+
(D00010Y)
|
|
31
|
+
- **Learned hot-path weight tuning (Phase 13).** `codevira tune-weights` learns
|
|
32
|
+
`relevance_inject`'s ranking weights from real memory using the E3 eval as
|
|
33
|
+
its objective, persisting only a meaningful win. Opt-in at the hot path via
|
|
34
|
+
`CODEVIRA_LEARNED_WEIGHTS` (default off, fallback to shipped defaults),
|
|
35
|
+
cached per process for prompt-cache stability. (D00010Z)
|
|
36
|
+
- **Multiple managed memory files (E4).** The marker-block writer can now
|
|
37
|
+
maintain `CLAUDE.md`, `GEMINI.md`, and `.cursor/rules/codevira.mdc` in
|
|
38
|
+
addition to `AGENTS.md`, configured via `.codevira/config.yaml:
|
|
39
|
+
managed_files`. Default stays `AGENTS.md`-only (the rest are opt-in). Shared
|
|
40
|
+
markdown files preserve everything outside the markers byte-for-byte; the
|
|
41
|
+
Cursor `.mdc` is a dedicated codevira-owned file with valid frontmatter.
|
|
42
|
+
Re-runs are idempotent, and the session-transcript scanner skips the injected
|
|
43
|
+
block so it can't re-ingest its own output. (D000110)
|
|
44
|
+
- **Opt-in synonym recall widening (E5).** A no-dependency, curated dev-domain
|
|
45
|
+
synonym map widens FTS5 queries so a search in one vocabulary recalls a
|
|
46
|
+
decision recorded in a synonymous one (e.g. `database` → `postgres`). Enable
|
|
47
|
+
with `CODEVIRA_SYNONYM_WIDENING=1`; default off (the E3 eval showed it trades
|
|
48
|
+
a little ranking precision for recall, so it's opt-in). The `[semantic]`
|
|
49
|
+
embedding extra remains deferred (on-device model on hold). (D000113)
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
|
|
53
|
+
- **Content-aware decision lock (Phase 18).** The lock no longer hard-blocks
|
|
54
|
+
every edit to a file that holds a `do_not_revert` decision. A non-additive
|
|
55
|
+
edit only blocks when its diff shares salient tokens with a locked decision's
|
|
56
|
+
subject; a provably-orthogonal edit downgrades to a warn (decisions still
|
|
57
|
+
surfaced). Restore strict file-level blocking with
|
|
58
|
+
`CODEVIRA_DECISION_LOCK_CONTENT_AWARE=0`. (D00010B)
|
|
59
|
+
|
|
60
|
+
### Fixed
|
|
61
|
+
|
|
62
|
+
- **`doctor` `ghost_projects` false positive.** The check now delegates to the
|
|
63
|
+
canonical project inventory (`_project_inventory`) instead of its own cruder
|
|
64
|
+
rule, so `doctor` and `codevira projects` agree — empty leftover dirs are
|
|
65
|
+
*stale*, not ghosts. (D0000Z4)
|
|
66
|
+
- **Test isolation leak.** The autouse test fixture only isolated the global
|
|
67
|
+
`~/.codevira/`, leaving the per-project store resolving from the repo cwd —
|
|
68
|
+
so tests calling `record()` without their own project fixture wrote to the
|
|
69
|
+
real `.codevira/decisions.jsonl`. It now chdir's into a throwaway project,
|
|
70
|
+
so no test can reach real memory. (D00010X)
|
|
71
|
+
- **Reconciled the two outcome stores (Phase 17).** The confidence surface
|
|
72
|
+
(SQLite) and the digest/replay/skills surface (JSONL) each ran an independent
|
|
73
|
+
git analysis and could label the same decision differently. Both now delegate
|
|
74
|
+
to one shared `indexer.outcome_classifier.classify_outcome`, so they agree by
|
|
75
|
+
construction. A git failure now means "can't classify" rather than the old
|
|
76
|
+
optimistic "kept". (D000112)
|
|
77
|
+
- **`get_signature` JS/JSX accuracy (Phase 16).** Documented + regression-tested
|
|
78
|
+
the existing TS/TSX/JS/JSX support (the docstrings + unsupported-extension
|
|
79
|
+
error message had omitted JavaScript). (D000111)
|
|
80
|
+
|
|
81
|
+
## [3.4.0] — 2026-06-15
|
|
82
|
+
|
|
83
|
+
### Added
|
|
84
|
+
|
|
85
|
+
- **`codevira projects` cleanup + staleness.** The project inventory now
|
|
86
|
+
shows a relative-age column (`today` / `5d ago` / `stale 45d`) so you
|
|
87
|
+
can see at a glance which registered projects have gone cold. Pytest
|
|
88
|
+
tmp dirs and `/tmp` scratch projects are kept out of the registry at
|
|
89
|
+
the source (a registration guard on ephemeral paths; tests opt back in
|
|
90
|
+
with `CODEVIRA_ALLOW_EPHEMERAL_PROJECT=1`) and hidden from the human
|
|
91
|
+
listing by default (shown with `--all`, always present in `--json`
|
|
92
|
+
tagged `ephemeral: true`). New `codevira projects archive <name>`
|
|
93
|
+
removes a project from the registry by name or path — files and data
|
|
94
|
+
dir untouched. (D0000PT)
|
|
95
|
+
|
|
96
|
+
- **Per-call project resolution for Claude Desktop.** Claude Desktop is a
|
|
97
|
+
single global server with no per-conversation workspace signal, so it
|
|
98
|
+
could only ever bind to one project. Now, for `CODEVIRA_IDE=claude_desktop`,
|
|
99
|
+
the active project is resolved per tool call from the call's `file_path`
|
|
100
|
+
(walking up to the enclosing `.codevira/`), and is sticky for path-less
|
|
101
|
+
follow-ups — so codevira's memory follows whichever project you're
|
|
102
|
+
working in, across all of them. Strictly workspace-bound IDEs (Claude
|
|
103
|
+
Code / Cursor / Windsurf) are unaffected (gated). Best-effort and
|
|
104
|
+
read-safe (the per-root data-dir cache re-resolves on switch).
|
|
105
|
+
|
|
106
|
+
### Fixed
|
|
107
|
+
|
|
108
|
+
- **Project binding: the MCP server could resolve the WRONG project.** A
|
|
109
|
+
user-scope codevira server (one shared entry, launched with no `cwd` /
|
|
110
|
+
`--project-dir` / `CODEVIRA_PROJECT_DIR`) had no project binding and
|
|
111
|
+
fell through to cwd discovery — frequently resolving to a *different*
|
|
112
|
+
project than the one open in the editor (cross-project memory
|
|
113
|
+
contamination: decisions/graph/sessions read from project A while you
|
|
114
|
+
work in project B). The server now resolves the active project from the
|
|
115
|
+
MCP client's workspace **roots** (Claude Code, Cursor, Windsurf all
|
|
116
|
+
expose these) on the first tool call, when not explicitly pinned. It
|
|
117
|
+
re-binds **only** to an already-initialized codevira project (`.codevira`
|
|
118
|
+
present), so a monorepo workspace root or a fresh repo can't hijack a
|
|
119
|
+
working setup; explicit `--project-dir` / `CODEVIRA_PROJECT_DIR` pins are
|
|
120
|
+
always respected; and the lookup is bounded by a timeout so it can never
|
|
121
|
+
hang dispatch. Upgrade + restart your MCP server to pick this up.
|
|
122
|
+
(D0000RO)
|
|
123
|
+
- **Windows / UNC** workspace roots are now parsed correctly
|
|
124
|
+
(`file:///C:/...` and `file://host/share/...`) — the binding worked on
|
|
125
|
+
POSIX but silently failed / mis-bound on Cursor & Windsurf (Windows).
|
|
126
|
+
- **HTTP transport** skips the roots-binding hook entirely: the HTTP
|
|
127
|
+
server shares one process across sessions, so a process-global binding
|
|
128
|
+
would cross-contaminate; stdio is unaffected.
|
|
129
|
+
- **Brand-new projects** bind correctly: a fresh `.git` workspace root
|
|
130
|
+
is now bound when the inherited cwd isn't a codevira project, so
|
|
131
|
+
`.codevira` no longer gets auto-created in the wrong directory (a
|
|
132
|
+
monorepo cwd that already holds a real project is never overridden).
|
|
133
|
+
- **`codevira doctor`** gains a `project_binding` check that shows how
|
|
134
|
+
the project resolved (explicit pin vs. workspace) so you can verify
|
|
135
|
+
you're bound to the right project.
|
|
136
|
+
|
|
137
|
+
- **Honest `search_decisions` tool description.** It claimed "hybrid BM25
|
|
138
|
+
+ semantic; self-calibrating threshold" while the implementation is
|
|
139
|
+
pure FTS5 keyword/BM25 — the wording misled calling agents into
|
|
140
|
+
expecting semantic recall and gibberish-rejection that don't exist. Now
|
|
141
|
+
it accurately says keyword-only and points to `list_decisions` /
|
|
142
|
+
`list_tags` for zero-keyword-overlap concepts.
|
|
143
|
+
|
|
144
|
+
- **Engine false-positive: additive `Write` no longer hard-blocked.** The
|
|
145
|
+
`decision_lock`, `blast_radius`, and `anti_regression` policies key on
|
|
146
|
+
the `--- before / --- after` diff envelope. `Edit`/`MultiEdit` always
|
|
147
|
+
produced it, but `Write` passed raw file content, so the additive-edit
|
|
148
|
+
guards were silently bypassed and a purely-additive full-file `Write`
|
|
149
|
+
to a locked or high-fan-in file was blocked as if it were destructive
|
|
150
|
+
(forcing users to disable enforcement). The wiring layer now
|
|
151
|
+
synthesizes an honest envelope for `Write` by reading the current
|
|
152
|
+
on-disk content as the `before` block, via a shared
|
|
153
|
+
`_diff_envelope.synthesize_proposed_diff` helper used by both the
|
|
154
|
+
Claude Code hook and the MCP dispatch path. A `Write` that removes or
|
|
155
|
+
changes existing lines still blocks — the moat is unchanged. (D0000PW)
|
|
156
|
+
`anti_regression` deliberately keeps its pre-v3.4.0 no-op behavior on
|
|
157
|
+
full-file `Write`s: its keyword-overlap revert heuristic is calibrated
|
|
158
|
+
for small Edit hunks and would false-block additive overwrites if run
|
|
159
|
+
over a whole file, so Writes are skipped there (Edit/MultiEdit revert
|
|
160
|
+
detection is unaffected).
|
|
161
|
+
|
|
162
|
+
- **Blast-radius veto: "Affected files" list was always empty.** The
|
|
163
|
+
policy read `impact["affected"]`, but `get_impact` / `signals.impact`
|
|
164
|
+
return the list under `affected_files`. The block fired correctly but
|
|
165
|
+
the diagnostic never showed *which* files were impacted; now it does.
|
|
166
|
+
|
|
167
|
+
- **Docs accuracy.** The README tagline implied hard edit-blocking works
|
|
168
|
+
everywhere — it's Claude Code only (other IDEs get the same decisions
|
|
169
|
+
as AGENTS.md guidance). Tagline corrected to match the body, which was
|
|
170
|
+
already scoped correctly.
|
|
171
|
+
|
|
172
|
+
### Changed
|
|
173
|
+
|
|
174
|
+
- **CI: opt into Node.js 24 for GitHub Actions.** GitHub forces Node.js
|
|
175
|
+
24 on runners from 2026-06-16; the CI and Pages workflows now set
|
|
176
|
+
`FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true` to adopt it ahead of the
|
|
177
|
+
deadline and silence the deprecation warnings.
|
|
178
|
+
|
|
179
|
+
### Docs
|
|
180
|
+
|
|
181
|
+
- **Public "What's next" roadmap.** `ROADMAP.md` gains a current-release
|
|
182
|
+
summary and a priority-ordered, *directional (not dated)* "What's next"
|
|
183
|
+
table — summary-first payloads (E1), session-transcript ingest (E2),
|
|
184
|
+
eval harness (E3), managed memory files beyond `AGENTS.md` (E4), and an
|
|
185
|
+
opt-in `[semantic]` recall extra that stays **off by default** (E5),
|
|
186
|
+
plus TypeScript `get_signature`, finer-grained decision locking, and
|
|
187
|
+
learned hot-path tuning. The README `## Roadmap` section now surfaces
|
|
188
|
+
the same "Next up" list inline. The on-device-model track is marked
|
|
189
|
+
deferred (folded into E5's opt-in path).
|
|
190
|
+
|
|
191
|
+
- **README "What's new" + counts refreshed to v3.4.0.** The README's
|
|
192
|
+
"What's new" section was still headlined v3.1.1; it now leads with
|
|
193
|
+
v3.4.0 (binding, honest docs, `projects`, per-call resolution, engine
|
|
194
|
+
fix) and bridges 3.1–3.3 with a pointer to the CHANGELOG. Stale
|
|
195
|
+
surface counts corrected to the verified current numbers: **49**
|
|
196
|
+
surfaced MCP tools (was "24"), **21** CLI commands (was "15"), **8**
|
|
197
|
+
engine policies (was "6").
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
10
201
|
## [3.3.0] — 2026-06-13
|
|
11
202
|
|
|
12
203
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: codevira
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.5.0
|
|
4
4
|
Summary: Cross-IDE decision enforcement for AI coding agents. 1 MB per project, in your repo, no cloud, no vectors. Claude Code, Cursor, Windsurf, Antigravity, Codex all share the same in-repo memory; hooks block AI tool calls that violate prior decisions. MIT, local-first.
|
|
5
5
|
Author-email: Sachin Shelke <sachin.worldnet@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -24,7 +24,7 @@ Requires-Python: >=3.10
|
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
License-File: LICENSE
|
|
26
26
|
Requires-Dist: pyyaml>=6.0
|
|
27
|
-
Requires-Dist: mcp
|
|
27
|
+
Requires-Dist: mcp<2,>=1.0
|
|
28
28
|
Requires-Dist: watchdog>=3.0.0
|
|
29
29
|
Requires-Dist: tomli>=2.0; python_version < "3.11"
|
|
30
30
|
Requires-Dist: tree-sitter>=0.23.0
|
|
@@ -49,9 +49,10 @@ Requires-Dist: pre-commit>=3.5; extra == "dev"
|
|
|
49
49
|
|
|
50
50
|
# Codevira
|
|
51
51
|
|
|
52
|
-
> **Cross-IDE decision
|
|
53
|
-
>
|
|
54
|
-
>
|
|
52
|
+
> **Cross-IDE decision memory for AI coding agents.** One in-repo memory
|
|
53
|
+
> layer that every AI tool you use can read — plus PreToolUse hooks that
|
|
54
|
+
> physically block violating edits **in Claude Code** (other IDEs get the
|
|
55
|
+
> same decisions as AGENTS.md guidance, not a hard block). Local-first,
|
|
55
56
|
> MIT-licensed, ~83 MB pipx install.
|
|
56
57
|
|
|
57
58
|
[](https://pypi.org/project/codevira/)
|
|
@@ -141,55 +142,6 @@ every AI tool, on every project, on your local machine.**
|
|
|
141
142
|
|
|
142
143
|
---
|
|
143
144
|
|
|
144
|
-
## What's new in v3.1.1 — hardening + interrogable memory
|
|
145
|
-
|
|
146
|
-
> 3.1.1 supersedes the briefly-published 3.1.0 (which shipped
|
|
147
|
-
> without this README/CHANGELOG entry). Same code shape; this
|
|
148
|
-
> release is the documented one. Brings five memory subsystems
|
|
149
|
-
> (M1–M9 from 3.1.0) plus the v3.1.1 hardening + viewer overhaul.
|
|
150
|
-
|
|
151
|
-
| Area | What you get |
|
|
152
|
-
|---|---|
|
|
153
|
-
| **Five memory subsystems** | Origin tagging (M1), working memory (M2), skill library with FTS5 ranking (M3), spatial memory + activity heatmap (M4), skill induction wired to outcomes (M5), cross-IDE consensus check + handshake (M6/M7), reflections (M8). 22 new MCP tools. |
|
|
154
|
-
| **Secret scrubbing everywhere** | Decisions, sessions, working memory, skills, reflections — every store scrubs api-key / Bearer / password / AWS AKIA / long hex / long base64 at the write boundary. One shared `mcp_server/storage/sanitize.py`. |
|
|
155
|
-
| **Counter-decision discipline** | `record_decision` now accepts `alternatives_considered: list[str]` and `would_re_examine_if: str` — losing options + invalidation trigger surface in the viewer's rich-detail panel. Optional + back-compat. |
|
|
156
|
-
| **Interrogable graph viewer** | `codevira graph` is no longer a passive force-layout. Free-text search → top-K ranked panel with score + outcome badge. Q&A intent detection ("what did we decide about X", "what got reverted", "what's protected"). Outcome lens (kept/modified/reverted). Lineage trace mode for supersession chains. |
|
|
157
|
-
| **Auto outcome classification** | `codevira sync` now runs `observe-git` as a best-effort tail step — outcomes flow into the viewer's outcome lens automatically. |
|
|
158
|
-
| **G3 real-IDE smoke** | The last permanently-skipped gauntlet gate now ships as a real check. Verifies codevira is registered in each detected IDE config + MCP `tools/list` round-trips in <1s. |
|
|
159
|
-
| **AGENTS.md no more churn** | `regenerate()` is now idempotent — no rewrite when content unchanged, no perpetual uncommitted-drift loop. |
|
|
160
|
-
| **4 silent bugs fixed** | `commit_session("../escape")` rejected; `triggers.tags="git"` rejected; `list_all(limit=0)` returns `[]`; spatial BFS catches query-time sqlite errors. |
|
|
161
|
-
|
|
162
|
-
Full v3.1.1 release notes: [CHANGELOG.md](CHANGELOG.md#311--2026-05-30--hardening-viewer-overhaul-g3-sync-observe-git).
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
## What's new in v3.0.0 — audited, lean, opinionated
|
|
167
|
-
|
|
168
|
-
> Major version. v3.0.0 is the biggest API contraction since v2.0
|
|
169
|
-
> shipped: 21 MCP tools deleted, 8 CLI subcommands deleted, per-IDE
|
|
170
|
-
> nudge file matrix collapsed to AGENTS.md only, IDE detection
|
|
171
|
-
> hardened from "directory exists" to "binary on PATH + valid config
|
|
172
|
-
> file." Full plan + rationale in
|
|
173
|
-
> [`docs/audit-2026-05-22.md`](docs/audit-2026-05-22.md);
|
|
174
|
-
> per-item kill list in
|
|
175
|
-
> [`docs/surface-cuts-2026-05-22.md`](docs/surface-cuts-2026-05-22.md).
|
|
176
|
-
|
|
177
|
-
| Area | What changed |
|
|
178
|
-
|---|---|
|
|
179
|
-
| **Decision storage** | Moved into `<repo>/.codevira/decisions.jsonl` (git-tracked, one decision per line). v2.x stored decisions in `~/.codevira/projects/<key>/graph/graph.db` (a SQLite blob nobody could read). |
|
|
180
|
-
| **AGENTS.md is the nudge file** | Per-IDE nudges (CLAUDE.md / GEMINI.md / .windsurfrules / .cursor/rules/codevira.mdc / .github/copilot-instructions.md) all deleted. Every modern AI tool reads AGENTS.md natively. Slim 5 KB cap; auto-regenerated from decisions; user content outside the `<!-- codevira:begin -->...<!-- codevira:end -->` markers preserved byte-for-byte. |
|
|
181
|
-
| **MCP tool surface** | 46 → 24 tools (-48%; 23 surfaced to AI clients, 1 admin-only). The audit found 22 tools that nobody called in real usage (preferences, learned_rules, changesets, project_maturity, list_nodes / add_node / update_node / export_graph, etc.). All deleted. (v3.1.0 later added 24 memory-subsystem tools, and v3.3.0 brought preferences back redesigned — `distill_preferences` / `search_preferences`, LLM-distilled from real prompts instead of the unused v2.x CRUD.) |
|
|
182
|
-
| **CLI surface** | 23 → 15 commands (-35%). Deleted: `heal` (use `reset`), `budget`, `agents`, `hooks`, `register`, `configure`, `report` (folded into `doctor`), `calibrate`, `insights`. |
|
|
183
|
-
| **IDE detection hardened** | No more false-positives from stale `~/.cursor/` dirs. Each IDE needs a STRONG signal (binary on PATH, or verified config file). Pass `--ide X --force` to override when the detector misses an install. |
|
|
184
|
-
| **`codevira uninstall`** | New command. Reverses every system write made by `init`/`setup`: drops the MCP entry from `~/.claude.json`, deletes `~/.claude/hooks/codevira-*.sh`, strips codevira-tagged registrations from `~/.claude/settings.json`, removes per-project `.codevira/` + `.codevira-cache/`, strips the codevira block from AGENTS.md. Optional `--keep-data`. |
|
|
185
|
-
| **Install size** | ~83 MB pipx venv (was ~450 MB in v2.1.2 with ChromaDB + sentence-transformers + torch). MCP server starts in <100 ms (was 1-3 s). |
|
|
186
|
-
|
|
187
|
-
Full v3.0.0 release notes: [CHANGELOG.md](CHANGELOG.md).
|
|
188
|
-
|
|
189
|
-
Upgrading from v2.x? See the [Migration notes](CHANGELOG.md#migration-notes) section.
|
|
190
|
-
|
|
191
|
-
---
|
|
192
|
-
|
|
193
145
|
## Quick Start — three commands
|
|
194
146
|
|
|
195
147
|
```bash
|
|
@@ -279,7 +231,7 @@ summary: 13 pass · 0 warn · 0 fail
|
|
|
279
231
|
|
|
280
232
|
### Daily-use commands
|
|
281
233
|
|
|
282
|
-
The
|
|
234
|
+
The CLI surface is 23 commands (the daily-use ones below):
|
|
283
235
|
|
|
284
236
|
| Command | What it does |
|
|
285
237
|
|---|---|
|
|
@@ -287,7 +239,7 @@ The v3.0.0 CLI surface is 15 commands:
|
|
|
287
239
|
| `codevira setup` | Detect installed AI tools + write MCP configs + Claude Code hooks |
|
|
288
240
|
| `codevira doctor` | Health check (read-only; ✓/⚠/✗ + fix commands) |
|
|
289
241
|
| `codevira status` | Show index health + project state |
|
|
290
|
-
| `codevira projects` | List
|
|
242
|
+
| `codevira projects` | List tracked projects with staleness (`today` / `5d ago` / `stale 45d`); `projects archive <name>` drops one from the registry |
|
|
291
243
|
| `codevira index` | Build / refresh the code graph cache |
|
|
292
244
|
| `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
|
|
293
245
|
| `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
|
|
@@ -327,6 +279,34 @@ versions. User content outside the codevira markers stays.
|
|
|
327
279
|
|
|
328
280
|
---
|
|
329
281
|
|
|
282
|
+
## What's new in v3.5.0 — the read side gets intelligent
|
|
283
|
+
|
|
284
|
+
> Codevira's leverage is the **read** side: does it surface the *right*
|
|
285
|
+
> memory at the right moment, with low noise? v3.5.0 makes that side
|
|
286
|
+
> measurable, leaner, and self-tuning — and grew the smarts without
|
|
287
|
+
> bundling a model or adding a single runtime dependency.
|
|
288
|
+
|
|
289
|
+
| Area | What you get |
|
|
290
|
+
|---|---|
|
|
291
|
+
| **Summary-first decisions + `expand`** | `search_decisions` / `list_decisions` now default to compact one-line rows; a new `expand(ids=[…])` tool fetches full records only for the few you care about. `full=true` still works; `CODEVIRA_DECISION_DETAIL=full` restores the old verbose default. |
|
|
292
|
+
| **Content-aware decision lock** | A `do_not_revert` file no longer hard-blocks *every* edit. An edit blocks only when its diff actually touches the locked decision's subject; a provably-orthogonal edit downgrades to a warn (the decision is still surfaced). Restore strict file-level locking with `CODEVIRA_DECISION_LOCK_CONTENT_AWARE=0`. |
|
|
293
|
+
| **It learns from real sessions** | `codevira reflect --from-sessions` reads your local Claude Code / Codex / Gemini transcripts (read-only), flags failures + user corrections with no LLM, and folds a sanitized digest into reflection candidates — never auto-creating decisions. |
|
|
294
|
+
| **Measured + self-tuning recall** | `codevira eval` scores read-side relevance (recall@k / MRR) on cases self-derived from your own memory — no fixtures to rot. `codevira tune-weights` learns the ranking weights against that eval and persists only a proven win (opt in at the hot path via `CODEVIRA_LEARNED_WEIGHTS`). |
|
|
295
|
+
| **More managed memory files** | Beyond `AGENTS.md`, codevira can maintain `CLAUDE.md`, `GEMINI.md`, and `.cursor/rules/codevira.mdc` from one canonical block — opt in via `.codevira/config.yaml: managed_files`. Content outside the markers is preserved byte-for-byte. |
|
|
296
|
+
| **Opt-in synonym recall** | A no-dependency synonym map widens a query so `database` can recall a decision recorded about `postgres`. Off by default (`CODEVIRA_SYNONYM_WIDENING=1`) — it trades a little ranking precision for recall. |
|
|
297
|
+
| **Polish** | `get_signature` JS/JSX accuracy fixed; the two git outcome stores (confidence + replay) reconciled into one classifier; the `doctor` `ghost_projects` false positive fixed (empty leftover dirs are *stale*, not ghosts). |
|
|
298
|
+
|
|
299
|
+
Full v3.5.0 release notes: [CHANGELOG.md](CHANGELOG.md#350--2026-06-19).
|
|
300
|
+
|
|
301
|
+
**Earlier releases** — full history in the [CHANGELOG](CHANGELOG.md):
|
|
302
|
+
**v3.4** reliable per-call project binding (one user-scope server, no
|
|
303
|
+
cross-project contamination) · **v3.1** five memory subsystems (working
|
|
304
|
+
memory, skills, spatial, consensus, reflections) · **v3.0** the lean
|
|
305
|
+
audit (46 → 24 tools, AGENTS.md-only nudge, ~83 MB install down from
|
|
306
|
+
~450 MB) · **v2.2** dropped ChromaDB/vectors for SQLite FTS5.
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
330
310
|
## How It Works
|
|
331
311
|
|
|
332
312
|
Codevira is a [Model Context Protocol](https://modelcontextprotocol.io)
|
|
@@ -392,9 +372,9 @@ data:
|
|
|
392
372
|
The agent always asks for what it needs, in the size it needs.
|
|
393
373
|
|
|
394
374
|
**Shrink the tool surface itself.** The advertised MCP `tools/list` is a
|
|
395
|
-
fixed per-session cost (~
|
|
375
|
+
fixed per-session cost (~8K tokens for the full 50-tool surface). Set
|
|
396
376
|
`CODEVIRA_TOOL_PROFILE=lean` in the MCP server's `env` block to advertise
|
|
397
|
-
only the
|
|
377
|
+
only the 12 daily-driver tools (~71% smaller); hidden tools still work
|
|
398
378
|
when called explicitly. Bigger wins usually come from disabling MCP
|
|
399
379
|
servers you aren't actively using.
|
|
400
380
|
|
|
@@ -402,10 +382,10 @@ servers you aren't actively using.
|
|
|
402
382
|
|
|
403
383
|
## MCP Tools
|
|
404
384
|
|
|
405
|
-
**
|
|
385
|
+
**50 tools** surfaced to AI clients via `tools/list` (token-optimized,
|
|
406
386
|
summary-first): the core decision/roadmap/graph surface plus the
|
|
407
387
|
v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
|
|
408
|
-
reflections)
|
|
388
|
+
reflections), the v3.3.0 preference tools, and v3.5.0's `expand`. One additional admin
|
|
409
389
|
tool (`refresh_graph`) is registered but hidden from `tools/list`
|
|
410
390
|
because it runs automatically in the background — humans invoke it via
|
|
411
391
|
`codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
|
|
@@ -500,9 +480,10 @@ kill list.
|
|
|
500
480
|
| `get_signature` / `get_code` | ✓ | ✓ | ✓ | ✓ | — |
|
|
501
481
|
|
|
502
482
|
Decisions / AGENTS.md / roadmap are language-agnostic. Code-graph
|
|
503
|
-
features require a tree-sitter grammar;
|
|
504
|
-
|
|
505
|
-
17-grammar pack
|
|
483
|
+
features require a tree-sitter grammar; codevira ships Python, TS, JS,
|
|
484
|
+
Go, Rust. For other languages the AI `Read`s the file directly — the
|
|
485
|
+
legacy 17-grammar `[all-languages]` pack was removed in v2.2.0 to keep
|
|
486
|
+
the install lean (v2.3.0 may re-add specific grammars on demand).
|
|
506
487
|
|
|
507
488
|
---
|
|
508
489
|
|
|
@@ -511,10 +492,10 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
|
|
|
511
492
|
| Production-stable | Known-limited |
|
|
512
493
|
|---|---|
|
|
513
494
|
| Cross-IDE decision memory via in-repo JSONL | The PreToolUse hook enforcement is Claude Code only today. Other IDEs read AGENTS.md (soft signal), but don't have hard blocks |
|
|
514
|
-
| `do_not_revert` enforcement at Claude Code PreToolUse |
|
|
495
|
+
| `do_not_revert` enforcement at Claude Code PreToolUse | Symbol tools (`get_signature` / `get_code`) cover Python / TS / JS / Go / Rust; for other languages the AI `Read`s the file directly (the legacy `[all-languages]` grammar pack was removed in v2.2.0) |
|
|
515
496
|
| FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
|
|
516
497
|
| Per-project + cross-machine project inventory (`global.db`) | Web UI for browsing decisions — use the `codevira://decisions` MCP resource in Claude Desktop, or `codevira replay --format html` for a static file |
|
|
517
|
-
| All
|
|
498
|
+
| All 50 surfaced MCP tools + 23 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
|
|
518
499
|
| Concurrent-safe storage layer (Posix `fcntl.flock` + Windows sentinel fallback). Proven against 50-thread + 20-subprocess stress + 29-attack chaos harness | The cross-process file-lock contract has been exercised on macOS + Linux CI; the Windows sentinel-file fallback is verified via unit-test simulation but hasn't been load-tested on real Windows yet |
|
|
519
500
|
| Code graph data store is functional but the v3.0.0 spec target (`<project>/.codevira-cache/graph.sqlite`) and the actual location (`<data_dir>/graph/graph.db`) drifted during the surface-cut audit. Tracked for v3.1 reconciliation | n/a (functional today; spec-truthfulness gap only) |
|
|
520
501
|
|
|
@@ -550,8 +531,23 @@ Common questions about setup, usage, architecture, and troubleshooting
|
|
|
550
531
|
|
|
551
532
|
## Roadmap
|
|
552
533
|
|
|
553
|
-
|
|
554
|
-
|
|
534
|
+
**Current release:** **v3.5.0** — the read side gets intelligent:
|
|
535
|
+
summary-first decisions + `expand`, a content-aware decision lock,
|
|
536
|
+
read-only session-transcript ingest, a self-derived relevance eval +
|
|
537
|
+
learned weight tuning, multi-file managed memory, and opt-in synonym
|
|
538
|
+
recall — all with no new runtime dependencies.
|
|
539
|
+
|
|
540
|
+
**Next up** (directional, not dated):
|
|
541
|
+
|
|
542
|
+
- **Opt-in `[semantic]` recall** — off by default; the base install
|
|
543
|
+
stays pure-keyword, no vectors, no model download
|
|
544
|
+
- **Symbol / region-level decision locking** — lock a function or
|
|
545
|
+
block, not just the whole file
|
|
546
|
+
- **Cross-project decision search** — `search_decisions` across all
|
|
547
|
+
your local projects, not just the current one
|
|
548
|
+
|
|
549
|
+
What's built, the full upcoming list, and the long-term vision —
|
|
550
|
+
**[ROADMAP.md](ROADMAP.md)**.
|
|
555
551
|
|
|
556
552
|
## Star History
|
|
557
553
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Codevira
|
|
2
2
|
|
|
3
|
-
> **Cross-IDE decision
|
|
4
|
-
>
|
|
5
|
-
>
|
|
3
|
+
> **Cross-IDE decision memory for AI coding agents.** One in-repo memory
|
|
4
|
+
> layer that every AI tool you use can read — plus PreToolUse hooks that
|
|
5
|
+
> physically block violating edits **in Claude Code** (other IDEs get the
|
|
6
|
+
> same decisions as AGENTS.md guidance, not a hard block). Local-first,
|
|
6
7
|
> MIT-licensed, ~83 MB pipx install.
|
|
7
8
|
|
|
8
9
|
[](https://pypi.org/project/codevira/)
|
|
@@ -92,55 +93,6 @@ every AI tool, on every project, on your local machine.**
|
|
|
92
93
|
|
|
93
94
|
---
|
|
94
95
|
|
|
95
|
-
## What's new in v3.1.1 — hardening + interrogable memory
|
|
96
|
-
|
|
97
|
-
> 3.1.1 supersedes the briefly-published 3.1.0 (which shipped
|
|
98
|
-
> without this README/CHANGELOG entry). Same code shape; this
|
|
99
|
-
> release is the documented one. Brings five memory subsystems
|
|
100
|
-
> (M1–M9 from 3.1.0) plus the v3.1.1 hardening + viewer overhaul.
|
|
101
|
-
|
|
102
|
-
| Area | What you get |
|
|
103
|
-
|---|---|
|
|
104
|
-
| **Five memory subsystems** | Origin tagging (M1), working memory (M2), skill library with FTS5 ranking (M3), spatial memory + activity heatmap (M4), skill induction wired to outcomes (M5), cross-IDE consensus check + handshake (M6/M7), reflections (M8). 22 new MCP tools. |
|
|
105
|
-
| **Secret scrubbing everywhere** | Decisions, sessions, working memory, skills, reflections — every store scrubs api-key / Bearer / password / AWS AKIA / long hex / long base64 at the write boundary. One shared `mcp_server/storage/sanitize.py`. |
|
|
106
|
-
| **Counter-decision discipline** | `record_decision` now accepts `alternatives_considered: list[str]` and `would_re_examine_if: str` — losing options + invalidation trigger surface in the viewer's rich-detail panel. Optional + back-compat. |
|
|
107
|
-
| **Interrogable graph viewer** | `codevira graph` is no longer a passive force-layout. Free-text search → top-K ranked panel with score + outcome badge. Q&A intent detection ("what did we decide about X", "what got reverted", "what's protected"). Outcome lens (kept/modified/reverted). Lineage trace mode for supersession chains. |
|
|
108
|
-
| **Auto outcome classification** | `codevira sync` now runs `observe-git` as a best-effort tail step — outcomes flow into the viewer's outcome lens automatically. |
|
|
109
|
-
| **G3 real-IDE smoke** | The last permanently-skipped gauntlet gate now ships as a real check. Verifies codevira is registered in each detected IDE config + MCP `tools/list` round-trips in <1s. |
|
|
110
|
-
| **AGENTS.md no more churn** | `regenerate()` is now idempotent — no rewrite when content unchanged, no perpetual uncommitted-drift loop. |
|
|
111
|
-
| **4 silent bugs fixed** | `commit_session("../escape")` rejected; `triggers.tags="git"` rejected; `list_all(limit=0)` returns `[]`; spatial BFS catches query-time sqlite errors. |
|
|
112
|
-
|
|
113
|
-
Full v3.1.1 release notes: [CHANGELOG.md](CHANGELOG.md#311--2026-05-30--hardening-viewer-overhaul-g3-sync-observe-git).
|
|
114
|
-
|
|
115
|
-
---
|
|
116
|
-
|
|
117
|
-
## What's new in v3.0.0 — audited, lean, opinionated
|
|
118
|
-
|
|
119
|
-
> Major version. v3.0.0 is the biggest API contraction since v2.0
|
|
120
|
-
> shipped: 21 MCP tools deleted, 8 CLI subcommands deleted, per-IDE
|
|
121
|
-
> nudge file matrix collapsed to AGENTS.md only, IDE detection
|
|
122
|
-
> hardened from "directory exists" to "binary on PATH + valid config
|
|
123
|
-
> file." Full plan + rationale in
|
|
124
|
-
> [`docs/audit-2026-05-22.md`](docs/audit-2026-05-22.md);
|
|
125
|
-
> per-item kill list in
|
|
126
|
-
> [`docs/surface-cuts-2026-05-22.md`](docs/surface-cuts-2026-05-22.md).
|
|
127
|
-
|
|
128
|
-
| Area | What changed |
|
|
129
|
-
|---|---|
|
|
130
|
-
| **Decision storage** | Moved into `<repo>/.codevira/decisions.jsonl` (git-tracked, one decision per line). v2.x stored decisions in `~/.codevira/projects/<key>/graph/graph.db` (a SQLite blob nobody could read). |
|
|
131
|
-
| **AGENTS.md is the nudge file** | Per-IDE nudges (CLAUDE.md / GEMINI.md / .windsurfrules / .cursor/rules/codevira.mdc / .github/copilot-instructions.md) all deleted. Every modern AI tool reads AGENTS.md natively. Slim 5 KB cap; auto-regenerated from decisions; user content outside the `<!-- codevira:begin -->...<!-- codevira:end -->` markers preserved byte-for-byte. |
|
|
132
|
-
| **MCP tool surface** | 46 → 24 tools (-48%; 23 surfaced to AI clients, 1 admin-only). The audit found 22 tools that nobody called in real usage (preferences, learned_rules, changesets, project_maturity, list_nodes / add_node / update_node / export_graph, etc.). All deleted. (v3.1.0 later added 24 memory-subsystem tools, and v3.3.0 brought preferences back redesigned — `distill_preferences` / `search_preferences`, LLM-distilled from real prompts instead of the unused v2.x CRUD.) |
|
|
133
|
-
| **CLI surface** | 23 → 15 commands (-35%). Deleted: `heal` (use `reset`), `budget`, `agents`, `hooks`, `register`, `configure`, `report` (folded into `doctor`), `calibrate`, `insights`. |
|
|
134
|
-
| **IDE detection hardened** | No more false-positives from stale `~/.cursor/` dirs. Each IDE needs a STRONG signal (binary on PATH, or verified config file). Pass `--ide X --force` to override when the detector misses an install. |
|
|
135
|
-
| **`codevira uninstall`** | New command. Reverses every system write made by `init`/`setup`: drops the MCP entry from `~/.claude.json`, deletes `~/.claude/hooks/codevira-*.sh`, strips codevira-tagged registrations from `~/.claude/settings.json`, removes per-project `.codevira/` + `.codevira-cache/`, strips the codevira block from AGENTS.md. Optional `--keep-data`. |
|
|
136
|
-
| **Install size** | ~83 MB pipx venv (was ~450 MB in v2.1.2 with ChromaDB + sentence-transformers + torch). MCP server starts in <100 ms (was 1-3 s). |
|
|
137
|
-
|
|
138
|
-
Full v3.0.0 release notes: [CHANGELOG.md](CHANGELOG.md).
|
|
139
|
-
|
|
140
|
-
Upgrading from v2.x? See the [Migration notes](CHANGELOG.md#migration-notes) section.
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
96
|
## Quick Start — three commands
|
|
145
97
|
|
|
146
98
|
```bash
|
|
@@ -230,7 +182,7 @@ summary: 13 pass · 0 warn · 0 fail
|
|
|
230
182
|
|
|
231
183
|
### Daily-use commands
|
|
232
184
|
|
|
233
|
-
The
|
|
185
|
+
The CLI surface is 23 commands (the daily-use ones below):
|
|
234
186
|
|
|
235
187
|
| Command | What it does |
|
|
236
188
|
|---|---|
|
|
@@ -238,7 +190,7 @@ The v3.0.0 CLI surface is 15 commands:
|
|
|
238
190
|
| `codevira setup` | Detect installed AI tools + write MCP configs + Claude Code hooks |
|
|
239
191
|
| `codevira doctor` | Health check (read-only; ✓/⚠/✗ + fix commands) |
|
|
240
192
|
| `codevira status` | Show index health + project state |
|
|
241
|
-
| `codevira projects` | List
|
|
193
|
+
| `codevira projects` | List tracked projects with staleness (`today` / `5d ago` / `stale 45d`); `projects archive <name>` drops one from the registry |
|
|
242
194
|
| `codevira index` | Build / refresh the code graph cache |
|
|
243
195
|
| `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
|
|
244
196
|
| `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
|
|
@@ -278,6 +230,34 @@ versions. User content outside the codevira markers stays.
|
|
|
278
230
|
|
|
279
231
|
---
|
|
280
232
|
|
|
233
|
+
## What's new in v3.5.0 — the read side gets intelligent
|
|
234
|
+
|
|
235
|
+
> Codevira's leverage is the **read** side: does it surface the *right*
|
|
236
|
+
> memory at the right moment, with low noise? v3.5.0 makes that side
|
|
237
|
+
> measurable, leaner, and self-tuning — and grew the smarts without
|
|
238
|
+
> bundling a model or adding a single runtime dependency.
|
|
239
|
+
|
|
240
|
+
| Area | What you get |
|
|
241
|
+
|---|---|
|
|
242
|
+
| **Summary-first decisions + `expand`** | `search_decisions` / `list_decisions` now default to compact one-line rows; a new `expand(ids=[…])` tool fetches full records only for the few you care about. `full=true` still works; `CODEVIRA_DECISION_DETAIL=full` restores the old verbose default. |
|
|
243
|
+
| **Content-aware decision lock** | A `do_not_revert` file no longer hard-blocks *every* edit. An edit blocks only when its diff actually touches the locked decision's subject; a provably-orthogonal edit downgrades to a warn (the decision is still surfaced). Restore strict file-level locking with `CODEVIRA_DECISION_LOCK_CONTENT_AWARE=0`. |
|
|
244
|
+
| **It learns from real sessions** | `codevira reflect --from-sessions` reads your local Claude Code / Codex / Gemini transcripts (read-only), flags failures + user corrections with no LLM, and folds a sanitized digest into reflection candidates — never auto-creating decisions. |
|
|
245
|
+
| **Measured + self-tuning recall** | `codevira eval` scores read-side relevance (recall@k / MRR) on cases self-derived from your own memory — no fixtures to rot. `codevira tune-weights` learns the ranking weights against that eval and persists only a proven win (opt in at the hot path via `CODEVIRA_LEARNED_WEIGHTS`). |
|
|
246
|
+
| **More managed memory files** | Beyond `AGENTS.md`, codevira can maintain `CLAUDE.md`, `GEMINI.md`, and `.cursor/rules/codevira.mdc` from one canonical block — opt in via `.codevira/config.yaml: managed_files`. Content outside the markers is preserved byte-for-byte. |
|
|
247
|
+
| **Opt-in synonym recall** | A no-dependency synonym map widens a query so `database` can recall a decision recorded about `postgres`. Off by default (`CODEVIRA_SYNONYM_WIDENING=1`) — it trades a little ranking precision for recall. |
|
|
248
|
+
| **Polish** | `get_signature` JS/JSX accuracy fixed; the two git outcome stores (confidence + replay) reconciled into one classifier; the `doctor` `ghost_projects` false positive fixed (empty leftover dirs are *stale*, not ghosts). |
|
|
249
|
+
|
|
250
|
+
Full v3.5.0 release notes: [CHANGELOG.md](CHANGELOG.md#350--2026-06-19).
|
|
251
|
+
|
|
252
|
+
**Earlier releases** — full history in the [CHANGELOG](CHANGELOG.md):
|
|
253
|
+
**v3.4** reliable per-call project binding (one user-scope server, no
|
|
254
|
+
cross-project contamination) · **v3.1** five memory subsystems (working
|
|
255
|
+
memory, skills, spatial, consensus, reflections) · **v3.0** the lean
|
|
256
|
+
audit (46 → 24 tools, AGENTS.md-only nudge, ~83 MB install down from
|
|
257
|
+
~450 MB) · **v2.2** dropped ChromaDB/vectors for SQLite FTS5.
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
281
261
|
## How It Works
|
|
282
262
|
|
|
283
263
|
Codevira is a [Model Context Protocol](https://modelcontextprotocol.io)
|
|
@@ -343,9 +323,9 @@ data:
|
|
|
343
323
|
The agent always asks for what it needs, in the size it needs.
|
|
344
324
|
|
|
345
325
|
**Shrink the tool surface itself.** The advertised MCP `tools/list` is a
|
|
346
|
-
fixed per-session cost (~
|
|
326
|
+
fixed per-session cost (~8K tokens for the full 50-tool surface). Set
|
|
347
327
|
`CODEVIRA_TOOL_PROFILE=lean` in the MCP server's `env` block to advertise
|
|
348
|
-
only the
|
|
328
|
+
only the 12 daily-driver tools (~71% smaller); hidden tools still work
|
|
349
329
|
when called explicitly. Bigger wins usually come from disabling MCP
|
|
350
330
|
servers you aren't actively using.
|
|
351
331
|
|
|
@@ -353,10 +333,10 @@ servers you aren't actively using.
|
|
|
353
333
|
|
|
354
334
|
## MCP Tools
|
|
355
335
|
|
|
356
|
-
**
|
|
336
|
+
**50 tools** surfaced to AI clients via `tools/list` (token-optimized,
|
|
357
337
|
summary-first): the core decision/roadmap/graph surface plus the
|
|
358
338
|
v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
|
|
359
|
-
reflections)
|
|
339
|
+
reflections), the v3.3.0 preference tools, and v3.5.0's `expand`. One additional admin
|
|
360
340
|
tool (`refresh_graph`) is registered but hidden from `tools/list`
|
|
361
341
|
because it runs automatically in the background — humans invoke it via
|
|
362
342
|
`codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
|
|
@@ -451,9 +431,10 @@ kill list.
|
|
|
451
431
|
| `get_signature` / `get_code` | ✓ | ✓ | ✓ | ✓ | — |
|
|
452
432
|
|
|
453
433
|
Decisions / AGENTS.md / roadmap are language-agnostic. Code-graph
|
|
454
|
-
features require a tree-sitter grammar;
|
|
455
|
-
|
|
456
|
-
17-grammar pack
|
|
434
|
+
features require a tree-sitter grammar; codevira ships Python, TS, JS,
|
|
435
|
+
Go, Rust. For other languages the AI `Read`s the file directly — the
|
|
436
|
+
legacy 17-grammar `[all-languages]` pack was removed in v2.2.0 to keep
|
|
437
|
+
the install lean (v2.3.0 may re-add specific grammars on demand).
|
|
457
438
|
|
|
458
439
|
---
|
|
459
440
|
|
|
@@ -462,10 +443,10 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
|
|
|
462
443
|
| Production-stable | Known-limited |
|
|
463
444
|
|---|---|
|
|
464
445
|
| Cross-IDE decision memory via in-repo JSONL | The PreToolUse hook enforcement is Claude Code only today. Other IDEs read AGENTS.md (soft signal), but don't have hard blocks |
|
|
465
|
-
| `do_not_revert` enforcement at Claude Code PreToolUse |
|
|
446
|
+
| `do_not_revert` enforcement at Claude Code PreToolUse | Symbol tools (`get_signature` / `get_code`) cover Python / TS / JS / Go / Rust; for other languages the AI `Read`s the file directly (the legacy `[all-languages]` grammar pack was removed in v2.2.0) |
|
|
466
447
|
| FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
|
|
467
448
|
| Per-project + cross-machine project inventory (`global.db`) | Web UI for browsing decisions — use the `codevira://decisions` MCP resource in Claude Desktop, or `codevira replay --format html` for a static file |
|
|
468
|
-
| All
|
|
449
|
+
| All 50 surfaced MCP tools + 23 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
|
|
469
450
|
| Concurrent-safe storage layer (Posix `fcntl.flock` + Windows sentinel fallback). Proven against 50-thread + 20-subprocess stress + 29-attack chaos harness | The cross-process file-lock contract has been exercised on macOS + Linux CI; the Windows sentinel-file fallback is verified via unit-test simulation but hasn't been load-tested on real Windows yet |
|
|
470
451
|
| Code graph data store is functional but the v3.0.0 spec target (`<project>/.codevira-cache/graph.sqlite`) and the actual location (`<data_dir>/graph/graph.db`) drifted during the surface-cut audit. Tracked for v3.1 reconciliation | n/a (functional today; spec-truthfulness gap only) |
|
|
471
452
|
|
|
@@ -501,8 +482,23 @@ Common questions about setup, usage, architecture, and troubleshooting
|
|
|
501
482
|
|
|
502
483
|
## Roadmap
|
|
503
484
|
|
|
504
|
-
|
|
505
|
-
|
|
485
|
+
**Current release:** **v3.5.0** — the read side gets intelligent:
|
|
486
|
+
summary-first decisions + `expand`, a content-aware decision lock,
|
|
487
|
+
read-only session-transcript ingest, a self-derived relevance eval +
|
|
488
|
+
learned weight tuning, multi-file managed memory, and opt-in synonym
|
|
489
|
+
recall — all with no new runtime dependencies.
|
|
490
|
+
|
|
491
|
+
**Next up** (directional, not dated):
|
|
492
|
+
|
|
493
|
+
- **Opt-in `[semantic]` recall** — off by default; the base install
|
|
494
|
+
stays pure-keyword, no vectors, no model download
|
|
495
|
+
- **Symbol / region-level decision locking** — lock a function or
|
|
496
|
+
block, not just the whole file
|
|
497
|
+
- **Cross-project decision search** — `search_decisions` across all
|
|
498
|
+
your local projects, not just the current one
|
|
499
|
+
|
|
500
|
+
What's built, the full upcoming list, and the long-term vision —
|
|
501
|
+
**[ROADMAP.md](ROADMAP.md)**.
|
|
506
502
|
|
|
507
503
|
## Star History
|
|
508
504
|
|