π The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
docs(claude): metallm ask-vs-delegate rule + $0.26 delegate floor warning (#2538)
rUv6f89c76404b9
diff --git a/CLAUDE.md b/CLAUDE.mdindex c339e473f7..56336f3f70 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -1299,3 +1299,21 @@ and meters every call β so delegation is cost-governed and preserves the mainserver via a local `.mcp.json` (gitignored) and export your gateway key as `COGNITUM_DEV_KEY`in your shell. Build steps + the exact `.mcp.json` block are in the internal meta-llmdev-bridge README. **Never commit the key or an inline gateway URL.**++### `ask` vs `delegate` β pick by task shape (load-bearing)++**Use `metallm_ask` for single-shot facts, summaries, classification, and small code+questions. Use `metallm_delegate` only when the task needs autonomous multi-step execution+or isolated agent context.**++Why the split is strict: `metallm_delegate` spawns a full `claude -p` sub-agent, which loads+its entire harness context **even for a trivial task** β measured floor β **$0.26/call**+(~43k input tokens) before any real work. `metallm_ask` is a single gateway completion β+measured β **$0.0001** for a small query, ~2500Γ cheaper. So delegating casually is+expensive at volume; `delegate` pays off only when offloading the sub-task's context from+the main session is worth the floor. When in doubt, `ask`.++Routing caveat (tracked): `metallm_ask` **auto** currently over-tiers some trivial prompts to+`mid` (sonnet-5) instead of `low` β the bridge's `/v1/messages` path may miss ADR-236+host-normalization (meta-llm issue #38). Forced tiers work correctly; cost impact is small+per call but real at volume.