← Catalog

@vtstech/pi-model-test

Model benchmark/testing extension for Pi Coding Agent

Package

Install

Install with PiG

pig install npm:@vtstech/pi-model-test

Install with Pi

pi install npm:@vtstech/pi-model-test
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./model-test.js"
  ]
}

README

Written by the package's publisher, shown as published in version 1.3.3 (README.md). PiG does not review it.

@vtstech/pi-model-test

Model benchmark extension for the Pi Coding Agent.

Test any model for reasoning, tool usage, and instruction following — works with Ollama and cloud providers.

# Install as part of the bundle
pi install git:github.com/VTSTech/pi-coding-agent

# Or install individually
pi install "npm:@vtstech/pi-model-test"

Commands

/model-test                     Test current Pi model (auto-detects provider)
/model-test qwen3:0.6b          Test a specific Ollama model
/model-test --all               Test every Ollama model

Test Suites

Ollama (6 tests)

TestScoring
Reasoning (snail puzzle)STRONG / MODERATE / WEAK / FAIL
Thinking token supportSUPPORTED / NOT SUPPORTED
Tool usage (native + text)STRONG / MODERATE / WEAK / FAIL
ReAct parsingSTRONG / MODERATE / WEAK / FAIL
Instruction following (JSON)STRONG / MODERATE / WEAK / FAIL
Tool support detectionNATIVE / REACT / NONE

Cloud Providers (4 tests)

TestScoring
ConnectivityOK / FAIL
ReasoningSTRONG / MODERATE / WEAK / FAIL
Instruction followingSTRONG / MODERATE / WEAK / FAIL
Tool usage (function calling)STRONG / MODERATE / WEAK / FAIL

Features

  • Auto-detects Ollama vs cloud provider (OpenRouter, Anthropic, Google, OpenAI, Groq, DeepSeek, Mistral, xAI, Together, Fireworks, Cohere)
  • Uses native fetch() for all HTTP communication (no shell subprocess or curl dependency)
  • Streaming Ollama chat — uses /api/chat with stream: true for earlier timeout detection and reduced memory
  • Automatic remote Ollama URL resolution (reads from models.json on every call — picks up config changes immediately)
  • Timeout resilience with exponential backoff retry on connection failures
  • Configurable test parameters — override timeouts, delays, temperature via ~/.pi/agent/model-test-config.json
  • Test history with regression detection — tracks results at ~/.pi/agent/cache/model-test-history.json, flags score degradation
  • Rate limit delay between tests (configurable)
  • Thinking model fallback (retries with think: true)
  • Tool support cache (~/.pi/agent/cache/tool_support.json)
  • JSON repair for truncated output (stack-based nesting-aware parser)
  • Tab-completion for model names

License

MIT — VTSTech