You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** Please make sure you read the contribution guide and file the issues in the right place. ** Contribution guide.
Describe the bug
Running adk web my_agent loads ui but shows "Warning: No agents found in current folder." and agent is not available in dropdown. Running adk run my_agent works fine, running code in init.py loads things fine as well.
To Reproduce
Please share a minimal code and data to reproduce your problem.
Steps to reproduce the behavior:
in my_agent/ foder have these two files:
init.py: from .agent import root_agent
agent.py:
from google.adk.agents import Agent
print("bbb")
# This is a minimal agent definition. Does this work?
root_agent = Agent(
name="basic_test_agent",
model="gemini-2.5-flash",
instruction="Respond to all inquiries with 'Hello world'."
)
Follow steps to create venv, activate and install google-adk
From parent directory of my_agent, I run: adk web my_agent
Thanks, and my bad - I wrote init.py but the file was correctly named init.py
starting in the agent dir with adk web ./ results in the same issue. Also tried removing the init.py and had same results - UI is available but "Warning: No agents found in current folder." and no agent selectable from left dropdown (but works fine w/ adk run)
Activity
ukaer commentedon Oct 2, 2025
Also tried with
adk create new_agent, same result.ejfn commentedon Oct 2, 2025
Try
__init__.py?Or you don't even need
__init__.py, just doadk web ./, the path containing the my_agent?AlexFierro9 commentedon Oct 2, 2025
can you change init.py to __ init __.py? Also have you tried running just 'adk web'? we are using this at work and it's oddly stupid.
ukaer commentedon Oct 2, 2025
Thanks, and my bad - I wrote init.py but the file was correctly named init.py
starting in the agent dir with
adk web ./results in the same issue. Also tried removing the init.py and had same results - UI is available but "Warning: No agents found in current folder." and no agent selectable from left dropdown (but works fine w/ adk run)ukaer commentedon Oct 2, 2025
Ah ok looks like I had probably written it right but markdown is eating the underscores and needs to be escaped
__init__.pyboyangsvl commentedon Oct 8, 2025
moving to discussions as it seems to be a set up issue rather than an ADK bug.