Summary
Every template in examples/templates/ (12 templates: deep_research_agent, competitive_intel_agent, tech_news_reporter, local_business_extractor, job_hunter, email_inbox_management, email_reply_agent, meeting_scheduler, sdr_agent, twitter_news_agent, vulnerability_assessment, investment_research_agent) crashes on first run with:
TypeError: AgentHost.__init__() got an unexpected keyword argument 'entry_points'
This blocks the documented quickstart path for new contributors, since the templates README and CONTRIBUTING.md point new users to run these.
Reproduction
git clone https://github.com/aden-hive/hive.git
cd hive
uv sync
PYTHONPATH=core:examples/templates uv run python -m deep_research_agent run --topic "AI"
Result: TypeError as above. Same error for every other template.
Root cause
Commit a5b17a29 (refactor: simplify agent loading, Apr 7) replaced the create_agent_runtime(entry_points=...) factory with a direct AgentHost(...) call in each template's agent.py:
-self._agent_runtime = create_agent_runtime(
+self._agent_runtime = AgentHost(
graph=...,
...
entry_points=entry_point_specs,
But AgentHost.__init__ (core/framework/host/agent_host.py:125) does not accept entry_points. The new API exposes register_entry_point(spec) for that purpose. The factory presumably called it internally; the templates were migrated to call the constructor directly but the entry_points= line was never removed and the follow-up register_entry_point calls were never added.
Secondary issue (same scope)
Every template's README (e.g. examples/templates/deep_research_agent/README.md) documents a --mock flag that no longer exists on the run subcommand. Either the flag should be re-added to the CLI or the README updated. I'd suggest adding --mock back since templates already plumb mock_mode through agent.run().
Proposed fix
In each agent.py _setup():
self._agent_runtime = AgentHost(
graph=self._graph,
goal=self.goal,
storage_path=self._storage_path,
# ...other kwargs, without entry_points
)
for spec in entry_point_specs:
self._agent_runtime.register_entry_point(spec)
Plus re-add --mock to each template's __main__.py run command (or update each README).
I'd like to work on this — happy to send a single PR covering all 12 templates and the README/CLI mismatch, with mock-mode runs of each template added to test verification.
Environment
- macOS 25.4.0 (Darwin)
- Python 3.11.15
- uv 0.11.8
main @ e7d4ce0
Summary
Every template in
examples/templates/(12 templates:deep_research_agent,competitive_intel_agent,tech_news_reporter,local_business_extractor,job_hunter,email_inbox_management,email_reply_agent,meeting_scheduler,sdr_agent,twitter_news_agent,vulnerability_assessment,investment_research_agent) crashes on first run with:This blocks the documented quickstart path for new contributors, since the templates README and CONTRIBUTING.md point new users to run these.
Reproduction
Result:
TypeErroras above. Same error for every other template.Root cause
Commit
a5b17a29(refactor: simplify agent loading, Apr 7) replaced thecreate_agent_runtime(entry_points=...)factory with a directAgentHost(...)call in each template'sagent.py:But
AgentHost.__init__(core/framework/host/agent_host.py:125) does not acceptentry_points. The new API exposesregister_entry_point(spec)for that purpose. The factory presumably called it internally; the templates were migrated to call the constructor directly but theentry_points=line was never removed and the follow-upregister_entry_pointcalls were never added.Secondary issue (same scope)
Every template's README (e.g.
examples/templates/deep_research_agent/README.md) documents a--mockflag that no longer exists on therunsubcommand. Either the flag should be re-added to the CLI or the README updated. I'd suggest adding--mockback since templates already plumbmock_modethroughagent.run().Proposed fix
In each
agent.py_setup():Plus re-add
--mockto each template's__main__.py runcommand (or update each README).I'd like to work on this — happy to send a single PR covering all 12 templates and the README/CLI mismatch, with mock-mode runs of each template added to test verification.
Environment
main@ e7d4ce0