Skip to content

Instantly share code, notes, and snippets.

View sing1ee's full-sized avatar
🏠
Working from home

MILO sing1ee

🏠
Working from home
View GitHub Profile

Openclaw Lossless Context Management (LCM) Plugin Guide

A comprehensive guide to installing, configuring, and using the lossless-claw plugin for OpenClaw — a DAG-based context engine that never throws away your conversation history.

What Problem Does It Solve?

By default, OpenClaw uses a legacy context engine that truncates or slides old messages out of the context window when conversations get long. Once those messages are gone, the agent loses access to earlier context entirely.

Lossless-claw replaces this with a fundamentally different approach:

Build a CBT Therapy Agent with OpenClaw

A step-by-step guide to creating a personal Cognitive Behavioral Therapy (CBT) agent that you can talk to whenever you need support — no code required.

What You Will Build

A dedicated AI agent that acts as a CBT-informed conversational companion. It can:

  • Help you identify and challenge negative automatic thoughts
  • Guide you through cognitive restructuring exercises

OpenClaw imageModel 配置指南

一、什么是 imageModel

imageModel 是 OpenClaw 中专门用于视觉理解的模型配置,独立于主对话模型(model)。当对话涉及图片或视觉内容时,OpenClaw 会自动切换到 imageModel 指定的模型来处理。

二、为什么需要单独配置

主模型(model.primary)不一定支持视觉输入。例如:

  • MiniMax-M2.5-highspeed 是纯文本模型,无法处理图片

配置步骤:

# 1. 安装 acpx 插件
openclaw plugins install @openclaw/acpx

# 2. 配置 OpenClaw(.OPENCLAW 是你的 config 目录)
openclaw config set plugins.entries.acpx.enabled true
openclaw config set plugins.entries.acpx.config.permissionMode approve-all
openclaw config set acp.enabled true

推荐完整配置

agents: {
  defaults: {
    memorySearch: {
      enabled: true,
      provider: "gemini",
 model: "gemini-embedding-001",
@sing1ee
sing1ee / gist:e3e95c7deafc3be885f0a29e19177d1f
Created September 14, 2022 03:18
key steps for install osmosis full node for pocket network
1. install
```shell
cd ~/chain_bin/
wget https://github.com/osmosis-labs/osmosis/releases/download/v11.0.1/osmosisd.tar.gz
wget https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.3.0/cosmovisor-v1.3.0-linux-amd64.tar.gz
@sing1ee
sing1ee / linecolor.py
Created March 21, 2017 06:46
small tools for colorful output of stdout
# /usr/bin/python
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8') # @UndefinedVariable
# 格式:\033[显示方式;前景色;背景色m
# 说明:
@sing1ee
sing1ee / centos6.5_nginx
Created October 16, 2016 12:52 — forked from ifels/centos6.5_nginx
centos 6.5 nginx安装与配置
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo
@sing1ee
sing1ee / 51hunter_crawler.py
Last active April 22, 2016 01:59
crawl skill tags from 51hunter
# -*- coding: utf-8 -*-
import requests
import sys
reload(sys)
sys.setdefaultencoding('utf8') # @UndefinedVariable
skills = '''

###数对数目分析

####原题 给定两个数组X和Y,元素都是正数。请找出满足如下条件的数对的数目:

  1. x^y > y^x,即x的y次方>y的x次方
  2. x来自X数组,y来自Y数组

####分析 假设数组X的长度为m,数组Y的长度为n,最直接的暴力法,时间复杂度为O(m*n),但这样的话,并不需要都是正数这个条件的。那么,我们该如何优化呢?