Windows ,在 C:\Users\用户名.codex 下新建 AGENTS.md 文件 然后加上如下内容就可以了
必须使用 UTF-8 编码
Your code must use the UTF-8 encoding format
回复请使用中文
一个“重写”流的提示词,覆盖比较全面。
把下面这段填进 CLAUDE.md 然后要求 CC "read and follow @CLAUDE.md" 即可在 claude_doc 目录下收获。
我们打算重写本 repo。为此,需要先完整理解现在它有什么功能。需要读原来的文档,和源码来知道:
名词、动词、引擎、点火钥匙
主要的模块和 call graph
重要的前10 个文件/函数,及其详细功能实现(在 claude_doc 目录下为这些文件各建一个 markdown 来详细说明)
| #!/usr/bin/bash | |
| set -e | |
| # 错误日志文件 | |
| ERROR_LOG="error.log" | |
| # 注册一个函数来处理错误 | |
| error_handler() { | |
| echo "Error on line $1" | tee -a "$ERROR_LOG" |
| #!/bin/bash | |
| # Auto format changed java files using google-java-format. | |
| # To install, copy this file into $repo/.git/hooks and remove the .sh extension. | |
| # Download the google-java-format JAR from | |
| # https://github.com/google/google-java-format | |
| # A more mature implementation of this would be a plugin for Yelp's pre-commit library: | |
| # http://pre-commit.com/ | |
| echo "Running auto-formatter for any changed Java files" | |
| echo "(formatting changes will be automatically added to your commit)" |
| Sink #799 | |
| State: RUNNING | |
| Name: bluez_output.11_78_64_16_66_18.1 | |
| Description: SANSUI | |
| Driver: PipeWire | |
| Sample Specification: s16le 2ch 48000Hz | |
| Channel Map: front-left,front-right | |
| Owner Module: 4294967295 | |
| Mute: no | |
| Volume: front-left: 47174 / 72% / -8.57 dB, front-right: 47174 / 72% / -8.57 dB |
| Source #799 | |
| State: IDLE | |
| Name: bluez_output.11_78_64_16_66_18.1.monitor | |
| Description: Monitor of SANSUI | |
| Driver: PipeWire | |
| Sample Specification: s16le 2ch 48000Hz | |
| Channel Map: front-left,front-right | |
| Owner Module: 4294967295 | |
| Mute: no | |
| Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB |
| package my.netty.http.upload; | |
| import io.netty.channel.Channel; | |
| import io.netty.channel.ChannelInitializer; | |
| import io.netty.channel.ChannelPipeline; | |
| import io.netty.channel.EventLoopGroup; | |
| import io.netty.channel.nio.NioEventLoopGroup; | |
| import io.netty.channel.socket.SocketChannel; | |
| import io.netty.channel.socket.nio.NioServerSocketChannel; | |
| import io.netty.handler.codec.http.HttpRequestDecoder; |
SSH authentication agent does not automatically start when using it from a remote server. This results in the following error message:
$ git pull
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
$ ssh-add ~/my-ssh-key.pem
Could not open a connection to your authentication agent.
To fix it requires manually starting ssh-agent: