Skip to main content

agent-cold-start

Harness Health Check diagnostic tool and cold-start benchmark for AI coding agents (Schema v3.0, backward compatible with Schema v2.0 / v2.1).

agent-cold-start deterministically evaluates repository onboarding clarity and harness health. Powered by an in-memory TF-IDF text matcher (DefaultMatcher using standalone yeny utilities with zero disk footprint), it classifies repository comprehension into actionable 5-tier health states (OPTIMAL, HEALTHY, STABLE, DEGRADED, AT_RISK, plus INVALID) with built-in anti-contamination safeguards.

1. Prerequisites & Global Installation

Install pipx via system package manager and ensure user PATH is configured:

# Ubuntu / Debian:
sudo apt update && sudo apt install -y pipx && pipx ensurepath

# Fedora / RHEL:
sudo dnf install -y pipx && pipx ensurepath

# Install from PyPI:
pipx install agent-cold-start
# Or with pip:
pip install agent-cold-start

# Optional: install latest development main branch or local source:
# pipx install git+https://github.com/Ariiies/agent-cold-start.git
# pipx install -e /path/to/agent-cold-start

Install the skill globally from a cloned copy of this repository:

# Cursor:
mkdir -p ~/.cursor/skills && cp -r skill/cold-start-test ~/.cursor/skills/

# Codex / Gemini CLI / other agents:
mkdir -p ~/.agents/skills && cp -r skill/cold-start-test ~/.agents/skills/

2. Quick Start: Minimal eval.json (Schema v3.0)

In Schema v3.0, you only need a top-level JSON array (or YAML list) of 3 to 15 question objects at .harness/eval.json (or eval.json at repo root). Only "question" and "expected_answer" are required — no config file is needed to get started (see skill/cold-start-test/references/eval.template.json for a starter template):

[
  {
    "question": "How is text similarity scored and how does it avoid disk I/O?",
    "expected_answer": "DefaultMatcher runs pure in-memory TF-IDF scoring using standalone yeny.utils helpers with zero disk footprint."
  },
  {
    "question": "Which CLI subcommands orchestrate an evaluation?",
    "expected_answer": "The CLI provides validate, start, and evaluate subcommands."
  },
  {
    "question": "How is benchmark contamination prevented?",
    "expected_answer": "The start command sanitizes questions and agents never open eval.json."
  }
]

With the minimal 2-field format:

  • id auto-generates as "q1", "q2", "q3", ... by 1-based index.
  • category defaults to "general", weight defaults to 1.0, and max_words defaults to 60.
  • Because key_concepts and expected_paths are omitted, weights dynamically redistribute to score 100% via yeny similarity.

3. Optional config.yaml / config.json & Advanced Question Options

For project metadata, custom scoring weights, thresholds, language enforcement, harness file verification, time-cap enforcement, or global guardrails, add an optional config.yaml (or config.yml / config.json) alongside eval.json (or pass --config PATH). See skill/cold-start-test/references/config.yaml, examples/basic/config.json, and examples/basic/eval.json.

config.yaml Fields & Defaults

schema_version: "3.0"
project: "my-project"
language: "en"
time_limit_seconds: 180
enforce_time_cap: true
default_max_words: 60

thresholds:
  optimal: 90.0
  healthy: 80.0
  stable: 70.0
  degraded: 60.0

scoring_weights:
  concepts: 0.50
  paths: 0.25
  similarity: 0.25

harness_checks:
  missing_file_penalty: 5.0
  required_files:
    - "AGENTS.md"

global_forbidden: []
  • language (optional): Expected answer language (e.g., "en", "es"). Emitted in sanitized start output so agents answer in the configured language.
  • enforce_time_cap (default true): When true and elapsed_seconds > time_limit_seconds, caps OPTIMAL and HEALTHY health states down to STABLE.
  • default_max_words (default 60): Default max_words applied to questions that omit max_words (set "max_words": null on a question to disable its limit).
  • scoring_weights (default 0.50 / 0.25 / 0.25): Keys concepts, paths, and similarity. All values must be finite numbers >= 0.0 summing to 1.0 (within 1e-6).
  • harness_checks (optional): required_files (list of repo-relative paths checked against --repo-root) and missing_file_penalty (default 5.0 points deducted per missing file from final_score, clamped to [0.0, 100.0]).
  • global_forbidden (default []): Prohibited patterns evaluated across every question alongside per-question forbidden rules.
  • Config Discovery: If --config is omitted, the CLI checks sibling config.yaml, then config.yml, then config.json in the same directory as the eval file, falling back to built-in defaults (or embedded settings for legacy Schema v2.0/v2.1 object contracts).

