autocontext

Evaluate and iteratively improve agent outputs using LLM-based judging with rubric-driven scoring.

1.3k|116|Updated Feb 11, 2026
Ready to run
npx skills add https://github.com/greyhaven-ai/autocontext --skill autocontext-greyhaven-ai
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: autocontext
Source: https://github.com/greyhaven-ai/autocontext/tree/main/pi/skills/autocontext
Command: npx skills add https://github.com/greyhaven-ai/autocontext --skill autocontext-greyhaven-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This Skill eliminates the need to manually review agent outputs and iterate on improvements. Instead of running a single task and hoping for quality, you can systematically evaluate performance, identify gaps, and automatically refine outputs through judge-guided feedback loops. ## Core Features & Use Cases - LLM-Based Judging: Score agent outputs against custom rubrics on a 0-1 scale with per-dimension reasoning. - Iterative Improvement: Automatically revise outputs based on judge feedback until quality thresholds are met. - Background Task Queuing: Enqueue evaluation tasks for asynchronous processing and check status later. - Scenario Discovery: List and explore available evaluation scenarios organized by family. - Use Case: You have an agent generating documentation. Use autocontext to judge each output against a rubric (clarity, completeness, accuracy), automatically revise weak sections, and track improvement across iterations until it meets your quality bar. ## Quick Start Evaluate your agent's output by judging it against a rubric to get a quality score with detailed feedback on each dimension.

Frequently Asked Questions about autocontext

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I judge agent output quality using autocontext?▼

Call autocontext_judge with your task prompt, the agent's output, and a rubric defining quality dimensions. The LLM scorer returns a 0-1 score with reasoning and per-dimension breakdowns showing where the output succeeded or fell short.

How does autocontext automatically improve agent outputs?▼

autocontext_improve runs multiple rounds where the judge scores the output, provides feedback, the agent revises based on that feedback, and the judge re-evaluates. This continues until the quality score meets your threshold or max rounds are exhausted.

Can I run background evaluation tasks without waiting for results?▼

Yes. Use autocontext_queue to enqueue evaluation tasks for asynchronous processing by the task runner daemon. Check status anytime with autocontext_status using the run ID.

What evaluation scenarios are available in autocontext?▼

Call autocontext_scenarios to discover available evaluation families and specific scenarios. Results can be filtered by family name to find scenarios matching your task type.

How do I inspect runtime artifacts and session lineage?▼

Use autocontext_runtime_snapshot with a run ID to inspect artifacts, package provenance, and branchable session history. Add session_id to retrieve the active branch path before continuing work.

What configuration does autocontext need to run?▼

autocontext auto-detects configuration from .autoctx.json in your working directory, environment variables (AUTOCONTEXT_PROVIDER, AUTOCONTEXT_API_KEY, AUTOCONTEXT_MODEL), or falls back to Pi's configured LLM provider.