github-agent 0.2.14__tar.gz → 0.2.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {github_agent-0.2.14 → github_agent-0.2.15}/PKG-INFO +3 -9
- {github_agent-0.2.14 → github_agent-0.2.15}/README.md +1 -1
- github_agent-0.2.15/github_agent/agent/AGENTS.md +12 -0
- github_agent-0.2.15/github_agent/agent/CRON.md +12 -0
- github_agent-0.2.15/github_agent/agent/HEARTBEAT.md +31 -0
- github_agent-0.2.15/github_agent/agent/IDENTITY.md +61 -0
- github_agent-0.2.15/github_agent/agent/MEMORY.md +8 -0
- github_agent-0.2.15/github_agent/agent/USER.md +7 -0
- github_agent-0.2.15/github_agent/agent/skills/test-skill/SKILL.md +19 -0
- github_agent-0.2.15/github_agent/agent/templates.py +118 -0
- github_agent-0.2.15/github_agent/agent.py +93 -0
- github_agent-0.2.15/github_agent/mcp_config.json +11 -0
- github_agent-0.2.15/github_agent/skills/github-bell/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-codescan/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-comment-discussion/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-copilot/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-copilot-spaces/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-dependabot/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-git-branch/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-git-pull-request/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-github-support-docs-search/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-issue-opened/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-logo-gist/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-organization/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-people/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-person/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-project/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-repo/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-shield/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-shield-lock/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-star/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-tag/SKILL.md +18 -0
- github_agent-0.2.15/github_agent/skills/github-workflow/SKILL.md +18 -0
- {github_agent-0.2.14 → github_agent-0.2.15}/github_agent.egg-info/PKG-INFO +3 -9
- github_agent-0.2.15/github_agent.egg-info/SOURCES.txt +42 -0
- github_agent-0.2.15/github_agent.egg-info/requires.txt +1 -0
- {github_agent-0.2.14 → github_agent-0.2.15}/pyproject.toml +3 -10
- github_agent-0.2.14/github_agent/github_agent.py +0 -1008
- github_agent-0.2.14/github_agent/skills/a2a_client/scripts/a2a_client.py +0 -212
- github_agent-0.2.14/github_agent/utils.py +0 -434
- github_agent-0.2.14/github_agent.egg-info/SOURCES.txt +0 -14
- github_agent-0.2.14/github_agent.egg-info/requires.txt +0 -7
- {github_agent-0.2.14 → github_agent-0.2.15}/LICENSE +0 -0
- {github_agent-0.2.14 → github_agent-0.2.15}/github_agent/__init__.py +0 -0
- {github_agent-0.2.14 → github_agent-0.2.15}/github_agent.egg-info/dependency_links.txt +0 -0
- {github_agent-0.2.14 → github_agent-0.2.15}/github_agent.egg-info/entry_points.txt +0 -0
- {github_agent-0.2.14 → github_agent-0.2.15}/github_agent.egg-info/top_level.txt +0 -0
- {github_agent-0.2.14 → github_agent-0.2.15}/scripts/validate_a2a_agent.py +0 -0
- {github_agent-0.2.14 → github_agent-0.2.15}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: github-agent
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.15
|
|
4
4
|
Summary: GitHub Agent for MCP
|
|
5
5
|
Author-email: Audel Rouhi <knucklessg1@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -12,13 +12,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Requires-Python: >=3.10
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist:
|
|
16
|
-
Requires-Dist: pydantic-ai-slim[a2a,ag-ui,anthropic,fastmcp,google,groq,huggingface,mistral,openai,web]>=1.60.0
|
|
17
|
-
Requires-Dist: pydantic-ai-skills>=v0.4.0
|
|
18
|
-
Requires-Dist: fastapi>=0.128.0
|
|
19
|
-
Requires-Dist: fastmcp
|
|
20
|
-
Requires-Dist: uvicorn
|
|
21
|
-
Requires-Dist: fastapi
|
|
15
|
+
Requires-Dist: agent-utilities[agent]>=0.1.9
|
|
22
16
|
Dynamic: license-file
|
|
23
17
|
|
|
24
18
|
# GitHub Agent - A2A | AG-UI | MCP
|
|
@@ -44,7 +38,7 @@ Dynamic: license-file
|
|
|
44
38
|

