惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
小众软件
小众软件
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
量子位
博客园_首页
T
Tailwind CSS Blog
The Cloudflare Blog
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
P
Proofpoint News Feed
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
D
Docker
Microsoft Azure Blog
Microsoft Azure Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - think41/extrasuite: Token-efficient pull/edit/push workflow for AI agents editing Google Workspace files (Sheets, Docs, Slides, Forms) GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw
GitHub - Grimm67123/grimmbot: The self-improving sandboxe...
2026-04-11 · via Hacker News: Show HN

⚠️ LICENSE NOTICE ⚠️

IN ORDER TO USE THIS SOFTWARE, YOU MUST READ, UNDERSTAND AND AGREE TO THE GNU AGPL V3 LICENSE INCLUDED IN THIS REPOSITORY.


What is GrimmBot?

GrimmBot is an autonomous AI agent that runs inside a sandboxed Docker container with full desktop and browser control. It learns from its mistakes, builds its own tools, and gets better over time.

Core Features

  • 🧠 Self-Learning from Mistakes — When the agent hits an error (blocked command, failed action, wrong approach), it writes a rule to data/adaptation.json so it never repeats the same mistake. Rules are retrieved using keyword matching — only rules relevant to the current task are loaded.
  • 🛠️ Custom Tool Creation — If the agent's built-in tools can't handle a task, it writes and registers a new Python tool on the fly. Custom tools persist across sessions in data/custom_tools/.
  • 👀 Zero-Token Monitoring: Grimmbot bypasses expensive LLM polling by dynamically writing custom Python tools that monitor changes locally, saving API tokens and requests during long-running observation tasks.
  • 💾 Persistent RAG Memory — The agent remembers past tasks and outcomes using TF-IDF semantic search. It retrieves relevant past experiences to inform future actions (data/memory.json).
  • ⏰ Task Scheduling — Supports one-time, daily, and interval-based background task scheduling with disk persistence.
  • 👍 Feedback & Dataset Creation — Rate agent responses with thumbs up/down and export a JSONL dataset for fine-tuning by pressing the button in the UI. Feedback is restricted to local models only (Ollama, LM Studio) — the buttons are hidden when using cloud providers.
  • 🌐 Browser Automation — Full Chromium control via CDP with DOM extraction. The agent reads webpage structure through tagged interactive elements, not screenshots.
  • 🔒 Sandboxed Execution — All commands run inside Docker. Domain allowlists, command allowlists, and user approval gates prevent unintended actions.
  • 👀 Live Desktop View — Watch the agent work in real-time through the noVNC panel in the web interface.

Architecture

Module Purpose
core.py Configuration, safety rules, custom tool registry, system prompts, and tool definitions
agent.py Main agent loop, LLM communication, tool dispatch
tools.py 40+ built-in tools (shell, file I/O, browser, memory, scheduling)
memory.py RAG memory store, keyword-based adaptation retrieval, RLHF feedback store
scheduler.py Persistent background task scheduler
screen.py Chromium CDP control, DOM extraction, mouse/keyboard input
grimmbot.py FastAPI web server, WebSocket handlers, command routing

Setup

Prerequisites: Docker and Docker Compose installed.

1. Clone and configure

git clone https://github.com/Grimm67123/GrimmBot.git
cd directoryforthegrimmbotfolder
cp .env.example .env

Edit .env with your model and API key:

# Local model example (Ollama)
LLM_MODEL=ollama/gemma3:4b
OLLAMA_API_BASE=http://host.docker.internal:11434

# Cloud model example (Gemini)
LLM_MODEL=gemini/gemini-2.5-flash
PROVIDER_API_KEY=your-api-key-here

Set your security allowlists:

ALLOWED_DOMAINS=github.com,wikipedia.org
ALLOWED_COMMANDS=ls,cat,echo,grep,find,python3,pip,node,npm,git,curl,wget

2. Start

docker compose up --build

3. Use

Open http://localhost:5000 in your browser in order to use the agent.


Gallery

GrimmBot's webUI at localhost:5000

Image

GrimmBot improves itself by creating a rule that makes it avoid making the same mistake again.

Image

Custom tool creation approval prompt.

Image

Commands

Type these in the chat (no LLM call required):

Command What it does
!help Show all commands
!verbose Toggle detailed tool/thought logs
!throttle [N/off] Delay between agent actions
!commssafeguard Toggle approval for typing/clicking actions
!login <url> [profile] Open browser for manual login via VNC
!profiles List Chromium profiles
!memory [show/reset] View or clear RAG memory
!schedule View scheduled tasks
!files List files in the wormhole
!tools List built-in tools
!custom-tools List agent-created tools
!emergency Halt all agent operations

Portability

All learning is stored in the data/ folder and is portable between machines:

  • data/adaptation.json — Self-learned rules. Copy to another instance to transfer learned behaviors.
  • data/memory.json — RAG memory (per-profile). Preserves context and knowledge.
  • data/custom_tools/ — Agent-created Python tools. Fully portable.
  • data/scheduler/ — Scheduled task definitions.
  • data/feedback.json — Thumbs up/down feedback data (local models only).

FAQ

Which LLMs work? Any model supported by LiteLLM — Gemini, GPT, Claude, Ollama, LM Studio, Groq, Mistral, and others.

Can I use fully local/offline models? Yes. For example, for Ollama, set LLM_MODEL=ollama/your-model and GrimmBot connects to your host's Ollama via host.docker.internal. No internet needed for the agent itself. Right now, only Ollama, LocalAI, text gen, vLLM and LM Studio are supported.

How does the wormhole work? The wormhole/ folder is shared between your host and the container. Place files there for the agent to access, or retrieve files the agent creates.

What happens when the agent encounters an error? It analyzes the error, writes a rule to adaptation.json to avoid it in the future, and retries. Over time, the agent accumulates rules that make it more reliable.

How do I run tests?

pip install pytest
cd directoryforthegrimmbotfolder
pytest tests/ -v

Contribution Policy

Sorry, this project currently does not accept external pull requests. Bug reports and feature requests via GitHub Issues are welcome.


If this project impressed you, consider leaving a star!