---
title: "From one-off prompts to workflows: How to use custom agents in GitHub Copilot CLI"
url: https://daily.dev/posts/from-one-off-prompts-to-workflows-how-to-use-custom-agents-in-github-copilot-cli-a8kvhwizr
source_url: https://github.blog/ai-and-ml/github-copilot/from-one-off-prompts-to-workflows-how-to-use-custom-agents-in-github-copilot-cli
type: article
source: "GitHub Blog"
published: 2026-06-09T16:03:17.566Z
updated: 2026-06-09T16:03:39.236Z
tags: ["devops", "github", "automation", "ai-agents", "cli"]
reading_time: 16
upvotes: 2
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# From one-off prompts to workflows: How to use custom agents in GitHub Copilot CLI

**[GitHub Blog](https://daily.dev/sources/ghblog)** · 16 min read · 2 upvotes · 0 comments

## Summary

GitHub Copilot CLI now supports custom agents defined via Markdown files stored in your repository's `.github/agents` directory. These agent profiles let teams encode their stack, tooling, standards, and guardrails into reusable, versioned workflows. Instead of repeating one-off prompts, teams can invoke specialized agents for tasks like security audits, IaC compliance reviews, release note generation, and incident response. The post walks through four detailed example agent profiles with full YAML frontmatter and instruction blocks, and explains when to use off-the-shelf partner agents versus building your own custom agents.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.blog/ai-and-ml/github-copilot/from-one-off-prompts-to-workflows-how-to-use-custom-agents-in-github-copilot-cli>

## Similar posts on daily.dev

- [Your stack, your rules: Introducing custom agents in GitHub Copilot for observability, IaC, and security](https://daily.dev/posts/your-stack-your-rules-introducing-custom-agents-in-github-copilot-for-observability-iac-and-secu-nkj9tnfme) · GitHub Blog · 2 upvotes · 0 comments
- [Building Better Apps with GitHub Copilot Custom Agents](https://daily.dev/posts/building-better-apps-with-github-copilot-custom-agents-nkclgrhjt) · James Montemagno · 2 upvotes · 0 comments

---

Tags: [#devops](https://daily.dev/tags/devops), [#github](https://daily.dev/tags/github), [#automation](https://daily.dev/tags/automation), [#ai-agents](https://daily.dev/tags/ai-agents), [#cli](https://daily.dev/tags/cli)

[View this post on daily.dev](https://daily.dev/posts/from-one-off-prompts-to-workflows-how-to-use-custom-agents-in-github-copilot-cli-a8kvhwizr)
