Repository navigation
Releases
v0.1.0-alpha.17
v0.1.0-alpha.16
Highlights
- Add native C, C++, Java, JavaScript and TypeScript solution support, including their toolchain configuration, debugging and workspace dependencies.
- Manage problem packs directly from the TUI: press
pfrom the problem list to install, update, uninstall or view pack details. - Improve C JSON processing and dependency build reuse, TypeScript import resolution, judged output prefixes and tool-probe output draining.
Upgrading an existing workspace
Normal workspace opens preserve existing settings and add missing defaults for the new language toolchains. Managed authoring skills in practice workspaces refresh automatically; pack checkouts update their pinned skills through hc skill install. Versioned caches are rebuilt as needed. C/C++ and JavaScript/TypeScript dependencies are prepared in the workspace when those environments are initialized or used; compilers, JDK, Node.js and TypeScript remain user-provided tools.
Protocol integer values are now checked as signed 32-bit integers, and long values as signed 64-bit integers. Problem content using values outside those ranges must be corrected.
Release validation
This pre-release was manually packaged from the unchanged v0.1.0-alpha.16 tag at 9cc102345c27783c6cb8eea677b507c5bf5a1488, with a maintainer-approved exception to the CI gate. The original commit CI did not pass, and the original release workflow stopped because its test environment lacked the TypeScript compiler. No successful CI result is claimed for this commit. All four archive checksums and embedded source revisions were verified, and the macOS ARM64 binary's version command was checked. Later fixes on fix/general are not included in these artifacts.
Changelog
Features
- ad6dd76 feat: add Java solutions with ordered JVM batch baselines
- 9f39d26 feat: add JavaScript and TypeScript with workspace dependencies
- 100b188 feat: add native C language support
- 67f4959 feat: add native C++23 solutions with isolated case workers
- 06dc0bf feat: enforce 32-bit integer and 64-bit long ranges
- 53f5335 feat: manage C++ JSON dependency in workspace
- 9cc1023 feat: manage problem packs from the TUI (#197)
Bug fixes
- 5cf437f fix: allow C NestedInteger integer-to-list transitions
- 179039e fix: allow tool probe output to drain after process exit
- c7522c0 fix: encode only the judged output prefix
- 84a0a34 fix: keep C JSON traversal linear
- 12ed9be fix: resolve TypeScript imports from compiled output
- 9fee387 fix: separate language minimums from local toolchain defaults
Others
- 178f0c1 perf: reuse compiled yyjson objects across C builds
v0.1.0-alpha.15
Changelog
Features
- 1f2b62b feat(tui): prioritize problem IDs in workspace history (#189)
- 0dcfd66 feat(tui): unify scrolling and paging across browsing screens (#191)
- 1f82ac9 feat: add TUI workspace and pack settings page
- 2ab3656 feat: configure local Go tools and diagnose environments
- 68e35cf feat: persist per-pack settings and synchronize workspace defaults
Bug fixes
v0.1.0-alpha.14
Upgrading from v0.1.0-alpha.13
- Practice workspaces automatically refresh managed, unedited skills and existing hc-managed
AGENTS.mdguide blocks when opened with this release. The guide includes personal groups and the current-account LeetCode workflow;hc-problemnow explains safe example pairing and image placement. Locally edited skills are preserved. Pack authoring checkouts do not auto-update their committed skills: update their pinned hc version and runhc skill installwhen ready (including the updatedhc-packguidance). - Version-keyed generated-case and timing-baseline caches rebuild automatically on demand. There is no problem-protocol or history-database migration.
hc cleanprovides explicit cache cleanup; upgrading does not automatically delete caches. - Online LeetCode tests and submissions now use one current account across workspaces. Older login state requires
hc leetcode login --site cnorhc leetcode login --site comagain. Switch destinations by logging in to the other site;status,test,submit, andlogoutno longer take--site. Cross-site submissions verify the problem identity and signature before sending code. - Fresh
hc fetchcalls preserve statement input/output pairs and images inside preformatted examples. Existing imported problems are not rewritten automatically. Review earlier imports affected by #170/#171, or fetch fresh copies in a separate workspace and reconcile the corrected examples/statements/assets with your authored content.
Highlights
- Personal ordered problem groups, stored separately from pack manifests.
- TUI search results update while typing;
:command mode supports native navigation, runs, and searchable help. - Explicit workspace cache cleanup with
hc cleanand--dry-run. - Correct statement example pairing and complete offline statement images.
Changelog
Features
- feat: add personal problem groups in the workspace (#168) (commit)
- feat: add explicit workspace cache cleanup (#177) (commit)
- feat: activate TUI search results while typing (#178) (commit)
- feat: run CLI commands from TUI command mode (#179) (commit)
- feat: add native TUI command navigation and help (#181) (commit)
Bug fixes
- fix: use the current LeetCode account for online submissions (#172) (commit)
- fix: refine TUI guide layout and navigation (#183) (commit)
- fix: preserve statement example input-output pairs (#184) (commit)
- fix: preserve images in preformatted statements (#185) (commit)
Full comparison: v0.1.0-alpha.13...v0.1.0-alpha.14
v0.1.0-alpha.13
Changelog
Features
- 58fa0e7 feat: add comments and notes to submissions (#164)
- b90daec feat: add exact, prefix and range ID searches to the problem list (#165)
- 066dc0c feat: keep your own test cases for problems of installed packs (#160)
- 841b435 feat: open problem details in the TUI with hc show (#166)
Bug fixes
v0.1.0-alpha.12
Upgrading
The first time this hc opens a practice workspace, it updates the workspace on its own:
- Skills and
AGENTS.md: hc's skills (.claude/skills/,.agents/skills/) and the hc block ofAGENTS.mdare brought in step with this hc, and from now on with every release that opens the workspace. Copies you edited are kept, and reported once (#143). .gitignore: hc's block is refreshed to leave out the files hc writes next to solutions (#145).- Python runtime: Python solutions share one
hc_runtime.pyin.hc/runtime/python/; the copies next to solutions are removed on their next run (#146). - Python environment: a
.hc/venvon a Python older than 3.12 is recreated on first use, when uv or a Python 3.12+ is on PATH (#142).
What hc now refuses: hc test (and t in the TUI) runs only the cases marked "example": true, and refuses a problem without any. Mark the statement's examples in cases.jsonl, or choose cases with --case or --all (#141).
Pack checkouts are not changed on open: their skills move only with hc skill install, and this release's hc-pack lists ty.toml among the files not to commit. hc pack init now ignores /ty.toml; add it to an existing checkout's .gitignore.
History needs nothing: submissions recorded from now on also keep which cases they ran on, so the TUI can show a passed case's input and expected output; older submissions show the details of their failed cases, as before (#156).
Changelog
Features
- 0e93341 feat: Python code runs with a recursion limit of 10^6 and a large stack (#148)
- cb1fd98 feat: Python solutions share one hc_runtime.py per workspace (#146)
- b47762a feat: a practice workspace keeps hc's skills and AGENTS.md block in step with hc (#143)
- 8e5ebcf feat: a practice workspace's .gitignore leaves out what hc generates next to solutions (#145)
- 9c3fd6f feat: browse the cases of a run in the result and submission screens (#156)
- 814711d feat: restyle the TUI (#154)
Bug fixes
- e6a734b fix: a practice workspace's Python environment below the minimum is recreated (#142)
- 06f9759 fix: hc test runs only the marked examples, and refuses a problem without any (#141)
- e7eedbc fix: the statement follows the terminal between light and dark (#153)
Others
v0.1.0-alpha.11
Changelog
Features
- 1355f40 feat!: the protocol's minimum Python is 3.12 (#136)
- d4731f6 feat: debug the first failing case of the current code (#121)
- 4267c2d feat: hc init and hc pack init set up Python, with one guide when it cannot be (#137)
- 4c0d9d0 feat: hc init suggests installing the official LeetCode pack (#119)
- 10cf8bc feat: the TUI list's h shows the history of every problem (#122)
- 3d0193b feat: the practice workspace's AGENTS.md guides agents helping the user learn (#125)
Bug fixes
- 90ffc74 fix: a run that stopped early shows no total time (#120)
- 021e244 fix: hc history resolves a submission's problem exactly (#123)
Others
v0.1.0-alpha.10
Changelog
Features
- 3162756 feat: hc test --file and --generate (#108)
- b6e2c2d feat: hc-cases has worst-shape cases take most of the reference's time (#117)
- 2f5c1c9 feat: hc-cases puts most large cases in the slower solution's worst shape (#114)
- c9f2988 feat: judge a solution only with a reference in its language; drop judge.timeout (#111)
- aa8d92a feat: time limits of 40 times the reference, its time at least 1.25ms (#116)
- 4a1a100 feat: time limits relative to the same-language reference (#112)
Bug fixes
- d6d6a6f fix: Python 3.10 recurses deep in a thread with a large stack (#118)
- 59737d1 fix: a pack checkout runs Python on the protocol's minimum, as its CI does (#101)
- 7a0019f fix: agents keep scratch files per problem, in .hc/scratch// (#104)
- a5f52de fix: check.yml turns off setup-go's cache, which a pack cannot key (#100)
- e060ead fix: class problems time only the calls into the solution (#107)
- b372fd1 fix: hc pack install clones quietly when its output is not a terminal (#106)
- ea34234 fix: the report's total is the sum of the case times, and Go reuses unchanged builds (#110)
- f3544a4 fix: time-limit tests leave room for coarse sleeps on macOS (#115)
v0.1.0-alpha.9
Changelog
Features
- 52f0fc5 feat: generated cases keep large inputs out of packs (#88)
- c731aa6 feat: hc cases list --expand shows what generator.py builds (#91)
- 12f9cf4 feat: hc leetcode login authorizes in the browser
- d77946a feat: hc leetcode login takes only LEETCODE_SESSION
- 1703449 feat: hc leetcode status shows which sites hc is logged in to (#96)
- 623c30e feat: log the agent's trace of hc gen and hc fix in .hc (#94)
- 418c6e3 feat: run and submit solutions on LeetCode with hc leetcode (#89)
Bug fixes
- 058118f fix: hc leetcode logout forgets every site's session by default