free-coding-models 0.5.41 → 0.5.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -466,6 +466,84 @@ When a tool mode is active (via `Z`), models incompatible with that tool are hig
466
466
 
467
467
  ---
468
468
 
469
+ ## π Pi Extension — FCM-Pi
470
+
471
+ **FCM-Pi** is a native [Pi coding agent](https://pi.dev) extension that integrates `free-coding-models` directly into your Pi session. It auto-selects the best free model on startup, shows a live animated scan in the Pi status bar, and lets you hot-swap models mid-session.
472
+
473
+ > **Requires**: Pi coding agent (pi.dev) + free-coding-models installed and configured with at least one API key.
474
+
475
+ ### Installation
476
+
477
+ Add the extension to your Pi settings (`~/.pi/agent/settings.json`):
478
+
479
+ ```json
480
+ {
481
+ "packages": [
482
+ "../../Documents/GitHub/free-coding-models/pi-extension"
483
+ ]
484
+ }
485
+ ```
486
+
487
+ Or install directly from the Pi shell once published to npm:
488
+ ```bash
489
+ pi install npm:fcm-pi
490
+ ```
491
+
492
+ ### What it does
493
+
494
+ | Feature | Description |
495
+ |---------|-------------|
496
+ | **Auto-scan on startup** | On every Pi session start, FCM pings ~30 candidate models in parallel and selects the best one automatically |
497
+ | **Animated progress scan** | While scanning, the Pi status bar shows a live magenta spinner with the model + provider being probed and a real-time % progress |
498
+ | **Provider in status bar** | The active model is displayed as `GLM 4.7 (Cerebras) [FCM S+]` so you always know exactly what's running |
499
+ | **10-minute disk cache** | Results are cached to `~/.pi/agent/fcm-cache.json` — subsequent session starts are instant |
500
+ | **Auto-failover** | If a request fails (HTTP 4xx/5xx), FCM auto-triggers a fresh scan and switches to the next best model |
501
+ | **Daemon integration** | If the FCM router daemon is running (`free-coding-models --daemon-bg`), scan results are fetched instantly from its cache |
502
+
503
+ ### Scan progress display
504
+
505
+ During `/fcm` or on session start, the Pi footer status shows:
506
+
507
+ ```
508
+ ⠸ Probing: Kimi K2.6 [Nvidia], Step 3.5 Flash [Stepfun] — 47% (14/30)
509
+ ⠼ Benchmarking: GLM 4.7 [Cerebras] — 60% (3/5)
510
+ ```
511
+
512
+ - **Spinner** — 10-frame Braille animation at 80ms
513
+ - **Phase label** — `Probing` (ping phase) or `Benchmarking` (AI latency phase)
514
+ - **Live model name + provider** — shows the last 2 models being probed, scrolling as results come in
515
+ - **Progress %** and counter always visible
516
+
517
+ ### Commands
518
+
519
+ | Command | Description |
520
+ |---------|-------------|
521
+ | `/fcm` | Re-scan and pick a model interactively from the top 10 ranked |
522
+ | `/fcm-list` | Display a ranked table of top 20 available models (SWE / Latency / TPS / Provider) |
523
+ | `/fcm-router` | Connect Pi to the local FCM Smart Router daemon (auto-failover across providers) |
524
+ | `/fcm-status` | Show diagnostics: active model, last scan source, daemon state |
525
+
526
+ ### Composite ranking
527
+
528
+ Models are ranked using a composite score:
529
+
530
+ | Weight | Metric | Description |
531
+ |--------|--------|-------------|
532
+ | **60%** | SWE-bench score | Coding capability |
533
+ | **20%** | Latency | Network round-trip response time |
534
+ | **10%** | TPS | Token throughput speed |
535
+ | **10%** | Stability | Uptime + success rate |
536
+
537
+ ### Context window limits
538
+
539
+ Cerebras free-tier API has a strict **8192 total token limit** (prompt + tools + completion). The FCM catalog reflects this accurately so Pi allocates the right budget and doesn't overflow the context silently.
540
+
541
+ ### Full documentation
542
+
543
+ See [`pi-extension/README.md`](./pi-extension/README.md) for the complete architecture diagram, config format, and troubleshooting guide.
544
+
545
+ ---
546
+
469
547
  ## ⌨️ TUI Keys
470
548
 
471
549
  ### Keyboard
@@ -0,0 +1,6 @@
1
+ # Changelog v0.5.42 - 2026-07-07
2
+
3
+ ### Added
4
+ - Added an animated magenta progress spinner in the Pi TUI status line during candidate scans.
5
+ - Added live rolling displays of the specific model and provider currently being probed or benchmarked.
6
+ - Integrated the provider name (e.g., `Cerebras`, `Nvidia`) directly into the active model name shown in the Pi status line.
@@ -0,0 +1,5 @@
1
+ # Changelog v0.5.43 - 2026-07-07
2
+
3
+ ### Added
4
+ - **Pi Extension documentation**: Added a full `## π Pi Extension — FCM-Pi` section to the main `README.md` covering installation, scan progress display, commands, composite ranking, and context window notes.
5
+ - **Rewrote `pi-extension/README.md`**: Complete documentation rewrite covering all current features — animated progress scan, provider-in-status-bar, auto-failover, daemon integration, file structure, and provider-specific notes (Cerebras limits, NVIDIA NIM quota).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-coding-models",
3
- "version": "0.5.41",
3
+ "version": "0.5.43",
4
4
  "description": "Find the fastest coding LLM models in seconds — ping free models from multiple providers, pick the best one for OpenCode, Cursor, or any AI coding assistant.",
5
5
  "keywords": [
6
6
  "nvidia",