Repository navigation
Comparing changes
Open a pull request
base repository: colbymchenry/codegraph
base: main
head repository: othercat/codegraph
compare: main
- 10 commits
- 50 files changed
- 2 contributors
Commits on Jun 4, 2026
-
Add .ai project memory and better-sqlite3 fallback
Introduce a project-local AI knowledge folder and fix Windows SQLite FTS5 issue. - Add .ai/* docs (MEMORY, claude_rules, decisions, handover, repo_map, task_log, token_saving_rules) to record project memory, rules, ADRs and onboarding guidance. - Update .gitignore to exclude .ai temporary/session files. - Add better-sqlite3 as a supported backend (package.json updated) and implement runtime FTS5 detection + fallback in src/db/sqlite-adapter.ts (BetterSqlite3Adapter, nodeSqliteSupportsFts5, createDatabase changes). - Fix backend display/logic in CLI and MCP tools (src/bin/codegraph.ts, src/mcp/tools.ts) to reflect dynamic backend selection. - Minor build/install artifacts and scripts updated to support the changes (wasm asset, scripts, install.sh mode change). Purpose: persist project-specific AI guidance to reduce repeated context rebuilding, and make CodeGraph usable on Windows Node 22.x where node:sqlite lacks FTS5 by falling back to better-sqlite3.
Configuration menu - View commit details
-
Copy full SHA for 5754204 - Browse repository at this point
Copy the full SHA 5754204View commit details -
fix(sqlite): better-sqlite3 fallback for Windows Node.js 22.x missing…
… FTS5 Node.js 22.x on Windows ships node:sqlite without ENABLE_FTS5, causing codegraph init to fail with 'no such module: fts5'. Add runtime detection and automatic fallback to better-sqlite3 when FTS5 is unavailable. Also fix status commands (CLI + MCP) that hardcoded 'node-sqlite' backend label instead of reporting the actual active backend. Fix tests that assumed node-sqlite backend on all platforms, and add missing cg.close()/db.close() calls that caused EBUSY on Windows. - sqlite-backend.test.ts: dynamic backend detection - node-sqlite-backend.test.ts: accept better-sqlite3 as valid backend - frameworks-integration.test.ts: add missing cg.close() in JVM tests - resolution.test.ts: close extra DB connection in C/C++ e2e test Co-Authored-By: Claude Opus 4.8 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c9f3471 - Browse repository at this point
Copy the full SHA c9f3471View commit details -
docs: 永久能力模板 + 安装指令修正为本地 fork 源码
创建通用永久能力模板,方便在其他项目中复用 CodeGraph 工作方式: - docs/permanent-capability-template.md: 完整通用模板(开工九步、Token红线、 各平台配置速查、任务模板) - docs/setup-guide.md: 新项目部署指南(三种方案 + FAQ) - .ai/codex_rules.md: CodeGraph 项目的 Codex 专用规则 重要修正:所有安装指令从官方 npm 包改为本地 fork 源码。 Windows 上官方 node:sqlite 缺少 FTS5,必须用本地 better-sqlite3 fallback。 - 前置条件:先 cd <workspace_root>/KnowledgeRoots/colbymchenry/codegraph 执行 npm run build && npm link - 去掉 raw.githubusercontent.com / codegraph.dev / npm install -g 等官方链接 - 新增 FAQ 解释为什么不能用官方包,以及换机器时路径处理 Co-Authored-By: Claude Opus 4.8 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7bb4994 - Browse repository at this point
Copy the full SHA 7bb4994View commit details -
docs: add Codex on-demand CodeGraph indexing
Document a startup guard for Codex projects: check codegraph status first, sync only when pending changes exist, and initialize only when a project has no index. This avoids rebuilding indexes on every session while still ensuring new projects get indexed. Also record the GitHub CLI installation and global Codex MCP setup in the project handover and task log.
Configuration menu - View commit details
-
Copy full SHA for 50a80f9 - Browse repository at this point
Copy the full SHA 50a80f9View commit details -
docs: record CodeGraph setup push status
Update the project handover and task log after the Codex on-demand indexing docs were pushed successfully. Keep the remaining note that gh itself is installed but not authenticated for PR/API use.
Configuration menu - View commit details
-
Copy full SHA for d98eda7 - Browse repository at this point
Copy the full SHA d98eda7View commit details -
docs: add Codex agent guidance and skills
Add the project-level AGENTS.md guidance plus local Codex skill definitions for adding languages and running agent evaluations. Include the agent-eval corpus so the skills can run from the repository context.
Configuration menu - View commit details
-
Copy full SHA for 862dd32 - Browse repository at this point
Copy the full SHA 862dd32View commit details -
docs: record agent guidance publish
Record the GitHub CLI authentication check and the successful publish of AGENTS.md plus the local .agents skills in the project handover and task log.
Configuration menu - View commit details
-
Copy full SHA for fb03828 - Browse repository at this point
Copy the full SHA fb03828View commit details
Commits on Jun 5, 2026
-
Centralize local CodeGraph query API
Introduce a standard local query API for shared symbol search, file listing, status, callers, callees, and impact queries. Route the CLI and MCP tools through that API so MCP remains a compatibility adapter instead of owning separate business logic. Document the MCP transport fallback rule and add focused tests for the local API and Transport closed guidance.
Configuration menu - View commit details
-
Copy full SHA for 5c68125 - Browse repository at this point
Copy the full SHA 5c68125View commit details
Commits on Jun 8, 2026
-
Add context & affected commands via local API
Extend the local query API and CLI to support building task contexts and finding affected tests. Key changes: - src/query/local-api.ts: add getFileDependents/buildContext to LocalQuerySource, introduce AffectedTestsResult, and implement findAffectedTests and buildTaskContext on CodeGraphLocalQueryApi. - src/bin/codegraph.ts: add new `context` CLI command (buildTaskContext) and refactor `affected` to call api.findAffectedTests (removed inline BFS/test-detection logic). - __tests__/local-query-api.test.ts: add tests for findAffectedTests and buildTaskContext. - .ai/handover.md / .ai/task_log.md: update handover and task log with CC/Claude Code fallback guidance and notes about the local API/CLI/MCP adapter approach. These changes centralize context/affected logic in the local API, simplify the CLI, and add documentation and tests to validate behavior.
Configuration menu - View commit details
-
Copy full SHA for 3fbfb2a - Browse repository at this point
Copy the full SHA 3fbfb2aView commit details
Commits on Sep 5, 2026
-
docs: align agent guidance with current tools and evaluation workflow
Four modified skill entries passed the official skill validator; local instruction links were checked. Validation: staged diff check passed. Commit only the reviewed repository content; retain local Goal overlays, reference links, backups and temporary outputs.
Configuration menu - View commit details
-
Copy full SHA for edcad0f - Browse repository at this point
Copy the full SHA edcad0fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...main