agentleFS
DockerKnown publisherdocker/compose-for-agents/adk-sock-shop/CLAUDE.md

compose-for-agents / adk-sock-shop

CLAUDE.md1k starsChanged 17 months agoApache-2.0View on GitHub

This is an ADK (Agent Development Kit) multi-agent fact-checking system with three coordinated agents: - To add models and gateways to an existing compose.yaml file, you should figure out which model you want to use, and which mcp servers are needed. - Create a service entry like the following: but replace the servers value with a comma-separate list of the MCP servers that you want to use. - Also, if there is no top-level secrets entry with a mcp_secret entry…

  • Reads credentials

Trending

Quiet since May.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the docker/compose-for-agents repository that our weekly crawl found: only 11 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about docker/compose-for-agents

The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 11

Talked about on GitHub, Bluesky and Hacker News (11 times).

On GitHub · 7

2 more on GitHub

On Hacker News · 1

The file

We split this CLAUDE.md into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use Google Cloud Run deployment with compose.gcloudrun.yaml for cloud deployment

    line 28
  2. Distinctive:

    No external tools - pure reasoning agent

    line 46
  3. Distinctive:

    All agents use LiteLLM for model abstraction with OpenAI format

    line 63
  4. Distinctive:

    Create a service entry like the following:

    line 69
  5. Very specific:

    If the user wnts the model_name qwen3 then the model_image_ref should be ai/qwen3:14B-Q6_K

    line 107
  6. Distinctive:

    Add a new entry to that service's definition with the following content.

    line 109
  7. Distinctive:

    If it's unclear which service needs this definition then ask.

    line 118

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

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

Development Commands

Build and Run

# Build and push multi-platform image (requires hydrobuild builder)
make build-adk-image

Development Tools

# Type checking
pyright

# Code formatting and linting
ruff check
ruff format

Testing and Development

  • Access the web interface at http://localhost:8080 after running docker compose up --build
  • Use Google Cloud Run deployment with compose.gcloudrun.yaml for cloud deployment

Architecture Overview

This is an ADK (Agent Development Kit) multi-agent fact-checking system with three coordinated agents:

Agent Hierarchy

  • Root Agent: llm_auditor (SequentialAgent) at agents/agent.py:22
    • Orchestrates the entire fact-checking workflow
    • Coordinates between Critic and Reviser agents sequentially
  • Critic Agent: agents/sub_agents/critic/agent.py:27
    • Has access to DuckDuckGo search via MCP (Model Context Protocol)
    • Gathers external evidence to support or refute claims
    • Uses mcp/duckduckgo:search toolset
  • Reviser Agent: agents/sub_agents/reviser/agent.py:97
    • No external tools - pure reasoning agent
    • Refines conclusions based on Critic's findings
    • Uses content processing callbacks for model compatibility

Agent Communication Pattern

  1. User submits question → Auditor
  2. Auditor → Critic (with search tools)
  3. Critic gathers evidence → Auditor
  4. Auditor → Reviser (reasoning only)
  5. Reviser refines conclusion → Auditor
  6. Auditor delivers final answer

Special Implementation Notes

  • Reviser agent uses content preprocessing callbacks (force_string_content, _remove_end_of_edit_mark) for model compatibility
  • MCP tools are configured via create_mcp_toolsets() in critic agent
  • All agents use LiteLLM for model abstraction with OpenAI format

Generating a compose.yaml file

  • To add models and gateways to an existing compose.yaml file, you should figure out which model you want to use, and which mcp servers are needed.
  • Create a service entry like the following:

    mcp-gateway:
      image: docker/mcp-gateway:latest
      use_api_socket: true
      command:
        - --transport=sse
        - --servers=server1,server2,server3
        - --config=/mcp_config
        - --secrets=docker-desktop:/run/secrets/mcp_secret
      secrets:
        - mcp_secret

    but replace the servers value with a comma-separate list of the MCP servers that you want to use.

  • Also, if there is no top-level secrets entry with a mcp_secret entry then add one. It should look like:

    secrets:
      mcp_secret:
        file: ./.mcp.env

    and remind that the user that Docker offload will require secrets to be stored in a local file named .mcp.env

  • Whenever a model is needed, add a toplevel entry in the compose.yaml file with the name of the model. It should look like:

    models:
      <model_name>:
        model: <model_image_ref>

    but replace the <model_name> with whatever model the user wants to use. If the user wnts the model_name qwen3 then the model_image_ref should be ai/qwen3:14B-Q6_K

  • Whenever a model is added, the user must specify what service needs the model. Add a new entry to that service's definition with the following content.

    models:
      <model_name>:
        endpoint_var: MODEL_RUNNER_URL
        model_var: MODEL_RUNNER_MODEL

    If it's unclear which service needs this definition then ask. Always add the model to just the service definition that needs it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.