Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a6267d7
Add CLI help crawl discovery to onboarding agent
TalZaccai Apr 10, 2026
eecd842
Fix testing model to use createChatModel (avoid json_object constraint)
TalZaccai Apr 10, 2026
76ea0d7
Add github-cli agent and fix test dispatcher agent enablement
TalZaccai Apr 10, 2026
4755d57
Fix test dispatcher to use path-based agent resolution
TalZaccai Apr 10, 2026
7aca89f
github-cli: Real gh CLI execution, new actions, and usability improve…
TalZaccai Apr 10, 2026
c520f78
Add github-cli demo scripts for shell and CLI
TalZaccai Apr 10, 2026
b11bcbb
github-cli: Use octopus emoji for agent icon
TalZaccai Apr 10, 2026
482631c
github-cli: Distill repo info to answer specific questions
TalZaccai Apr 10, 2026
56675e5
github-cli: Add hyperlinks to PR, issue, and repo search listings
TalZaccai Apr 10, 2026
a78b213
github-cli: Polish output formatting
TalZaccai Apr 10, 2026
c17214c
Add write actions: issue CRUD, PR draft/close/merge, fork, star, chec…
TalZaccai Apr 10, 2026
3f307bb
Polish output formatting and add new features
TalZaccai Apr 10, 2026
d77b43a
Add create/close issue pair to demo scripts
TalZaccai Apr 11, 2026
9fb13b1
Simplify grammar: 674 -> 292 lines, rely on LLM fallback for variants
TalZaccai Apr 13, 2026
33d6cb5
Onboarding: auto-gen CLI handlers, better defaults, fix packaging model
TalZaccai Apr 13, 2026
6aca853
Fix all LLM model factories, fix test runner .env loading
TalZaccai Apr 13, 2026
702d839
Improve statusPrint grammar rules: 98% -> 99% test pass rate
TalZaccai Apr 13, 2026
c2969a4
Add github-cli README, update onboarding README with CLI discovery
TalZaccai Apr 13, 2026
4e63dfe
Fix post-rebase build errors: DiscoveredAction field names, ClientIO …
TalZaccai Apr 14, 2026
595da39
Update pnpm-lock.yaml after rebase onto main
TalZaccai Apr 14, 2026
951c8f9
Fix boolean flag codegen and add cycle detection to CLI crawl
TalZaccai Apr 14, 2026
a27d0ce
Restore upstream README sections dropped during rebase
TalZaccai Apr 14, 2026
ed79447
Fix mojibake em dashes to match main
TalZaccai Apr 14, 2026
a9d2af3
Address PR review comments
TalZaccai Apr 14, 2026
fb87e0c
Fix prettier formatting for CI lint
TalZaccai Apr 14, 2026
f092c8c
Fix repo policy: copyright header, package.json metadata and sort
TalZaccai Apr 14, 2026
bfd3422
Extract buildCliHandler into separate cliHandlerTemplate.ts
TalZaccai Apr 14, 2026
79d4748
Move CLI handler template to separate .template file on disk
TalZaccai Apr 14, 2026
5c36ae8
Address PR review: configurable model, debug truncation warning
TalZaccai Apr 14, 2026
f92537b
Migrate CLI discovery extraction to TypeChat translator
TalZaccai Apr 14, 2026
f16ae3b
Add safety guardrail for CLI help flag probing
TalZaccai Apr 14, 2026
307c68d
Add entity extraction to CLI discovery
TalZaccai Apr 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions ts/packages/agents/github-cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# GitHub CLI Agent

🐙 A TypeAgent agent for interacting with GitHub via the [GitHub CLI (`gh`)](https://cli.github.com/).

## Prerequisites

- [GitHub CLI](https://cli.github.com/) installed and on your `PATH`
- Authenticated via `gh auth login`

## Supported Actions

| Category | Actions |
| ----------------- | ----------------------------------------------------------------------------------------------------- |
| **Auth** | Login, logout, check status |
| **Issues** | Create, close, reopen, list, view, browse |
| **Pull Requests** | Create (including draft), close, merge, list, view, checkout, browse |
| **Repos** | Create, clone, delete, view (with field-specific queries like stars/forks), fork, star/unstar, browse |
| **Search** | Search repositories by keyword |
| **Status** | Dashboard summary of notifications, PRs, and issues |
| **Contributors** | Top N contributors for a repo |
| **Dependabot** | List alerts with severity/state filters |
| **Workflows** | View workflow runs and workflow details |
| **Other** | Codespaces, gists, releases, projects, labels, secrets, SSH keys, config, orgs |

## Example Phrases

```
show my GitHub status
list open PRs in microsoft/TypeAgent
how many stars does microsoft/TypeAgent have
show top 10 contributors for microsoft/TypeAgent
create issue "Fix login bug" in microsoft/TypeAgent
close issue 42 in microsoft/TypeAgent
open a draft PR for my-feature branch
show newest 5 dependabot alerts in microsoft/TypeAgent
fork microsoft/TypeAgent
star microsoft/TypeAgent
```

## Output Formatting

- PR, issue, and repo listings include clickable **hyperlinks**
- `repo view` answers specific questions (e.g., "how many stars") with a distilled one-line response
- Status output uses **bold section headers** for readability
- Dependabot alerts are color-coded by severity (🔴 critical, 🟠 high, 🟡 medium, 🟢 low)
- Mutation actions (create, close, star, fork) return friendly emoji confirmation messages

## Demo

Demo scripts are available for replay in the TypeAgent shell and CLI:

```bash
# Shell (interactive)
@demo github_cli

# CLI
npx agent-cli --demo demo/github_cli.txt
```

## Building

```bash
pnpm install
pnpm run build
```

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
36 changes: 36 additions & 0 deletions ts/packages/agents/github-cli/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "github-cli-agent",
"version": "0.0.1",
"private": true,
"description": "TypeAgent agent for github-cli",
"homepage": "https://github.com/microsoft/TypeAgent#readme",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/TypeAgent.git",
"directory": "ts/packages/agents/github-cli"
},
"license": "MIT",
"author": "Microsoft",
"type": "module",
"exports": {
"./agent/manifest": "./src/github-cliManifest.json",
"./agent/handlers": "./dist/github-cliActionHandler.js"
},
"scripts": {
"agc": "agc -i ./src/github-cliSchema.agr -o ./dist/github-cliSchema.ag.json",
"asc": "asc -i ./src/github-cliSchema.ts -o ./dist/github-cliSchema.pas.json -t GithubCliActions",
"build": "concurrently npm:tsc npm:asc npm:agc",
"clean": "rimraf --glob dist *.tsbuildinfo *.done.build.log",
"tsc": "tsc -b"
},
"dependencies": {
"@typeagent/agent-sdk": "workspace:*"
},
"devDependencies": {
"@typeagent/action-schema-compiler": "workspace:*",
"action-grammar-compiler": "workspace:*",
"concurrently": "^9.1.2",
"rimraf": "^6.0.1",
"typescript": "~5.4.5"
}
}
Loading
Loading