anthropics / anthropics/claude-agent-sdk-python

Add more presets to the system prompt

未關閉
#1,140 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
8.1k
分支
1.3k
PR 合併指標
PR 指標待擷取

描述

Currently, the only preset is [claude_code](https://code.claude.com/docs/en/agent-sdk/modifying-system-prompts), I do not want to use the `claude_code` preset, but I do want to be able to use parts of it, for example the part that instructs the auto memory.

It is also pretty unclear what is in the `claude_code` preset, to give a good understanding of what should be added to a custom prompt to get certain behavior to work correctly (such as auto memory).

My proposal would be to split up parts of the `claude_code` preset into smaller presets and the ability to construct your own, for example:

```
system_prompt={
"type": "preset",
"presets": ["formatting_guidelines", "auto_memory", "safety_instructions"],
"append": "You are a custom agent"
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。