Repository navigation
Releases
Releases · luxsolari/hannah
v0.10.5
Added
- Precompiled installers: unsigned
.pkg(macOS, Apple Silicon) and.msi(Windows, x64) builds of the CLI, produced via PyInstaller +pkgbuild/WiX Toolset v4 and attached automatically to GitHub Releases on everyv*.*.*tag push (.github/workflows/installers.yml). README documents the Gatekeeper/SmartScreen workarounds needed since the binaries are unsigned. - Conventional Commits enforcement: local
commit-msg/pre-pushgit hooks reject non-Conventional-Commit subjects and block direct pushes tomain(scripts/hooks/, activated viacore.hooksPath).AGENTS.md/CLAUDE.mddocument the rules for humans and agents alike. - GitHub Release automation:
.github/workflows/release.ymlpublishes a GitHub Release from the matchingCHANGELOG.mdsection on every version tag push, or via manualworkflow_dispatchfor backfilling releases on existing tags. - MIT LICENSE file.
Fixed
- Three issues in the Windows installer job surfaced only by a real CI run (impossible to catch via static YAML/XML review): WiX Toolset v7's Open Source Maintenance Fee EULA now requires explicit acceptance (
wix.exe eula accept wix7); the WiX<Package>element's attributes must be PascalCase (Name/Manufacturer/Version/UpgradeCode);<Environment>is a core WiX schema element, not part of the Util extension. - Guarded the installer upload steps against a race with
release.yml— both fire independently on the same tag push, so uploads now poll until the GitHub Release exists before attaching assets.
v0.7.3
Fixed
- Leaderboard model ID resolution: HuggingFace leaderboards index base model IDs (e.g.
Qwen/Qwen2.5-14B) while the catalog uses instruct/coder variant IDs (e.g.Qwen/Qwen2.5-Coder-14B-Instruct). This mismatch caused zero MMLU-Pro and HLE scores to be fetched in v0.7.2. Added_LEADERBOARD_ID_MAPinbenchmarks.pythat translates catalog IDs to their leaderboard equivalents before each lookup. MMLU-Pro scores now land for four models: Coder-14B (63.7%), Coder-32B (69.2%), Coder-72B (71.6%), Llama-3.1-8B (36.6%). Newer models not yet in the leaderboard (Qwen3.5-9B, Qwen3-14B, Gemma4-12B) continue to return no scores gracefully.
v0.7.2
Added
- Live benchmark fetching (
hannah/catalog/benchmarks.py): new module fetches real benchmark scores from verified public sources using pure stdlib (urllib.request). Sources: HuggingFace Dataset Leaderboard API for MMLU-Pro (TIGER-Lab/MMLU-Pro) and HLE (cais/hle); HuggingFace Model API cardeval_resultsfor HumanEval and MBPP; BFCL (gorilla.cs.berkeley.edu) best-effort. All sources fail silently — partial or empty results are normal on first run. - 7-day local cache: scores are written to
~/.cache/hannah/benchmarks.jsonand reused for 7 days. Zero network calls on a warm cache; stale entries are merged with fresh results on refresh. - Expanded
ModelCandidatefields:hf_model_id(HuggingFace repo slug for leaderboard lookup),mmlu_pro,hle,bfcladded alongside the existinghumaneval/mbpp. All 9 catalog entries now carry anhf_model_id; MLX variants share their base model's slug. Benchmark score fields remainNonein the catalog — populated at runtime from the fetch. - Per-eval per-track scoring weights (
_BENCH_WEIGHTS): development track leans onhumaneval(×1.5) andbfcl(×0.8); general track leans onmmlu_pro(×1.0) andhle(×0.8); inference track leans onmmlu_pro(×0.8) andhle(×0.6). Replaces the singlebest_benchscalar from v0.7.0. - Benchmark labels in
whystring: when scores are available, the recommendation summary appends up to 3 benchmark labels (e.g.humaneval=88%, bfcl=72%). _enrich_with_benchmarks()method: usesdataclasses.replace()to inject fetched scores into frozenModelCandidateobjects before scoring (same pattern as pull-status enrichment).recommend(benchmark_scores=)parameter: caller passes the scores dict; registry stays testable with injected fixtures.- 15 new tests (44 total):
BenchmarkCacheTests(8 tests: cache TTL, normalization, leaderboard ID matching, graceful network failure) + 7 extendedBenchmarkScoringTests(weight inspection, field enrichment, end-to-end inject).
Fixed
datetime.utcnow()deprecation: replaced withdatetime.now(datetime.UTC)throughoutbenchmarks.pyand tests.
v0.7.1
Fixed
- Removed hallucinated benchmark scores:
humanevalandmbppvalues in the v0.7.0 catalog were approximate figures recalled from training data, not verified against primary sources. All catalog entries now carryNonefor both fields. The benchmark bonus in_score()is dormant until v0.7.2 adds live fetching from a verified source. Thehumaneval/mbppfields remain onModelCandidateand the scoring logic is intact.
v0.7.0
Added
- Dynamic catalog discovery — community models:
detect_uncatalogued()cross-references locally pulled Ollama models against the static catalog; calls/api/show(GGUF metadata) per uncatalogued model to extract the architectural context window. Passing candidates appear as[community · unscored]in a new 🔍 GARAGE DISCOVERIES section. - Dynamic catalog discovery — Ollama library scan:
scan_library()performs a best-effort HTML scrape ofhttps://ollama.com/library, extracts model family names + parameter size hints, estimates q4 disk size, and filters by VRAM budget. Library candidates appear as[library · unscored]below community entries. Fails completely silently on network error. - Benchmark-aware scoring:
ModelCandidategainshumaneval: Optional[float]andmbpp: Optional[float]. All 9 catalog entries now carry published HumanEval + MBPP pass@1 scores._score()adds a +0.5/+1.0/+1.5 tier bonus on the development track (halved on other tracks), making benchmark performance a meaningful tiebreaker without overriding VRAM fit. - Multi-GPU VRAM summation:
_probe_gpu()now sums VRAM across all detected GPUs for NVIDIA (nvidia-smimulti-line output) and AMD (rocm-smimulti-row CSV).HardwareSpecgainsgpu_count: int = 1;summary()prefixes"N×"for multi-GPU. A note is added whengpu_count > 1. RecommendResultdataclass: wrapspodium(curated top-5) anddiscoveries(unscored dynamic candidates). Implements__iter__/__len__/__bool__/__getitem__delegating topodiumfor backward compatibility.Discoverydataclass:name,family,size_gb,context_k,quant,source,pulled..tagproperty returns"community · unscored"or"library · unscored".discoveries[]in JSON schema:hannah/analysis@1now includes adiscoveriesarray alongsiderecommendations.- Discoveries in
/hannah:strategy:commands/strategy.mdupdated to render the discoveries block whendiscoveries[]is non-empty. - 14 new tests (29 total):
MultiGpuTests,BenchmarkScoringTests,UncataloguedDetectionTests,LibraryScanTests, plus 2 newHardwareTests.
v0.6.2
Fixed
- Catalog context windows corrected from GGUF metadata: previous values came from model announcements, not the actual architectural limits embedded in the GGUF files. Verified via
ollama show --modelfile/ Ollama APImodel_info.*context_length:qwen3:14b-q4_k_m: 128K → 40,960 (qwen3.context_length) — falls below 64K agentic minimum, now correctly excluded from development/general tracksgemma4:12b/gemma4:12b-mlx: 256K → 131,072 (gemma4.context_length)qwen3.5:9b/qwen3.5:9b-mlx: 256K → 262,144 (qwen35.context_length)qwen2.5-coder:32b-instruct/72b-instruct: 128K → 32,768 (same qwen2 architecture as 14b, which was already confirmed at 32K) — both now filtered from agentic tracks
v0.6.0
Added
- Platform-aware Ollama config hints: race notes now detect the host environment and emit the correct configuration workflow for each platform:
- macOS (launchd):
launchctl setenvcalls forOLLAMA_FLASH_ATTENTION,OLLAMA_CONTEXT_LENGTH,OLLAMA_KEEP_ALIVE;killall Ollama && open -a Ollamato apply. - Linux native / WSL2 + systemd:
systemctl edit ollamadrop-in withEnvironment=lines;daemon-reload && restart. AMD path notes RDNA3+ requirement for flash attention. - WSL2 without systemd:
exportlines for~/.bashrc; notesOLLAMA_HOST=host.docker.internal:11434for the common case where Ollama runs on the Windows host. - Windows native:
[Environment]::SetEnvironmentVariablePowerShell calls atUserscope; restart from system tray.
- macOS (launchd):
- WSL2 detection via
/proc/version("microsoft"substring); systemd presence via/run/systemd/private.
v0.5.1
Fixed
- Linux Ollama config via systemd: race notes now emit the correct
systemctl edit ollamaworkflow instead of a bare env-var hint. AddsEnvironment=lines forOLLAMA_FLASH_ATTENTION,OLLAMA_CONTEXT_LENGTH, andOLLAMA_KEEP_ALIVEunder[Service], followed by the reload+restart command. Separates service-level env vars from per-request model params (num_gpu=999). macOS keeps the model-param format (no systemd). CPU-only Linux getsOLLAMA_CONTEXT_LENGTH+OLLAMA_NUM_PARALLELhints.
v0.5.0
Added
- Per-backend Ollama config hints in race notes: race notes now emit actionable Ollama parameters tailored to detected hardware, replacing the Apple-Silicon-only generic hint:
darwin/mlx—num_gpu=999 flash_attention=1 num_ctx=N keep_alive=-1(pins model in Metal unified memory)cuda/nvidia—num_gpu=999 flash_attention=1 num_ctx=Nrocm/amd—num_gpu=999 num_ctx=N+OLLAMA_FLASH_ATTENTION=1env var note (RDNA3+ / 7000–9000 series)cpu-only—num_gpu=0 num_thread=<cores-2> num_ctx=N(ctx halved to limit RAM pressure)num_ctxis derived from repo complexity score (128K or 256K) so it can be pasted directly into a modelfile or API call.
Changed
- Extracted
_race_notes()from bothconsole.pyandjson.pyinto a sharedhannah/reporters/notes.pymodule — single implementation, no divergence risk.
v0.4.2
Fixed
- qwen2.5-coder:14b-instruct actual context window: catalog listed 128K (architecture maximum) but Ollama provisions this model with a 32,768-token default context. Updated
context_kto32768so the 64K agentic filter correctly excludes it from development/general track recommendations, preventing it from appearing on a podium where it will fail agentic tools like Hermes.