# GitHub Copilot CLI Agents Get Context _GitHub Copilot CLI now supports custom agents, turning repetitive terminal tasks into standardized, context-aware workflows defined within your repository._ **Published:** 2026-06-09 **Source:** https://www.startuphub.ai/ai-news/technology/2026/github-copilot-cli-agents-get-context --- GitHub is evolving its AI coding assistant beyond simple prompts. The latest update to [GitHub Copilot CLI](https://github.blog/ai-and-ml/github-copilot/from-one-off-prompts-to-workflows-how-to-use-custom-agents-in-github-copilot-cli/) introduces custom agents, enabling developers to embed team-specific knowledge and workflows directly into the command-line interface. Repetitive terminal tasksDriver developers face friction with recurring command-line operationsFrom the article 2 mentionsThis move aims to reduce friction by turning repetitive, context-dependent terminal tasks into consistent, reviewable processes.needsGitHub Copilot CLICoreAI coding assistant for developersFrom the article 4 mentionsThe latest update to GitHub Copilot CLI introduces custom agents, enabling developers to embed team-specific knowledge and workflows directly into the command-line interface.introducesCustom Agents introducedEffectnew feature allows defining specialized CLI assistantsFrom the article 4 mentionsA custom agent is essentially a Copilot agent defined by a Markdown file within a repository.defined viaAgent defined by MarkdownContextrepository file dictates agent's expertise and toolsFrom the articleA custom agent is essentially a Copilot agent defined by a Markdown file within a repository.providesContext-aware workflowsEffectagents apply team-specific knowledge and standards consistentlyFrom the article 2 mentionsGitHub Copilot CLI's ability to run scripts, call APIs, and interact with repositories makes it a natural fit for agent-driven workflows.Standardized processesOutcomereduces friction and ensures consistent command-line executionFrom the articleThis move aims to reduce friction by turning repetitive, context-dependent terminal tasks into consistent, reviewable processes.Team knowledge embeddedContextspecialized assistants leverage repository-specific information This move aims to reduce friction by turning repetitive, context-dependent terminal tasks into consistent, reviewable processes. Instead of re-explaining context or re-running similar commands, developers can leverage these specialized agents. ## Custom Agents: Beyond One-Off Prompts A custom agent is essentially a Copilot agent defined by a Markdown file within a repository. This file dictates the agent's behavior, including its expertise, the tools it can access, and the guardrails it must follow. This ensures consistency regardless of where the agent is invoked. These agents can act as specialized assistants, applying team-specific formatting rules, tooling, and accessibility standards consistently. The agent profile lives in the repository, allowing for team review, versioning, and sharing. For instance, a custom agent can be configured as a web accessibility expert, adhering to WCAG standards and translating them into practical guidance. The agent profile file, ending in `.agent.md`, specifies the agent's role, capabilities, and rules. ## Automating Workflows with Custom Agents GitHub Copilot CLI's ability to run scripts, call APIs, and interact with repositories makes it a natural fit for agent-driven workflows. By encoding these execution-heavy tasks, teams can invoke them consistently from the terminal. Common use cases include creating a security audit agent. This agent could run standard security checks, summarize findings by severity, and generate a pull request-ready checklist with owners and next steps. This capability streamlines security reviews, aligning with the growing focus on DevSecOps. The potential extends to automating code cleanup based on team standards or generating documentation snippets tailored to project conventions. This feature builds upon earlier advancements in [GitHub Copilot Agent Gets Smarter](/ai-news/technology/2026/github-copilot-agent-gets-smarter). By integrating custom agents, GitHub Copilot CLI offers a more powerful and personalized command-line experience, moving closer to the vision of AI as a deeply integrated development partner, akin to discussions around [Liam Hampton on VS Code AI Agents](/ai-news/artificial-intelligence/2026/liam-hampton-on-vs-code-ai-agents) and the broader implications of the [GitHub Copilot SDK: Execution is the New Interface](/ai-news/technology/2026/github-copilot-sdk-execution-is-the-new-interface). --- Original analysis from [startuphub.ai](https://www.startuphub.ai), the #1 AI startup directory.