Webhook listener that monitors Gitea repos for BLIGHT: triggers in markdown files, processes them via Gemini 2.5 Flash-Lite, and writes results back in-place. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.2 KiB
Name:
TBD. Will need help thinking of a name.
Objective:
Create a script/tool/project that can monitor a gitea repo full of markdown files, look for a specific text trigger, and then follow the instructions listed after that trigger.
For example, lets say the trigger text is "BLIGHT: "
Example triggers could be:
"BLIGHT: Explain to the differences of the two grammer points mentioned in the above paragraph."
"BLIGHT: Please format this document"
"BLIGHT: Can you spell check this page"
"BLIGHT: Look at the rest of the doc and write a conclusion paragraph please"
I'm currently thinking to use Gemini with an API key, but if openrouter seems like the better (or cheaper) option, we can go with that.
Process
- Script checks for text trigger
- Script process instructions after trigger
- Script carries out instructions after trigger
- Script replaces the trigger and instructions with result of aforementioned instructions.
Additional Notes
-
As mentioned, the files that need to be watched are currently on a gitea server. We can pull them, change them, then push them, or if there's some better way, I'm open to suggestions.
-
This will be part of a much bigger ecosystem, simply known as "BLIGHT".