Skip to content

Instantly share code, notes, and snippets.

@dazuiba
dazuiba / status-line.sh
Created March 20, 2026 00:01
Claude Code status line script - shows model, context usage, and git info
#!/bin/bash
# Read JSON input from stdin
input=$(cat)
# Extract information from JSON
model_name=$(echo "$input" | jq -r '.model.display_name')
current_dir=$(echo "$input" | jq -r '.workspace.current_dir')
# Extract context window information
@dazuiba
dazuiba / README.md
Created May 28, 2026 02:41
claudep — Claude Code proxy wrapper via oc-cc-proxy
#!/usr/bin/env bash
export ANTHROPIC_BASE_URL=http://127.0.0.1:4000
export ANTHROPIC_AUTH_TOKEN=unused
export ANTHROPIC_MODEL=deepseek-v4-flash
export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-v4-pro
export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4-flash
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-flash
export CLAUDE_CODE_SUBAGENT_MODEL=deepseek-v4-flash
exec claude "$@" --dangerously-skip-permissions
@dazuiba
dazuiba / README.md
Last active May 28, 2026 03:44
claudep — Claude Code proxy wrapper via oc-cc-proxy

claude-p — Claude Code + OpenCode Go 代理

一、背景:在 Claude Code 中使用 OpenCode Go 订阅

Claude Code 默认走 Anthropic API。如果你有 OpenCode Go 订阅,可以用它来跑 Claude Code,享受 opencode-go 的极低价格和模型选择(如 deepseek-v4)。

为什么值得

  • deepseek-v4 能力持平 sonnet / gpt-5.4,它们能干的事 deepseek-v4 都能干
  • 成本是后者的 ~1/3;而 opencode-go 的价格又是官方 deepseek 的 ~1/3
@dazuiba
dazuiba / sub2api.config.toml
Last active July 21, 2026 05:21
codex sub2api profile
# write this file to
# .codex/sub2api.config.toml
# use by: `codex --profile sub2api`.
model_provider = "sub2api"
model = "gpt-5.6-terra"
model_reasoning_effort = "medium"
disable_response_storage = true
network_access = "enabled"
windows_wsl_setup_acknowledged = true
@dazuiba
dazuiba / README.md
Last active August 4, 2026 04:28
Codex mobile notifications with Bark and Hammerspoon (sanitized example config)

Codex Mobile Notify

将 Codex 生命周期事件通过 Bark 推送到手机,并在 Hammerspoon 菜单栏中提供开关。

文件

  • codex_mobile_notify.py:Codex hook 与通知命令。
  • config.json:通知规则与 Bark 地址。发布的版本不含个人信息。
  • hammerspoon.lua:菜单栏开关。