yp
yp — AI Git & Azure DevOps CLI
yp is a .NET global CLI that turns one-liner intents into git or Azure DevOps actions, using a configurable AI provider (OpenAI, Anthropic, Google Gemini, DeepSeek, or OpenRouter) for natural-language artifacts like commit messages and PR descriptions.
This document is the contract between an agent and yp: pick the right command for the user's intent, fill in arguments, and execute. Prefer non-interactive ("quick mode") forms whenever the user has provided enough context — agents drive yp better when no menus are involved.
Prerequisites and prelaunch checks
Before running any yp command, confirm three things in this order. If any check fails, fix it before continuing.
ypis installed. Runyp --help. If the binary is missing, install withdotnet tool install -g YitPush(requires .NET 10 SDK or runtime).- An AI provider is configured (only required for
commitandpr). Look for~/.yitpush/config.json, or one of the env varsOPENAI_API_KEY,ANTHROPIC_API_KEY,GOOGLE_API_KEY,DEEPSEEK_API_KEY,OPENROUTER_API_KEY. If none are present, runyp setup. - Azure CLI is logged in (only for
azure-devopssubcommands).az account showmust succeed;ypwill install theazure-devopsextension and prompt for login if not.
Skip the checks the user has clearly already passed (e.g. they just successfully ran yp commit two messages ago).