How jaysurya046/webnavigator-ai works
Web-Navigator is a browser-automation agent: a user submits a task, the agent reasons over browser observations, dispatches a browser action, repeats until done, and returns a response. Its documented capabilities include dynamic-page interaction, smart search, and downloads; the available code also shows DOM/context support, history, episodic memory, and pluggable inference. Edges are limited to relationships explicit in the excerpts or README; several major modules are indexed but unsampled, so their internal wiring is not asserted.
Main entry points: web/__init__.py Agent controller · main.py CLI entry · episodic/__init__.py Episodic memory · browser Browser runtime
Components 23
Agent workflow
- CLI entry
main.py - Agent controller
src/agent/web/__init__.py - Agent state
src/agent/web/state.py - Message types
src/message/__init__.py
Browser interaction
- Browser config
src/agent/web/browser/config.py - Browser runtime
src/agent/web/browser - Page context
src/agent/web/context - DOM inspection
src/agent/web/dom - Navigation history
src/agent/web/history
Inference and memory
- Model inference
src/inference - Gemini inference
src/inference/gemini.py - OpenRouter inference
src/inference/open_router.py - Episodic memory
src/memory/episodic/__init__.py - Memory records
src/memory/episodic/views.py - Embedding providers
src/embedding - Vector stores
src/vectorstore - Speech input
src/speech/__init__.py
Tool execution
- Web actions
src/agent/web/tools/views.py - Tool registry
src/tool/registry/views.py - Tool definitions
src/tool
Other components
- User
- Playwright browser
- LLM service
Connections 25
- User → CLI entry: submits task
main.py - CLI entry → Agent controller: starts agent
main.py - CLI entry → Gemini inference: configures model
main.py - CLI entry → Browser config: configures browser
main.py - Agent controller → Agent state: uses state
src/agent/web/__init__.py - Agent controller → Message types: builds prompts
src/agent/web/__init__.py - Agent controller → Model inference: invokes model
src/agent/web/__init__.py - Agent controller → Web actions: dispatches actions
src/agent/web/__init__.py - Agent controller → Episodic memory: stores task memory
src/agent/web/__init__.py - Browser config → Browser runtime: configures
- Browser runtime → Playwright browser: controls browser
- Page context → Browser runtime: uses session
- Web actions → Page context: operates pages
src/agent/web/tools/__init__.py - DOM inspection → Playwright browser: inspects page
- Navigation history → Playwright browser: navigates history
- Tool registry → Tool definitions: executes functions
src/tool/registry/__init__.py - Agent controller → Tool registry: uses registry
- Gemini inference → LLM service: sends inference
- OpenRouter inference → LLM service: sends inference
- Episodic memory → Memory records: reads and writes
src/memory/episodic/__init__.py - Episodic memory → Model inference: routes and summarizes
src/memory/episodic/__init__.py - Embedding providers → LLM service: requests embeddings
- Vector stores → Embedding providers: uses vectors
- Speech input → Model inference: transcribes audio
src/speech/__init__.py - Agent controller → User: returns response