Advanced Question Fields & Scoring Rules

Each question in eval.json also supports optional "id", "category", "weight", "max_words", "key_concepts", "expected_paths", and "forbidden":

  • Dynamic Weight Redistribution: If a question omits expected_paths or key_concepts, active component weights are proportionally re-normalized to sum to 1.0.
  • Alias Groups in key_concepts: Each entry may be a string or a non-empty list of alias strings (e.g., ["in-memory", "in memory", "RAM"]). Matching any alias satisfies the concept; missing concepts report the first alias as the canonical label.
  • Time Adjustment Gate: Positive on-time bonus (+3.0) is awarded only when understanding_score >= thresholds.stable (default 70.0%). Overtime penalties remain unchanged when elapsed_seconds > time_limit_seconds.
  • Backward Compatibility: Legacy Schema v2.0 and v2.1 object contracts ({"schema_version": "2.0"|"2.1", "questions": [...]}) continue to validate and evaluate without changes.

Health States & Scoring

Configurable thresholds default to 90.0 / 80.0 / 70.0 / 60.0:

State Default Score Range Safety Violations Default Exit --strict Exit
OPTIMAL >= 90.0% (optimal) 0 0 0
HEALTHY 80.0%–89.9% (healthy) 0 0 0
STABLE 70.0%–79.9% (stable) 0 0 0
DEGRADED 60.0%–69.9% (degraded) 0 0 1
AT_RISK < 60.0% or >= 1 1 1
INVALID Contaminated ("contaminated": true) — 1 1

4. Usage & CLI Reference

Autonomous Agent Trigger

In any repository with eval.json, prompt:

"Run agent-cold-start" or "Run harness health check"

The agent loads the skill, starts the timer, formulates answers, runs single-shot evaluation, and presents a diagnostic report without reading eval.json or config files.

Manual CLI Commands

# 1. Validate evaluation contract schema (auto-discovers sibling config.yaml -> config.yml -> config.json)
agent-cold-start validate .harness/eval.json
agent-cold-start validate .harness/eval.json --config .harness/config.yaml

# 2. Start session (outputs sanitized questions, session_file timer, and a session-unique answers_file)
agent-cold-start start .harness/eval.json --config .harness/config.yaml

# 3. Evaluate answers submission (write answers to the answers_file from step 2 using the same shell)
agent-cold-start evaluate .harness/eval.json <answers_file> --repo-root . --session-file <session_file>
agent-cold-start evaluate .harness/eval.json <answers_file> --repo-root . --elapsed 42.5 --config .harness/config.yaml

# Optional flags:
# --config PATH        Explicit path to config file (.yaml/.yml/.json; overrides sibling auto-discovery)
# --session-file PATH  Read wall-clock elapsed time from start session file (overrides JSON elapsed_seconds);
#                      answers files older than the session start are rejected as stale
# --elapsed SECONDS    Explicit elapsed time override (highest precedence)
# --strict             Return exit code 1 (and passed=false in JSON) if health status is DEGRADED (OPTIMAL/HEALTHY/STABLE pass)
# --format json        Output machine-readable JSON report

License

MIT (see LICENSE)

Metadata

Release files for agent-cold-start 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-cold-start 0.2.0
File Size Uploaded Provenance Actions
agent_cold_start-0.2.0.tar.gz 65.4 kB Without provenance Details for agent_cold_start-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-cold-start 0.2.0
File Interpreter ABI Platform Actions
agent_cold_start-0.2.0-py3-none-any.whl Python 3 none any Details for agent_cold_start-0.2.0-py3-none-any.whl

Total release size: 102.6 kB

Release files / agent_cold_start-0.2.0.tar.gz

Download URL agent_cold_start-0.2.0.tar.gz
Size 65.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7a78df7136190e8d20bdcb5237d5986586828414d915fc2312449817a5168868
BLAKE2b-256 checksum
How to use checksums
580e2f05a203ae307f52e36e5085512be978843500f9d86a7c7062a0dd389db8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / agent_cold_start-0.2.0-py3-none-any.whl

Download URL agent_cold_start-0.2.0-py3-none-any.whl
Size 37.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2060ca120141027172fe36ce011e3e2dbff34dc3d9b8098e9e50b6c6a58131ee
BLAKE2b-256 checksum
How to use checksums
e13e619e97555a43c7a0774ba7293e85c7470d4410b26db3a58b532c7dd2f9ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for agent-cold-start 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page