Skip to content

Instantly share code, notes, and snippets.

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

xiaodao daog1

🏠
Working from home
View GitHub Profile

Claude Agent SDK Technical Specification

Version: 1.0.0 Protocol Version: 2024-11-05 Last Updated: 2026-01-10

Table of Contents

  1. Overview
  2. Architecture
@daog1
daog1 / sol-mcp.md
Created October 12, 2025 15:13
sol-mcp

根据我的使用经验,这两个功能的提示词有以下区别:

get_transaction_with_inner_instructions 提示词特征

适用场景:获取交易中所有程序的完整指令树

  • "获取交易的完整内部指令"
  • "显示交易的所有指令和子指令"
  • "分析交易的完整执行路径"
  • "获取交易的详细指令分解"
@daog1
daog1 / pump_amm.json
Created April 1, 2025 04:44 — forked from Taylor123/pump_amm.json
PumpSwap IDL
{
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",
"metadata": {
"name": "pump_amm",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Created with Anchor"
},
"instructions": [
{
@daog1
daog1 / README.org
Created December 29, 2023 04:30 — forked from Ladicle/README.org
Emacs Configuration ver. 2022

Ladicle’s Emacs Configuration ver.2022

https://user-images.githubusercontent.com/1159133/156761456-4be104ae-4cb3-420e-81c7-8abd00497d51.png

Outline

Package Management (link)

  • leaf-keywords
    • el-get
    • hydra
  • package-utils

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@daog1
daog1 / bootstrap.sh
Created August 31, 2023 00:29 — forked from Bwc9876/bootstrap.sh
NuShell Bootstrap
# Bootstraps all tools
cargo install nu ripgrep starship bat
export PATH="$PATH:~/.cargo/bin"
NU_VERSION=$(nu --version)
CONF_PATH=$(nu -c "echo \$nu.config-path")
ENV_PATH=$(nu -c "echo \$nu.env-path")
CONF_DIR=$(dirname "$CONF_PATH")
@daog1
daog1 / instructions.md
Created August 9, 2023 12:06 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@daog1
daog1 / .tmux.conf
Created August 1, 2023 11:11 — forked from Godsing/.tmux.conf
Tmux 配置文件(保姆级注释,含部分插件)
# 1. 安装tpm: mkdir -p ~/.tmux/plugins && cd ~/.tmux/plugins && git clone https://github.com/tmux-plugins/tpm
# 2. 按 prefix + I(大写) 来安装插件
# 3. 安装 vim-obsession, 用 vundle 安装或: cd ~/.vim/bundle && git clone git://github.com/tpope/vim-obsession.git --depth 1 && vim -u NONE -c "helptags vim-obsession/doc" -c q
##### 以上需手工执行 #####
## 修改 tmux-prefix 键: ctrl+b --> ctrl+a
set -g prefix C-a
unbind C-b
bind a send-prefix
#set-option -g prefix2 `
@daog1
daog1 / Greeter.sol
Created November 22, 2022 05:18
合约调用合约
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/Test.sol";
contract Greeter is Test {
string private name = "DMZ";
function greet(uint256 num) public {
emit log_named_uint("greet",num);
}
function greet2(uint256 num) public returns( string memory){
@daog1
daog1 / destr.py
Created October 1, 2022 09:12
move debug string
import sys
import re
while True:
line = sys.stdin.readline()
if len(line) == 0:
break
ms= re.match(r'.*\[(.*[\d])\]', line)
if ms == None:
print(line)