conclave AGENTS.md

A project guide for AI coding assistants working on Conclave, a Go command-line tool that asks several AI services for answers and combines them.

In plain words
What is it for?
Use it when changing Conclave’s command-line interface, configuration, provider integrations, parallel execution, or output formatting.
Why use it?
It gives the assistant the project’s structure, rules, and design decisions so proposed changes fit the existing code.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/0xdarkmatter/conclave/agents-md
Clone the repo
git clone --depth 1 https://github.com/0xDarkMatter/conclave

Made for: Codex, OpenCode.

Per session 1,268 This file is loaded in full into every session.
When invoked 1,268 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01268 $0.01268
Opus 5 $0.00634 $0.00634
Sonnet 5 $0.00254 $0.00254
Haiku 4.5 $0.00127 $0.00127

Measured 2d ago against content hash 40a6648d8d82, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

conclave AGENTS.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 2d 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.

AGENTS.md · 145 lines

How it starts

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

AGENTS.md

Instructions for AI coding assistants working on Conclave.

Project Overview

Conclave is a Go CLI that queries multiple LLM providers in parallel and synthesizes their responses. It operates in two modes:

  • CLI Mode (default): Wraps provider CLIs (gemini, claude, codex, etc.). Exception: glm calls the Z.ai Coding Plan over HTTP directly (no CLI binary) — see ADR-007.
  • API Mode (-g): Direct API calls to providers

Architectural decisions are recorded in docs/adr/ (the directory is the index). Run python ~/.claude/skills/adr-ops/scripts/adr-touching.py <path> to find which ADR governs a file before changing it.

Architecture

cmd/
  root.go          # Main CLI entry, flag parsing, orchestration
  init.go          # Interactive API key setup

internal/
  config/          # Configuration loading (.env, config.yaml)
  context/         # File/stdin context building
  judge/           # Verdict synthesis logic
  orchestrator/    # Parallel provider execution
  output/          # Result formatting (JSON, human, brief)
  progress/        # Terminal progress display
  providers/       # Provider implementations
    provider.go    # Provider interface
    registry.go    # Provider registration and lookup
    gemini.go      # CLI provider
    api_gemini.go  # API provider
    ...

Key Conventions

Provider Pattern

Each provider implements the Provider interface:

type Provider interface {
    Name() string
    DefaultModel() string
    IsAvailable() bool
    Query(ctx context.Context, prompt string, model string) (string, time.Duration, *Metrics, error)
}
  • CLI providers wrap external commands (gemini.go, claude.go) and embed baseProvider
  • API providers make HTTP calls (api_gemini.go, api_anthropic.go) and embed apiBaseProvider
  • Exception: glm.go is a CLI-mode provider that embeds apiBaseProvider (HTTP to the Coding Plan endpoint, no binary) — ADR-007

Adding a New Provider

  1. Create internal/providers/{name}.go (CLI) and/or api_{name}.go (API)
  2. Implement the Provider interface
  3. Register in AllCLIProviders() or AllAPIProviders() in registry.go
  4. Add to providerSetupInfo in cmd/init.go for interactive setup
  5. Update tests in provider_test.go
  6. Document in README.md and docs/MODEL_REGISTRY.md

Read the full file on GitHub · 145 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. 2d ago First seen · 145 lines · 1,268 tokens per session scan A 40a6648d8d82

Subscribe to this mod's changes

conclave AGENTS.md is an instructions file published in the GitHub repository 0xDarkMatter/conclave (5 stars, last pushed 2mo ago), licensed MIT. It adds 1,268 tokens to every session, about $0.0063 per session on Opus 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.