You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+21-29Lines changed: 21 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
-
# Code IQ (Java) -- Project Instructions
1
+
# codeiq (Java) -- Project Instructions
2
2
3
3
## What This Project Is
4
4
5
-
**Code IQ** -- a CLI tool + server that scans codebases to build a deterministic code knowledge graph. No AI, no external APIs -- pure static analysis. 97 detectors, 35+ languages, Neo4j Embedded graph database, Spring AI MCP server, REST API, web UI.
5
+
**codeiq** -- a CLI tool + server that scans codebases to build a deterministic code knowledge graph. No AI, no external APIs -- pure static analysis. 97 detectors, 35+ languages, Neo4j Embedded graph database, Spring AI MCP server, REST API, web UI.
**Key principle:** MCP and API are strictly **read-only**. No data manipulation from the serving layer. Analysis happens only via CLI (`index`/`enrich`). The remote server may not have source code access (bundle deployment model).
codeiq serve /path/to/repo# needs enrich if using index
174
174
```
175
175
176
176
## Server Endpoints (all read-only)
@@ -380,13 +380,13 @@ camelCase accepted as a deprecated alias for one release). Resolution order
380
380
2.`~/.codeiq/config.yml` (user-global)
381
381
3.`./codeiq.yml` (project)
382
382
4.`CODEIQ_<SECTION>_<KEY>` env vars (e.g. `CODEIQ_SERVING_PORT=9090`)
383
-
5. CLI flags on `code-iq <command>`
383
+
5. CLI flags on `codeiq <command>`
384
384
385
385
Validate and introspect with:
386
386
387
387
```bash
388
-
code-iq config validate
389
-
code-iq config explain
388
+
codeiq config validate
389
+
codeiq config explain
390
390
```
391
391
392
392
### Spring-owned keys (stay in `application.yml`)
@@ -404,14 +404,6 @@ have not been migrated into `codeiq.yml`:
404
404
`UnifiedConfigBeans` bridges the unified config to the legacy `CodeIqConfig`
405
405
bean for code paths that haven't been ported yet.
406
406
407
-
### `.osscodeiq.yml` deprecation
408
-
409
-
`.osscodeiq.yml` is deprecated. `ProjectConfigLoader` still loads it for one
410
-
release, translates its legacy flat keys into the unified nested shape, and
411
-
logs a one-time WARN per canonical path. Rename to `codeiq.yml` and migrate
412
-
flat keys into the `project:` / `indexing:` / `serving:` / `mcp:` /
413
-
`observability:` / `detectors:` sections.
414
-
415
407
## Gotchas & Lessons Learned
416
408
417
409
-**Pipeline is index → enrich → serve**: Don't put analysis/enrichment in serve. Serve is read-only.
@@ -434,7 +426,7 @@ flat keys into the `project:` / `indexing:` / `serving:` / `mcp:` /
434
426
-**SnakeYAML parses `on` as Boolean.TRUE**: In YAML files, bare `on` key becomes `Boolean.TRUE`. Use `String.valueOf(key)` comparisons, not `Boolean.TRUE.equals(key)` (SonarCloud S2159).
435
427
-**Regex possessive quantifiers**: Use `*+` instead of `*` for nested quantifiers like `([^"\\]*(?:\\.[^"\\]*)*)` → `([^"\\]*+(?:\\.[^"\\]*+)*+)` to prevent stack overflow (SonarCloud S5998).
436
428
-**Parallel agent conflicts**: Don't dispatch multiple agents editing the same files concurrently. Use worktree isolation or sequential execution.
Code IQ scans source files using 97 detectors across 35+ languages, builds a knowledge graph of code relationships, and serves it via REST API, MCP server, and React UI.
39
+
codeiq scans source files using 97 detectors across 35+ languages, builds a knowledge graph of code relationships, and serves it via REST API, MCP server, and React UI.
0 commit comments