Skip to content

[codex] add graph query CLI commands#166

Draft
jayhack wants to merge 2 commits into
developfrom
codex/remove-agent-ai-api
Draft

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

Conversation

@jayhack

@jayhack jayhack commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add high-level graph CLI commands: inspect, using, usages, and rename.
  • Add target resolution for FILE:SYMBOL, FILE::SYMBOL, and dotted file shorthand.
  • Add CLI reference docs and uvx examples for graph queries and focused renames.

Impact

  • Agents and automation can inspect file structure, trace inbound/outbound call graphs, and perform resolved renames without writing one-off codemods.
  • rename defaults to dry-run behavior and requires --write to modify files.
  • The PR branch is rebased on current develop, which already contains the Agent/API removal from Remove Agent and AI APIs #165.

Validation

  • uv run ruff check src/graph_sitter/cli/cli.py src/graph_sitter/cli/commands/graph/common.py src/graph_sitter/cli/commands/inspect/main.py src/graph_sitter/cli/commands/using/main.py src/graph_sitter/cli/commands/usages/main.py src/graph_sitter/cli/commands/rename/main.py tests/unit/cli/commands/graph/test_graph_commands.py
  • uv run pytest tests/unit/cli/commands/parse/test_parse.py tests/unit/cli/commands/run/test_run.py tests/unit/cli/commands/graph/test_graph_commands.py
  • PATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site run build

@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
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