Skip to content

Instantly share code, notes, and snippets.

@clonn
clonn / openclaw-gpt5-4_update_promt.md
Last active April 12, 2026 08:08
OpenClaw Configuration for GPT-5.4 Execution Bias

A practical guide for adapting OpenClaw’s core bootstrap files and runtime settings to better suit GPT-5.4, with a focus on execution-first behavior, completion discipline, concise outputs, and better tool-use convergence.

This time I changed the approach to: keep OpenClaw’s original structure, then add the execution tendencies that GPT-5.4 needs, instead of rewriting everything from scratch.

The basis for this adjustment is:

OpenClaw officially defines AGENTS.md as operating instructions plus memory, SOUL.md as persona, boundaries, and tone, and TOOLS.md as tool usage instructions. These files are injected directly in the first round of a new session. MEMORY.md is for long-term memory and is recommended only for the main session. BOOT.md is a startup checklist and should remain very short. The official documentation also clearly states that at session start, it should first read SOUL.md, USER.md, and the memory files for today and yesterday, while the main session should al

@clonn
clonn / x.com xurl auth update
Last active March 2, 2026 03:16
x.com xurl auth update
## X OAuth Local Development Lesson (Important)
I was stuck on this for a long time, so documenting it clearly:
### 1️⃣ You must use `localhost` exactly
The default redirect URI:
```
http://localhost:8080/callback
@clonn
clonn / clawdbot-moltbot.sh
Last active January 28, 2026 13:16
molt bot (clawdbot) installation script for ubuntu 24.04
#!/bin/bash
# ==============================================================================
# Moltbot Deployment Script for Ubuntu 24.04
# Optimized for: 4GB Swap, Node v24, Google DNS, and Custom Port Access
# ==============================================================================
# Exit immediately if a command exits with a non-zero status
set -e
@clonn
clonn / clawdbot_system_flow-zh-hant.md
Last active February 16, 2026 13:26
clawdbot system flow analytics

Clawdbot System Architecture Analysis

本文檔詳細解析 Clawdbot 的 Prompt Flow、System Prompt、框架、工具系統、整體流程,以及任務完成的定義。


1. 整體架構概覽

┌─────────────────────────────────────────────────────────────────┐
@clonn
clonn / cli.sh
Last active December 20, 2025 15:26
claude code to max token setup
# https://github.com/anthropics/claude-code/issues/4002
# Error: File content (28375 tokens) exceeds maximum allowed tokens (25000).
# You have to prepare to max account before
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=100000
export MAX_MCP_OUTPUT_TOKENS=1000000
# 設定之後再重新跑 claude code
# After configuring the settings, rerun Claude Code.
@clonn
clonn / printEyes.js
Created October 6, 2024 06:04
print a big eyes, how big you want ( . )( . )
function printEyes(space = 2) {
// Determine if we should use dot or star based on space size
const symbol = space > 3 ? "*" : ".";
// Create one eye with proper spacing
const innerSpace = " ".repeat(space);
const eye = "(" + innerSpace + symbol + innerSpace + ")";
// Combine both eyes
console.log(eye + eye);
@clonn
clonn / openssh_cve-2024-6387.sh
Created July 2, 2024 04:15
cve-2024-6387 openssh ubuntu bugs
# edit ssh config
sudo vim /etc/ssh/sshd_config
LoginGraceTime 0
# restart ssh
sudo service ssh restart
@clonn
clonn / 00_README.md
Created November 25, 2023 15:26 — forked from LeZuse/00_README.md
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms
@clonn
clonn / config.json
Created September 2, 2023 07:18
fixed nodebb invalid csrf token with cloudflare https config
{
"url": "https://DOMAIN",
"secret": "----",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": 27017,
"username": "",
"password": "",
"database": "",