[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-83454":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":21,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":10,"trendingCount":14,"starSnapshotCount":14,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},83454,"deepseekcode","amemiya02\u002Fdeepseekcode","amemiya02","Coding agent for DeepSeek models","https:\u002F\u002Fdeep-seek.codes\u002F",null,"Go",102,8,0,47,6,2.86,"MIT License",false,"main",true,[],"2026-06-12 02:04:34","# deepseekcode\n\n[![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Famemiya02\u002Fdeepseekcode?style=flat-square&label=release)](https:\u002F\u002Fgithub.com\u002Famemiya02\u002Fdeepseekcode\u002Freleases)\n[![Go Reference](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fgo-reference-007d9c?style=flat-square&logo=go&logoColor=white)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Famemiya02\u002Fdeepseekcode)\n[![Go Report Card](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Famemiya02\u002Fdeepseekcode?style=flat-square)](https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002Famemiya02\u002Fdeepseekcode)\n[![Go Version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fgo-1.26.3-00add8?style=flat-square&logo=go&logoColor=white)](go.mod)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue?style=flat-square)](LICENSE)\n\n[English](README.md) · [简体中文](README.zh-CN.md)\n\n`deepseekcode` is a terminal coding agent for DeepSeek models and\nOpenAI-compatible chat-completions endpoints. It ships as a single Go binary\nnamed `dsc`, with an interactive TUI, one-shot CLI mode, repository tools,\nSQLite-backed sessions, and a conservative permission model.\n\n## Why dsc (DeepSeek specialization)\n\n> **Measured, not claimed.** In a reproducible 12-turn session on\n> `deepseek-v4-flash`, dsc holds a **94.7% prefix cache-hit rate** vs **0%** for\n> a cache-naive agent — **4.5× cheaper**, every figure read from DeepSeek's own\n> `prompt_cache_hit_tokens`. Reproduce: `make demo-cache` (live) or\n> `make demo-cache-offline` (no API key). Evidence: [bench\u002F](bench\u002FREADME.md).\n\n- **Provable prefix-cache stability** — a single canonical serializer feeds both\n  the wire bytes and the cache fingerprint, so they cannot diverge by\n  construction; `dsc trace inspect` shows `prefixes==1` to prove a stable run\n  ([docs\u002Fprefix-cache.md](docs\u002Fprefix-cache.md)).\n- **Real, signal-driven Flash→Pro routing** — opt-in via `--auto-route`\n  (escalates on ambiguity \u002F repeated repair), not just a prompt instruction; an\n  always-on Duet pro-validator fires on destructive tool calls\n  ([docs\u002Fduet.md](docs\u002Fduet.md)).\n- **Real OS sandbox** — sandbox-exec (macOS) \u002F Landlock (Linux) with a real PTY,\n  not just path containment ([docs\u002FSANDBOX.md](docs\u002FSANDBOX.md)).\n- **Auto reasoning-effort** — per-turn thinking on\u002Foff via multi-language\n  keyword detection plus `low\u002Fmedium\u002Fhigh\u002Fmax` effort, dialed down automatically\n  on simple tasks.\n\nOn tool-use (tau-bench-lite, 8 tasks) dsc is at **parity** on cost-per-solved\n(~$0.00038) with a strong DeepSeek-native flash baseline — reported honestly,\nwith no capability claim on easy tasks ([bench\u002Ftaubench](bench\u002Ftaubench\u002F)).\n\n## Features\n\n- Interactive Bubble Tea TUI and scriptable `dsc -p \"prompt\"` mode.\n- DeepSeek-first runtime with thinking, `reasoning_effort` control, long context,\n  prefix-cache metrics, and `deepseek-v4-flash` \u002F `deepseek-v4-pro` support.\n- OpenAI-compatible provider configuration for alternate chat-completions\n  endpoints.\n- Repository tools for file reads\u002Fedits, patches, shell commands, git, grep,\n  LSP queries, web fetch\u002Fsearch, and user questions.\n- Persistent project sessions with resume, branching, scrollback export, and\n  `\u002Fundo` for recent edit steps.\n- Extensibility through custom slash commands, `SKILL.md` discovery, MCP tools,\n  subagents, and isolated git worktrees.\n- Safety controls for read-only mode, ask-before-tool mode, auto-approve mode,\n  secret path checks, bash allowlists, optional sandboxing, and Pro validation\n  for destructive operations.\n\n## Installation\n\nmacOS \u002F Linux:\n\n```sh\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Famemiya02\u002Fdeepseekcode\u002Fmain\u002Finstall.sh | sh\n```\n\nHomebrew:\n\n```sh\nbrew install amemiya02\u002Fdeepseekcode\u002Fdeepseekcode\n```\n\nScoop:\n\n```sh\nscoop bucket add deepseekcode https:\u002F\u002Fgithub.com\u002Famemiya02\u002Fdeepseekcode-scoop\nscoop install deepseekcode\n```\n\nGo:\n\n```sh\ngo install github.com\u002Famemiya02\u002Fdeepseekcode\u002Fcmd\u002Fdsc@latest\n```\n\nFrom source:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Famemiya02\u002Fdeepseekcode\ncd deepseekcode\nmake build\n.\u002Fbin\u002Fdsc -version\n```\n\nRequirements:\n\n- Go version matching `go.mod` or newer when building from source.\n- `DEEPSEEK_API_KEY`, or another provider key configured in `.deepseek\u002Fconfig.toml`.\n- Git and language servers are optional, but enable richer repository context.\n\n## Quick Start\n\n```sh\nexport DEEPSEEK_API_KEY=sk-...\n\ndsc                              # open the TUI\ndsc -p \"summarize this repo\"     # run one prompt and exit\ndsc --read-only                  # inspect without write\u002Fedit\u002Fbash tools\ndsc init                         # create starter project config\ndsc doctor                       # check local setup\n```\n\nSession shortcuts:\n\n```sh\ndsc -c                 # continue the latest session in this project\ndsc -r \u003Csession-id>    # resume a specific session\ndsc -new               # force a new session\n```\n\n## Configuration\n\nConfiguration is layered from built-in defaults, user config, project config,\nand CLI flags. Project config lives at `.\u002F.deepseek\u002Fconfig.toml`; user config\nlives at `~\u002F.deepseek\u002Fconfig.toml`.\n\nMinimal DeepSeek config:\n\n```toml\n[active]\nprovider = \"deepseek\"\n\n[providers.deepseek]\ntype = \"deepseek\"\nbase_url = \"https:\u002F\u002Fapi.deepseek.com\"\nenv_var = \"DEEPSEEK_API_KEY\"\nfirst_token_timeout_ms = 45000\nchunk_stall_timeout_ms = 20000\n\n[defaults]\nmodel = \"deepseek-v4-flash\"\nthinking = true\n```\n\nOpenAI-compatible endpoint:\n\n```toml\n[active]\nprovider = \"openai\"\n\n[providers.openai]\ntype = \"openai-compat\"\nbase_url = \"https:\u002F\u002Fapi.openai.com\"\nenv_var = \"OPENAI_API_KEY\"\ndefault_model = \"gpt-4o\"\n```\n\nSee [docs\u002Fconfig.md](docs\u002Fconfig.md) and\n[docs\u002FPROVIDERS.md](docs\u002FPROVIDERS.md) for the full reference.\n\n## Environment Variables\n\n| Variable | Default | Description |\n|---|---|---|\n| `DEEPSEEK_API_KEY` | *(required)* | DeepSeek API key |\n| `DEEPSEEKCODE_BASE_URL` | `https:\u002F\u002Fapi.deepseek.com` | API base URL; set to a mirror for China-mainland access |\n| `DEEPSEEKCODE_PROXY` | *(none)* | Explicit HTTP\u002FHTTPS proxy URL; overrides `HTTPS_PROXY`\u002F`HTTP_PROXY` |\n| `DEEPSEEKCODE_LANG` | auto-detected | UI locale override (`zh-CN`, `en`); falls back to `LANG` |\n\n## Documentation\n\n- [Configuration](docs\u002Fconfig.md)\n- [Providers](docs\u002FPROVIDERS.md)\n- [Tools](docs\u002Ftools.md)\n- [Permissions](docs\u002Fpermissions.md)\n- [Sandboxing](docs\u002FSANDBOX.md)\n- [Custom commands](docs\u002Fcommands.md)\n- [Skills](docs\u002Fskills.md)\n- [MCP](docs\u002Fmcp.md)\n- [LSP](docs\u002Flsp.md)\n- [Pricing](docs\u002Fpricing.md)\n- [Model compatibility](docs\u002FMODEL_COMPATIBILITY.md)\n\n## Development\n\n```sh\nmake build       # build .\u002Fbin\u002Fdsc\nmake test        # go test .\u002F...\nmake test-race   # go test -race .\u002F...\nmake lint        # go vet .\u002F...\nmake fmt         # gofmt -s -w .\nmake run         # build and launch the TUI\n```\n\nBefore opening a pull request:\n\n```sh\nmake fmt\nmake lint\nmake test\n```\n\n## Contributing\n\nIssues and pull requests are welcome. Keep README changes synchronized between\n`README.md` and `README.zh-CN.md` with matching `##` structure. Document only\nfeatures that are implemented and testable in this repository.\n\n## Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=amemiya02\u002Fdeepseekcode&type=Date)](https:\u002F\u002Fstar-history.com\u002F#amemiya02\u002Fdeepseekcode&Date)\n\n## License\n\nMIT\n",2,"2026-06-11 04:11:14","CREATED_QUERY"]