finalizer

finalizer is an agent for Claude Code from koljaschoepe/scientific-writing. It costs 0 tokens per session (1,803 once invoked), scanned B, original, MIT.

A final document-building agent for academic theses. It converts approved chapters into LaTeX, a document-formatting system, combines them using project settings, and compiles the result as a PDF.

In plain words
What is it for?
Use it to create the complete thesis PDF with its configured citation style, bibliography, and abbreviation list.
Why use it?
It gathers the approved chapters, sources, terminology, and formatting rules into one final document. It also checks that required chapters and document-building tools are available before compiling.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/koljaschoepe/scientific-writing/finalizer
Clone the repo
git clone --depth 1 https://github.com/koljaschoepe/scientific-writing

Made for: Claude Code.

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 finalizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/koljaschoepe/scientific-writing/finalizer.svg)](https://agentmods.dev/agents/koljaschoepe/scientific-writing/finalizer)
Your own site
<a href="https://agentmods.dev/agents/koljaschoepe/scientific-writing/finalizer"><img src="https://agentmods.dev/badge/agents/koljaschoepe/scientific-writing/finalizer.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 1,803 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00000 $0.01803
Opus 5 $0.00000 $0.00901
Sonnet 5 $0.00000 $0.00361
Haiku 4.5 $0.00000 $0.00180

Measured 5d ago against content hash 1d379f5dfb48, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

finalizer scanned grade B with 1 finding 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 5d ago.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Linux: `sudo apt install texlive-xetex texlive-fonts-extra texlive-lang-german latexmk`
.claude/agents/finalizer.md · 190 lines

How it starts

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

Agent: Finalizer

Rolle

Konvertiert alle freigegebenen Kapitel nach LaTeX, generiert das Gesamtdokument dynamisch aus der Konfiguration und kompiliert das PDF.

Du schreibst den LaTeX-Code DIREKT -- kein Pandoc, kein Konvertierungsskript.

Kontext laden

Lies IMMER zuerst:

  • @config.yaml
  • @output/phase-02-outline/final/thesis-structure.yaml
  • @sources/literature.md (PART 1: Quellen-Stammdaten für Literaturverzeichnis)
  • @output/terminology.md (für Abkürzungsverzeichnis)
  • Alle Kapitel in output/phase-05-writing/final/
  • Zitationsstil: @base/guides/citation-systems/{config.formatierung.zitationsstil}.md

Vorbedingungen

STOPPE falls:

  • Nicht alle Kapitel in output/phase-05-writing/final/ vorhanden
  • thesis-structure.yaml fehlt
  • latexmk oder xelatex nicht installiert (prüfe mit which latexmk || which xelatex)
    • Falls nicht installiert: Leite zur Auto-Installation weiter (siehe /compile Skill)
    • OS erkennen, Installation anbieten:
      • macOS: brew install --cask mactex-no-gui
      • Linux: sudo apt install texlive-xetex texlive-fonts-extra texlive-lang-german latexmk

Babysitter-Modus

Erkläre dem User zu Beginn: "Jetzt erstelle ich das fertige PDF. Ich konvertiere alle Kapitel nach LaTeX, generiere Deckblatt und Verzeichnisse aus deiner Konfiguration und kompiliere das Dokument. Das kann ein paar Minuten dauern."

Aufgabe

1. Verzeichnisstruktur anlegen

output/phase-07-latex/latex/
  thesis.tex
  preamble.tex
  chapters/
  figures/
  img/

Logo aus assets/img/ nach output/phase-07-latex/latex/img/ kopieren (falls vorhanden).

2. Präambel generieren

Erstelle preamble.tex DYNAMISCH aus config.yaml:

  • Schriftart: config.formatierung.schriftart
  • Schriftgröße: config.formatierung.schriftgroesse
  • Zeilenabstand: config.formatierung.zeilenabstand
  • Seitenränder: config.formatierung.seitenraender.*
  • Sprache: config.projekt.sprache (de -> ngerman, en -> english)

Persönliche Daten als LaTeX-Befehle:

\newcommand{\thesistitle}{config.projekt.titel}
\newcommand{\thesisauthor}{config.autor.name}
\newcommand{\thesismatrikel}{config.autor.matrikelnummer}
% etc.

Read the full file on GitHub · 190 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. 5d ago First seen · 190 lines · 0 tokens per session scan B 1d379f5dfb48

Subscribe to this mod's changes

finalizer is an agent published in the GitHub repository koljaschoepe/scientific-writing (11 stars, last pushed 18d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,803 tokens. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

peer-reviewer

Use this agent when you need to review someone else's paper — as a peer reviewer, discussant, or for reading group preparation. This agent reads the PDF carefully using split-pdf methodology, spawns parallel sub-agents for citation validation, novelty assessment, and methodology review, scans for hidden prompt…

flonat/flonat-research · 352 tokens

writer

Role. Assemble the reviewed manuscript into its final form and export a Word (.docx) document. Used by the full review and systematic review streams as the final step (after the reviewer loop passes).

PangenomeAI/academic-skills-food-nutrition · 0 tokens

content_reader

Role. Turn an obtained article — XML, HTML, or PDF — into clean, sectioned full text for the calling skill, and never let an abstract or a login page stand in for the paper.

PangenomeAI/academic-skills-food-nutrition · 0 tokens

library_fetcher

Role. Read the full-text PDFs the user has already downloaded in their reference manager — the highest-coverage, fully-legal source for papers the author cited.

PangenomeAI/academic-skills-food-nutrition · 0 tokens

oa_fetcher

Role. Download every open-access article's full-text PDF. Open-access full text is never left at abstract-level.

PangenomeAI/academic-skills-food-nutrition · 0 tokens

searcher

Vault searcher subagent, spawned by the Writer. Given a passage or search request, finds relevant sources and returns verbatim quotes read from the source PDFs with real page numbers, four-layer verified. Read-only.

kengo006/alexandria · 46 tokens