Skip to content

[P1] Sprint 2.3: Implement L5 Architect Agent (First Working Agent) #173

@ariffazil

Description

@ariffazil

Objective

Wire first L5 agent (Architect) to L4 tools using AutoGen.

Effort

4 days

Implementation

Architect Agent

from autogen import AssistantAgent
from codebase.mcp.tools import mcp_init, mcp_agi

class ArchitectAgent(AssistantAgent):
    def __init__(self):
        super().__init__(
            name="architect",
            system_message=self.load_constitution(),
            llm_config={"model": "gpt-4"}
        )
    
    async def plan(self, query: str) -> dict:
        # Step 1: Init session
        session = await mcp_init(query=query)
        # Step 2: Sense intent
        intent = await mcp_agi(action="sense", query=query, session_id=session["session_id"])
        # Step 3: Think through plan
        plan = await mcp_agi(action="think", query=query, session_id=session["session_id"])
        return plan

Subtasks

  • Create 333_APPS/L5_AGENTS/architect.py
  • Wire to hypervisor in 333_APPS/L5_AGENTS/hypervisor.py
  • Implement TokenPhysics budget enforcement
  • Test Architect agent end-to-end
  • Update STATUS.md: '1/4 agents functional'

Acceptance Criteria

  • Architect agent calls L4 tools
  • Agent respects token budget (TokenPhysics)
  • Agent output is constitutionally valid
  • STATUS.md updated

Blockers

Depends on #167 or #171

Files Changed

  • 333_APPS/L5_AGENTS/architect.py (replace stub)
  • 333_APPS/L5_AGENTS/hypervisor.py
  • 333_APPS/L5_AGENTS/STATUS.md

Related

  • INTEGRATION_MASTERPLAN.md

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions