Skip to content

Conversation

@ianhe8x
Copy link
Contributor

@ianhe8x ianhe8x commented Oct 30, 2025

  • Comprehensive GraphQL Agent documentation with technical architecture
  • Free tier integration in Network App with rate limiting
  • Paid MCP service announcement (coming soon)

Summary by CodeRabbit

  • Documentation

    • Replaced prior AI App Framework content with a new SubQuery GraphQL Agent guide (features, usage, examples, FAQ).
    • Simplified site navigation to spotlight the GraphQL Agent and removed legacy AI App Framework guides, snippets, tutorials, and related pages.
  • Chores

    • CI workflow now reads the CloudFront distribution identifier from a configurable variable instead of a hard-coded value.

- Comprehensive GraphQL Agent documentation with technical architecture
- Free tier integration in Network App with rate limiting
- Paid MCP service announcement (coming soon)
@coderabbitai
Copy link

coderabbitai bot commented Oct 30, 2025

Walkthrough

Removed most of the SubQuery AI Apps Framework documentation and sidebar entries, added a new "SubQuery GraphQL Agent" doc, updated navbar/sidebar to reference it, and switched a hard-coded CloudFront distribution in the staging workflow to use a workflow variable. No runtime code or public API signatures changed.

Changes

Cohort / File(s) Summary
Navbar / Sidebar Update
docs/.vuepress/config.ts, docs/.vuepress/sidebar.ts
Replaced "SubQuery AI Apps Framework" navbar item with "SubQuery GraphQL Agent" linking to /ai/graphql_agent.md; collapsed/commented the /ai/ sidebar entries.
Removed AI App Framework Docs
docs/ai/welcome.md, docs/ai/ai-app-framework.md, docs/ai/api/api.md, docs/ai/build/app.md, docs/ai/build/function_tools.md, docs/ai/build/other.md, docs/ai/build/rag.md, docs/ai/guides/delegation-helper.md, docs/ai/guides/fancy-greeter.md, docs/ai/guides/subquery-docs-rag.md, docs/ai/publish/publish.md, docs/ai/run/cli.md, docs/ai/run/docker.md, docs/ai/run/local.md, docs/ai/snippets/*
Deleted the bulk of the AI Apps Framework documentation suite (guides, build/RAG, API, CLI/Docker/run, snippets). Documentation-only removals.
Added GraphQL Agent Doc
docs/ai/graphql_agent.md
New documentation describing the SubQuery GraphQL Agent: NL→GraphQL conversion, schema analysis/compression, query generation & validation, execution, summarization, features, usage, architecture, tools, workflow, and FAQ.
Workflow Variable Update
.github/workflows/deploy-staging.yml
Replaced hard-coded CloudFront distribution ID with workflow variable ${{ vars.CF_DISTRIBUTION_DEV }} in the Invalidate CloudFront step.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant User as User (NL)
  participant Agent as GraphQL Agent
  participant Schema as Schema Analyzer
  participant Validator as Query Validator
  participant Endpoint as GraphQL Endpoint
  participant Summarizer as Result Summarizer

  rect rgb(249,250,252)
    User->>Agent: Ask natural-language question
    Agent->>Schema: Analyze & compress schema
    Schema-->>Agent: Relevant types/fields
    Agent->>Agent: Generate candidate GraphQL query(ies)
    Agent->>Validator: Validate queries
    Validator-->>Agent: Validation results
  end

  rect rgb(247,255,250)
    Agent->>Endpoint: Execute validated query(ies)
    Endpoint-->>Agent: Raw results
    Agent->>Summarizer: Aggregate & summarize results
    Summarizer-->>Agent: Summarized answer
    Agent-->>User: Return final response
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Confirm removed docs produce no broken cross-links in site navigation.
  • Verify docs/.vuepress/config.ts and docs/.vuepress/sidebar.ts reference the new path correctly and commenting is intentional.
  • Check .github/workflows/deploy-staging.yml uses available repository/organization workflow vars.

Possibly related PRs

  • Restructure SDK build section #667 — Also updates .github/workflows/deploy-staging.yml to use ${{ vars.CF_DISTRIBUTION_DEV }} for CloudFront distribution (strong overlap in workflow change).

Poem

🐇
I nibbled old pages, cleared the tracks,
A GraphQL Agent now leads the packs.
Schemas slimmed and queries hum,
New docs bloom — the guide has come.
Hop along, we’re good to run! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "Update GraphQL Agent documentation" directly describes the primary intent of the changeset, which is to add comprehensive GraphQL Agent documentation as outlined in the PR objectives. The title is specific, mentioning "GraphQL Agent," and clear about the action ("Update"). While the changeset includes significant structural changes such as removing extensive AI App Framework documentation and reorganizing the /ai/ section, the title accurately captures the main objective from the developer's perspective—establishing new GraphQL Agent documentation. A teammate scanning the history would understand that the GraphQL Agent documentation has been updated and prioritized.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch graphql_agent

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 68b4927 and e73a077.

📒 Files selected for processing (1)
  • docs/.vuepress/sidebar.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/.vuepress/sidebar.ts

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d65baf6 and 30f78d0.

📒 Files selected for processing (25)
  • docs/.vuepress/config.ts (1 hunks)
  • docs/ai/ai-app-framework.md (0 hunks)
  • docs/ai/api/api.md (0 hunks)
  • docs/ai/build/app.md (0 hunks)
  • docs/ai/build/function_tools.md (0 hunks)
  • docs/ai/build/other.md (0 hunks)
  • docs/ai/build/rag.md (0 hunks)
  • docs/ai/graphql_agent.md (1 hunks)
  • docs/ai/guides/delegation-helper.md (0 hunks)
  • docs/ai/guides/fancy-greeter.md (0 hunks)
  • docs/ai/guides/subquery-docs-rag.md (0 hunks)
  • docs/ai/publish/publish.md (0 hunks)
  • docs/ai/run/cli.md (0 hunks)
  • docs/ai/run/docker.md (0 hunks)
  • docs/ai/run/local.md (0 hunks)
  • docs/ai/snippets/add-a-function-tool.md (0 hunks)
  • docs/ai/snippets/configure-app-logic.md (0 hunks)
  • docs/ai/snippets/configure-manifest-file.md (0 hunks)
  • docs/ai/snippets/create-a-new-app.md (0 hunks)
  • docs/ai/snippets/install-the-framework.md (0 hunks)
  • docs/ai/snippets/prerequisites.md (0 hunks)
  • docs/ai/snippets/run-the-ai-app.md (0 hunks)
  • docs/ai/snippets/summary.md (0 hunks)
  • docs/ai/snippets/update-system-prompt.md (0 hunks)
  • docs/ai/welcome.md (0 hunks)
💤 Files with no reviewable changes (23)
  • docs/ai/snippets/create-a-new-app.md
  • docs/ai/snippets/run-the-ai-app.md
  • docs/ai/snippets/update-system-prompt.md
  • docs/ai/api/api.md
  • docs/ai/run/local.md
  • docs/ai/snippets/summary.md
  • docs/ai/build/other.md
  • docs/ai/build/app.md
  • docs/ai/snippets/prerequisites.md
  • docs/ai/run/cli.md
  • docs/ai/snippets/install-the-framework.md
  • docs/ai/snippets/configure-manifest-file.md
  • docs/ai/run/docker.md
  • docs/ai/guides/subquery-docs-rag.md
  • docs/ai/build/rag.md
  • docs/ai/build/function_tools.md
  • docs/ai/snippets/configure-app-logic.md
  • docs/ai/ai-app-framework.md
  • docs/ai/snippets/add-a-function-tool.md
  • docs/ai/publish/publish.md
  • docs/ai/guides/fancy-greeter.md
  • docs/ai/welcome.md
  • docs/ai/guides/delegation-helper.md
🧰 Additional context used
🪛 LanguageTool
docs/ai/graphql_agent.md

[style] ~7-~7: Consider a different adjective to strengthen your wording.
Context: ...itional GraphQL query building requires deep understanding of: - GraphQL schema stru...

(DEEP_PROFOUND)

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

text: "Welcome",
link: `${locale}/ai/welcome.md`,
},
{
text: "Guides",

P1 Badge Update AI sidebar to reference existing documentation

The commit deletes every file under docs/ai/ except graphql_agent.md, yet the AI section of the sidebar still links to now‑missing pages such as ai/welcome.md and the guides/build/run subpages. After this change every sidebar link in that section will 404 and the new GraphQL Agent page is not discoverable from the sidebar at all. The sidebar should be updated to point at the surviving page(s) or the section removed to avoid broken navigation.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (2)
docs/ai/graphql_agent.md (2)

7-7: Consider alternative wording (optional).

The phrase "deep understanding" is common but could be strengthened with a more specific term if desired.

Based on static analysis tools.


231-232: Expand placeholder content for better user experience.

The "Pricing and Billing" section contains only "Coming soon" which provides minimal information. Consider adding a brief note about when pricing information will be available or directing users to sign up for updates.

Apply this diff:

 ## Pricing and Billing
-Coming soon
+
+Detailed pricing information will be announced when the paid MCP service launches. Sign up for our newsletter at [subquery.network](https://subquery.network) to be notified of pricing updates and availability.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1b821ff and a9f8069.

📒 Files selected for processing (3)
  • docs/.vuepress/config.ts (1 hunks)
  • docs/.vuepress/sidebar.ts (1 hunks)
  • docs/ai/graphql_agent.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/.vuepress/config.ts
🧰 Additional context used
🪛 LanguageTool
docs/ai/graphql_agent.md

[style] ~7-~7: Consider a different adjective to strengthen your wording.
Context: ...itional GraphQL query building requires deep understanding of: - GraphQL schema stru...

(DEEP_PROFOUND)

🔇 Additional comments (2)
docs/ai/graphql_agent.md (1)

1-252: Excellent comprehensive documentation!

This documentation provides a thorough and well-structured overview of the SubQuery GraphQL Agent. The technical architecture section is particularly strong, with clear explanations of the innovative schema compression technology and practical examples. The distinction between free and paid tiers is clearly communicated.

docs/.vuepress/sidebar.ts (1)

722-727: LGTM! Sidebar navigation correctly updated.

The sidebar configuration properly reflects the documentation restructuring, consolidating the AI section into a single GraphQL Agent entry with the correct link path.

4. Type your question in natural language
5. Receive instant answers with data insights

## Paid Service - Graphql Agent as MCP (Coming Soon)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix capitalization: "Graphql" should be "GraphQL".

For consistency with the rest of the document where "GraphQL" is always capitalized.

Apply this diff:

-## Paid Service - Graphql Agent as MCP (Coming Soon)
+## Paid Service - GraphQL Agent as MCP (Coming Soon)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
## Paid Service - Graphql Agent as MCP (Coming Soon)
## Paid Service - GraphQL Agent as MCP (Coming Soon)
🤖 Prompt for AI Agents
In docs/ai/graphql_agent.md around line 93, the heading uses "Graphql" instead
of the correct "GraphQL"; update the heading text to replace "Graphql" with
"GraphQL" so it matches the document's capitalization and style.

You can ask any question that can be answered by the data in the SubQuery project, from simple counts to complex analytical queries.

**Can I use the GraphQL Agent with my own SubQuery/SubGraph projects?**
Yes, the GraphQL Agent can be used as an MCP (Model Context Protocol) with custom SubQuery/SubGraph projects. Configure the agent to point to your GraphQL endpoint and include the project schema and any required authentication settings.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix inconsistent capitalization: "SubGraph" should be "Subgraph".

For consistency with lines 3 and 17 where "Subgraph" is used.

Apply this diff:

-Yes, the GraphQL Agent can be used as an MCP (Model Context Protocol) with custom SubQuery/SubGraph projects. Configure the agent to point to your GraphQL endpoint and include the project schema and any required authentication settings.
+Yes, the GraphQL Agent can be used as an MCP (Model Context Protocol) with custom SubQuery/Subgraph projects. Configure the agent to point to your GraphQL endpoint and include the project schema and any required authentication settings.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Yes, the GraphQL Agent can be used as an MCP (Model Context Protocol) with custom SubQuery/SubGraph projects. Configure the agent to point to your GraphQL endpoint and include the project schema and any required authentication settings.
Yes, the GraphQL Agent can be used as an MCP (Model Context Protocol) with custom SubQuery/Subgraph projects. Configure the agent to point to your GraphQL endpoint and include the project schema and any required authentication settings.
🤖 Prompt for AI Agents
In docs/ai/graphql_agent.md around line 246, the term "SubGraph" is
inconsistently capitalized; change "SubGraph" to "Subgraph" to match usage on
lines 3 and 17 and maintain consistent capitalization across the document.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a9f8069 and 68b4927.

📒 Files selected for processing (1)
  • docs/.vuepress/sidebar.ts (1 hunks)

Comment on lines 722 to 727
// "/ai/": [
// {
// text: "SubQuery GraphQL Agent",
// link: `${locale}/ai/graphql_agent.md`,
// },
// ],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Clarify whether the AI sidebar section should be active.

The "/ai/" sidebar section is commented out, which means users won't see the "SubQuery GraphQL Agent" entry in the sidebar navigation. According to the AI summary, the navbar was updated to link to this documentation. If the navbar points to /ai/graphql_agent.md but the sidebar entry is disabled, this creates a navigation inconsistency—users can reach the page via the navbar but won't see it listed in the sidebar.

Questions:

  • Should this section be uncommented to make the documentation discoverable via the sidebar?
  • If it's intentionally disabled, consider adding a comment explaining why (e.g., // TODO: Enable after review or // Temporarily disabled pending content approval).
  • If this code is not needed, remove it entirely rather than leaving commented code.

Run the following script to check whether the navbar references this GraphQL Agent documentation:


🏁 Script executed:

#!/bin/bash
# Description: Check if navbar in config.ts references the GraphQL Agent doc

# Search for graphql_agent references in config.ts
rg -n "graphql_agent" docs/.vuepress/config.ts

# Also check if there's an active navbar item pointing to /ai/
rg -n -C2 '"/ai/|ai/graphql' docs/.vuepress/config.ts

Length of output: 158


Uncomment the AI sidebar section to match the active navbar entry.

Verification confirms the navbar in config.ts (lines 72-76) contains an active "SubQuery GraphQL Agent" link pointing to /ai/graphql_agent.md. However, the identical sidebar entry in sidebar.ts (lines 722-727) is commented out, creating a navigation inconsistency. Users can reach the documentation via the navbar but won't discover it through the sidebar menu.

Fix: Uncomment lines 722-727 in sidebar.ts to enable the sidebar entry and maintain navigation consistency.

🤖 Prompt for AI Agents
In docs/.vuepress/sidebar.ts around lines 722 to 727, the AI sidebar entry is
commented out causing a mismatch with the active navbar; uncomment the block so
the sidebar contains the "SubQuery GraphQL Agent" entry pointing to
`${locale}/ai/graphql_agent.md` (remove the leading // from the three lines and
ensure the surrounding array/object remains syntactically correct).

@ianhe8x ianhe8x merged commit a03ca44 into master Nov 2, 2025
3 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Dec 15, 2025
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.

2 participants