ask-another: Instructions file for Claude Code

CLAUDE.md

ask-another CLAUDE.md is an instructions file for Claude Code from matthewgjohnson/ask-another. It costs 1,552 tokens per session, scanned A, original, MIT.

Repository instructions for ask-another, an MCP server that lets Claude Desktop query other language models through one interface. They explain its commands, provider configuration, tests, and release process.

In plain words
What is it for?
Use them to run the server locally, install dependencies, configure providers, run tests, and follow the repository's pull, build, and release workflow.
Why use it?
They help a coding agent work on the project with the right setup and avoid shipping a stale plugin bundle after automated version changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is matthewgjohnson/ask-another's own configuration. It tells Claude Code how to work on ask-another 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 ask-another configures →

Reuse

Borrowing it

Nothing to install: this file belongs to matthewgjohnson/ask-another. 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/matthewgjohnson/ask-another/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/matthewgjohnson/ask-another

Made for: Claude Code.

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 ask-another CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/matthewgjohnson/ask-another/claude-md/github.svg)](https://agentmods.dev/instructions/matthewgjohnson/ask-another/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/matthewgjohnson/ask-another/claude-md"><img src="https://agentmods.dev/badge/instructions/matthewgjohnson/ask-another/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ask-another CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/matthewgjohnson/ask-another/claude-md"><img src="https://agentmods.dev/badge/instructions/matthewgjohnson/ask-another/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,552 This file is loaded in full into every session.
When invoked 1,552 The same file — it is already loaded in full.
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.01552 $0.01552
Opus 5.5 $0.00621 $0.00621
Sonnet 5.5 $0.00310 $0.00310
Haiku 4.5 $0.00155 $0.00155

Measured 2mo ago against content hash 05353edafb33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ask-another CLAUDE.md 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 2mo 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.

CLAUDE.md · 97 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What This Is

An MCP (Model Context Protocol) server that lets Claude Desktop query other LLMs through a unified interface. It uses LiteLLM as the multi-provider backend and FastMCP for the server framework. Providers are configured via environment variables, and models are discovered dynamically via provider APIs.

Commands

uv sync                                                                    # Install dependencies
PROVIDER_OPENAI="sk-test" uv run ask-another                               # Run the server locally

Release workflow — always pull after push

CI auto-bumps the patch version on every fix(...) commit pushed to main, then tags and builds the .mcpb. The bump appears as a chore: bump patch to X.Y.Z [skip ci] commit on origin/main that your local won't have. After any push that may have triggered the bump, git pull before doing more work — otherwise the repo's manifest.json/plugin.json will be one version behind reality and you'll build/install a stale bundle.

Tests can be run with:

uv run --with pytest python -m pytest tests/ -v

Architecture

The entire server lives in a single file: src/ask_another/server.py. It exposes these MCP tools:

  • search_families — discovers model families across configured providers, with optional substring search
  • search_models — finds specific model identifiers with optional substring search; enriches results with metadata (Elo, knowledge cutoff, context length, pricing, notes) from the annotations file
  • completion — proxies a completion request to a specified LLM via LiteLLM, supports full model identifiers or favourite shorthand; tracks usage in the annotations file
  • annotate_models — adds or updates a personal note on a model; notes appear in search results and server instructions
  • refresh_models — force re-scan of all providers and re-fetch benchmark data from LMArena arena-catalog (GitHub JSON) and LMArena metadata (HuggingFace CSV)
  • feedback — collects usability issues from the LLM client into a JSONL log file (~/.ask-another-feedback.jsonl by default, configurable via FEEDBACK_LOG env var)
  • start_research — starts a deep research task that runs in the background via a lifespan task group. Supports two paths: OpenRouter (Perplexity/OpenAI via litellm.completion) and Gemini deep research (via litellm.interactions.create with polling). Blocks until results arrive or timeout, then returns results or a job handle. If interrupted (user hits escape), the research continues in the background.
  • check_research — lists all research jobs as a markdown table, or retrieves full results for a specific job_id
  • cancel_research — cancels a running research task by its job_id
  • generate_image — generates an image from a text prompt. Automatically routes between two LiteLLM paths: litellm.image_generation() for dedicated image models (gpt-image-1, dall-e-3, imagen-4) and litellm.completion() with modalities=["image","text"] for native image-output models (Gemini Nano Banana family). Returns images inline via MCP ImageContent and saves to disk.

Read the full file on GitHub · 97 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. 2mo ago First seen · 97 lines · 1,552 tokens per session scan A 05353edafb33

Subscribe to this mod's changes

ask-another CLAUDE.md is an instructions file published in the GitHub repository matthewgjohnson/ask-another (3 stars, last pushed 1mo ago), licensed MIT. It adds 1,552 tokens to every session, about $0.0062 per session on Opus 5.5. 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-08-31.

Related

ask-another CLAUDE.md compared with instructions from other repositories

ask-another CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ask-another CLAUDE.mdmatthewgjohnson/ask-anotherInstructions file31mo agoMITA1,552Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file281ktodayMITA4,335Codex, OpenCode