Skip to main content

A spaced-repetition CLI for LeetCode practice problems

Project description

Jobbernaut Sensei Logo

Jobbernaut Sensei ๐Ÿฅ‹

Your LeetCode practice, but you actually remember what you solved.

Sensei is a spaced-repetition CLI that stops you from grinding LeetCode into the void. Every command outputs clean JSON โ€” it's built for humans but designed for AI agents.

pip install jobbernaut-sensei
sensei init

๐Ÿ”ฅ Why This Exists

You solve 200 LeetCode problems. Three months later you can't solve FizzBuzz.

Sensei tracks when you solved a problem and how well you understood it. Then it tells you exactly what to review โ€” before your brain evicts it from cache.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Your brain has a cache. This is the invalidation policy.   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Zero config. Zero cloud. Zero bullshit. Your solutions are just .py files in a folder โ€” git-friendly, portable, no lock-in.


โšก What It Does

Command Vibe
sensei revisit "Here's what you're forgetting" โ€” color-coded review queue
sensei status JSON snapshot for you or your AI agent
sensei hint <problem> Get the problem URL + deets without the answer (for quizzing)
sensei show <problem> Full problem + your saved solution (for review)
sensei mark <problem> --rating g "Good" โ†’ next review in 7 days (with load smoothing)
sensei new <num> <slug> <cat> Scaffold a fresh problem in 0.3 seconds
sensei open <problem> Jump into the code + LeetCode page
sensei rebalance Spread review clusters across empty days
sensei revisit --export Dump everything to CSV or Markdown

๐Ÿ“… Daily Loop

# 1. What's rotting in my brain today?
sensei revisit

# 2. Quiz me on this one (agent, don't spoil it)
sensei hint 217

# 3. Let me code, then compare
sensei show 217

# 4. How'd I do?
sensei mark 217 --rating g    # good โ†’ 7 days

That's it. Four commands. Whole loop takes 2 seconds of typing.


๐Ÿง  Spaced Repetition โ€” The Smart Part

Rate yourself after each solve. Intervals are hardcoded โ€” no adaptive math, no history weighting:

Rating Flag Next Review
Trivial ๐Ÿ† --rating t 90 days
Easy ๐ŸŸข --rating e 30 days
Good ๐Ÿ”ต --rating g 7 days
Hard ๐ŸŸก --rating h 3 days
Struggled ๐Ÿ”ด --rating s 1 day

The schedule is the curriculum. Every rating directly sets the next review โ€” no surprises.

๐Ÿ“ˆ New-Problem Progression Gate

New problems are gated through a 1 โ†’ 3 โ†’ 7 โ†’ 30 day ladder before entering full SRS. No matter how well you solve a brand-new problem, it can't skip ahead:

Review # Max interval
1st solve 1 day
2nd solve 3 days
3rd solve 7 days
4th solve 30 days
5th+ Full SRS (no cap)

Rating e on your first solve โ†’ capped at 1 day. Rating s on your 4th solve โ†’ 1 day (under cap). The gate only fires when the rating would exceed the cap.

โš–๏ธ Load Smoothing

sensei mark automatically spreads reviews across nearby days to avoid spikes. Instead of 6 problems all landing on the same day, the scheduler finds the least-loaded day within a window:

Rating Base Spread range
s 1d fixed
h 3d 2โ€“4 days
g 7d 5โ€“14 days
e 30d 15โ€“45 days
t 90d 45โ€“90 days

Problems reviewed 5+ times are biased toward the later end of their window (stable memory, safe to defer). Newer problems stay at the earlier end (fragile memory, keep close).

Disable with --no-spread to get exact base intervals.


๐Ÿค– AI-Agent Native

Every command returns clean JSON. Plug it into Cline, Claude Code, ChatGPT, or your own agent:

sensei status                     # โ†’ {"total":22,"overdue":0,...}
sensei revisit --json             # โ†’ Full review data with dates
sensei hint 217                   # โ†’ Problem URL + status, no solution
sensei show 217                   # โ†’ Metadata + saved solution
sensei mark 217 --rating e        # โ†’ Update schedule, no prompts

See AGENTS.md for the complete agent integration guide.


๐Ÿ“ฆ Setup

pip install jobbernaut-sensei
sensei init                      # Creates problems/ directory
sensei new 217 contains-duplicate 1-arrays-and-hashing -d easy -t arrays hash-set
code problems/                   # Start solving

Dependencies

  • Python โ‰ฅ 3.10
  • That's it. No npm. No Docker. No cloud.

