agent-library: Command for Gemini CLI

.gemini/commands/fix-behavioral-eval.toml

fix-behavioral-eval is a command for Gemini CLI from bl1nk-bot/agent-library. It costs 0 tokens per session (894 once invoked), scanned A, original, CC0-1.0.

A workflow command for investigating failing nightly behavioral evaluations, making a targeted code fix, and rerunning the relevant test locally.

In plain words
What is it for?
Debugging model behavior in a specific evaluation, reviewing logs, adding temporary diagnostics, and validating the result.
Why use it?
It structures the process of tracing an evaluation failure and checking whether a focused fix resolves it.

Command for Gemini CLI

Written for Gemini CLI: installed under .gemini/. Also seen: mentions subagents; mentions Gemini CLI.

This is bl1nk-bot/agent-library's own configuration. It tells Gemini CLI how to work on agent-library itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-library configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bl1nk-bot/agent-library. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bl1nk-bot/agent-library/main/.gemini/commands/fix-behavioral-eval.toml
Clone the repo
git clone --depth 1 https://github.com/bl1nk-bot/agent-library

Made for: Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-behavioral-eval

README.md
[![agentmods](https://agentmods.dev/badge/commands/bl1nk-bot/agent-library/fix-behavioral-eval.svg)](https://agentmods.dev/commands/bl1nk-bot/agent-library/fix-behavioral-eval)
Your own site
<a href="https://agentmods.dev/commands/bl1nk-bot/agent-library/fix-behavioral-eval"><img src="https://agentmods.dev/badge/commands/bl1nk-bot/agent-library/fix-behavioral-eval.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 894 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00894
Opus 5 $0.00000 $0.00447
Sonnet 5 $0.00000 $0.00179
Haiku 4.5 $0.00000 $0.00089

Measured 3d ago against content hash 73c6e12da40a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

fix-behavioral-eval scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.gemini/commands/fix-behavioral-eval.toml · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

description = "Check status of nightly evals, fix failures for key models, and re-run." prompt = """ You are an expert at fixing behavioral evaluations.

  1. Investigate:

    • Use 'gh' cli to fetch the results from the latest run from the main branch: https://github.com/google-gemini/gemini-cli/actions/workflows/evals-nightly.yml.
    • DO NOT push any changes or start any runs. The rest of your evaluation will be local.
    • Evals are in evals/ directory and are documented by evals/README.md.
    • The test case trajectory logs will be logged to evals/logs.
    • You should also enable and review the verbose agent logs by setting the GEMINI_DEBUG_LOG_FILE environment variable.
    • Identify the relevant test. Confine your investigation and validation to just this test.
    • Proactively add logging that will aid in gathering information or validating your hypotheses.
  2. Fix:

    • If a relevant test is failing, locate the test file and the corresponding prompt/code.
    • It's often helpful to make an extreme, brute force change to see if you are changing the right place to make an improvement and then scope it back iteratively.
    • Your final change should be minimal and targeted.
    • Keep in mind the following:
      • The prompt has multiple configurations and pieces. Take care that your changes end up in the final prompt for the selected model and configuration.
      • The prompt chosen for the eval is intentional. It's often vague or indirect to see how the agent performs with ambiguous instructions. Changing it should be a last resort.
      • When changing the test prompt, carefully consider whether the prompt still tests the same scenario. We don't want to lose test fidelity by making the prompts too direct (i.e.: easy).
      • Your primary mechanism for improving the agent's behavior is to make changes to tool instructions, prompt.ts, and/or modules that contribute to the prompt.
      • If prompt and description changes are unsuccessful, use logs and debugging to confirm that everything is working as expected.
    • If unable to fix the test, you can make recommendations for architecture changes that might help stablize the test. Be sure to THINK DEEPLY if offering architecture guidance. Some facts that might help with this are:
      • Agents may be composed of one or more agent loops.
      • AgentLoop == 'context + toolset + prompt'. Subagents are one type of agent loop.
      • Agent loops perform better when:
        • They have direct, unambiguous, and non-contradictory prompts.
        • They have fewer irrelevant tools.
        • They have fewer goals or steps to perform.
        • They have less low value or irrelevant context.
      • You may suggest compositions of existing primitives, like subagents, or propose a new one.
      • These recommendations should be high confidence and should be grounded in observed deficient behaviors rather than just parroting the facts above. Investigate as needed to ground your recommendations.
  3. Verify:

    • Run just that one test if needed to validate that it is fixed. Be sure to run vitest in non-interactive mode.
    • Running the tests can take a long time, so consider whether you can diagnose via other means or log diagnostics before committing the time. You must minimize the number of test runs needed to diagnose the failure.
    • After the test completes, check whether it seems to have improved.
    • You will need to run the test 3 times for Gemini 3.0, Gemini 3 flash, and Gemini 2.5 pro to ensure that it is truly stable. Run these runs in parallel, using scripts if needed.
    • Some flakiness is expected; if it looks like a transient issue or the test is inherently unstable but passes 2/3 times, you might decide it cannot be improved.
  4. Report:

    • Provide a summary of the test success rate for each of the tested models.
    • Success rate is calculated based on 3 runs per model (e.g., 3/3 = 100%).
    • If you couldn't fix it due to persistent flakiness, explain why.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 60 lines · 0 tokens per session scan A 73c6e12da40a

Subscribe to this mod's changes

fix-behavioral-eval is a command published in the GitHub repository bl1nk-bot/agent-library (2 stars, last pushed today), licensed CC0-1.0. It costs nothing until one of its globs matches a file; then it loads 894 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.