# GenericAgent | LJQ | Knowledge Base | Instagit

Self-evolving agent: grows skill tree from 3.3K-line seed, achieving full system control with 6x less token consumption

GitHub Stars: 2.4k

Repository: https://github.com/lsdefine/GenericAgent

---

## Articles

### [How GenericAgent Implements Error Recovery and Retry Logic in Its Agent Loop](/lsdefine/GenericAgent/how-does-genericagent-implement-error-recovery-and-retry-logic-within-its-agent-loop)

Discover how GenericAgent uses its LLM client for error recovery and retry logic with exponential backoff. Learn how it prevents agent crashes by treating residual errors as text.

- Tags: how-to-guide
- Published: 2026-04-16

### [How Insight Index (L1) and Global Facts (L2) Memory Layers Work in GenericAgent](/lsdefine/GenericAgent/how-do-the-insight-index-l1-and-global-facts-l2-memory-layers-function-in-genericagent)

Understand GenericAgent's Insight Index (L1) and Global Facts (L2) memory layers. L1 offers fast context retrieval and L2 stores verified knowledge, both synchronized for system prompts.

- Tags: internals
- Published: 2026-04-16

### [Self-Bootstrap Proof in GenericAgent: How an AI Built Its Own Repository](/lsdefine/GenericAgent/what-is-the-self-bootstrap-proof-concept-demonstrated-in-the-genericagent-repository)

Explore the self-bootstrap proof in lsdefine/GenericAgent. See how an AI autonomously installed Git, wrote code, and committed changes without human intervention, demonstrating true AI autonomy.

- Tags: deep-dive
- Published: 2026-04-16

### [GenericAgent Cross-Platform Execution: Windows and Linux Support Explained](/lsdefine/GenericAgent/what-are-the-cross-platform-execution-capabilities-of-genericagent-windows-linux)

Explore GenericAgent's cross-platform execution on Windows and Linux. Discover how it runs identically on both OS without code changes.

- Tags: architecture
- Published: 2026-04-16

### [GenericAgent Architecture Compared to Claude Code and OpenClaw: A Technical Deep Dive](/lsdefine/GenericAgent/how-does-genericagents-architecture-compare-to-claude-code-and-openclaw)

Explore the technical differences between GenericAgent's plug-in architecture, Claude Code, and OpenClaw. Discover how GenericAgent separates tool dispatch, memory, and safety for enhanced control and flexibility.

- Tags: deep-dive
- Published: 2026-04-16

### [TMWebDriver in GenericAgent: How It Controls Multiple Browser Tabs](/lsdefine/GenericAgent/what-is-tmwebdriver-and-how-does-it-control-multiple-browser-tabs-in-genericagent)

Learn how TMWebDriver controls multiple browser tabs in GenericAgent. Discover its WebSocket and HTTP servers for tab management and session tracking.

- Tags: how-to-guide
- Published: 2026-04-16

### [Does GenericAgent Inject Into Real Browsers or Use Sandboxed/Headless Browsers?](/lsdefine/GenericAgent/does-genericagent-inject-into-real-browsers-or-use-sandboxed-headless-browsers)

Discover if GenericAgent uses real or headless browsers for automation. Learn about TMWebDriver Chrome extension and MCP plugin support for flexible browser control.

- Tags: clarification
- Published: 2026-04-16

### [How the L4 Session Archive in GenericAgent Enables Long-Horizon Recall Across Sessions](/lsdefine/GenericAgent/how-does-the-l4-session-archive-in-genericagent-enable-long-horizon-recall-across-sessions)

Learn how the L4 session archive in GenericAgent enables long-horizon recall. It compresses logs into a cumulative file, maintaining conversational continuity across sessions.

- Tags: internals
- Published: 2026-04-16

### [GenericAgent Scheduler Cron Integration: Automated Task Execution Explained](/lsdefine/GenericAgent/how-does-genericagents-scheduler-integrate-with-cron-for-automated-task-execution)

Discover how GenericAgent scheduler integrates with cron for automated task execution. Learn about its Python-based daemon and autonomous agent triggering.

- Tags: how-to-guide
- Published: 2026-04-16

### [How GenericAgent Optimizes Token Usage with Its Layered Memory System Under 30K Context](/lsdefine/GenericAgent/how-does-genericagent-optimize-token-usage-with-its-layered-memory-system-under-30k-context)

Learn how GenericAgent optimizes token usage under 30K context with its four-layer memory system. It compresses history and loads knowledge on demand for efficient AI.

- Tags: deep-dive
- Published: 2026-04-16

### [GenericAgent Frontend Interfaces: Telegram, QQ, WeChat, and Desktop UIs](/lsdefine/GenericAgent/what-are-the-different-frontend-interfaces-available-for-genericagent-telegram-qq-wechat-etc)

Explore GenericAgent's frontend interfaces including Telegram, QQ, WeChat, and desktop UIs. Connect and manage your AI agents seamlessly across multiple platforms. Discover the power of unified chat abstractions.

- Tags: getting-started
- Published: 2026-04-16

