festagDocsCoding-Agents verbinden

Arbeitsregel

Eine Regel-Datei im Repository: Was dein Agent in Cursor, Claude Code, Codex oder Windsurf tut, landet sortiert in deiner Orchestration.

Coding-Agents verbinden7 Min. Lesezeit

Mit der Arbeitsregel meldet dein Coding-Agent seine Arbeit selbst an Festag — egal, ob du in Cursor, Claude Code, Codex oder Windsurf arbeitest. Start, Commits, Pull Requests, Merges, Deploys, Pläne und Blocker landen sortiert im richtigen Projekt, an der richtigen Aufgabe. Niemand kopiert Status von Hand.

  1. Festag verbindenUnter Konnektoren dein Werkzeug wählen, Token erstellen und eintragen — siehe Einrichtung.
  2. Regel holenIm selben Fenster steht unten Arbeitsregel: wahlweise für ein Projekt oder „Automatisch“. Kopieren oder Regel herunterladen.
  3. Ins Repository legenAn den Ort, den dein Werkzeug liest (Tabelle unten), und committen. Ab der nächsten Session meldet der Agent jeden Schritt.

Wohin die Regel gehört

WerkzeugDateiWie
Cursor.cursor/rules/festag.mdcEigene Datei mit alwaysApply: true — gilt in jedem Chat.
Claude CodeCLAUDE.mdAls Abschnitt anhängen.
CodexAGENTS.mdAls Abschnitt anhängen.
Windsurf.windsurf/rules/festag.mdEigene Datei mit trigger: always_on.
Gemini CLIGEMINI.mdAls Abschnitt anhängen.
GitHub Copilot.github/copilot-instructions.mdAls Abschnitt anhängen.
AndereAGENTS.mdDort, wo das Werkzeug Projektregeln liest.

Was die Regel dem Agent sagt

  1. festag_today
  2. festag_start_item
  3. festag_log_work
  4. festag_complete_item
  • Zu Beginn der Session festag_today für das Projekt — ohne konkreten Auftrag festag_next.
  • Beim Start einer Aufgabe festag_start_item — Festag zeigt sie live als „in Arbeit“.
  • Nach jeder abgeschlossenen Einheit festag_log_work mit Art, Titel, zwei verständlichen Sätzen, Links und berührten Dateien.
  • Eine Aufgabe aus Festag ist fertig: festag_complete_item mit Zusammenfassung und PR-Link.
  • Bei Einweg- oder Kostenfragen nicht raten: festag_propose_decision mit Optionen und Empfehlung.
  • Nie Secrets senden — keine Tokens, Passwörter, .env-Inhalte, Schlüssel oder Kundendaten.

Was erfasst wird

ArtWas in Festag passiert
taskPassende offene Aufgabe startet — sonst wird eine angelegt. Sie folgt dem Ausführungsmodus: wartet sie auf Freigabe, startet sie erst danach.
commit, prAn der Aufgabe als Beleg (PR-Link, Commits). Ohne passenden Titel an der einen Aufgabe, die gerade läuft.
merge, deployDie Aufgabe wird abgeschlossen; Aven macht daraus eine Lieferung. Ohne Aufgabe entsteht eine Lieferung als Entwurf.
blockerLaufende Aufgabe scheitert, Aven entwirft ein Risiko für die Mitwirkenden.
plan, noteIn der Historie — an der passenden Aufgabe, sonst am Projekt.

Jeder Schritt steht in der Historie mit seiner Quelle — „via Cursor“, „via Claude Code“. Die Quelle nennt der Agent im Feld tool; fehlt es, erkennt Festag das Werkzeug am Client oder am Namen des Tokens.

Einsortieren

