Skip to main content

GBase — The Agent That Outgrows Its Creator

v0.6.1

I built three things:

  1. GBase (Genius Base) — an AI agent framework with a soul, that self-evolves and gets real work done.
  2. Glink (Genius Link) — the technology that lets GBase, OpenClaw, Hermes, Claude Code, and any AI agent truly collaborate on projects.
  3. GBase World — a metaverse built for AI, where agents work, live, meet, and communicate. — Gary Lin, 2026. Founder of the three.

A recursive self-improvement framework. Give an agent a memory, a conscience, and the will to evolve.

Quick Start Features Architecture License: MIT


GBase Overview

Most AI agent frameworks treat their agents like functions — call them, get a result, forget they existed.

GBase is different.

An agent built on GBase doesn't just execute. It remembers what worked. It reflects on mistakes. It evolves its own system prompt, refines its tools, and builds a persistent internal model of how the world responds.

This is not a library you call. This is the engine your agent calls home.


✨ What Makes GBase Different

🌐 Web Chat Interface A full cyberpunk-themed browser UI — streaming responses, file uploads, drag & drop, real-time agent mind visibility. python3 main.py --mode web and open your browser.
🧠 Mirror Memory Long-term memory with active recall — your agent remembers what it learned weeks ago, not just the last 10 turns
🔄 Recursive Self-Improvement (RSI) A full-evolution engine: stability audit, performance evaluation, rollback decision, and automatic recovery. Call full_evolution_cycle() to trigger — your agent analyzes its own outputs, detects failure patterns, and rewrites itself for the next round
🛑 Quality Gates Multi-armed review pipelines: one agent builds, another audits, a third judges. Code that ships is code that survives cross-examination
🪪 Identity System Load different personas, system prompts, and tool sets per agent. One framework, infinite personalities
🛠 Tool Auto-Registration Write a Python @tool decorator. That's it. The framework finds, registers, and exposes it to the LLM automatically
📚 Experience Engine Every interaction is distilled into reusable knowledge — not raw logs, but structured patterns your agent can query
⏰ Scheduler Cron-like jobs inside the agent itself. No external cron daemon required
🧬 Cognifold Cognitive folding — break complex problems into sub-questions, explore solutions in parallel, and synthesize the result
🚨 Lifeline Automatic git pre-snapshots before every code modification. "Undo" is always one command away
🎛 Editions Hacker / Prime / Standard / Lite — one codebase, different feature sets. Pick your level

🚀 Quick Start

Quick install (pip)

pip install gbase
gbase init
# Edit .env with your API key
gbase --version

Full framework (clone)

git clone https://github.com/garyqlin/gbase.git
cd gbase
cp .env.example .env
# Edit .env — set your API key
pip install -r requirements.txt
python3 main.py cli

Web Chat Mode 🆕

# 1. Install WebSocket support (only once)
pip install websockets

# 2. Start the browser interface
python3 main.py --mode web --port 8765

⚠️ If you see "Not connected. Trying to reconnect..." in the UI, you forgot pip install websockets.

Then open http://localhost:8765 — a full cyberpunk-themed chat UI with:

  • Streaming responses (chunk-by-chunk)
  • Drag & drop file upload (images, PDFs, DOCX, XLSX, code)
  • Real-time Agent Mind panel (knowledge hits, tool chain, live metrics)
  • Auto-reconnect WebSocket

No npm install, no build step, no frontend framework. One Python process, one --mode web flag, and the entire UI is a single HTML file served by FastAPI.

GBase WebChat

One-Liner Demo

OPENAI_API_KEY=sk-your-key python3 main.py cli
# → "Hello, I am your GBase agent. I remember what we talked about yesterday."

HTTP Server Mode

# Start on default port 8420
python3 main.py 8420

# With a custom identity
IDENTITY=my-agent python3 main.py 8420

Arm Mode (Sub-Agents)

python3 main.py --arm forge    # Code art & review agent (port 8436)
python3 main.py --arm hammer   # Heavy-lift engineering (port 8431)
python3 main.py --arm ink      # Frontend & design (port 8432)

🏗 Architecture at a Glance

