Skip to content

Commit 54fbd6f

Browse files
feat: Add codegraph support
1 parent 71b968e commit 54fbd6f

6 files changed

Lines changed: 73 additions & 0 deletions

File tree

.claude/CLAUDE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!-- CODEGRAPH_START -->
2+
## CodeGraph
3+
4+
In repositories indexed by CodeGraph (a `.codegraph/` directory exists at the repo root), reach for it BEFORE grep/find or reading files when you need to understand or locate code:
5+
6+
- **MCP tool** (when available): `codegraph_explore` answers most code questions in one call — the relevant symbols' verbatim source plus the call paths between them, including dynamic-dispatch hops grep can't follow. Name a file or symbol in the query to read its current line-numbered source. If it's listed but deferred, load it by name via tool search.
7+
- **Shell** (always works): `codegraph explore "<symbol names or question>"` prints the same output.
8+
9+
If there is no `.codegraph/` directory, skip CodeGraph entirely — indexing is the user's decision.
10+
<!-- CODEGRAPH_END -->

.claude/settings.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"mcp__codegraph__*"
5+
]
6+
},
7+
"hooks": {
8+
"UserPromptSubmit": [
9+
{
10+
"hooks": [
11+
{
12+
"type": "command",
13+
"command": "codegraph prompt-hook"
14+
}
15+
]
16+
}
17+
]
18+
}
19+
}

.codegraph/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CodeGraph data files — local to each machine, not for committing.
2+
# Ignore everything in .codegraph/ except this file itself, so transient
3+
# files (the database, daemon.pid, sockets, logs) never show up in git.
4+
*
5+
!.gitignore

.cursor/mcp.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"mcpServers": {
3+
"codegraph": {
4+
"type": "stdio",
5+
"command": "codegraph",
6+
"args": [
7+
"serve",
8+
"--mcp",
9+
"--path",
10+
"."
11+
]
12+
}
13+
}
14+
}

.mcp.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"mcpServers": {
3+
"codegraph": {
4+
"type": "stdio",
5+
"command": "codegraph",
6+
"args": [
7+
"serve",
8+
"--mcp"
9+
]
10+
}
11+
}
12+
}

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,16 @@ This is an Appium driver for automating native and hybrid applications on iOS, i
3333
## Documentation
3434

3535
You can access the documentation here: [**https://appium.github.io/appium-xcuitest-driver**](https://appium.github.io/appium-xcuitest-driver)
36+
37+
### Optional: CodeGraph for local code navigation
38+
39+
If you want a local semantic index for this repository, you can install [CodeGraph](https://github.com/colbymchenry/codegraph) locally and initialize it in the repo:
40+
41+
```bash
42+
curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/v1.5.0/install.sh | sh
43+
cd "<project folder>"
44+
codegraph install
45+
codegraph init
46+
```
47+
48+
CodeGraph builds a local knowledge graph of symbols and call paths so AI coding agents, like Cursor or Claude, can answer questions and navigate the codebase faster with fewer file reads and reduced token consumption.

0 commit comments

Comments
 (0)