OpenCode 个人习惯设置大全
前提条件opencode 已经成功安装了自动安装 OMO SlimInstall and configure oh-my-opencode-slim: https://raw.githubusercontent.com/alvinunreal/oh-my-opencode-slim/refs/heads/master/README.md如果你已经安装了 bun可以手动安装 OMO Slimbunx oh-my-opencode-slimlatest install然后可选安装cc-switch如果你有多平台和多模型配置需求的话强烈推荐opencode.json 文件远程版context7时效性强编程时更快获取技术框架的最新文档以更新大模型的知识库mem0记忆的持久化// 第一个忘了做什么来着了 plugin: [.opencode/plugins/graphify.js, oh-my-opencode-slimlatest],$schema: https://opencode.ai/config.json, mcp: { context7: { enabled: true, headers: { CONTEXT7_API_KEY: ??? }, type: remote, url: https://mcp.context7.com/mcp }, mem0: { enabled: true, headers: { Authorization: Token ??? }, oauth: false, type: remote, url: https://mcp.mem0.ai/mcp/ } }, plugin: [.opencode/plugins/graphify.js, oh-my-opencode-slimlatest],opencode.jsonc 文件本地版{ $schema: https://opencode.ai/config.json, permission: { task: allow, }, instructions: [ node_modules/morphllm/opencode-morph-plugin/instructions/morph-tools.md, ], plugin: [ morphllm/opencode-morph-pluginlatest, // 快速修改大型文件 // tarquinen/opencode-dcplatest, // 动态剪切上下文 替代品 magic context cortexkit/opencode-magic-contextlatest, // 替代 dcp mohak34/opencode-notifierlatest, // 桌面提醒 nick-vi/opencode-type-injectlatest, // 类型检查 tmegit/opencode-worktree-sessionlatest, // 项目管理 mem0/opencode-pluginlatest, // 记忆持久化 oh-my-opencode-slimlatest, // 多 agent 模型能力强 上下文大的模型才有开的必要 opencode-pty, // 提升终端交互体验 opencode-skills, superpowersgithttps://github.com/obra/superpowers.git, // 著名的 superpowers 技能集 ], command: { superpower:brainstorming: { description: Explore user intent, requirements, and design before creative work, template: Load the brainstorming skill using the skill tool, then follow it exactly., }, superpower:dispatching-parallel-agents: { description: Execute 2 independent tasks in parallel using subagents, template: Load the dispatching-parallel-agents skill using the skill tool, then follow it exactly., }, superpower:executing-plans: { description: Execute an implementation plan in a separate session with review checkpoints, template: Load the executing-plans skill using the skill tool, then follow it exactly., }, superpower:finishing-a-development-branch: { description: Guide completion of development work - merge, PR, or cleanup, template: Load the finishing-a-development-branch skill using the skill tool, then follow it exactly., }, superpower:receiving-code-review: { description: Process code review feedback with technical rigor before implementing suggestions, template: Load the receiving-code-review skill using the skill tool, then follow it exactly., }, superpower:requesting-code-review: { description: Verify work meets requirements before committing or merging, template: Load the requesting-code-review skill using the skill tool, then follow it exactly., }, superpower:subagent-driven-development: { description: Execute independent implementation tasks using subagents in the current session, template: Load the subagent-driven-development skill using the skill tool, then follow it exactly., }, superpower:systematic-debugging: { description: Debug bugs, test failures, and unexpected behavior systematically, template: Load the systematic-debugging skill using the skill tool, then follow it exactly., }, superpower:test-driven-development: { description: Write tests before implementation code (TDD workflow), template: Load the test-driven-development skill using the skill tool, then follow it exactly., }, superpower:using-git-worktrees: { description: Create isolated workspaces for feature work via git worktrees, template: Load the using-git-worktrees skill using the skill tool, then follow it exactly., }, superpower:verification-before-completion: { description: Verify work (lint, tests, build) before claiming completion, template: Load the verification-before-completion skill using the skill tool, then follow it exactly., }, superpower:writing-plans: { description: Create detailed implementation plans from specs or requirements, template: Load the writing-plans skill using the skill tool, then follow it exactly., }, superpower:writing-skills: { description: Create, edit, and verify skills, template: Load the writing-skills skill using the skill tool, then follow it exactly., }, }, mcp: { sequential-thinking: { type: local, command: [ cmd, /c, npx, -y, modelcontextprotocol/server-sequential-thinking, ], enabled: false, }, filesystem: { type: local, command: [ cmd, /c, npx, -y, modelcontextprotocol/server-filesystem, // C:\\Users\\admin\\.opencode, // C:\\Users\\admin\\.cache\\opencode, // C:\\Users\\admin\\.config\\opencode, // C:\\Users\\admin\\.local\\share\\opencode, // C:\\Users\\admin\\.local\\state\\opencode, // C:\\Users\\admin\\AppData\\Local\\Temp, C:\\Users\\admin, // D:\\program\\coder\\utils\\bun-windows-x64\\.opencode, D:\\program\\coder\\, D:\\data\\admin, D:\\data\\download, D:\\data\\desktop, D:\\data\\studio, ], enabled: true, }, morph-mcp: { type: local, command: [npx, --prefer-offline, -y, morphllm/morphmcp], environment: { MORPH_API_KEY: ???, }, enabled: true, }, firecrawl-mcp: { type: local, command: [npx, -y, firecrawl-mcp], environment: { FIRECRAWL_API_KEY: ???, }, enabled: false, }, markitdown: { type: local, command: [markitdown-mcp], enabled: false, }, chrome-devtools: { type: local, command: [npx, -y, chrome-devtools-mcplatest], enabled: false, }, }, compaction: { auto: false, prune: false, }, }magic context 安装安装 opencode 的前提下执行npx cortexkit/magic-contextlatest setup随后有英文的引导界面翻译搞完即可。然后用此命令检查一下npx cortexkit/magic-contextlatest doctor如果有报错或感叹号多执行几次下面这个命令直到无报错为止npx cortexkit/magic-contextlatest doctor --force节省 token 的可选安装rtk安装网址如下https://github.com/rtk-ai/rtk对于 windows 系统支持有限建议用 mac 或 linux 或 wsl2 安装 rtk作用是 cli 代理程序对命令输出进行过滤和压缩节省常用的 token 上下文。浏览器操作能力出名的有 PlaywrightMCP、Playwright-cli、opencode-browserplugin、Agent Reach工作流、chrome-devtoolsMCP、Agent Browsercli首推的是 cli 版本的 Playwright-cli 或 Agent Browsercli其次是 plugin 版本的 opencode-browserMCP 版本 token 占用多但是调用显式按自己情况来实时开启比如用 chrome-devtoolsMCP 临时开启进行调试Agent Reach工作流按需选用我的 cc 的 oh my opencode slim 截图大家也可以将自己的 ai agent 配置 或者 经验心得 分享在评论区