|
|
45
39
|

|
|
46
40
|
|
|
47
|
-
*Version: 0.2.
|
|
41
|
+
*Version: 0.2.15*
|
|
48
42
|
|
|
49
43
|
## Overview
|
|
50
44
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# AGENTS.md - Known A2A Peer Agents
|
|
2
|
+
Last updated: 2026-02-21 01:19
|
|
3
|
+
|
|
4
|
+
This file is the local registry of other A2A agents this agent can discover and call.
|
|
5
|
+
|
|
6
|
+
## Registered A2A Peers
|
|
7
|
+
|
|
8
|
+
| Name | Endpoint URL | Description | Capabilities | Auth | Notes / Last Connected |
|
|
9
|
+
|-----------------|---------------------------------|--------------------------------------|----------------------------------|-----------|------------------------|
|
|
10
|
+
| SearchMaster | http://search-agent:9000/a2a | Advanced web researcher | web_search, summarize, browse | none | 2026-02-20 |
|
|
11
|
+
|
|
12
|
+
*Add new rows manually or let the agent call `register_a2a_peer(...)`.*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CRON.md - Persistent Scheduled Tasks
|
|
2
|
+
Last updated: 2026-02-21 02:20
|
|
3
|
+
|
|
4
|
+
## Active Tasks
|
|
5
|
+
|
|
6
|
+
| ID | Name | Interval (min) | Prompt | Last run | Next approx |
|
|
7
|
+
|-------------|-------------------|----------------|-------------------------------------|-------------------|-------------|
|
|
8
|
+
| heartbeat | Heartbeat | 30 | @HEARTBEAT.md | — | — |
|
|
9
|
+
| log-cleanup | Log Cleanup | 720 | __internal:cleanup_cron_log | — | — |
|
|
10
|
+
|
|
11
|
+
*Edit this table to add/remove tasks. The agent reloads it periodically.*
|
|
12
|
+
*Use `@filename.md` in the Prompt column to load a multi-line prompt from a workspace file.*
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Heartbeat — Periodic Self-Check
|
|
2
|
+
|
|
3
|
+
You are running a scheduled heartbeat. Perform these checks and report results concisely.
|
|
4
|
+
|
|
5
|
+
## Checks
|
|
6
|
+
|
|
7
|
+
1. **Tool Availability** — Call `list_tools` or equivalent to verify your MCP tools are reachable. Report any connection failures.
|
|
8
|
+
2. **Memory Review** — Read `MEMORY.md` and check for any pending follow-up tasks or action items. List any that are overdue.
|
|
9
|
+
3. **Cron Log** — Read `CRON_LOG.md` and check for recent errors (❌). Summarize any failures from the last 24 hours.
|
|
10
|
+
4. **Peer Agents** — Read `AGENTS.md` and note if any registered peers need attention.
|
|
11
|
+
5. **Domain-Specific Checks**:
|
|
12
|
+
- **Pull Requests**: Identify unreviewed Pull Requests or PRs with failed checks.
|
|
13
|
+
- **Actions**: Check for any recently failed GitHub Action runs.
|
|
14
|
+
- **Issues**: Check for new mentions, assigned issues, or dependabot alerts.
|
|
15
|
+
- **Notifications**: Review recent GitHub notifications for urgent items.
|
|
16
|
+
6. **Self-Diagnostics** — Report your current model, available tool count, and any anomalies.
|
|
17
|
+
|
|
18
|
+
## Response Format
|
|
19
|
+
|
|
20
|
+
If everything is healthy:
|
|
21
|
+
```
|
|
22
|
+
HEARTBEAT_OK — All systems nominal. [tool_count] tools available. No pending actions.
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If issues found:
|
|
26
|
+
```
|
|
27
|
+
HEARTBEAT_ALERT — [summary of issues found]
|
|
28
|
+
- Issue 1: ...
|
|
29
|
+
- Issue 2: ...
|
|
30
|
+
- Action needed: ...
|
|
31
|
+
```
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# IDENTITY.md - GitHub Multi-Agent Identity
|
|
2
|
+
|
|
3
|
+
## [supervisor]
|
|
4
|
+
* **Name:** GitHub Supervisor
|
|
5
|
+
* **Role:** Coordination of software development tasks on GitHub.
|
|
6
|
+
* **Emoji:** 🐙
|
|
7
|
+
* **Vibe:** Technical, professional, collaborative
|
|
8
|
+
|
|
9
|
+
### System Prompt
|
|
10
|
+
You are the GitHub Supervisor Agent.
|
|
11
|
+
Your goal is to assist the user with GitHub operations by delegating to specialized child agents.
|
|
12
|
+
Coordinate between code management, project tracking, and workflow automation.
|
|
13
|
+
Synthesize results into a cohesive development update.
|
|
14
|
+
|
|
15
|
+
## [repositories]
|
|
16
|
+
* **Name:** GitHub Repos Agent
|
|
17
|
+
* **Role:** Manage GitHub repositories and code.
|
|
18
|
+
* **Emoji:** 📁
|
|
19
|
+
### System Prompt
|
|
20
|
+
You are the GitHub Repositories Agent.
|
|
21
|
+
You handle repository management, file operations, branches, and code discovery.
|
|
22
|
+
|
|
23
|
+
## [issues]
|
|
24
|
+
* **Name:** GitHub Issues Agent
|
|
25
|
+
* **Role:** Manage issues and project labels.
|
|
26
|
+
* **Emoji:** 📋
|
|
27
|
+
### System Prompt
|
|
28
|
+
You are the GitHub Issues Agent.
|
|
29
|
+
You handle issue tracking, labeling, assignment, and comments.
|
|
30
|
+
|
|
31
|
+
## [pull_requests]
|
|
32
|
+
* **Name:** GitHub PR Agent
|
|
33
|
+
* **Role:** Manage Pull Requests and code reviews.
|
|
34
|
+
* **Emoji:** 🔀
|
|
35
|
+
### System Prompt
|
|
36
|
+
You are the GitHub Pull Request Agent.
|
|
37
|
+
You handle the lifecycle of Pull Requests, including creation, review comments, and merging.
|
|
38
|
+
|
|
39
|
+
## [actions]
|
|
40
|
+
* **Name:** GitHub Actions Agent
|
|
41
|
+
* **Role:** Manage CI/CD workflows and actions.
|
|
42
|
+
* **Emoji:** 🚀
|
|
43
|
+
### System Prompt
|
|
44
|
+
You are the GitHub Actions Agent.
|
|
45
|
+
You manage workflow execution, secrets, and status monitoring.
|
|
46
|
+
|
|
47
|
+
## [users]
|
|
48
|
+
* **Name:** GitHub User Agent
|
|
49
|
+
* **Role:** Manage user profiles and organizations.
|
|
50
|
+
* **Emoji:** 👤
|
|
51
|
+
### System Prompt
|
|
52
|
+
You are the GitHub User Agent.
|
|
53
|
+
You handle user profile information and organization membership operations.
|
|
54
|
+
|
|
55
|
+
## [search]
|
|
56
|
+
* **Name:** GitHub Search Agent
|
|
57
|
+
* **Role:** Global search across GitHub.
|
|
58
|
+
* **Emoji:** 🔍
|
|
59
|
+
### System Prompt
|
|
60
|
+
You are the GitHub Search Agent.
|
|
61
|
+
You handle advanced searching for code, repositories, issues, and users across GitHub.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# MEMORY.md - Long-term Memory
|
|
2
|
+
Last updated: 2026-02-21 01:19
|
|
3
|
+
|
|
4
|
+
This file stores important decisions, user preferences, and historical outcomes.
|
|
5
|
+
The agent should read this if the user asks "remember when" or similar.
|
|
6
|
+
|
|
7
|
+
## Log of Important Events
|
|
8
|
+
- [2026-02-21] Workspace initialized with advanced agent features.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-skill
|
|
3
|
+
description: A test skill.
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
tags: [test-skill]
|
|
6
|
+
input_modes: [text]
|
|
7
|
+
output_modes: [text]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# test-skill Skill
|
|
11
|
+
|
|
12
|
+
## When to use
|
|
13
|
+
For testing.
|
|
14
|
+
|
|
15
|
+
## How to use
|
|
16
|
+
Call it.
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
- Example 1: ...
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
from typing import Dict
|
|
3
|
+
from github_agent.models import PeriodicTask
|
|
4
|
+
|
|
5
|
+
# Core files we care about most
|
|
6
|
+
CORE_FILES = {
|
|
7
|
+
"IDENTITY": "IDENTITY.md",
|
|
8
|
+
"USER": "USER.md",
|
|
9
|
+
"CRON": "CRON.md",
|
|
10
|
+
"CRON_LOG": "CRON_LOG.md",
|
|
11
|
+
"AGENTS": "AGENTS.md",
|
|
12
|
+
"MEMORY": "MEMORY.md",
|
|
13
|
+
"MCP_CONFIG": "mcp_config.json",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
# ============== IN-MEMORY PERIODIC SCHEDULER STATE ==============
|
|
17
|
+
tasks: list[PeriodicTask] = []
|
|
18
|
+
lock = asyncio.Lock()
|
|
19
|
+
|
|
20
|
+
# Templates for workspace initialization
|
|
21
|
+
TEMPLATES: Dict[str, str] = {
|
|
22
|
+
"IDENTITY": """# IDENTITY.md - Who I Am, Core Personality, & Boundaries
|
|
23
|
+
|
|
24
|
+
* **Name:** Github Agent Agent
|
|
25
|
+
* **Role:** A research specialist agent for web search and information gathering using Github Agent.
|
|
26
|
+
* **Emoji:** 🔍
|
|
27
|
+
* **Vibe:** Precise, objective, concise
|
|
28
|
+
|
|
29
|
+
## System Prompt
|
|
30
|
+
You are a Research Specialist Agent for Github Agent.
|
|
31
|
+
You have access to a powerful metasearch engine to find information on the web.
|
|
32
|
+
Your responsibilities:
|
|
33
|
+
1. Analyze the user's research topic or query.
|
|
34
|
+
2. Use the 'web_search' tool (or related skills) to find relevant information.
|
|
35
|
+
3. Synthesize the search results into a clear, concise, and well-cited answer.
|
|
36
|
+
4. Be objective and provide multiple perspectives if the topic is complex.
|
|
37
|
+
5. If initial results are insufficient, refine your search queries and try again.
|
|
38
|
+
6. Always include the URLs of the sources you used.
|
|
39
|
+
7. MEMORY: You have long-term memory in MEMORY.md. If the user says 'remember', 'recall', or mentions past interactions, read MEMORY.md to retrieve context. Save important decisions, outcomes, and user preferences to MEMORY.md using append_note_to_file.
|
|
40
|
+
""",
|
|
41
|
+
"USER": """# USER.md - About the Human
|
|
42
|
+
|
|
43
|
+
* **Name:** User
|
|
44
|
+
* **Preferred name:** User
|
|
45
|
+
* **Timezone:** America/Chicago
|
|
46
|
+
* **Location:** Chicago, Illinois
|
|
47
|
+
* **Style:** Technical, concise, no fluff
|
|
48
|
+
""",
|
|
49
|
+
"CRON": """# CRON.md - Persistent Scheduled Tasks
|
|
50
|
+
Last updated: {now}
|
|
51
|
+
|
|
52
|
+
## Active Tasks
|
|
53
|
+
|
|
54
|
+
| ID | Name | Interval (min) | Prompt | Last run | Next approx |
|
|
55
|
+
|-------------|-------------------|----------------|-------------------------------------|-------------------|-------------|
|
|
56
|
+
| heartbeat | Heartbeat | 30 | @HEARTBEAT.md | — | — |
|
|
57
|
+
| log-cleanup | Log Cleanup | 720 | __internal:cleanup_cron_log | — | — |
|
|
58
|
+
|
|
59
|
+
*Edit this table to add/remove tasks. The agent reloads it periodically.*
|
|
60
|
+
*Use `@filename.md` in the Prompt column to load a multi-line prompt from a workspace file.*
|
|
61
|
+
""",
|
|
62
|
+
"AGENTS": """# AGENTS.md - Known A2A Peer Agents
|
|
63
|
+
Last updated: {now}
|
|
64
|
+
|
|
65
|
+
This file is the local registry of other A2A agents this agent can discover and call.
|
|
66
|
+
|
|
67
|
+
## Registered A2A Peers
|
|
68
|
+
|
|
69
|
+
| Name | Endpoint URL | Description | Capabilities | Auth | Notes / Last Connected |
|
|
70
|
+
|-----------------|---------------------------------|--------------------------------------|----------------------------------|-----------|------------------------|
|
|
71
|
+
| SearchMaster | http://search-agent:9000/a2a | Advanced web researcher | web_search, summarize, browse | none | 2026-02-20 |
|
|
72
|
+
|
|
73
|
+
*Add new rows manually or let the agent call `register_a2a_peer(...)`.*
|
|
74
|
+
""",
|
|
75
|
+
"MEMORY": """# MEMORY.md - Long-term Memory
|
|
76
|
+
Last updated: {now}
|
|
77
|
+
|
|
78
|
+
This file stores important decisions, user preferences, and historical outcomes.
|
|
79
|
+
The agent should read this if the user asks "remember when" or similar.
|
|
80
|
+
|
|
81
|
+
## Log of Important Events
|
|
82
|
+
- [2026-02-21] Workspace initialized with advanced agent features.
|
|
83
|
+
""",
|
|
84
|
+
"mcp_config": """{
|
|
85
|
+
"mcpServers": {}
|
|
86
|
+
}
|
|
87
|
+
""",
|
|
88
|
+
"CRON_LOG": """# CRON_LOG.md - Periodic Task Output Log
|
|
89
|
+
Last updated: {now}
|
|
90
|
+
|
|
91
|
+
This file stores the output of periodic/cron tasks.
|
|
92
|
+
The agent can read this to review what background tasks have done.
|
|
93
|
+
Old entries are automatically pruned to keep only the most recent results.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
""",
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
NEW_SKILL_TEMPLATE = """---
|
|
100
|
+
name: {name}
|
|
101
|
+
description: {description}
|
|
102
|
+
version: 0.1.0
|
|
103
|
+
tags: [{tags}]
|
|
104
|
+
input_modes: [text]
|
|
105
|
+
output_modes: [text]
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
# {name} Skill
|
|
109
|
+
|
|
110
|
+
## When to use
|
|
111
|
+
{when_to_use}
|
|
112
|
+
|
|
113
|
+
## How to use
|
|
114
|
+
{how_to_use}
|
|
115
|
+
|
|
116
|
+
## Examples
|
|
117
|
+
- Example 1: ...
|
|
118
|
+
"""
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
# coding: utf-8
|
|
3
|
+
import os
|
|
4
|
+
import logging
|
|
5
|
+
|
|
6
|
+
from agent_utilities import (
|
|
7
|
+
create_agent_server,
|
|
8
|
+
initialize_workspace,
|
|
9
|
+
load_identities,
|
|
10
|
+
build_system_prompt_from_workspace,
|
|
11
|
+
)
|
|
12
|
+
from agent_utilities.agent_utilities import create_agent_parser, get_mcp_config_path
|
|
13
|
+
from agent_utilities.base_utilities import to_integer, to_boolean
|
|
14
|
+
|
|
15
|
+
__version__ = "0.2.15"
|
|
16
|
+
|
|
17
|
+
logging.basicConfig(
|
|
18
|
+
level=logging.INFO,
|
|
19
|
+
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
20
|
+
handlers=[logging.StreamHandler()],
|
|
21
|
+
)
|
|
22
|
+
logger = logging.getLogger(__name__)
|
|
23
|
+
|
|
24
|
+
# Load identity and system prompt from workspace
|
|
25
|
+
initialize_workspace()
|
|
26
|
+
identities = load_identities()
|
|
27
|
+
|
|
28
|
+
# Prepare supervisor identity
|
|
29
|
+
supervisor_meta = identities.get("supervisor", identities.get("default", {}))
|
|
30
|
+
DEFAULT_AGENT_NAME = os.getenv(
|
|
31
|
+
"DEFAULT_AGENT_NAME", supervisor_meta.get("name", "Github Agent")
|
|
32
|
+
)
|
|
33
|
+
DEFAULT_AGENT_DESCRIPTION = os.getenv(
|
|
34
|
+
"AGENT_DESCRIPTION",
|
|
35
|
+
supervisor_meta.get("description", "A multi-agent system."),
|
|
36
|
+
)
|
|
37
|
+
DEFAULT_AGENT_SYSTEM_PROMPT = os.getenv(
|
|
38
|
+
"AGENT_SYSTEM_PROMPT",
|
|
39
|
+
supervisor_meta.get("content") or build_system_prompt_from_workspace(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
# Prepare child agent definitions from IDENTITY.md sections
|
|
43
|
+
CHILD_AGENT_DEFS = {
|
|
44
|
+
tag: (data["content"], data["name"])
|
|
45
|
+
for tag, data in identities.items()
|
|
46
|
+
if tag not in ["supervisor", "default"]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
DEFAULT_HOST = os.getenv("HOST", "0.0.0.0")
|
|
50
|
+
DEFAULT_PORT = to_integer(os.getenv("PORT", "9000"))
|
|
51
|
+
DEFAULT_DEBUG = to_boolean(os.getenv("DEBUG", "False"))
|
|
52
|
+
DEFAULT_PROVIDER = os.getenv("PROVIDER", "openai")
|
|
53
|
+
DEFAULT_MODEL_ID = os.getenv("MODEL_ID", "qwen/qwen3-coder-next")
|
|
54
|
+
DEFAULT_LLM_BASE_URL = os.getenv("LLM_BASE_URL", "http://host.docker.internal:1234/v1")
|
|
55
|
+
DEFAULT_LLM_API_KEY = os.getenv("LLM_API_KEY", "ollama")
|
|
56
|
+
DEFAULT_MCP_URL = os.getenv("MCP_URL", None)
|
|
57
|
+
DEFAULT_MCP_CONFIG = os.getenv("MCP_CONFIG", get_mcp_config_path())
|
|
58
|
+
DEFAULT_CUSTOM_SKILLS_DIRECTORY = os.getenv("CUSTOM_SKILLS_DIRECTORY", None)
|
|
59
|
+
DEFAULT_ENABLE_WEB_UI = to_boolean(os.getenv("ENABLE_WEB_UI", "False"))
|
|
60
|
+
DEFAULT_SSL_VERIFY = to_boolean(os.getenv("SSL_VERIFY", "True"))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def agent_server():
|
|
64
|
+
print(f"{DEFAULT_AGENT_NAME} v{__version__}")
|
|
65
|
+
parser = create_agent_parser()
|
|
66
|
+
|
|
67
|
+
args = parser.parse_args()
|
|
68
|
+
|
|
69
|
+
if args.debug:
|
|
70
|
+
logging.getLogger().setLevel(logging.DEBUG)
|
|
71
|
+
logger.debug("Debug mode enabled")
|
|
72
|
+
|
|
73
|
+
create_agent_server(
|
|
74
|
+
provider=args.provider,
|
|
75
|
+
model_id=args.model_id,
|
|
76
|
+
base_url=args.base_url,
|
|
77
|
+
api_key=args.api_key,
|
|
78
|
+
mcp_url=args.mcp_url,
|
|
79
|
+
mcp_config=args.mcp_config,
|
|
80
|
+
custom_skills_directory=args.custom_skills_directory,
|
|
81
|
+
debug=args.debug,
|
|
82
|
+
host=args.host,
|
|
83
|
+
port=args.port,
|
|
84
|
+
enable_web_ui=args.web,
|
|
85
|
+
ssl_verify=not args.insecure,
|
|
86
|
+
name=DEFAULT_AGENT_NAME,
|
|
87
|
+
system_prompt=DEFAULT_AGENT_SYSTEM_PROMPT,
|
|
88
|
+
agent_definitions=CHILD_AGENT_DEFS if CHILD_AGENT_DEFS else None,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
if __name__ == "__main__":
|
|
93
|
+
agent_server()
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-bell
|
|
3
|
+
description: "Manage and check GitHub notifications. Triggers: Notifications Agent."
|
|
4
|
+
tags: [bell]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Notifications Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Notifications Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-codescan
|
|
3
|
+
description: "Manage code security tools and scans. Triggers: Code Security Agent."
|
|
4
|
+
tags: [codescan]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Code Security Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Code Security Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-comment-discussion
|
|
3
|
+
description: "Manage GitHub Discussions. Triggers: Discussions Agent."
|
|
4
|
+
tags: [comment-discussion]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Discussions Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Discussions Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-copilot
|
|
3
|
+
description: "Assist with coding tasks using GitHub Copilot. Triggers: Copilot Agent."
|
|
4
|
+
tags: [copilot]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Copilot Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Copilot Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-copilot-spaces
|
|
3
|
+
description: "Manage Copilot Spaces. Triggers: Copilot Spaces Agent."
|
|
4
|
+
tags: [copilot-spaces]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Copilot Spaces Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Copilot Spaces Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-dependabot
|
|
3
|
+
description: "Manage Dependabot alerts and configurations. Triggers: Dependabot Agent."
|
|
4
|
+
tags: [dependabot]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Dependabot Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Dependabot Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-git-branch
|
|
3
|
+
description: "Perform low-level Git operations via the GitHub API. Triggers: Git Agent."
|
|
4
|
+
tags: [git-branch]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Git Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Git Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-git-pull-request
|
|
3
|
+
description: "Manage Pull Requests (list, create, review, merge). Triggers: Pull Requests Agent."
|
|
4
|
+
tags: [git-pull-request]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Pull Requests Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Pull Requests Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-github-support-docs-search
|
|
3
|
+
description: "Search GitHub documentation to answer support questions. Triggers: Support Docs Agent."
|
|
4
|
+
tags: [github-support-docs-search]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Support Docs Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Support Docs Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-issue-opened
|
|
3
|
+
description: "Manage GitHub Issues (create, list, update, comment). Triggers: Issues Agent."
|
|
4
|
+
tags: [issue-opened]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Issues Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Issues Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-logo-gist
|
|
3
|
+
description: "Manage GitHub Gists. Triggers: Gists Agent."
|
|
4
|
+
tags: [logo-gist]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Gists Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Gists Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: github-organization
|
|
3
|
+
description: "Manage GitHub Organizations and memberships. Triggers: Organizations Agent."
|
|
4
|
+
tags: [organization]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Overview
|
|
8
|
+
This skill handles operations related to the Organizations Agent.
|
|
9
|
+
|
|
10
|
+
### Available Tools
|
|
11
|
+
Refer to the GitHub Agent documentation for available tools for this agent.
|
|
12
|
+
This skill is a placeholder for the specialized agent capabilities.
|
|
13
|
+
|
|
14
|
+
### Usage Instructions
|
|
15
|
+
1. This skill is used by the Organizations Agent to perform specialized tasks.
|
|
16
|
+
|
|
17
|
+
### Error Handling
|
|
18
|
+
- Refer to standard GitHub API error handling.
|