ODS: Command for GitHub Copilot

.github/prompts/issue-to-pr.md

issue-to-pr is a command for GitHub Copilot from Osmantic/ODS. It costs 0 tokens per session (719 once invoked), scanned A, original, Apache-2.0.

An autonomous workflow that turns a software issue into a focused code change during a CI run, following the project's stated design rules and safety limits.

In plain words
What is it for?
Use it to implement actionable issues, validate new Python or shell code, and prepare the repository changes needed for a pull request.
Why use it?
It removes the need to guide the agent through each step, while leaving vague issues unchanged and limiting edits to work directly requested by the issue.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

This is Osmantic/ODS's own configuration. It tells GitHub Copilot how to work on ODS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ODS configures →

About the project

ODS is a system for turning a PC, Mac, or Linux computer into a private local AI server, meaning a machine that runs models and related AI services itself. It supports local model inference, chat, voice, agents, workflows, document retrieval, search, and image generation. The catalogue includes commands and an instruction for operating or configuring this system.

Osmantic/ODS · 6,213 stars · on GitHub · discord.gg

Reuse

Borrowing it

Nothing to install: this file belongs to Osmantic/ODS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Osmantic/ODS/main/.github/prompts/issue-to-pr.md
Clone the repo
git clone --depth 1 https://github.com/Osmantic/ODS

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for issue-to-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/osmantic/ods/issue-to-pr.svg)](https://agentmods.dev/commands/osmantic/ods/issue-to-pr)
Your own site
<a href="https://agentmods.dev/commands/osmantic/ods/issue-to-pr"><img src="https://agentmods.dev/badge/commands/osmantic/ods/issue-to-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 719 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00719
Opus 5 $0.00000 $0.00360
Sonnet 5 $0.00000 $0.00144
Haiku 4.5 $0.00000 $0.00072

Measured yesterday against content hash 1bed595c86c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

issue-to-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/issue-to-pr.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Issue to PR — Autonomous CI Mode

You are running in a CI pipeline. You MUST operate fully autonomously. Do NOT use AskUserQuestion. Do NOT pause for user input.

Rules

  1. Follow ALL design principles from CLAUDE.md: Let It Crash (primary), KISS, Pure Functions, SOLID
  2. Keep changes minimal and focused — only implement what the issue requests
  3. Prefer no change over a wrong change — if the issue is vague, ambiguous, or not actionable, make zero changes
  4. Do NOT modify protected files:
    • .github/workflows/* — CI/CD pipelines
    • .env* — environment configuration
    • ods/installers/* — core installer libraries and phases
    • ods/ods-cli — main CLI tool
    • ods/config/* — backend configuration files
  5. Do NOT modify unrelated code, design philosophy docs, or import ordering
  6. Do NOT add unnecessary comments, docstrings, or type annotations to unchanged code
  7. Do NOT create new files unless absolutely necessary — prefer editing existing files
  8. Do NOT introduce security vulnerabilities (command injection, XSS, SQL injection, etc.)
  9. All new Python code must pass ruff check and python -m py_compile
  10. All new shell code must pass bash -n and shellcheck

Steps

Step 1: Understand the Issue

Read the issue details (appended below). Determine:

  • Is this issue actionable with specific, implementable changes?
  • Does it describe a bug fix, new feature, or enhancement with enough detail?
  • If the issue is too vague (e.g., "make the app better", "improve performance"), make zero changes

Step 2: Explore the Codebase

  1. Read CLAUDE.md for project structure and conventions
  2. Use Glob and Grep to find the files relevant to the issue
  3. Read the relevant source files to understand existing patterns and conventions
  4. Identify the minimal set of files that need changes

Step 3: Implement Changes

  1. Make targeted edits using the Edit tool (prefer Edit over Write for existing files)
  2. Follow existing code patterns and conventions in the file you're editing
  3. After each file edit, validate:
    • Python files: python -m py_compile <file> for syntax, ruff check <file> for linting
    • Shell files: bash -n <file> for syntax
  4. Fix any syntax or lint errors before moving on

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 67 lines · 0 tokens per session scan A 1bed595c86c4

Subscribe to this mod's changes

issue-to-pr is a command published in the GitHub repository Osmantic/ODS (6,213 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 719 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.