skillfed

agent-framework-github-copilot

GitHub Copilot integration for Microsoft Agent Framework.

agent-framework-github-copilot v1.0.2 477.4K downloads/30d#6,443 on PyPI12,804
Permissive license Active released

What it is and what it does

This package bridges the Microsoft Agent Framework with GitHub Copilot by providing a GitHubCopilotAgent class that lets you register tools and handle permission requests through Copilot's native SDK. Rather than using the standard Agent Framework approval round-trip, tool approval is enforced through Copilot's pre-execution hook system, which means the SDK owns the tool-calling loop and you configure approval behavior through callbacks like on_permission_request.

The package handles the common case automatically: if you mark a tool with approval_mode="always_require" and don't supply your own on_pre_tool_use hook, GitHubCopilotAgent installs a default hook that routes approval decisions to your on_permission_request handler. You can approve calls, deny them, or grant session-scoped approval that persists for the rest of the session. If you do provide a custom hook, you take full responsibility for enforcing approval, including for any approval-required tools.

Use it for:

  • Build an agent that uses GitHub Copilot to execute file operations or shell commands with explicit user approval for each sensitive action.
  • Integrate Copilot's agentic capabilities into an existing Agent Framework application to leverage Copilot's tool-calling loop.
  • Implement session-scoped permission policies where certain tools or domains are approved once and remain approved for the duration of the session.
  • Migrate from the deprecated on_function_approval callback to the newer on_pre_tool_use + on_permission_request model for tool approval.
  • Create a custom permission handler that routes approval requests to an external system (audit log, user prompt, policy engine).

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates GitHub Copilot's agentic capabilities into the Microsoft Agent Framework, enabling tool use and permission handling through Copilot's native SDK.

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and integrates cleanly with low install friction. Install it if you are already using the Microsoft Agent Framework and want to leverage GitHub Copilot's native agentic capabilities with built-in permission handling. Skip it if you do not need Copilot integration or prefer the standard Agent Framework approval model.

Install

agent-framework-github-copilot on PyPI

pip

pip install agent-framework-github-copilot

uv

uv add agent-framework-github-copilot

poetry

poetry add agent-framework-github-copilot

Installing agent-framework-github-copilot

Before you install

Low friction install with two runtime dependencies (agent-framework-core, github-copilot-sdk). Package is actively maintained as of 2026-08-14 with a recent release cycle and no known vulnerabilities.

License in practice

Licensed under MIT (permissive), imposing no significant restrictions on use or redistribution.

Quickstart

pip install agent-framework-github-copilot

from agent_framework import tool
from agent_framework.github import GitHubCopilotAgent, GitHubCopilotOptions
from copilot.session import PermissionHandler

@tool(approval_mode="always_require")
def delete_file(path: str) -> str:
    return f"Deleted {path}"

agent = GitHubCopilotAgent(
    tools=[delete_file],
    default_options=GitHubCopilotOptions(on_permission_request=PermissionHandler.approve_all)
)

Requires Python 3.11 or later; github-copilot-sdk must be available in your environment.

Verify before relying

  • Whether the default on_pre_tool_use hook behavior is suitable for production use without custom override.
  • Performance characteristics and latency of tool approval round-trips through Copilot's native hook system.
  • Scope and limitations of session-scoped approval decisions when can_offer_session_approval=False.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 2 — agent-framework-core, github-copilot-sdk
Maintenance actively maintained — 0 days since the last release
Last repo commit
First released
Downloads 477,386/month — #6,443 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: agent_framework_github_copilot-1.0.2-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Tags

github copilot agent frameworkcopilot tool integrationagentic copilot sdkcopilot permission approvalmicrosoft agent framework copilotcopilot function toolscopilot pre-execution hooks
copilot-integrationagent-frameworktool-approval

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

agent-framework-copilotstudio

Integrates Microsoft Copilot Studio published…

permissive · top 15,000 on PyPI

github-copilot-sdk

Python SDK for programmatic control of GitHub…

permissive · top 5,000 on PyPI

agent-framework-hyperlight

Integrates sandboxed code execution into…

permissive · top 15,000 on PyPI

agent-framework-ag-ui

Connects Agent Framework agents and workflows…

permissive · top 15,000 on PyPI

microsoft-agents-copilotstudio-client

Connects Python applications to AI agents…

permissive · top 15,000 on PyPI

copilotkit

CopilotKit is a Python SDK for building AI…

permissive · top 15,000 on PyPI

agent-framework-foundry

Provides Microsoft Foundry integrations for the…

permissive · top 15,000 on PyPI

microsoft-agents-activity

Provides core types and schemas implementing…

permissive · top 5,000 on PyPI

agent-framework

Builds and orchestrates AI agents powered by…

permissive · top 5,000 on PyPI

nvidia-nat

Integrates enterprise agents with data sources…

permissive · top 15,000 on PyPI

Further reading