Index of every page on this site: llms.txt
All skills
ponylang avatar

/pony-ensemble

@0d5a5c2
by Ponyponylang/llm-skills11 stars
Run it yourself

Ensemble workflow for producing higher-confidence outputs through decorrelated reasoning paths. Load when the human explicitly requests the ensemble approach.

Use this Skill: https://skilld.dev/gh/ponylang/llm-skills/pony-ensemble

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈43 tokens for metadata: the name and description. ≈1k when used: this file.

Description uses 2.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈174 characters, or 2.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Ensemble Workflow

Produce higher-confidence outputs through decorrelated reasoning paths. Multiple agents work the same problem with slightly different attention focuses, then a synthesizer integrates their reviewed outputs. Small differences in focus cascade through the reasoning chain, producing meaningfully different outputs that cover more of the solution space than any single attempt.

Process

  1. Spawn one agent per attention focus in parallel, each as a fresh-context sub-agent using your most capable model. Each agent's prompt must include:
    • Instructions to read the project AGENTS.md if applicable and follow its conventions, including loading any skills it references
    • The task description
    • An attention focus — a short directive that shifts where the agent goes deeper (e.g., "pay particular attention to security implications"). This is a spotlight, not blinders — the agent still covers everything
    • The agent output format (below)
    • Instructions to run a reviewer loop before returning — a reviewer checks the agent's output for quality and coherence before it goes to the orchestrator
    • Instructions that this is an ensemble agent — return output and any local file paths to the orchestrator. Do not take external actions (publishing to GitHub Discussions, creating PRs, pushing branches, etc.)
  2. Triage agent outputs before synthesis. Read each agent's output and check:
    • Did the agent address the actual task, or did its attention focus pull it off-topic?
    • Is the output coherent and complete, or did the agent fail partway through?
    • Are the outputs answering the same question, or did one interpret the task differently? If an agent went off-topic or answered the wrong question, either re-prompt it with clarification or exclude its output and note why for the synthesizer. Don't forward garbage to synthesis and hope it sorts itself out.
  3. Pass triaged agent outputs to a synthesis agent loaded with pony-synthesize
  4. Reviewer loop on the synthesis
  5. Present to the human

Don't edit the artifact mid-round

When an ensemble review runs against a mutable artifact — a working tree, a draft — freeze the artifact until every agent in the round has returned, and apply findings between rounds, never during one. The agents run in parallel against the same artifact; if you edit while they run, each reads a different version, no two agents review the same thing, and the round's agreement is worthless. A finding urgent enough to fix at once is a reason to stop the round, not to edit under it.

Attention Focuses

Specified per invocation — the human provides them, or the orchestrator selects contextually appropriate ones. They should be small perturbations, not fundamentally different approaches. The diversity comes from how small differences cascade through the reasoning chain.

Fix reviews require an adversarial focus

When reviewing a fix (bug fix, security fix, race condition fix), always include an adversarial agent alongside whatever other focuses are specified. The adversarial agent's job is goal-directed: "The PR claims to fix X. Construct a concrete scenario where X still occurs despite the fix. Work backward from the bug's symptoms, not forward from the fix's mechanism." The other agents will verify the fix was applied correctly (positive check). The adversarial agent tries to break it (negative check). Positive checks are bounded by whatever search terms and code paths the orchestrator thinks to include in the prompt. The adversarial check is bounded by the bug itself, which makes it harder to miss adjacent instances of the same problem class.

Agent Output Format

Every agent produces:

  • Approach: The actual output (research findings, plan, or code)
  • Key decisions: For each significant choice — what was decided, alternatives considered, confidence level, and reasoning
  • Uncertainties: Things the agent wasn't sure about, flagged explicitly
  • Assumptions: Things taken as given that could be wrong

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill implements an ensemble reasoning workflow using multiple AI agents with different focuses. It includes built-in quality checks and synthesis of outputs. No security issues were detected.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 0d5a5c2. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
disable-model-invocation
false

README badge

README badge for ponylang/llm-skills/pony-ensemble