How hkuds/autoagent works
AutoAgent is a natural-language-driven framework for running research agents and creating or customizing agents, tools, and workflows. A typical user task enters the runtime, which runs an agent and can use tools and execution environments to gather information or act on files; users can also use the meta-agent editors to generate reusable components and workflows. The README documents these modes and capabilities. Some subsystem links below are based on SOURCE INDEX references rather than inspected call sites, so uncertain links are omitted.
Main entry points: workflow_former.py Workflow authoring · rag_tools.py Document RAG tools · main.py Task runner · tool_editor.py Tool authoring
Components 27
Agent runtime
- Task runner
autoagent/main.py - Agent loop
autoagent/core.py - Agent models
autoagent/types.py - Component registry
autoagent/registry.py - Agent implementations
autoagent/agents - Workflow engine
autoagent/flow/core.py - Research agents
autoagent/agents/system_agent
Natural-language creation
- Agent editor mode
autoagent/cli_utils/metachain_meta_agent.py - Agent authoring
autoagent/agents/meta_agent/agent_former.py - Tool authoring
autoagent/agents/meta_agent/tool_editor.py - Workflow authoring
autoagent/agents/meta_agent/workflow_former.py - Agent editing tools
autoagent/tools/meta/edit_agents.py - Tool editing tools
autoagent/tools/meta/edit_tools.py - Workflow editing tools
autoagent/tools/meta/edit_workflow.py
Tools and environments
- Agent tools
autoagent/tools - Terminal execution
autoagent/tools/terminal_tools.py - Docker environment
autoagent/environment/docker_env.py - Local environment
autoagent/environment/local_env.py - Browser environment
autoagent/environment/browser_env.py - Web-to-markdown
autoagent/environment/markdown_browser/mdconvert.py
Memory and retrieval
- Document RAG tools
autoagent/tools/rag_tools.py - RAG memory
autoagent/memory/rag_memory.py - Tool retrieval
autoagent/tools/meta/tool_retriever.py - Tool memory
autoagent/memory/tool_memory.py - Code retrieval
autoagent/tools/rag_code.py - Code memory
autoagent/memory/code_memory.py
Other components
- User
Connections 22
- User → Task runner: submits task
README.md - Task runner → Agent loop: runs agent
autoagent/main.py - Task runner → Docker environment: configures environment
autoagent/main.py - Task runner → Agent models: accepts agent
autoagent/main.py - Agent implementations → Component registry: registers agents
autoagent/agents/__init__.py - Workflow engine → Component registry: registers workflows
- Agent editor mode → Agent authoring: invokes authoring
autoagent/cli_utils/metachain_meta_agent.py - Agent editor mode → Tool authoring: invokes authoring
autoagent/cli_utils/metachain_meta_agent.py - Tool authoring → Tool editing tools: uses editing tools
autoagent/agents/meta_agent/tool_editor.py - Tool authoring → Tool retrieval: retrieves tools
autoagent/agents/meta_agent/tool_editor.py - Tool authoring → Terminal execution: runs generated code
autoagent/agents/meta_agent/tool_editor.py - Workflow authoring → Agent editing tools: uses editing tools
autoagent/agents/meta_agent/workflow_former.py - Workflow authoring → Tool editing tools: uses editing tools
autoagent/agents/meta_agent/workflow_former.py - Workflow authoring → Workflow editing tools: uses editing tools
autoagent/agents/meta_agent/workflow_former.py - Workflow authoring → Terminal execution: runs generated code
autoagent/agents/meta_agent/workflow_former.py - Document RAG tools → RAG memory: queries and stores
autoagent/tools/rag_tools.py - Document RAG tools → Docker environment: uses execution environment
autoagent/tools/rag_tools.py - Document RAG tools → Local environment: uses execution environment
autoagent/tools/rag_tools.py - Document RAG tools → Web-to-markdown: converts documents
autoagent/tools/rag_tools.py - Tool retrieval → Tool memory: searches tool docs
autoagent/tools/meta/tool_retriever.py - Code retrieval → Code memory: queries code memory
autoagent/tools/rag_code.py - Browser environment → Web-to-markdown: converts pages
autoagent/environment/browser_env.py