anthropics / anthropics/claude-agent-sdk-python

No way to access the resolved system prompt (from CLAUDE.md and similar files) via the Python SDK

未关闭
#948 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement question
主要语言
Python
星标
8.1k
派生
1.3k
平均合并
2 天 31 分钟
30 天内合并 PR
1

描述

## Context

While building agents using the Claude Agent SDK (Python SDK) the behavior of my agents is heavily driven by files like `CLAUDE.md`, things like tone, formatting rules, and domain constraints all live there.

From the Python SDK layer, I can track what goes in (the prompt) and what comes out (the response). But I have no visibility into what the CLI loads internally — specifically the content from `CLAUDE.md` and other context files that get merged into the effective system prompt before the model is called.

## Question

Is there any way to access this resolved system prompt from the Python SDK? Even a read-only view of what was actually sent to the model would be really useful for logging and debugging purposes.

If this is not currently supported, is it something that could be added? Or is this intentionally hidden due to any specific reason? Would love to understand the reason either way.

**SDK Version:** `claude-agent-sdk>=0.1.64`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。