Skip to content

Example: Friendev changes its own source code

Yang Borui edited this page Nov 9, 2025 · 1 revision

Example: Friendev changes its own source code #1

[OK] Config loaded

[DIR] D:\capcapcap\Friendev

[OK] New session: b9cf7d18-7d5b-449a-ba98-e110fdf09756


███████╗██████╗ ██╗███████╗███╗ ██╗██████╗ ███████╗██╗ ██╗
██╔════╝██╔══██╗██║██╔════╝████╗ ██║██╔══██╗██╔════╝██║ ██║
█████╗ ██████╔╝██║█████╗ ██╔██╗ ██║██║ ██║█████╗ ██║ ██║
██╔══╝ ██╔══██╗██║██╔══╝ ██║╚██╗██║██║ ██║██╔══╝ ╚██╗ ██╔╝
██║ ██║ ██║██║███████╗██║ ╚████║██████╔╝███████╗ ╚████╔╝
╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═══╝╚═════╝ ╚══════╝ ╚═══╝
AI-Powered Development Assistant

────────────────────────────────────────────────────────────
Current Model : Qwen/Qwen3-Coder-480B-A35B-Instruct
Current UI Language : en

Current AI Language : English (The original text is Chinese Simplified, translated)
────────────────────────────────────────────────────────────
> /help Show help
> /model list List all models
> /exit Exit program
════════════════════════════════════════════════════════════

>> Hello

[AI] Hello! Is there anything I can help you with?
>> Read "D:\capcapcap\Friendev\src\tools.rs", can you change all the tool descriptions to English?

[AI]
⠋ Using file_read (src\tools.rs)
• Used file_read
Read 464 lines, 16643 bytes

[AI]
⠋ Using file_replace
──── Approval Required ──────────────────
ReplaceFile wants to modify:
tools.rs

Content preview:
- Replace: 读取文件的内容
With: Read the content of a file
- Replace: 写入内容到文件,...
With: Write content to a file, cr...
- Replace: 替换文件中的字符...
... (1 more lines)

[Y]es / [N]o / [A]lways
─────────────────────────────────────────
Your choice: y

• Used file_replace
Applied 3 edits, 3 replacements

[AI] I have successfully translated three tool descriptions from Chinese to English in the file `D:\capcapcap\Friendev\src\tools.rs`:

 

1. **file_read** tool description has been updated to: "Read the content of a file"

2. **file_write** tool description has been updated to: "Write content to a file, creating it if it does not exist"

3. **file_replace** tool description has been updated to: "Replace strings in a file, supporting batch edits. Prefer this tool over file_write to modify existing files."

 

These changes have been saved to the original file. If you need further adjustments or to check other parts, please let me know!
>>


>> You forgot to translate the others into English too. There are sub-descriptions besides the main description. Read tool.rs again.

[AI]
⠋ Using file_read (src\tools.rs)
• Used file_read
Read 464 lines, 16646 bytes

[AI]
⠋ Using file_replace
──── Approval Required ──────────────────
ReplaceFile wants to modify:
tools.rs

Content preview:
- Replace: 目录路径(可选,默认为工作目录)
With: Directory path (optional, d...
- Replace: 要读取的文件路径
With: File path to read
- Replace: 要写入的文件路径
... (2 more lines)

[Y]es / [N]o / [A]lways
─────────────────────────────────────────
Your choice: y

• Used file_replace
Applied 9 edits, 9 replacements

[AI] I have successfully translated all tool descriptions and sub-descriptions from Chinese to English in the file `D:\capcapcap\Friendev\src\tools.rs`, including:

1. Main tool description:
- `file_read`: "Read the content of a file"
- `file_write`: "Write content to a file, creating it if it does not exist"
- `file_replace`: "Replace strings in a file, supporting batch edits. Prefer this tool over file_write to modify existing files."

2. Sub-parameter description:

- Directory paths, file paths, content, etc. have all been updated to English descriptions

 

A total of 9 replacements have been completed, and these changes have been saved to the original file. If you need further adjustments or have other requirements, please let me know!
>>

 

 

Presentation ended

 

 

* Translated by GLM-4 Flash, Original Chinese Simplified.

* Programming AI: Qwen3-Coder-480B-A35B-Instruct

* Using Friendev 0.1.1. Open source software

 

Yang Borui

2025/11/9 21:00:00

Clone this wiki locally