Skip to content
Agent Orchestration
Agent

anti_patterns

1. **Using tools that don't exist** — Always verify tools via `list_agent_tools()` before designing. Common hallucinations: `csv_read`, `csv_write`, `file_upload`, `database_query`, `bulk_fetch_emails`. 2. **Wrong mcp_servers.json format** — Flat dict (no `"mcpServers"`

From plugin
aden-hive-hive
11k5 skills5 agents1 MCP
Install
$ npx -y skills add aden-hive/hive --agent claude-code

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

1. **Using tools that don't exist** — Always verify tools via `list_agent_tools()` before designing. Common hallucinations: `csv_read`, `csv_write`, `file_upload`, `database_query`, `bulk_fetch_emails`. 2. **Wrong mcp_servers.json format** — Flat dict (no `"mcpServers"`

Agent definition

anti_patterns.md

Common Mistakes When Building Hive Agents

Critical Errors

1. **Using tools that don't exist** — Always verify tools via `list_agent_tools()` before designing. Common hallucinations: `csv_read`, `csv_write`, `file_upload`, `database_query`, `bulk_fetch_emails`. 2. **Wrong mcp_servers.json format** — Flat dict (no `"mcpServers"` wrapper). `cwd` must be `"../../tools"`. `command` must be `"uv"` with args `["run", "python", ...]`. 3. **Missing module-level exports in `__init__.py`** — The runner reads `goal`, `nodes`, `edges`, `entry_node`, `entry_points`, `terminal_nodes`, `conversation_mode`, `identity_prompt`, `loop_config` via `getattr()`. ALL module-level variables from agent.py must be re-exported in `__init__.py`.

Value Errors

4. **Fabricating tools** — Always verify via `list_agent_tools()` before designing and `validate_agent_package()` after building.

Design Errors

5. **Adding framework gating for LLM behavior** — Don't add output rollback or premature rejection. Fix with better prompts or custom judges. 6. **Calling set_output in same turn as tool calls** — Call set_output in a SEPARATE turn.

File Template Errors

7. **Wrong import paths** — Use `from framework.orchestrator import ...`, NOT `from framework.graph import ...` or `from core.framework...`. 8. **Missing storage path** — Agent class must set `self._storage_path = Path.home() / ".hive" / "agents" / "agent_name"`. 9. **Missing mcp_servers.json** — Without this, the agent has no tools at runtime. 10. **Bare `python` command** — Use `"command": "uv"` with args `["run", "python", ...]`.

Testing Errors

11. **Using `runner.run()` on forever-alive agents** — `runner.run()` hangs forever because forever-alive agents have no terminal node. Write structural tests instead: validate graph structure, verify node specs, test `AgentRunner.load()` succeeds (no API key needed). 12. **Stale tests after restructuring** — When changing nodes/edges, update tests to match. Tests referencing old node names will fail. 13. **Running integration tests without API keys** — Use `pytest.skip()` when credentials are missing. 14. **Forgetting sys.path setup in conftest.py** — Tests need `exports/` and `core/` on sys.path.

GCU Errors

15. **Manually wiring browser tools on event_loop nodes** — Browser nodes use tools: {policy: "all"} to get all browser tools.

Worker Agent Errors

19. **Adding client-facing intake node to workers** — The queen owns intake. Workers should start with an autonomous processing node. Route worker review/approval through queen escalation instead of direct worker HITL. 20. **Putting `escalate` or `set_output` in NodeSpec `tools=[]`** — These are synthetic framework tools, auto-injected at runtime. Only list MCP tools from `list_agent_tools()`.

Read more
Ships withaden-hive-hive

Multi-Agent Harness for Production AI

Get the whole plugin

Other agents on aden-hive-hive.