相关新闻

[智能体-588]:openClaw:JavaScript / TypeScript / Node.js 完整概述与三者层级关系

[智能体-588]:openClaw:JavaScript / TypeScript / Node.js 完整概述与三者层级关系

1. JavaScript(JS)—— 编程语言本体基础定位 一门动态弱类型解释型编程语言,最初只为浏览器网页交互而生,标准由 ECMA 制定(ECMAScript)。核心能力边界原生浏览器环境:仅能操作网页 DOM、发起网…

2026/6/29 18:55:55阅读更多 →
基于pytest的接口自动化测试框架:从设计到实战

基于pytest的接口自动化测试框架:从设计到实战

1. 项目概述:为什么说pytest是接口自动化测试的“瑞士军刀”?如果你正在为如何高效、稳定地开展接口自动化测试而头疼,或者厌倦了那些笨重、配置繁琐的测试框架,那么今天聊的这个工具,很可能就是你一直在找的答案。我说…

2026/6/29 18:55:55阅读更多 →
告别云端依赖:Obsidian 双端 Git 同步方案实战

告别云端依赖:Obsidian 双端 Git 同步方案实战

1. 为什么选择Git同步Obsidian? 如果你和我一样是个笔记狂魔,肯定遇到过这样的烦恼:在电脑上写的笔记,出门用手机却看不到最新版本。传统的云同步方案比如OneDrive虽然方便,但存在几个硬伤:同步冲突时可能丢…

2026/6/29 18:55:55阅读更多 →
Conda 环境一键搬家:用 conda-pack 打包带走,连网都不用

Conda 环境一键搬家:用 conda-pack 打包带走,连网都不用

方案对比:yml 还是打包?迁移 conda 环境,主流有两种办法:1. 环境配置文件(.yml)用 conda env export > environment.yml 导出包列表,到新电脑上 conda env create -f environment.yml 重建。…

2026/6/29 20:11:16阅读更多 →
如何永久保存网页记忆:Wayback Machine浏览器扩展终极指南

如何永久保存网页记忆:Wayback Machine浏览器扩展终极指南

如何永久保存网页记忆:Wayback Machine浏览器扩展终极指南 【免费下载链接】wayback-machine-webextension A web browser extension for Chrome, Firefox, Edge, and Safari 14. 项目地址: https://gitcode.com/gh_mirrors/wa/wayback-machine-webextension …

