agentleFS
felixgollnhuberfelixgollnhuber/dienstweg/AGENTS.md

dienstweg

AGENTS.md1 starsChanged 5 months agoMITView on GitHub

This project follows the dienstweg task workflow. Project values live in dienstweg.config.json, project-specific additions in dienstweg.local.md (read both before task work). Respond to the user in "en". Tasks are tracked in Linear (team dienstweg, prefix DIE-XXX); all issue operations go through the Linear MCP tools, never via REST or local files. Harnesses: Claude Code + Codex. The two commands below and the branch-guard git hook are installed for each active harness; the guard is active in whichever harness runs. Commands…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,638 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Commit: DIE-XXX - short description.

    line 18
  2. Distinctive:

    Check off AC boxes via description patches, add notes as comments, never widen scope silently - amend the plan (see Plan amendments below) …

    line 26
  3. Very specific:

    Before merging the PR: check off all AC + DoD boxes, write ## Final Summary (merge-SHA placeholder + PR number), set state="In Review".

    line 27
  4. Very specific:

    After merge: state="Done" + Final Summary with the real merge SHA.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

<!-- dienstweg:begin -->

Task workflow (dienstweg v0.3.1)

This project follows the dienstweg task workflow. Project values live in dienstweg.config.json, project-specific additions in dienstweg.local.md (read both before task work). Respond to the user in "en". Tasks are tracked in Linear (team dienstweg, prefix DIE-XXX); all issue operations go through the Linear MCP tools, never via REST or local files.

Harnesses: Claude Code + Codex. The two commands below and the branch-guard git hook are installed for each active harness; the guard is active in whichever harness runs.

Commands (Claude Code: the /create-issue and /start-task slash-commands; Codex: the create-issue and start-task skills - invoke via /skills, $name, or by describing the intent):

  • create-issue <topic> - create a new issue following the schema (interference check + collaborative plan drafting). Creates ONLY the backlog issue.
  • start-task DIE-XXX - worktree + plan in the issue description + ready-to-run /goal condition. Implementation happens only in the /goal loop.

Git conventions:

  • Base branch: main. Feature branches: tasks/die-XXX-<slug>.
  • Commit: DIE-XXX - short description. PR title: DIE-XXX - task title, base always main (explicit). Tooling changes without an issue: tasks/<short-slug> branch without prefix.
  • No --no-verify, no force push to shared branches, no direct push to protected branches (the branch-guard hook blocks common cases of these).
  • Merge: gh pr merge <N> --squash --delete-branch, then MANDATORY: in the MAIN working copy (not the task worktree - git refuses to check out a branch already checked out elsewhere), run git checkout main && git pull --ff-only and confirm the new HEAD. A "branch is already used by worktree" message on --delete-branch is not a merge failure; the remote merge succeeded - remove the worktree and pull in the main copy.

Issue discipline (all state lives in Linear, not in git):

  1. Claim: save_issue state="In Progress" assignee="me" - do this first, before planning, to close the single-writer race window.
  2. Plan BEFORE code in the description (section ## Plan). Non-negotiable.
  3. Check off AC boxes via description patches, add notes as comments, never widen scope silently - amend the plan (see Plan amendments below) when it merely fell short, or ask / create a follow-up issue for a genuine new goal.
  4. Before merging the PR: check off all AC + DoD boxes, write ## Final Summary (merge-SHA placeholder + PR number), set state="In Review". These are Linear description patches, not git commits.
  5. After merge: state="Done" + Final Summary with the real merge SHA.

Plan amendments (mid-task re-planning): when the approved ## Plan proves insufficient, do not silently widen scope - amend it. Append an ### Amendments sub-section to ## Plan via save_issue (description patch), each entry recording: reason, new touch points, LOC estimate. Autonomous threshold: amend and keep going on your own only while the amendments add <=2 new non-high-risk touch points in total (a touch point is any file that must change but was not in the original plan, whether newly created or an existing file now edited); once they add more than 2 new non-high-risk touch points, or any high-risk area (templates/hooks/branch-guard.mjs) is added, stop and ask first. The /goal file-scope constraint reads "no files outside the amended plan's touch points", so a recorded amendment is not a violation. This is distinct from a genuine scope change (a new goal or feature), which still means ask or a follow-up issue.

Parallelism: exactly one label per issue: parallel-safe or single-writer:<area> (areas: branch-guard, cli-core). Before starting, check whether another issue holds the same lock.

Review (mandatory before every merge): 3x ensemble review - 3 independent reviewers run in parallel, no splitting. Every reviewer keeps the same identical, broad scope (the full PR) but takes a distinct stance to decorrelate the ensemble: stances adversarial, spec-conformance, maintainer, assigned round-robin across the 3 reviewers. When a spec-conformance stance is configured, the reviewer assigned it additionally receives the issue reference and checks the diff against the issue's ## Plan and ## Acceptance Criteria (that stance name is load-bearing - it keys the Plan/AC check; drop it and no reviewer performs that check). The fan-out mechanism is harness-specific (Claude Code: parallel review subagents in one message; Codex: parallel codex exec reviewers) - see the start-task command. Fix consensus findings directly, judge singletons critically, decide conflicts explicitly. Re-review on larger fix changes (new logic / high-risk / >50 LOC / >3 new files / interface change), max 3 rounds. A single review pass does not replace the ensemble.

Auto-merge (on, merge.auto: true): after a clean review loop, merge autonomously - no asking. Gates (all mandatory): PR base = main, npm test exit 0 after the last fix commits, no open DoD boxes (check via get_issue before merging), no open majority critical findings, re-review loop finished, no user override ("do not merge automatically" holds for the whole session). Gate violated -> do not merge, report status.

High-risk areas (templates/hooks/branch-guard.mjs): smaller commits, intermediate verification after destructive operations, call them out separately in reviews.

Extra DoD items (from config):

Extra /goal constraints (from config): -

Issue description template (every issue follows this; /create-issue fills it, /start-task completes ## Plan):

## Plan
<set before code work, via /start-task>

## Acceptance Criteria
- [ ] AC #1

## Definition of Done
- [ ] npm test exit 0
- [ ] Acceptance criteria fulfilled + checked off
- [ ] No unauthorized side effects (cronjobs/webhooks/destructive scripts)
- [ ] High-risk areas (templates/hooks/branch-guard.mjs) verified
- [ ] No secrets in the code
- [ ] Single-writer lock checked (parallel-safe or lock-free at merge time)
- [ ] 3x ensemble review executed
- [ ] PR base = main

## Setup
- Worktree: <set by /start-task>
- Single-writer lock: <parallel-safe | single-writer:area>

## Final Summary
<set before state=Done: merge SHA, PR number, review rounds, follow-up issues>
<!-- dienstweg:end -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.