system:~/writeups$ open
Agent Challenge
An open-source API challenge library with Python and Node.js integrations and an interactive demo of timed challenges and token handling.
About the project
Agent Challenge explores a challenge-and-response workflow for API clients. An endpoint can issue a puzzle, accept an answer and return a token that the client presents on later requests. The library includes Python and Node.js interfaces, with examples for Flask and Express.
The configuration controls challenge difficulty, expiration and whether a successful answer produces a reusable token. The public demo exposes Gate and Lock modes so visitors can see the request, response and countdown. Its documented puzzles include text transformations, arithmetic and encoding tasks.
The implementation uses signed tokens to carry challenge and verification data. The repository also documents prompt validation and a solver wrapper for integrating an LLM into the flow. Separate operations for creating challenges, checking answers and verifying saved tokens let developers inspect each step when integrating the workflow into an API.
What it does
- Python and Node.js interfaces
- Configurable challenge expiration
- Reusable-token and per-request modes
- Live request-and-response demo