---
title: HtmlClaw
emoji: ๐
colorFrom: red
colorTo: gray
sdk: static
pinned: false
license: other
short_description: OpenClaw inspired HTML port...
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
โก CHRONOS
Browser-Native WebLLM Agent
Chronos is a fully client-side AI agent that runs directly in the browser using WebLLM.
It combines a ReAct agent loop, persistent memory, dynamic skills, hybrid RAG, and tool execution โ all without a traditional backend.
The system demonstrates how a modern agent architecture can run entirely inside a web environment using JavaScript + WebGPU.
๐ง Core Idea
Chronos is not just a chat interface.
It is a browser-resident AI agent runtime that combines:
LLM (WebGPU)
+ Persistent Memory
+ Skills
+ Tools
+ Hybrid RAG
+ Web Search
+ Local Network Discovery
+ Scheduling
Everything runs in the browser.
No Python servers or AI frameworks are required to run the agent logic.
๐งฉ Architecture
User
โ
โผ
Chronos UI
โ
โผ
ReAct Agent Loop
โ
โ soul.md โ agent identity
โ user.md โ persistent user memory
โ skills/*.md โ injected capabilities
โ
โ tools
โ โ web_search
โ โ scrape
โ โ summarize
โ โ remember
โ โ read_memory
โ โ forget
โ โ schedule
โ โ inject_js
โ โ rag_index
โ โ rag_search
โ โ rag_prompt
โ โ network_scan
โ
โ hybrid RAG index
โ
โผ
WebLLM (GPU inference)
The agent builds its prompt dynamically based on:
memory
skills
retrieved documents
tool outputs
conversation context
โก Features
๐ง Persistent Agent Memory
Chronos uses two memory files:
soul.md
Defines the identity and behavior of the agent.
Example:
You are Chronos, a browser-native AI agent.
You can reason, use tools, and retrieve knowledge.
This acts as the system prompt.
user.md
Stores persistent user information.
Example:
User name: Chris
Interests:
- AI agents
- semantic search
This allows the agent to remember preferences across sessions.
โก Dynamic Skill Injection
Skills extend the agent without modifying the core code.
skills/
โ gdpr-advisor.md
โ code-engineer.md
Skills contain instructions that are injected into the prompt when active.
Example skill capabilities:
domain expertise
coding support
legal advisory
specialized reasoning
Skills can be:
added
removed
modified
at runtime.
๐ ReAct Agent Loop
Chronos uses a ReAct reasoning loop:
think โ act โ observe โ respond
Example flow:
User: What is the latest AI news?
Think:
I should search the web.
Act:
web_search("latest AI news")
Observe:
results...
Respond:
summary
This allows the agent to use tools during reasoning.
๐ Tool System
Chronos supports a built-in tool ecosystem.
Current tools include:
Tool Description
web_search search the web
scrape extract webpage text
summarize summarize long content
remember store information in memory
read_memory read stored memory
forget delete stored memory
schedule create scheduled tasks
inject_js run JavaScript
rag_index index documents
rag_search search indexed knowledge
rag_prompt inject RAG context
network_scan detect local services
๐ Hybrid RAG Retrieval
Chronos includes a browser-based RAG system.
Documents can be indexed directly from the UI.
Sources include:
pasted text
scraped pages
memory
manual input
The system builds a hybrid index:
semantic vectors
+ keyword terms
This allows efficient retrieval inside the browser.
Workflow:
Index documents
โ
โผ
User query
โ
โผ
Hybrid search
โ
โผ
Top results injected into prompt
๐ Web Search + Scraping
Chronos can access external knowledge through:
web_search โ find pages
scrape โ extract content
summarize โ compress results
Optional integration:
Brave Search API
https://brave.com/search/api
Free tier includes:
2000 requests/month
๐ก Local Network Discovery
The network_scan tool attempts to detect common local services.
Default targets:
localhost:3000 (dev)
localhost:5000 (flask)
localhost:5173 (vite)
localhost:4200 (angular)
localhost:8888 (jupyter)
localhost:11434 (ollama)
This allows the agent to discover locally running AI services or development servers.
โฐ Scheduled Tasks
Chronos can store tasks for later execution.
Example:
schedule("Check AI news every morning")
Tasks persist inside the agent state.
๐ฅ Running Chronos
Because WebLLM requires proper browser isolation, the UI should be served via a local proxy.
Run:
python proxy.py 8080
Then open:
http://localhost:8080
๐ค Model Support
Chronos loads WebLLM-compatible models.
Example:
Llama 3.2 ยท 3B
Typical requirements:
Model VRAM
3B ~2GB
7B ~4-6GB
WebGPU support is required.
๐ Runtime Stats
Chronos provides live metrics:
tokens/sec
total tokens
web searches
scrapes
reasoning logs
โจ Shortcuts
Shortcut Action
`Ctrl + `` open console log
โ command palette
Ctrl + L clear conversation
๐ง Example Use Cases
Chronos can be used as:
a local AI assistant
a browser research agent
a developer tool for AI experiments
a WebLLM playground
a lightweight autonomous agent
๐ก Why This Project Exists
Most agent frameworks require:
Python stacks
vector databases
complex infrastructure
heavy frameworks
Chronos shows that a surprisingly capable agent can run entirely inside the browser.
๐ Future Ideas
Possible extensions:
streaming token display
vector embedding models
multi-agent cooperation
browser automation
plugin marketplace
distributed browser agents