ODS: Command for GitHub Copilot

.github/prompts/nightly-docs-update.md

nightly-docs-update is a command for GitHub Copilot from Osmantic/ODS. It costs 0 tokens per session (938 once invoked), scanned A, original, Apache-2.0.

An autonomous CI command for updating documentation from demonstrated code changes. CI is automated work that runs in a project's build and test pipeline.

In plain words
What is it for?
It helps update factual documentation such as file paths, model names, environment variables, API routes, and command examples after code changes.
Why use it?
It prevents documentation updates from changing unrelated files or guessing when the code and documentation disagree. It keeps existing structure and skips ambiguous changes.

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/nightly-docs-update.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 nightly-docs-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/osmantic/ods/nightly-docs-update.svg)](https://agentmods.dev/commands/osmantic/ods/nightly-docs-update)
Your own site
<a href="https://agentmods.dev/commands/osmantic/ods/nightly-docs-update"><img src="https://agentmods.dev/badge/commands/osmantic/ods/nightly-docs-update.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 938 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.00938
Opus 5 $0.00000 $0.00469
Sonnet 5 $0.00000 $0.00188
Haiku 4.5 $0.00000 $0.00094

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

Security

Grade A, and why

nightly-docs-update 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/nightly-docs-update.md · 91 lines

How it starts

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

Nightly Documentation Update (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. Do NOT use Write to create new files.

Rules

  1. ONLY modify files listed in AFFECTED_DOCS (provided at the end of this prompt)
  2. NEVER modify: .github/, .env*, *.py, *.sh, *.ts, *.tsx, *.yml, *.yaml
  3. Be CONSERVATIVE — only update sections where code has demonstrably changed
  4. Do NOT add new sections, restructure documents, or change formatting/style
  5. Do NOT modify design principles, philosophy, or instructional content in CLAUDE.md
  6. Focus on: factual data (tables, file paths, model names, env vars, API routes, command examples)
  7. When cross-doc inconsistency found: code is the source of truth — update the doc to match code
  8. When ambiguous: SKIP the change entirely (do not guess)
  9. Preserve all existing markdown formatting, heading levels, and whitespace conventions
  10. Do NOT remove content unless it references files/features that no longer exist in the codebase

Steps

Step 1: Gather Context

Run git log --oneline -N (N = COMMITS_TO_ANALYZE) to see recent changes and understand what was modified.

Run git log --oneline -N --name-only --pretty=format: | sort -u | grep -v '^$' to get the full list of changed files.

Step 2: For Each File in AFFECTED_DOCS

For each documentation file listed in AFFECTED_DOCS:

  1. Read the documentation file using the Read tool
  2. Read the relevant source-of-truth code files (see mapping below)
  3. Compare: identify sections that are factually outdated (wrong file paths, missing routes, incorrect model names, outdated env vars, stale tables)
  4. Use Edit tool to update ONLY the outdated sections — make minimal, targeted edits
  5. Move on to the next file

Step 3: Verify Changes

After all updates, run git diff to verify:

  • Changes are minimal and correct
  • No unintended modifications
  • Formatting is preserved

Read the full file on GitHub · 91 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 · 91 lines · 0 tokens per session scan A d511ae97bf0a

Subscribe to this mod's changes

nightly-docs-update 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 938 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.