Skip to content

Add github_search tool for discovering agent orchestration repos#20

Draft
answeryt with Copilot wants to merge 3 commits into
mainfrom
copilot/search-agent-orchestration-projects
Draft

Add github_search tool for discovering agent orchestration repos#20
answeryt with Copilot wants to merge 3 commits into
mainfrom
copilot/search-agent-orchestration-projects

Conversation

Copilot AI commented Mar 3, 2026

Copy link
Copy Markdown

The Fat-Cat agent pipeline lacked a native way to search GitHub for repos — e.g., finding the latest agent-orchestration / multi-agent workflow projects. This adds a github_search tool that agents can invoke directly from Stage 4.

Changes

stage4_agent/tools_bridge.py

  • New @tool-decorated github_search function using only Python stdlib (urllib) — no new dependencies
  • Params: query (full GitHub search syntax supported), max_results (1–30), sort (stars/forks/updated/best-match), order (desc/asc)
  • Auth: reads GITHUB_TOKEN or GH_TOKEN env var; falls back to anonymous (10 req/hr)
  • Returns formatted output per repo: full name, URL, description, ⭐ stars, 🍴 forks, language, topics, last-updated date
  • Gracefully handles HTTP errors, zero results, and network failures

tools/tool_catalog.md

  • Documents github_search under 信息获取类 with params, use cases, output shape, and token note

test/test_github_search_tool.py

  • 7 unit tests (all mocked): successful results, zero results, HTTP 403, max_results cap at 30, invalid sort fallback to stars, token header injection, registry registration

.gitignore

  • Added to exclude __pycache__, *.pyc, .venv, dist/, etc.

Example usage

[TOOL_CALL]
tool: github_search
query: agent orchestration workflow topic:agent language:python
sort: stars
max_results: 10
[/TOOL_CALL]

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits March 3, 2026 07:24
Co-authored-by: answeryt <203585358+answeryt@users.noreply.github.com>
Co-authored-by: answeryt <203585358+answeryt@users.noreply.github.com>
Copilot AI changed the title [WIP] Research latest agent orchestration workflows on GitHub Add github_search tool for discovering agent orchestration repos Mar 3, 2026
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