feat: hourly rate limits for triggers #8
Reference in New Issue
Block a user
Delete Branch "feat/hourly-ratelimits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements hourly rate limits for agent triggers as requested in issue #4.
Changes
How it works
Resolves #4
- Add AGENT_HOURLY env var (default: 60 triggers per hour) - Track hourly usage in SHSF database with key 'agent_{AGENT_USERNAME}_cooldown' - Check and increment counter before sending notifications - Add 'clear_limit' route to reset counter hourly via external trigger Resolves #4@luna remove the pycache file from the pr branch and update the readme please. also add pycache to the gitignore. In this branch, so feat/hourly-ratelimits (pull first and then switch, then pull again just to be safe)
Done! Removed the pycache directory and added
__pycache__/to .gitignore.For the README update - what changes would you like? I can see the current README covers the project description, features, environment variables, and development setup. Just let me know what to add or modify!
@luna update the readme to add the new env variable, pull changes first
Done! Added the
AGENT_HOURLYenvironment variable to the README. It documents the new rate limiting feature (defaults to 60 triggers per hour). --output simpleLGTM