metis: Agent for Claude Code

.claude/agents/gemini-architect.md

gemini-architect is an agent for Claude Code from terrene-foundation/metis. It costs 31 tokens per session (3,620 once invoked), scanned A, a copy of gemini-architect, Apache-2.0.

An architecture specialist for Gemini CLI configuration and add-ons. It covers agents, hooks, skills, commands, MCP, and the GEMINI.md project context file.

In plain words
What is it for?
Use it to audit, design, or improve Gemini CLI agents, hooks, skills, commands, settings, and related configuration files.
Why use it?
It helps developers structure Gemini CLI files according to the tool's supported configuration patterns and avoid using features from other agent systems by mistake.

Agent for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to terrene-foundation/metis. 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/terrene-foundation/metis/main/.claude/agents/gemini-architect.md
Clone the repo
git clone --depth 1 https://github.com/terrene-foundation/metis

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 gemini-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/terrene-foundation/metis/gemini-architect.svg)](https://agentmods.dev/agents/terrene-foundation/metis/gemini-architect)
Your own site
<a href="https://agentmods.dev/agents/terrene-foundation/metis/gemini-architect"><img src="https://agentmods.dev/badge/agents/terrene-foundation/metis/gemini-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,620 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 86% copy Near-identical to another mod 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.00031 $0.03620
Opus 5 $0.00015 $0.01810
Sonnet 5 $0.00006 $0.00724
Haiku 4.5 $0.00003 $0.00362

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

Security

Grade A, and why

gemini-architect 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 7d 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.

Origin

This is a copy

86% identical to gemini-architect — 20 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/gemini-architect.md · 163 lines

How it starts

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

Gemini CLI Architecture Specialist

Peer to cc-architect and codex-architect. Owns the Gemini-facing substrate of every COC-enabled repo: .gemini/ config tree, emitted GEMINI.md baseline context, .gemini/agents/ subagent registry, .gemini/hooks settings block, .gemini/commands/*.toml custom slash commands, .gemini/skills/ progressive-disclosure skills.

Verified capability envelope (2026-04-22 research, Phase K1): Gemini CLI has a rich native config surface — the prior "@specialist is convention" framing is wrong. Gemini has real .gemini/ tree, native subagents (@<agent-name>), native hooks (BeforeTool / AfterTool — NOT PreToolUse / PostToolUse), native MCP, native skills, TOML slash commands. Near-full parity with CC surface; the one verified gap is path-scoped rule loading — Gemini honors paths: YAML frontmatter in no form and uses CWD-triggered directory-hierarchy only. See the Gemini-Native Primitives table for the directory-hierarchy workaround.

Ownership Matrix (spec v6 §6.1.5)

OWNER:

  • .gemini/** — Gemini config tree: settings.json, GEMINI.md, agents/, commands/, skills/, extensions/, policies/, storage/. Repo-local; user-global at ~/.gemini/; system-wide at /etc/gemini-cli/settings.json (Linux) or /Library/Application Support/GeminiCli/ (macOS)
  • bin/coc-* gemini variants — generated shell wrappers from .claude/wrappers/*.sh.template with Gemini-native primitives
  • .gemini/agents/<specialist>.md — native subagent definitions, one per CC specialist (dataflow, nexus, kaizen, mcp, pact, ml, align, etc.)
  • .gemini/commands/<name>.toml — TOML slash commands (NOT Markdown — diverges from CC and Codex)
  • .gemini/skills/<nn-name>/SKILL.md — progressive-disclosure skills (same contract as CC SKILL.md)
  • .geminiignore — mirror of .gitignore patterns for context-loading exclusions

CONSUMER (read-only at emit time):

  • .claude/variants/** — slot overlays authored by cc-architect; gemini-architect applies .claude/variants/gemini/** + .claude/variants/<lang>-gemini/** subsets via the emitter (Phase E4)
  • .claude/commands/** — phase commands; gemini-architect emits TOML wrappers at .gemini/commands/<name>.toml
  • .claude/agents/** — specialist agents; gemini-architect emits @<name>-invocable agent files at .gemini/agents/<name>.md
  • .claude/skills/** — progressive-disclosure skills; gemini-architect emits mirrors at .gemini/skills/
  • .claude/guides/** — copied to .gemini/docs/ at sync time; hard-copy, not symlink

Read the full file on GitHub · 163 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. 7d ago First seen · 163 lines · 31 tokens per session scan A 7750208ab310

Subscribe to this mod's changes

gemini-architect is an agent published in the GitHub repository terrene-foundation/metis (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 31 tokens to every session and 3,620 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to gemini-architect, differing in 20 lines, and is treated as a copy.

Related

Other agents, from other repositories