A terminal-based coding challenge tool that generates fresh interview problems via the Anthropic API. Topic-based rotation, session tracking, and streak counting.
export ANTHROPIC_API_KEY=your_key_here
go install github.com/russuel/dcp/cmd/dcp@latest
# or build locally
go build -o dcp ./cmd/dcp# Generate today's problem (auto-advances topic every 5 solves)
dcp
# Show the hint alongside the problem
dcp -hint
# Jump to a specific topic by index
dcp -topic 4
# Mark the last problem as solved
dcp -solved
# Session stats + recent history
dcp -stats
# List all topic indices
dcp -list| # | Topic |
|---|---|
| 0 | Arrays |
| 1 | Strings |
| 2 | Hash maps |
| 3 | Linked lists |
| 4 | Stacks & queues |
| 5 | Trees |
| 6 | Graphs |
| 7 | Recursion |
| 8 | Dynamic programming |
| 9 | Sorting & searching |
| 10 | Bit manipulation |
| 11 | Heaps |
- Every 5 solved problems advances to the next topic automatically.
- Session data is stored at
~/.dcp/session.json(append-only). - Streak counts consecutive calendar days with at least one solve.