Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Run find_traps.py from a hook on edited files

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c, python
Domain
devtools, testing

Research direction

Read the current plugin hook documentation and inspect how the plugin declares hooks and returns output to the model. Then review find_traps.py and the existing fixture evals to decide how to filter new hits, keep the hook quiet on unrelated files or without Python 3, and compare eval results with and without it. Record the dated decision and checklist in ROADMAP.md; the issue's done criterion is also to assign a milestone.

Written by the indexing model from the issue text.

Description

enhancement later

find_traps.py is already a deterministic trap checker that runs without a model, and CI runs it on every naive fixture. What's left is a hook that runs it on each file the agent edits during a port.

What has to be settled before this gets a milestone

  • The hook. A plugin can ship hooks, and a PostToolUse hook on the edit tools can run find_traps.py on the edited file and hand its hits back to the agent. Check the current hook docs for how a plugin declares one and how its output reaches the model.
  • Staying quiet. A plugin's hooks run in every session where the plugin is enabled, not just during a port. The hook has to be fast and silent on files that don't use SDL, and on machines without Python 3.
  • Which hits. find_traps.py also searches the committed SDL2 version of a changed file and marks those hits (HEAD). After an edit, only hits in the new text are news, or the agent hears about every trap it has already fixed.
  • Evidence. Like the skill, the hook earns its place in an eval: the same cases with and without it.

Done when

  • The settled answers are a dated decision in ROADMAP.md, and this issue gets a milestone with its own checklist.
Dominant language
C
Stars
1
Forks
1
Avg merge
3m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hazeliscoding/sdl3-porter

All issues in hazeliscoding/sdl3-porter

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.