ds4-control CLAUDE.md

ds4-control CLAUDE.md is an instructions file for coding agents from notatestuser/ds4-control. It costs 1,320 tokens per session, scanned A, original, MIT.

Project instructions for maintaining ds4-control, a macOS menu-bar app that supervises a local DeepSeek V4 server on Apple Silicon. The app monitors system resources, offers chat, and can open a coding agent connected to that server.

In plain words
What is it for?
Use them when changing the app, updating DeepSeek V4 preview weights or the ds4-server revision, checking memory and GPU behavior, or refreshing related tests and documentation.
Why use it?
They explain how the project is structured and how to safely maintain its preview DeepSeek V4 files, memory calculations, and tests as the model changes.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/notatestuser/ds4-control/claude-md
Clone the repo
git clone --depth 1 https://github.com/notatestuser/ds4-control

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ds4-control CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/notatestuser/ds4-control/claude-md.svg)](https://agentmods.dev/instructions/notatestuser/ds4-control/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/notatestuser/ds4-control/claude-md"><img src="https://agentmods.dev/badge/instructions/notatestuser/ds4-control/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,320 This file is loaded in full into every session.
When invoked 1,320 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01320 $0.01320
Opus 5 $0.00660 $0.00660
Sonnet 5 $0.00264 $0.00264
Haiku 4.5 $0.00132 $0.00132

Measured 5d ago against content hash 7e27cae36747, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ds4-control CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DS4 Control — project guide for Claude

Purpose

A macOS menu-bar control pane for DeepSeek V4 running locally on Apple Silicon via antirez/ds4. It launches, supervises, and monitors a local ds4-server child process; lets you pick V4 Pro or V4 Flash (0731 weights); downloads GGUF weights; shows live unified-memory / GPU / CPU / power widgets; provides a built-in chat; and can open a coding agent (pi or claude) in Terminal pointed at the local server.

It does no embedded inference — all inference is delegated to ds4-server. This app only supervises that process and surfaces system metrics + a chat/agent front end.

DeepSeek V4 preview maintenance

The current 0731 DeepSeek V4 GGUFs are preview artifacts, not the final GA release. When V4 leaves preview, update the pinned GGUF names/URLs and external/ds4 revision together. Re-read the GA files' exact byte sizes into Quant.ggufBytes, verify the Metal context-allocation formula, shared graph-workspace formula, and persistent backend-scratch bounds against that ds4 revision, and refresh the feasibility/variant tests and documented memory tiers. Do not carry the preview size constants or allocator assumptions into a GA release unchanged.

Stack

  • SwiftPM executable target DS4Control (Swift 6 mode, macOS 14+). swift-tools-version: 6.3.
  • SwiftUI menu-bar app (MenuBarExtra, LSUIElement/.accessory — no dock icon or window until you click the menu-bar item). Links IOKit + private IOReport for power/frequency metrics.
  • ds4 lives as a git submodule at external/ds4 (provides the ds4-server binary).

Dev workflow

From the repo root (/Users/luke/dev26/ds4_workspace/ds4-control):

swift build          # build
swift test           # run all tests (authoritative — trust the compiler over SourceKit squiggles)
DS4_DIR="$PWD/external/ds4" .build/debug/DS4Control     # run the dev app

DS4_DIR points the app at the bundled submodule so Start can spawn ds4-server. It's a menu-bar app — after launch, find its icon in the macOS menu bar; the popup's gear/chat/terminal icons open Settings, the chat window, and the agent launcher.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 71 lines · 1,320 tokens per session scan A 7e27cae36747

Subscribe to this mod's changes

ds4-control CLAUDE.md is an instructions file published in the GitHub repository notatestuser/ds4-control (810 stars, last pushed 19d ago), licensed MIT. It adds 1,320 tokens to every session, about $0.0066 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

DeepSeek-Harness-Desktop AGENTS.md

Instructions for web-casa/DeepSeek-Harness-Desktop, covering agents.md — dsh desktop, 项目本质, 不可违背的安全不变量, 版本单一事实源(改动版本时必须同时改全部) and harness 升级启动契约(bump pin 前必读).

web-casa/DeepSeek-Harness-Desktop · 2,781 tokens

carboncode AGENTS.md

Instructions for Yapie0/carboncode, covering agents.md, project context, current status, product direction and chosen base.

Yapie0/carboncode · 1,060 tokens

carboncode CLAUDE.md

Instructions for Yapie0/carboncode, covering claude.md, canonical rules (authoritative — follow these), dev workflow, architecture map (src/) and conventions.

Yapie0/carboncode · 2,028 tokens

DeepCopilot copilot-instructions.md

Instructions for deep-copilot/DeepCopilot, covering deepcopilot 项目级 copilot / ai 审核指引, 项目概述, 技术栈, 审查时必须关注的红线 and 代码风格.

deep-copilot/DeepCopilot · 640 tokens

DeepSeekMeter AGENTS.md

Instructions for CWNU-Open-Source-Community/DeepSeekMeter, covering agents.md — deepseekmeter 仓库操作规范, 1. 项目是什么, 2. 常用命令(改动后必须本地验证), ios 版验证(核心包自测 + 工程结构静态校验必跑;有 xcode 时还会构建 app 冒烟) and android 核心单测(需 jdk 17 + android sdk;jvm 直跑无需设备).

CWNU-Open-Source-Community/DeepSeekMeter · 3,490 tokens

claude-science-api-bridge AGENTS.md

Instructions for Jyx0208/claude-science-api-bridge, covering agent operating manual, prime directive, goal, repository map and success criteria.

Jyx0208/claude-science-api-bridge · 1,090 tokens