Skip to content

Add shared AgentDB MCP import and wire deep-report for large-scale discussion search#32771

Merged
pelikhan merged 7 commits into
mainfrom
copilot/add-shared-agentic-workflow
May 17, 2026
Merged

Add shared AgentDB MCP import and wire deep-report for large-scale discussion search#32771
pelikhan merged 7 commits into
mainfrom
copilot/add-shared-agentic-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

This change introduces AgentDB as a reusable shared MCP component and uses it in a daily workflow that analyzes Discussions at scale. The deep-report workflow now explicitly routes corpus-level discussion analysis through AgentDB semantic/hybrid search.

  • Shared MCP component: AgentDB

    • Added .github/workflows/shared/mcp/agentdb.md.
    • Defines an agentdb MCP server using npx agentdb@alpha mcp start.
    • Sets runtime storage path via AGENTDB_PATH (/tmp/gh-aw/agentdb/discussions.rvf) for discussion-memory indexing/search in workflow runs.
  • Daily workflow integration

    • Updated .github/workflows/deep-report.md imports to include shared/mcp/agentdb.md.
    • Extended the “Gather Discussion Intelligence” phase to require AgentDB-backed large-scale analysis:
      • ingest filtered discussions into AgentDB,
      • run semantic + hybrid retrieval for recurring themes/regressions/anomalies,
      • use ranked search output to prioritize deep analysis clusters.
  • Compiled output alignment

    • Regenerated deep-report.lock.yml to reflect updated frontmatter/import graph.
# deep-report.md (excerpt)
imports:
  - shared/discussions-data-fetch.md
  - shared/mcp/agentdb.md

Copilot AI and others added 2 commits May 17, 2026 06:08
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Add shared AgentDB MCP workflow and use it in deep-report daily analysis Add shared AgentDB MCP import and wire deep-report for large-scale discussion search May 17, 2026
Copilot AI requested a review from pelikhan May 17, 2026 06:18
@@ -0,0 +1,26 @@
---
mcp-servers:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot mount database on cache-memory folder

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated AgentDB to store its DB in cache-memory (AGENTDB_PATH: /tmp/gh-aw/cache-memory/discussions.rvf) and regenerated the lockfile in commit 1cdaf8b.

Copilot AI and others added 2 commits May 17, 2026 12:13
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan May 17, 2026 12:21
@@ -0,0 +1,26 @@
---
mcp-servers:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot configure a custom agentdb cache memory and store file in that path

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in 89c127d: AgentDB now uses a dedicated cache-memory path (/tmp/gh-aw/cache-memory/agentdb/) with AGENTDB_PATH pointing to /tmp/gh-aw/cache-memory/agentdb/discussions.rvf, and the workflow now creates that custom cache directory before MCP startup.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan May 17, 2026 12:37
@github-actions github-actions Bot mentioned this pull request May 17, 2026
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot configure cache-memory with custom id to avoid clashes

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 17, 2026

@copilot configure cache-memory with custom id to avoid clashes

Addressed in 1906c31: AgentDB now sets a custom cache-memory key (agentdb-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}) to prevent cache clashes, and the lockfile was regenerated.

Comment thread .github/workflows/shared/mcp/agentdb.md Outdated
key: agentdb-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}
steps:
- name: Ensure AgentDB cache path
run: mkdir -p /tmp/gh-aw/cache-memory/agentdb
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot ensure this path matches the cache memory path

@pelikhan pelikhan marked this pull request as ready for review May 17, 2026 12:56
Copilot AI review requested due to automatic review settings May 17, 2026 12:56
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a shared AgentDB MCP component and wires it into the deep-report workflow so discussion analysis can use AgentDB-backed semantic/hybrid search.

Changes:

  • Added shared AgentDB MCP configuration with cache-memory setup.
  • Imported AgentDB into deep-report.md and updated the discussion intelligence instructions.
  • Regenerated deep-report.lock.yml to include the AgentDB server and tool permissions.
Show a summary per file
File Description
.github/workflows/shared/mcp/agentdb.md Defines the reusable AgentDB MCP server and storage path.
.github/workflows/deep-report.md Imports AgentDB and instructs the report workflow to use it for discussion corpus analysis.
.github/workflows/deep-report.lock.yml Compiled workflow output reflecting the new import and MCP configuration.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

mcp-servers:
agentdb:
command: "npx"
args: ["agentdb@alpha", "mcp", "start"]
@pelikhan pelikhan merged commit 27aefff into main May 17, 2026
@pelikhan pelikhan deleted the copilot/add-shared-agentic-workflow branch May 17, 2026 13:01
Copilot AI requested a review from pelikhan May 17, 2026 13:02
Copilot stopped work on behalf of pelikhan due to an error May 17, 2026 13:02
github-actions Bot added a commit that referenced this pull request May 18, 2026
- Document new checkout.clean-git-credentials field (#32819)
- Fix max-file-size default in repo-memory reference (10KB -> 100KB, #32826)
- Add AgentDB to shared MCP servers list (#32771)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

3 participants