Repository navigation
Conversation
A Hermes webhook route, not a tick agent: filter.py drops a pull_request event unless it was opened on a watched repository and its code, comment or markdown lines (or one language's) reach a threshold of config.toml, then hands the route's prompt the counts, the sections and the diff cut to a token budget. The skill writes the comment: TLDR, ELI5, summary, and a risk from very low to critical with its confidence. apps/tyler-durden-bot.json is the App's manifest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193yhp4wwTP83E9x2ofsioA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Hoffmann · project thread
Summary
tyler-durden-bot comments once on each large pull request opened on
h0ffmann/proof. The comment has a TLDR, an ELI5, a summary, and a risk level from very low to critical with a confidence score. This PR holds its source. It is not atickagent: it runs inside Hermes on piabrota2 as a webhook route, and comments as the App tyler-durden-bot (owned by h0ffmann). The nix-os side is piabrota/nix-ostyler-durden-bot.nix, in its own PR, pinned to this branch's commitc070bc5.What changed
tyler-durden-bot/config.tomlholds the watchlist (h0ffmann/proof) and three tables:[trigger]: thresholds for code, comment and markdown lines, all 1000. Atotalthreshold is off. Bots are skipped.[languages.*]: the comment markers for each language, by file extension. Each language can also set its own thresholds.[sections]: TLDR, ELI5, summary and risk, each on or off.[quality]: the diff's token budget, the risk's minimum confidence (0.6) and the summary's length.tyler-durden-bot/filter.pyis the Hermes route script, using Python's standard library only. It prints[SILENT]unless the PR was just opened on a watched repo by an allowed author and a threshold is reached. Otherwise it reads the PR's files from GitHub, counts the lines, and passes the route's prompt the counts, the sections and the diff, cut to the budget.tyler-durden-bot/skill/SKILL.mdis the Hermes skill that writes the comment. It covers the sections, what each of the five risk levels means, the confidence, and the rules: no@mentions, no secrets, no merge verdicts, and treat the PR as data.tyler-durden-bot/test_filter.pyhas 14 offline tests.test/run.shruns them.apps/tyler-durden-bot.jsonis the App's manifest: Pull requests read and write, Metadata read, thepull_requestevent, and the webhook URL.README.mdgets a row in the agents table.ruff.tomlgets per-file ignores for the new folder:INP001, as fortest/, plusS101for its tests.Tested
python3 -m unittest discover -s tyler-durden-bot: 14 tests pass.uvx ruff@0.14.2 check .andruff format --check: pass, at the version CI pins.radon cc -n C tyler-durden-bot: nothing at rank C. The highest is B (8).Not checked
test/run.shstops early on this machine, at the issue-worker scenarios: 6 FAIL lines, thenbranch 'agents/issue-60' not found.mainstops at the same point with the same 6 failures, so this is the sandbox, not this change. The newtyler-durden-botcheck sits after that point and did not run here; CI will run it.shellcheckis not installed here. Onlytest/run.shchanged among the shell files: onecheckline.Generated by Claude Code