2026/6/29 20:11:16阅读更多 →
零基础非技术员工怕学不会AI?从日常办公任务自动化开始构建个人工作流的实战指南

零基础非技术员工怕学不会AI?从日常办公任务自动化开始构建个人工作流的实战指南

在企业日常运营中,运营、行政、财务、人力资源等非技术岗位的从业者,往往需要处理大量重复性的事务性工作。以业务运营岗位为例,每周需要从 CRM 系统、业务后台、第三方监测工具等多个渠道导出结构不同的数据表,再手动完成数据匹配…

2026/6/29 20:11:16阅读更多 →
力诺药包董事长宋来亮相第三届出海全球峰会 解读新质智造“中国方案”的践行破局路径

力诺药包董事长宋来亮相第三届出海全球峰会 解读新质智造“中国方案”的践行破局路径

6月28日至29日,由吴晓波频道・华商出海产业联盟主办的第三届出海全球峰会在新加坡圣淘沙名胜世界举办。本届峰会以“生而全球・为增长而出海”为主题,汇聚全球企业决策者与产业实战派,共同研判全球供应链重构趋势,拆解出海经营痛点…

2026/6/29 20:11:16阅读更多 →
抖音无水印下载工具完整指南:三步轻松保存高清视频

抖音无水印下载工具完整指南:三步轻松保存高清视频

抖音无水印下载工具完整指南:三步轻松保存高清视频 【免费下载链接】douyin-downloader A practical Douyin downloader for both single-item and profile batch downloads, with progress display, retries, SQLite deduplication, and browser fallback support.…

2026/6/29 20:11:16阅读更多 →
康迪科技战略控股信储新能源 业务延伸至AIDC备电储能

康迪科技战略控股信储新能源 业务延伸至AIDC备电储能

2026年6月29日,浙江康迪科技集团有限公司(以下简称“康迪科技”)宣布完成对信储新能源2000万元战略投资,以51%股权实现控股,业务延伸至AIDC备电储能赛道,完善能源基建产业布局。随着AI产业高速发展&#xf…

2026/6/29 20:06:15阅读更多 →
AI Coding 六个月真实ROI账本:产品经理的血泪教训,研发的冷静忠告

AI Coding 六个月真实ROI账本:产品经理的血泪教训,研发的冷静忠告

6个月前的2025年12月,Boris Cherny 公开宣布自己卸载了 IDE。一时间,Vibe Coding 成了全行业最热的话题。6个月后,当我们回过头来拉一份真实账本,发现事情远没有"一句话生成一个App"那么浪漫。本文从产品经理和研发两个…

2026/6/29 3:27:55阅读更多 →
审计来了,数据权限全开——审计走了,怎么确保权限全部关掉?

审计来了,数据权限全开——审计走了,怎么确保权限全部关掉?

引言:审计结束三个月了,审计员的权限还没关某城商行每年按照监管要求开展至少一次数据安全审计。审计期间,内审部门需要抽样检查各类业务数据——交易流水、客户信息、员工操作日志、权限配置记录。这些数据分布在不同系统中,审计…

2026/6/29 2:19:08阅读更多 →
如何在3秒内从普通图片生成专业级法线贴图:DeepBump的终极指南

如何在3秒内从普通图片生成专业级法线贴图:DeepBump的终极指南

如何在3秒内从普通图片生成专业级法线贴图:DeepBump的终极指南 【免费下载链接】DeepBump Normal & height maps generation from single pictures 项目地址: https://gitcode.com/gh_mirrors/de/DeepBump 还在为3D建模中的纹理制作而烦恼吗?…

2026/6/29 0:01:47阅读更多 →
OCAuxiliaryTools:终极OpenCore配置工具,让黑苹果安装从未如此简单!

OCAuxiliaryTools:终极OpenCore配置工具,让黑苹果安装从未如此简单!

OCAuxiliaryTools:终极OpenCore配置工具,让黑苹果安装从未如此简单! 【免费下载链接】OCAuxiliaryTools Cross-platform GUI management tools for OpenCore(OCAT) 项目地址: https://gitcode.com/gh_mirrors/oc/OCA…

2026/6/29 0:01:47阅读更多 →
终极Windows 11精简指南:使用tiny11builder快速创建纯净系统镜像

终极Windows 11精简指南:使用tiny11builder快速创建纯净系统镜像

终极Windows 11精简指南:使用tiny11builder快速创建纯净系统镜像 【免费下载链接】tiny11builder Scripts to build a trimmed-down Windows 11 image. 项目地址: https://gitcode.com/GitHub_Trending/ti/tiny11builder 你是否厌倦了Windows 11系统自带的20…

2026/6/29 0:01:47阅读更多 →