设置全局智能体回复风格

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

核心是:全局源文件 + 三个工具入口软链接 + 项目 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.
相关推荐
`流年づ2 分钟前
VGG、AlexNet、GoogLeNet对比
人工智能·深度学习
马剑威(威哥爱编程)6 分钟前
【AI全栈后端12-08】Spring Boot 用 MCP 统一接入内部系统:让 AI 接一次,全公司复用
java·人工智能·spring boot
oooost11 分钟前
RecFno
人工智能·机器学习
屹立芯创ELEADTECH16 分钟前
先进封装RDL制程中的Build-up Film:关键应用、工艺挑战与发展趋势
大数据·人工智能·microsoft
bst@微胖子18 分钟前
Spring AI (5) : MCP 深度实战:从工具抽取到鉴权,SSE 与 STDIO
人工智能·spring·dubbo
richard_yuu20 分钟前
OpenCV 实战第 8 篇:几何测量算子族,从 boundingRect 到亚像素定位
人工智能·opencv·计算机视觉
2601_9567436821 分钟前
上海GEO营销公司技术评估方法|以盾码无界公开产品路线为例,拆解企业知识库语义检索、资料版本核验、内容人工审核与大模型监测复测的验证要点及适用边界
人工智能·geo·上海·企业服务
中伟视界22 分钟前
AI视频监控矿山落地实践:从算法部署到误报调优全流程
人工智能
打工仔折腾 AI24 分钟前
FaceFusion本地换脸实战:Windows整合包、模型选择与遮罩调参记录
人工智能·windows·后端·python·深度学习·性能优化·ai agent 实战
DeviceHub32 分钟前
AI服务器电源设计进阶:TLVR电感的应用解析与选型验证指南
运维·服务器·人工智能