Skip to content

feat(models): add model-aware runtime metadata - #37

Merged
patlux merged 2 commits into
mainfrom
feat/model-catalog-runtime
Aug 7, 2026
Merged

feat(models): add model-aware runtime metadata#37
patlux merged 2 commits into
mainfrom
feat/model-catalog-runtime

Conversation

@patlux

@patlux patlux commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • enrich only known models with supported reasoning levels and forward mapped reasoning_effort
  • bound model discovery with a configurable timeout and validated cache fallback
  • add /commandcode-refresh and /commandcode-status with coalescing and redacted diagnostics

Verification

  • npm test
  • npm run format:check
  • git diff --check

Notes

  • OMP process test skips because omp is not installed on the test host; legacy nested reasoning metadata remains covered by unit tests.

@patlux patlux self-assigned this Aug 7, 2026
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Memory benchmark

Compared base 8562009 with PR head c0d126c on the same GitHub-hosted darwin runner. Lower values are better.

Metric Base PR PR − Base Change
Stable RSS 167.0 MiB ± 0.4 MiB 168.1 MiB ± 0.5 MiB +1.3 MiB ± 0.9 MiB +0.8%
Physical footprint 110.4 MiB ± 0.4 MiB 111.0 MiB ± 0.8 MiB +0.9 MiB ± 0.4 MiB +0.8%
Physical peak 126.6 MiB ± 0.5 MiB 127.6 MiB ± 0.6 MiB +1.7 MiB ± 1.3 MiB +1.3%

Interpretation: Differences larger than their measured MAD: Stable RSS +1.3 MiB ± 0.9 MiB, Physical footprint +0.9 MiB ± 0.4 MiB, Physical peak +1.7 MiB ± 1.3 MiB.

Extension overhead above pi baseline

Metric Base overhead PR overhead Difference
Stable RSS +6.6 MiB ± 0.6 MiB +7.5 MiB ± 1.6 MiB +1.3 MiB ± 0.9 MiB
Physical footprint +4.0 MiB ± 0.3 MiB +4.6 MiB ± 0.5 MiB +0.9 MiB ± 0.4 MiB
Physical peak +3.2 MiB ± 0.6 MiB +4.6 MiB ± 0.8 MiB +1.7 MiB ± 1.3 MiB

Values are medians of 6 alternating, paired runs. The value after ± is the median absolute deviation (MAD). Each process was sampled 12 times after a 2500 ms warm-up.

Environment: pi 0.82.1, Bun 1.3.11, darwin arm64. RSS comes from ps; physical footprint and peak come from macOS footprint.

This is a comparative signal, not a pass/fail threshold. GitHub-hosted runner noise can affect absolute values.

@patlux

patlux commented Aug 7, 2026

Copy link
Copy Markdown
Owner Author

Synced reasoning metadata exactly with the current published command-code@1.14.1 model catalog:

  • removed five models whose CLI catalog has no adjustable efforts
  • added Qwen/Qwen3.8-Max with low, medium, xhigh
  • removed the inferred defaultLevel
  • separated Pi's nullable thinkingLevelMap from canonical OMP thinking: { mode: "effort", efforts, effortMap }
  • added an exact catalog regression fixture

Verified with npm test, npm run format:check, and git diff --check.

@patlux
patlux merged commit 83a228a into main Aug 7, 2026
12 checks passed
@patlux
patlux deleted the feat/model-catalog-runtime branch August 7, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant