Skip to content

Commit 98c57b7

Browse files
Merge pull request #6050 from aden-hive/feat/queen-planning-phase
Add queen planning phase, global memory, and refactor hive_coder
2 parents add6efe + 9be1d03 commit 98c57b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1930
-1026
lines changed

core/MCP_SERVER_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MCP Server Guide - Agent Building Tools
22

3-
> **Note:** The standalone `agent-builder` MCP server (`framework.mcp.agent_builder_server`) has been replaced. Agent building is now done via the `coder-tools` server's `initialize_agent_package` tool, with underlying logic in `framework.builder.package_generator`.
3+
> **Note:** The standalone `agent-builder` MCP server (`framework.mcp.agent_builder_server`) has been replaced. Agent building is now done via the `coder-tools` server's `initialize_and_build_agent` tool, with underlying logic in `tools/coder_tools_server.py`.
44
55
This guide covers the MCP tools available for building goal-driven agents.
66

core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ uv pip install -e .
1919

2020
## Agent Building
2121

22-
Agent scaffolding is handled by the `coder-tools` MCP server (in `tools/coder_tools_server.py`), which provides the `initialize_agent_package` tool and related utilities. The underlying package generation logic lives in `framework.builder.package_generator`.
22+
Agent scaffolding is handled by the `coder-tools` MCP server (in `tools/coder_tools_server.py`), which provides the `initialize_and_build_agent` tool and related utilities. The package generation logic lives directly in `tools/coder_tools_server.py`.
2323

2424
See the [Getting Started Guide](../docs/getting-started.md) for building agents.
2525

core/framework/agents/hive_coder/__init__.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

core/framework/agents/hive_coder/__main__.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

core/framework/agents/hive_coder/agent.py

Lines changed: 0 additions & 153 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"""
2+
Queen — Native agent builder for the Hive framework.
3+
4+
Deeply understands the agent framework and produces complete Python packages
5+
with goals, nodes, edges, system prompts, MCP configuration, and tests
6+
from natural language specifications.
7+
"""
8+
9+
from .agent import queen_goal, queen_graph
10+
from .config import AgentMetadata, RuntimeConfig, default_config, metadata
11+
12+
__version__ = "1.0.0"
13+
14+
__all__ = [
15+
"queen_goal",
16+
"queen_graph",
17+
"RuntimeConfig",
18+
"AgentMetadata",
19+
"default_config",
20+
"metadata",
21+
]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
"""Queen graph definition."""
2+
3+
from framework.graph import Goal
4+
from framework.graph.edge import GraphSpec
5+
6+
from .nodes import queen_node
7+
8+
# ---------------------------------------------------------------------------
9+
# Queen graph — the primary persistent conversation.
10+
# Loaded by queen_orchestrator.create_queen(), NOT by AgentRunner.
11+
# ---------------------------------------------------------------------------
12+
13+
queen_goal = Goal(
14+
id="queen-manager",
15+
name="Queen Manager",
16+
description=(
17+
"Manage the worker agent lifecycle and serve as the user's primary "
18+
"interactive interface. Triage health escalations from the judge."
19+
),
20+
success_criteria=[],
21+
constraints=[],
22+
)
23+
24+
queen_graph = GraphSpec(
25+
id="queen-graph",
26+
goal_id=queen_goal.id,
27+
version="1.0.0",
28+
entry_node="queen",
29+
entry_points={"start": "queen"},
30+
terminal_nodes=[],
31+
pause_nodes=[],
32+
nodes=[queen_node],
33+
edges=[],
34+
conversation_mode="continuous",
35+
loop_config={
36+
"max_iterations": 999_999,
37+
"max_tool_calls_per_turn": 30,
38+
"max_history_tokens": 32000,
39+
},
40+
)

core/framework/agents/hive_coder/config.py renamed to core/framework/agents/queen/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Runtime configuration for Hive Coder agent."""
1+
"""Runtime configuration for Queen agent."""
22

33
import json
44
from dataclasses import dataclass, field
@@ -34,7 +34,7 @@ class RuntimeConfig:
3434

3535
@dataclass
3636
class AgentMetadata:
37-
name: str = "Hive Coder"
37+
name: str = "Queen"
3838
version: str = "1.0.0"
3939
description: str = (
4040
"Native coding agent that builds production-ready Hive agent packages "
@@ -43,7 +43,7 @@ class AgentMetadata:
4343
"MCP configuration, and tests."
4444
)
4545
intro_message: str = (
46-
"I'm Hive Coder — I build Hive agents. Describe what kind of agent "
46+
"I'm Queen — I build Hive agents. Describe what kind of agent "
4747
"you want to create and I'll design, implement, and validate it for you."
4848
)
4949

File renamed without changes.

0 commit comments

Comments
 (0)