Skip to content

Instantly share code, notes, and snippets.

第一梯队:日常必用

命令 说明
gateway 最核心命令,启动 WebSocket Gateway 服务,是整个系统的运行基础
configure 交互式配置向导,首次使用和修改配置时必用
config 非交互式配置辅助(get/set/unset),脚本化管理配置
channels 管理聊天渠道连接(Telegram、Discord 等),接入消息平台的入口
agent 通过 Gateway 运行一次 agent turn,直接与 AI agent 交互
message 收发消息的核心命令,日常使用频率很高
@karpathy
karpathy / microgpt.py
Last active September 9, 2026 11:46
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
/**
* 百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换的工具
*
* 参考 https://github.com/wandergis/coordtransform 实现的Java版本
* @author geosmart
*/
public class CoordinateTransformUtil {
static double x_pi = 3.14159265358979324 * 3000.0 / 180.0;
// π
static double pi = 3.1415926535897932384626;