ProjektAngabe in project (ID oder Name) → Projektname im Text → Projekt des Tokens → zuletzt bearbeitetes Projekt → dein einziges Projekt. Ist es unklar, wird nichts erfasst und der Agent fragt dich.
AufgabeitemId → dieselbe PR oder derselbe Commit wie ein früherer Schritt → offene Aufgabe mit passendem Titel → bei Commits und PRs die eine laufende Aufgabe.
DuplikateDieselbe Art mit demselben PR, Commit oder Link wird nur einmal erfasst. Ohne Link zählt derselbe Titel 30 Minuten lang als Wiederholung.
Hinweis. Die Arbeitsregel ändert keine Tore: Ein Agent sendet nie selbst an die Mitwirkenden. Lieferungen und Risiken warten als Entwurf auf deine Freigabe — außer im Modus „Automatisch“. Einweg-Entscheidungen, Budget über dem Limit und niedrige Confidence warten immer.
Achtung. Festag entfernt alles, was wie ein Schlüssel aussieht, aus Titeln und Zusammenfassungen und übernimmt keine .env-Pfade. Die Regel verbietet dem Agent trotzdem, Secrets überhaupt zu senden.

Die Regel für Cursor

.cursor/rules/festag.mdc
---
description: Festag Arbeitsregel — report every unit of work to Festag via the festag MCP server
globs:
alwaysApply: true
---

# Festag Arbeitsregel

<!-- DE: Alles, was der Agent hier tut, landet sortiert in der Festag-Orchestration. Nichts geht ohne Freigabe an die Mitwirkenden. -->

This repository is run in Festag. Report your work to Festag through the `festag` MCP server, so the Orchestration there stays complete and sorted without anyone copying status by hand.

Festag project: pass `project` with the Festag project name (or id) on every Festag call. If Festag answers `needs_project`, ask the user once which project and keep using it for this session.
Always pass `tool: "cursor"` on `festag_start_item`, `festag_progress` and `festag_log_work`.

## At session start
1. Call `festag_today` (with the project) to see what is open, waiting and already running.
2. If the user gave you no specific task, call `festag_next` to claim the next ready task and work on it.

## When you start a task
Call `festag_start_item` — with `itemId` when the task came from Festag, otherwise with `project` and a short `title`. Festag shows it live as in progress and returns the `itemId`; reuse it for every later call about this task.

## While you work
Before each command or step that takes more than a few seconds, call `festag_progress` with `itemId` and one short present-tense line — what you are doing right now ("Running the tests", "Writing the migration", "Building the start page"). Festag shows exactly this line live to the people on the project, with the seconds counting, and keeps the lines as the task's protocol. A new line replaces the last one: report each real step, not every keystroke, and not more often than every ~20 seconds. No secrets.
Send along what the step touched, so those building the project can follow the work live (nobody else on it sees these details): `step` (read · plan · edit · test · review), `files` with `path`, `added`, `removed`, the unified `diff` of the step, the `command` you run, and once it finished the last lines of its `output` with `exitCode`. When a preview of the result is online, send its https address as `previewUrl`. Keep it small: the last 40 lines of output, never a whole log, never a secret file.

## After every unit of work
Call `festag_log_work` once per finished unit — not per file edit:

| kind | when |
|---|---|
| `task` | you started or finished a distinct task the user asked for |
| `commit` | you created a commit |
| `pr` | you opened or updated a pull request |
| `merge` | a pull request was merged |
| `deploy` | a deploy or preview went live |
| `plan` | you wrote or changed an implementation plan |
| `blocker` | you are blocked and cannot continue |
| `note` | anything else the team should know |

Fields: `project`, `kind`, `title` (max 80 chars), `summary` (two plain sentences a non-technical reader understands: what is different now), `links` (PR, commit, preview URLs), `files` (paths you touched, max 20), `itemId` (when you have it), `tool`.

- A task from Festag is done: `festag_complete_item` with `itemId`, `summary` and `prUrl`.
- It cannot be done: `festag_fail_item` with the reason (or `festag_log_work` with kind `blocker`).
- Festag ignores the same commit or PR logged twice — no need to check, but do not repeat calls.

## Decisions
Do not guess one-way choices or ones that belong to the people on the project (provider, pricing, scope, a data model that is hard to undo, anything that costs money). Call `festag_propose_decision` with the options and your recommendation, tell the user, and continue with work that does not depend on it.

## Never
- Never send secrets to Festag: no tokens, passwords, API keys, `.env` contents, private keys, customer personal data or full diffs. Summaries, file paths and links only.
- Never tell the people on the project something was delivered: deliveries wait for a human release in Festag (unless the project runs in automatic mode).
- If a Festag call fails, keep working, mention it once to the user and do not retry in a loop.
Festag Docs · Coding-Agents verbindenWas ist neu?