Skip to content

[codex] add graph query CLI commands#166

Merged
jayhack merged 2 commits into
developfrom
codex/remove-agent-ai-api
Jun 24, 2026
Merged

[codex] add graph query CLI commands#166
jayhack merged 2 commits into
developfrom
codex/remove-agent-ai-api

Conversation

@jayhack

@jayhack jayhack commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add agent-friendly graph CLI commands: symbols for target discovery and callgraph for clean local call graph traversal.
  • Improve existing graph commands with --resolved-only, --local-only, --hide-runtime, and --dedupe filters, plus affected-file reporting in rename --check.
  • Fix large TypeScript monorepo parsing by resolving directory project references to tsconfig.json and avoiding unnecessary git init on existing repos.
  • Update CLI docs and uvx workflows for full-repo Rust-backed discovery and scoped Python callgraph workflows.

Impact

  • Full ClickUp sd TypeScript repo parsing works with the Rust backend: 12,045 files in ~15s locally.
  • Full-repo symbols, inspect, and outbound callgraph work against sd with --backend rust --fallback error.
  • Rust compact inbound callgraph now falls back to file-level usage edges; scoped Python still provides function-level inbound caller recursion.
  • Existing using, usages, and rename behavior remains available, with new filters for cleaner agent output.

Validation

  • uv run ruff check src/graph_sitter/typescript/config_parser.py src/graph_sitter/typescript/ts_config.py src/graph_sitter/git/repo_operator/repo_operator.py src/graph_sitter/cli/cli.py src/graph_sitter/cli/commands/graph/common.py src/graph_sitter/cli/commands/using/main.py src/graph_sitter/cli/commands/usages/main.py src/graph_sitter/cli/commands/callgraph/main.py src/graph_sitter/cli/commands/symbols/main.py src/graph_sitter/cli/commands/rename/main.py tests/unit/cli/commands/graph/test_graph_commands.py tests/unit/cli/commands/parse/test_parse.py
  • uv run pytest tests/unit/cli/commands/graph/test_graph_commands.py tests/unit/cli/commands/parse/test_parse.py tests/unit/cli/commands/run/test_run.py tests/unit/cli/commands/transform/test_transform.py
  • PATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site run build
  • uv run graph-sitter parse /Users/jayhack/CS/CLICKUP/sd --language typescript --backend rust --fallback error --format json
  • uv run graph-sitter symbols runInference /Users/jayhack/CS/CLICKUP/sd --language typescript --backend rust --fallback error --kind function --format json
  • uv run graph-sitter callgraph packages/ai-agent-harness/src/inference.ts.runInference /Users/jayhack/CS/CLICKUP/sd --language typescript --backend rust --fallback error --depth 2 --format json
  • uv run graph-sitter callgraph packages/ai-agent-harness/src/inference.ts.runInference /Users/jayhack/CS/CLICKUP/sd --language typescript --backend rust --fallback error --direction inbound --depth 1 --format json
  • uv run graph-sitter parse /Users/jayhack/CS/CLICKUP/sd --language typescript --backend python --subdir packages/ai-agent-harness/src --format json

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
graph-sitter Ignored Ignored Preview Jun 23, 2026 7:09pm

Request Review

@jayhack jayhack force-pushed the codex/remove-agent-ai-api branch from 41f2041 to 759f4a9 Compare June 23, 2026 19:00
@jayhack jayhack changed the title [codex] remove agent API and add graph CLI commands [codex] add graph query CLI commands Jun 23, 2026
@jayhack jayhack force-pushed the codex/remove-agent-ai-api branch from 4d9b7de to 820c549 Compare June 23, 2026 19:09
@jayhack jayhack marked this pull request as ready for review June 24, 2026 02:05
@jayhack jayhack requested a review from a team as a code owner June 24, 2026 02:05
@jayhack jayhack requested review from kopekC and removed request for a team June 24, 2026 02:05
@jayhack jayhack merged commit 879af6b into develop Jun 24, 2026
8 of 9 checks passed
@jayhack jayhack deleted the codex/remove-agent-ai-api branch June 24, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant