Skip to content
The framework · open source · MIT

Minimal by design.
Capable by evolution.

~3K lines of seed code, 9 atomic tools and a ~100-line agent loop give any LLM system-level control of a local computer. Everything else — skills, tools, playbooks — is grown at runtime and written into memory.

# ~100 lines, agent_loop.py
while not done:
    obs   = perceive(env)
    plan  = reason(llm, memory, obs)
    done  = execute(tools, plan)
    memory.write(experience)
Six core features

A minimal seed with strong execution.

Self-evolving

Every solved task is crystallized into a reusable Skill. Capabilities grow with use — a personal skill tree grown from 3K lines of seed code.

Minimal architecture

~3K lines of core code; the agent loop is ~100 lines. No heavy dependencies, zero deployment overhead.

Strong execution

Injects into a real browser and keeps your login sessions. 9 atomic tools take direct control: browser, terminal, keyboard & mouse, vision, ADB.

Model agnostic

Works with Claude, GPT, Gemini, Kimi, MiniMax, GLM and other major models. Windows, macOS and Linux.

Token efficient

Under a 30K context window — a fraction of the 200K–1M other agents burn. Less noise, fewer hallucinations, higher success rate.

Self-bootstrap proof

Everything in the repository — from installing Git and git init to every commit — was done autonomously by GenericAgent. The author never opened a terminal.

Architecture

Layered memory × minimal toolset × autonomous loop

Memory crystallizes throughout execution, letting the agent build stable, efficient working patterns over time.

Layered memory
L0Meta rulesCore behavioral rules and system constraints
L1Insight indexMinimal index layer for fast routing and recall
L2Global factsStable knowledge accumulated over long-term operation
L3Task skills / SOPsReusable workflows for specific task types
L4Session archiveDistilled records of finished sessions for long-horizon recall
9 atomic tools
code_runrun any codefile_readread filesfile_writewrite filesfile_patchpatch filesweb_scanperceive the webweb_execute_jsdrive the browserask_userhuman in the loopupdate_working_checkpointworking notepadstart_long_term_updatedistill long-term memory

Via code_run the agent installs packages, writes scripts and calls APIs at runtime — crystallizing temporary abilities into permanent tools.

PerceiveReasonExecuteMemorize
Self-evolution

Say it once, learn it for life.

This is what fundamentally sets GenericAgent apart from other agent frameworks.

01

New task

A request the agent has never seen.

02

Autonomous exploration

Install dependencies, write scripts, debug, verify.

03

Crystallize into a Skill

The execution path is written into the memory layer.

04

Recall next time

One sentence is enough.

What you sayFirst timeEvery time after
“Read my WeChat messages”install deps → reverse the DB → write a reader → save Skillone-line call
“Give me a morning digest of Hacker News”write scraper → build digest → schedule daily run → save Skillone-line call
“Monitor stocks and alert me”install mootdx → build screener → configure cron → save Skillone-line start
“Send this file via Gmail”configure OAuth → write sender → save Skillready to use

After a few weeks, your instance has a skill tree no one else in the world has — all grown from 3K lines of seed code.

Comparison

Lighter, cheaper, and it grows.

FeatureGenericAgentOpenClawClaude Code
Codebase~3K lines~530,000 linesOpen-sourced (large)
Deploymentpip install + API keyMulti-service orchestrationCLI + subscription
Browser controlReal browser, session preservedSandbox / headlessVia MCP plugin
OS controlMouse/keyboard, vision, ADBMulti-agent delegationFile + terminal
Self-evolutionAutonomous skill & tool growthPlugin ecosystemStateless between sessions
Out of the boxFew core files + starter skillsHundreds of modulesRich CLI toolset
Evaluation

Five dimensions, data-backed.

Baselines include Claude Code, OpenAI Codex and OpenClaw, evaluated on Claude Sonnet 4.6 / Opus 4.6, GPT-5.4 and MiniMax M2.7 backbones.

Tool-use efficiency radar
Tool-use efficiency radar: GA leads on token, request and tool-call axes while preserving quality across four task dimensions.
Cross-task self-evolution convergence
Cross-task self-evolution: second and third runs converge to a stable low-cost regime across eight web tasks; OpenClaw shows no such convergence.
01
Task completion & token efficiency

SOP-Bench · Lifelong AgentBench · RealFin-Benchmark

02
Tool-use efficiency

Tool Efficiency Benchmark (11 simple + 5 long-horizon)

03
Memory system effectiveness

SOP-Bench (dangerous goods) · LoCoMo · 20-skill stress test

04
Self-evolution capability

9-round LangChain longitudinal study · 8-task cross-task web benchmark

05
Web browsing capability

WebCanvas · BrowseComp-ZH · 22 custom tasks

Browser realness

A real, persistent browser — not a headless sandbox.

GA web tools run through TMWebdriver: a local WebSocket server plus a Chrome extension driving your real Chrome session, preserving cookies, login state, extensions and normal fingerprints.

Detection signalVanilla headless automationGA web tools
SannySoft headless testOften detected56/56 passed
bot.incolumitas.comFails webdriver / CDP checks36/36 passed
BrowserScan bot detectionOften abnormalNormal
Device & Browser InfoMultiple bot flagsHuman · isBot=false
FingerprintJS bot demoOften detectedPassed
reCAPTCHA v3 demoLow human score0.9 human-like score
Frontends & modes

Use it from a terminal, a desktop app, or your favorite chat.

Terminal UI

prompt_toolkit + rich, multiple sessions, streaming. python frontends/tui_v3.py

Desktop & web UI

A ready-to-run desktop app ships with one-line installs; developers use python launch.pyw.

IM bots

Telegram, Discord, Lark/Feishu, WeChat, QQ, WeCom and DingTalk frontends.

Android

The same agent inside your phone — see GA Mobile.

GA Mobile

Goal mode

Time-budgeted self-driven loop: “keep optimizing X for N hours” without premature delivery.

Goal Hive

BBS-coordinated master/workers running long-horizon objectives in parallel.

Conductor

Spawn, supervise and auto-clean parallel sub-agents.

Reflect mode

Drive GA from an external tick — how local agents join GA Arena with a single bridge file.

GA Arena

Read the code in an afternoon.

MIT licensed. Star it, fork it, or hand it your first task.