Skip to content

Remove Agent and AI APIs#165

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

Remove Agent and AI APIs#165
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

  • remove the Agent/OpenAI API surface (Codebase.ai, set_ai_key, max_ai_requests, OpenAI secrets/dependency, and related errors/tests)
  • delete AI-oriented extensions and examples: semantic/vector index, MCP servers, generated system prompt resources, SWE-bench agent harness, attribution/AI impact, RAG/document/training-data examples
  • remove Agent run paths/schemas from docs/api-reference/openapi3.json and clean live docs/CLI copy so codemod scaffolding is deterministic only
  • refresh root and examples lockfiles after removing OpenAI/MCP/datasets/lox dependency stacks

Testing

  • uv run ruff format $(git diff --name-only --diff-filter=ACM | rg '\.py$' | tr '\n' ' ')
  • uv run ruff check $(git diff --name-only --diff-filter=ACM | rg '\.py$' | tr '\n' ' ')
  • uv run pytest tests/unit/sdk/python/codebase/test_control_flow.py tests/unit/runner/sandbox/test_executor.py tests/integration/codegen/sdk/code_generation/test_api_doc_generation.py
  • uv run pytest tests/unit/cli/commands/parse/test_parse.py tests/unit/cli/commands/diagnose/test_diagnose.py tests/unit/cli/commands/run/test_run.py tests/unit/gscli/test_cli.py
  • jq empty docs/api-reference/openapi3.json
  • uv run python -c "import graph_sitter; from graph_sitter import Codebase; import graph_sitter.extensions; import graph_sitter.cli.cli; print('imports ok')"
  • PATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site ci
  • PATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site run build

Not run

  • uv run pytest tests/integration/codemod/test_verified_codemods.py --collect-only -q is blocked by missing fixture data: tests/integration/verified_codemods/codemod_data/Y2Y4MGNkOG.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 6:34pm

Request Review

@mintlify

mintlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
graph-sitter 🔴 Failed Jun 23, 2026, 6:33 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@jayhack jayhack marked this pull request as ready for review June 23, 2026 18:36
@jayhack jayhack requested review from a team as code owners June 23, 2026 18:36
@jayhack jayhack requested review from kopekC and matthieualouis and removed request for a team June 23, 2026 18:36
@jayhack jayhack merged commit b62257a into develop Jun 23, 2026
3 checks passed
@jayhack jayhack deleted the codex/remove-agent-ai-api branch June 23, 2026 18:36
jayhack added a commit that referenced this pull request Jun 24, 2026
## 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 #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`
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