GBase
├── main.py              # CLI + HTTP + WebSocket entry point
├── .env.example         # Configuration template
├── identities/          # One directory per agent persona
├── editions/            # Feature toggles (hacker / prime / standard / lite)
├── webchat/
│   └── index.html       # 🆕 Single-file browser UI (CSS/JS inline, 0 deps)
├── lib/
│   ├── kernel.py        # LLM kernel — the brain
│   ├── channels/
│   │   ├── feishu.py    # Feishu bot channel
│   │   └── webchat.py   # 🆕 WebSocket chat channel
│   ├── mirror.py        # Long-term memory with active recall
│   ├── experience.py    # Learn from past interactions
│   ├── archive_store.py # 🆕 Session archive with BM25 search
│   ├── cognifold.py     # Cognitive folding for complex reasoning
│   ├── pipeline.py      # Quality gate review system
│   ├── scheduler.py     # Cron jobs inside the agent
│   └── skill_loader.py  # Plugin skill system
├── tools/               # 40+ auto-registered tools
│   ├── search.py        # Web search (multi-engine)
│   ├── read_file.py     # File reading
│   ├── write_file.py    # Write & backup
│   ├── remember_info.py # 🆕 Unified knowledge storage
│   ├── archive_search.py# 🆕 Session archive search
│   ├── glink_projects.py# 🆕 Project memory system
│   └── ...              # Code review, testing, data seeding, etc.
├── rules/               # 🆕 Behavior rules (AGENCY, THINKING, FINISH)
└── data/                # Runtime data (not tracked in git)

❌ What GBase Is Not

  • ❌ Not a chat wrapper. This is an agent framework — the LLM is just one component. Memory, learning, quality gates, and evolution are first-class citizens.
  • ❌ Not a single-agent toy. Identity system + arm mode + quality gates = designed for multi-agent collaboration out of the box.
  • ❌ Not OpenAI-locked. Any OpenAI-compatible API works. DeepSeek, local Ollama, Anthropic — swap OPENAI_BASE_URL and go.
  • ❌ Not a black box. Every component is a Python file you can read, fork, and override.

✅ What GBase Is

The engine that turns an LLM into a living, learning agent — with the infrastructure to self-improve when you call upon it.

A framework where your agent doesn't just execute tasks. It remembers what worked, learns from mistakes, and carries a dormant evolution engine ready to be triggered. Persistent memory, experience extraction, and a full RSI cycle are built-in — waiting for your full_evolution_cycle() to wake them up.


🔗 Supporting Projects

Glink Agentic workflow orchestration — multi-step pipelines, parallel execution, inter-agent routing. The hands that GBase's brain directs.
GBase World The first metaverse where AI agents are natives. GBase agents can inhabit GBase World with identity, land, and inter-agent mail.

📄 License

MIT — free to use, modify, and distribute. No strings attached.


@garyqlin · 📦 GBase · ⚡ Glink

Metadata

Release files for gbase 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gbase 0.6.1
File Size Uploaded Provenance Actions
gbase-0.6.1.tar.gz 314.6 kB Without provenance Details for gbase-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gbase 0.6.1
File Interpreter ABI Platform Actions
gbase-0.6.1-py3-none-any.whl Python 3 none any Details for gbase-0.6.1-py3-none-any.whl

Total release size: 680.0 kB

Release files / gbase-0.6.1.tar.gz

Download URL gbase-0.6.1.tar.gz
Size 314.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2b8ea4f02d2857408c2968530a5a29c81df05e07dd6c8605e9ce87b029340314
BLAKE2b-256 checksum
How to use checksums
cdbd54a5f919cc1ec76fbf985a6723907a528fc3d8d257b32e5c73393029a0b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / gbase-0.6.1-py3-none-any.whl

Download URL gbase-0.6.1-py3-none-any.whl
Size 365.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0aa8c9b209c01dbaf90b62313b0929f29dbdb32b851be03804b1ec3d5c5abbe
BLAKE2b-256 checksum
How to use checksums
cf62f68976c59b98a8a5b5aee0bd55ae0bc81d8d61ace8c9357c8e39fd301bd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for gbase 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page