๐Ÿ“– Commands

sensei revisit โ€” what to review

sensei revisit                    # Overdue + due today + upcoming 7 days
sensei revisit --all              # Everything
sensei revisit --topic trees      # Filter by topic
sensei revisit --json             # Agent-friendly JSON
sensei revisit --export           # โ†’ export.csv
sensei revisit --export-md        # โ†’ export.md

Colored terminal output:

๐Ÿ“…  Jobbernaut Sensei Revisit โ€” Tuesday, May 26 2026

๐ŸŸข  UPCOMING (7 days)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  in 3d          [hard  ]   124. Binary Tree Maximum Path Sum      (trees)
  in 4d          [medium]   853. Car Fleet                         (stack, monotonic-stack)

sensei show <problem> โ€” inspect + solution

sensei show 217
sensei show contains-duplicate

Returns JSON: label, number, title, filepath, metadata (last_solved, revisit_in_days, difficulty, topic_tags, due_date), and your saved solution code.

sensei hint <problem> โ€” inspect, NO solution

sensei hint 217
sensei hint contains-duplicate

Same as show but no solution field. Returns times_reviewed so the agent knows review history without seeing the answer. Perfect for agents that want to quiz without spoiling.

sensei mark <problem> โ€” rate your session

sensei mark 217                         # Interactive prompt
sensei mark 217 --rating e              # Non-interactive (agent-friendly)
sensei mark 217 --rating g --no-spread  # Exact base interval, no smoothing

Automatically increments times_reviewed and applies the progression gate and load smoothing.

sensei rebalance โ€” flatten review spikes

sensei rebalance              # Dry run โ€” preview moves, no writes
sensei rebalance --apply      # Write changes to disk
sensei rebalance --cap 2      # Flag days with more than 2 reviews

Finds days exceeding the review cap and displaces the most-reviewed problems (most stable memory) to nearby low-load dates within ยฑ50% of their current interval. Always preview before applying.

sensei new <num> <slug> <cat> โ€” scaffold

sensei new 217 contains-duplicate 1-arrays-and-hashing -d easy -t arrays hash-set

sensei open <problem> โ€” jump in

sensei open 217                    # Editor + browser
sensei open 217 --no-browser       # Editor only

sensei status โ€” quick pulse

sensei status

Returns {total, overdue, due_today, upcoming, future, problems[]} โ€” one-liner for agents. Schema matches sensei revisit --json counts.


๐Ÿ”ง Fuzzy Matching

Every command that takes a problem accepts:

sensei show 217                    # Problem number
sensei show contains-duplicate     # URL slug
sensei show "valid anagram"        # Title words

It matches the first unique result. No tab-complete needed (but we have it anyway โ€” see completions).


๐Ÿš Zsh Completions

fpath=(/path/to/jobbernaut-sensei/src/completions $fpath)
autoload -Uz compinit && compinit

๐Ÿ“„ License

PolyForm Noncommercial License 1.0.0 โ€” free for personal and non-commercial use.

Full license in LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jobbernaut_sensei-0.5.2.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jobbernaut_sensei-0.5.2-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file jobbernaut_sensei-0.5.2.tar.gz.

File metadata

  • Download URL: jobbernaut_sensei-0.5.2.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jobbernaut_sensei-0.5.2.tar.gz
Algorithm Hash digest
SHA256 c97a514efc6c34b2ca7588eb7ee7c1c1a999c5fb3b0a0ff413ab3d1a4c4730ef
MD5 d971254254c27a85960d116eec414933
BLAKE2b-256 92805fee6e52e8f349f4c46393fd7a5028afaeb6f70b25ad7e6bee4b966e1c85

See more details on using hashes here.

Provenance

The following attestation bundles were made for jobbernaut_sensei-0.5.2.tar.gz:

Publisher: release.yml on Jobbernaut/jobbernaut-sensei

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jobbernaut_sensei-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jobbernaut_sensei-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 660c8f28531584f43a7bf836a05b25aeecec803a9d863912e5150b9f05ba0b73
MD5 6196f2fa1adf53df07ccb90992c2457d
BLAKE2b-256 8ad53180e1d791f00295c0ae36bcbaa712e24d1d26ca2f54459bce698b0e3cba

See more details on using hashes here.

Provenance

The following attestation bundles were made for jobbernaut_sensei-0.5.2-py3-none-any.whl:

Publisher: release.yml on Jobbernaut/jobbernaut-sensei

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page