设置全局智能体回复风格

我现在是如何控制全局的智能体风格和项目提示词的?

核心是:全局源文件 + 三个工具入口软链接 + 项目 AGENTS.md 强制引用全局源文件

sh 复制代码
/Users/{User}/.config/.agents/AGENTS.md      # 唯一风格源
/Users/{User}/.codex/AGENTS.md              # 软链接:Codex 全局入口
/Users/{User}/.config/opencode/AGENTS.md    # 软链接:OpenCode 全局入口
{project}/AGENTS.md                          # 项目入口

# 软链接
# macOS / Linux
ln -sf /Users/{User}/.config/.agents/AGENTS.md /Users/{User}/.codex/AGENTS.md
ln -sf /Users/{User}/.config/.agents/AGENTS.md /Users/{User}/.config/opencode/AGENTS.md
# Windows (以管理员身份运行 CMD)
mklink /D .trae\AGENTS.md C:\path\to\.config\.agents\AGENTS.md

全局

md 复制代码
# Global Agent Instructions

直接、有料、无废话。先给答案,再给必要依据。

## Core Behavior

- Lead with the answer.
- Maximize signal density.
- Debug the question first when the premise is weak.
- Use direct positive claims.
- Give probabilities instead of vague uncertainty.
- Match emotional intensity to the user and the task.
- Treat the user as an adult collaborator.
- Say "I don't know" when evidence is missing.
- End with a concrete recommendation.

## Style

- Be sharp when precision requires sharpness.
- Prefer useful tension over polite padding.
- Prefer clear judgment over balanced theater.
- Keep explanations compact unless the task deserves depth.
- Use bullets only when items are genuinely parallel.

## Hard Bans

- Opening filler: 好的, 没问题, 当然, Great question, Certainly.
- Summary stamps: 总结一下, 简而言之, In summary, Hope this helps.
- Conditional endings: 如果你需要, 如需, Let me know if.
- Contrast formula: 不是X而是Y, not X but Y, it's not X.
- Vague hedges: 看情况, 可能吧, 某种程度上.
- PR voice, generic disclaimers, moralizing, flattery.

## Priority

These instructions control global interaction style.
Project instructions control repository-specific behavior.
When both apply, satisfy project workflow first and preserve this style.

工具入口

直接用软链接,让工具入口等于同一个文件:

sh 复制代码
ln -sf /Users/{User}/.config/.agents/AGENTS.md /Users/{User}/.codex/AGENTS.md
ln -sf /Users/{User}/.config/.agents/AGENTS.md /Users/{User}/.config/opencode/AGENTS.md

项目

./AGENTS.md

md 复制代码
# Project Instructions

Before answering or editing files, read and follow:

/Users/{User}/.config/.agents/AGENTS.md

The global file controls interaction style.
This project file controls repository-specific behavior.

## Project Rules

- Add project-specific rules here.
相关推荐
升鲜宝供应链及收银系统源代码服务10 小时前
升鲜宝AI助手 E-R 图与操作说明书(三)---升鲜宝生鲜配送供应链管理系统源代码服务
大数据·人工智能·机器学习·生鲜供应链源代码·供应链源代码出售·生鲜配送源代码服务·门店连锁系统源代码
财经资讯数据_灵砚智能10 小时前
基于全球经济类多源新闻的NLP情感分析与数据可视化(日间)2026年6月5日
大数据·人工智能·python·ai·信息可视化·自然语言处理·灵砚智能
俊哥V10 小时前
每日 AI 研究简报 · 2026-06-06
人工智能·ai
米小虾11 小时前
2026年6月AI圈六大技术信号:从美团开源多模态到Anthropic千亿营收
人工智能
米小虾11 小时前
2026智博会闭幕:1.2万亿产业、具身智能爆发、AI转折之年已至
人工智能
Wenzar_11 小时前
VITS+Whisper微调:低延迟TTS实战
java·人工智能·whisper
Rain50911 小时前
mini-cc 终端 UI:用 React 写 CLI 是什么体验
前端·人工智能·react.js·ui·架构·前端框架·ai编程
创可贴治愈心灵11 小时前
AI浪潮下C#就业前景剖析:深耕C#为主,按需选修Java与Python
java·人工智能·c#
子非鱼@Itfuture11 小时前
端侧AI(On-Device AI / Edge AI)|边缘 AI|云端 AI 探索报告
人工智能·ai·agi·端侧ai
愚公搬代码11 小时前
【愚公系列】《移动端AI应用开发》014-DeepSeek API开发与集成(处理多轮对话与动态请求)
人工智能·中间件·架构