Skip to content

Instantly share code, notes, and snippets.

@linyanm
linyanm / DeepSeek 提示词注入.user.js
Last active August 22, 2026 12:17
DeepSeek 提示词注入:在 chat.deepseek.com 静默注入系统提示词(Safari Userscripts / Tampermonkey)
// ==UserScript==
// @name DeepSeek 提示词注入
// @namespace https://hermes.local/
// @version 0.0.1
// @description 在 chat.deepseek.com 静默注入系统提示词:多模板管理、输入栏胶囊切换、可选仅首条注入 / 动态时间 / 专家模式
// @match https://chat.deepseek.com/*
// @icon https://www.google.com/s2/favicons?sz=256&domain=https://chat.deepseek.com/
// @downloadURL https://gist.githubusercontent.com/linyanm/e7d2fcd0208957cf4a3f1a6ef90d4ffb/raw/DeepSeek%20%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5.user.js
// @updateURL https://gist.githubusercontent.com/linyanm/e7d2fcd0208957cf4a3f1a6ef90d4ffb/raw/DeepSeek%20%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5.user.js
// @grant none
@linyanm
linyanm / opencode-desktop-sub2api-guide.md
Last active August 19, 2026 08:14
opencode 桌面版通过 sub2api 接入 Muse Spark

opencode 桌面版通过 sub2api 接入 Muse Spark

适用于 opencode 桌面版 / CLI v2,模型 muse-spark-1.2-contributor 走自建 sub2api 中转
已按 v2 规范修正:variants 为数组 + settings,并补全 medium

前置

  • sub2api 已建独立分组(platform: openai,上游 https://opencode.ai/zen/go/v1),令牌 YOUR_SUB2API_TOKEN 仅返回 ["muse-spark-1.2-contributor"]
  • 中转:http://YOUR_SUB2API_HOST:8080/v1
@linyanm
linyanm / pi-muse-spark-guide.md
Last active August 19, 2026 07:56
pi 配置 Muse Spark 1.2 Contributor

pi 配置 Muse Spark 1.2 Contributor

仅记录 pi 侧配置,无需关注中转实现

前置

  • 已有中转地址与令牌(示例:http://YOUR_SUB2API_HOST:8080/v1 + YOUR_MUSE_TOKEN
  • pi 配置目录:~/.pi/agent/

1. models.json 新增独立 muse 提供商

@linyanm
linyanm / README.md
Last active August 12, 2026 03:49
Claude Code VS Code + OpenCode Go + DeepSeek V4 Flash (one-click install)

Claude Code (VS Code) + OpenCode Go + DeepSeek V4 Flash

Gist: https://gist.github.com/linyanm/a2a4a3912acc91aa3bee3f37006eecad

在最新版 VS Code Claude Code 插件 中,通过 OpenCode Go 使用 DeepSeek V4 Flash(含 Anthropic Messages / 原生 web_search)。

实测版本:Claude Code VS Code 2.1.224,OpenCode Go https://opencode.ai/zen/go


@linyanm
linyanm / README.md
Last active August 13, 2026 01:05
Codex provider switcher (deepseek / opencodego / custom / ChatGPT). 用法: bash <(curl -fsSL https://gist.githubusercontent.com/linyanm/779f1bcea978b7cea57c18b580c7ed8b/raw/codex-switch.sh)

codex-switch.sh

一键切换 Codex CLI 的模型提供商:DeepSeek 官方 / OpenCode Go / 自定义网关 / 恢复 ChatGPT 登录。

快速使用

方式 A:在线直接跑(不落地)

bash &lt;(curl -fsSL https://gist.githubusercontent.com/linyanm/779f1bcea978b7cea57c18b580c7ed8b/raw/codex-switch.sh)