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 件 担当者 0 名 GitHub で見る
enhancement question
主要言語
Python
スター
8.1k
フォーク
1.3k
平均マージ
2日 31分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。