### [What Is Plan Mode in GenericAgent and How It Handles Multi-Step Tasks with Verification](/lsdefine/GenericAgent/what-is-the-plan-mode-in-genericagent-and-how-does-it-handle-multi-step-task-execution-with-verification)

Discover GenericAgent's Plan Mode, a four-phase workflow for complex tasks. Learn how it uses verification sub-agents and guardrails for deterministic, step-by-step execution and reliable results.

- Tags: deep-dive
- Published: 2026-04-16

### [How `start_long_term_update` Distills Experience into L3 Long-Term Memory in GenericAgent](/lsdefine/GenericAgent/how-does-start_long_term_update-in-genericagent-distill-experience-into-long-term-memory-l3-skills)

Discover how start_long_term_update in GenericAgent distills experience into L3 long-term memory skills. Learn to compress agent insights into persistent memory.

- Tags: deep-dive
- Published: 2026-04-16

### [How `update_working_checkpoint` Manages Working Memory in GenericAgent Task Execution](/lsdefine/GenericAgent/how-does-update_working_checkpoint-manage-working-memory-during-genericagent-task-execution)

Discover how update_working_checkpoint effectively manages working memory in GenericAgent task execution. Learn to store critical context temporarily without cluttering long-term memory.

- Tags: internals
- Published: 2026-04-16

### [How the ask_user Tool Implements Human-In-The-Loop Confirmation in GenericAgent](/lsdefine/GenericAgent/how-does-the-ask_user-tool-in-genericagent-implement-human-in-the-loop-confirmation-for-task-validation)

Learn how GenericAgent's ask_user tool integrates human-in-the-loop confirmation. It pauses execution for explicit validation, ensuring task accuracy before proceeding.

- Tags: how-to-guide
- Published: 2026-04-16

### [How the file_patch Tool in GenericAgent Modifies Files Safely with Unique Content Matching](/lsdefine/GenericAgent/how-does-the-file_patch-tool-in-genericagent-modify-files-safely-using-unique-content-matching)

Learn how GenericAgent's file_patch tool safely modifies files using unique content matching. Prevent accidental overwrites with exact text verification for secure updates.

- Tags: how-to-guide
- Published: 2026-04-16

### [How GenericAgent Preserves Browser Session State and Login Sessions: A Deep Dive into the TMWebDriver Architecture](/lsdefine/GenericAgent/how-does-genericagent-preserve-browser-session-state-and-login-sessions)

GenericAgent safeguards browser session state and login sessions by keeping WebDriver in memory and serializing credentials to disk. Survivor browser tabs and authenticated sessions across restarts.

- Tags: deep-dive
- Published: 2026-04-16

### [How GenericAgent's code_run Tool Safely Executes Python with Timeout and Streaming Output](/lsdefine/GenericAgent/how-does-genericagents-code_run-tool-execute-python-code-safely-with-timeout-and-streaming-output)

Safely execute Python code with GenericAgent's code_run. It offers real-time streaming output, subprocess isolation, and hard timeouts for secure agent execution.

- Tags: how-to-guide
- Published: 2026-04-16

### [How GenericAgent's web_execute_js Achieves Full Browser Control Using JavaScript](/lsdefine/GenericAgent/how-does-genericagents-web_execute_js-achieve-full-browser-control-using-javascript)

Discover how GenericAgent's web_execute_js grants full browser control via JavaScript tunneling, enabling page context execution and DevTools Protocol for advanced operations.

- Tags: how-to-guide
- Published: 2026-04-16

### [9 Atomic Tools in GenericAgent: Complete Implementation Guide in ga.py](/lsdefine/GenericAgent/what-are-the-9-atomic-tools-in-genericagent-and-how-are-they-implemented-in-ga.py)

Discover the 9 atomic tools in GenericAgent and their complete implementation in ga.py. Learn how to use code_run, ask_user, web_scan, file_patch, and more.

- Tags: how-to-guide
- Published: 2026-04-16

### [Understanding the GenericAgent Agent Loop Architecture and Implementation](/lsdefine/GenericAgent/what-is-the-architecture-of-the-genericagents-agent-loop-and-how-is-it-implemented)

Explore the GenericAgent Agent Loop architecture. Learn how this generator-driven system orchestrates LLM conversations and tool calls for efficient execution.

- Tags: architecture
- Published: 2026-04-16

### [How GenericAgent's Self-Evolution Mechanism Crystallizes Tasks into Reusable Skills](/lsdefine/GenericAgent/how-does-genericagents-self-evolution-mechanism-crystallize-tasks-into-reusable-skills)

Discover how GenericAgent's self-evolution mechanism transforms tasks into reusable skills. Learn about its hierarchical memory system for efficient pattern storage and recall.

- Tags: deep-dive
- Published: 2026-04-16

### [How the Layered Memory System (L0-L4) Works in GenericAgent: A Deep Dive into the Five-Level Architecture](/lsdefine/GenericAgent/how-does-the-layered-memory-system-l0-l4-work-internally-in-genericagent)

Explore GenericAgent's Layered Memory System (L0-L4). Discover how L4 auto-compresses session logs for efficient long-term recall and cost savings.

- Tags: deep-dive
- Published: 2026-04-16

