Write the repository summary
write_repo_summaryPersist a repository summary to CLAUDE.md and a fingerprint cache after describe_repo indicates a summary is needed, enabling future reuse.
Instructions
Persist a repository summary after describe_repo returned status='needs_summary'.
Writes CLAUDE.md and the fingerprint cache. Refuses the running installation
and runtime source root before creating a lock, summary or cache file.
Call this with the summary you generated from the prompt and the
repo_hash value from the describe_repo response. repo_path and
workspace_id are optional over stdio; over HTTP pass both back from
that response unchanged.
Returns JSON whose fields depend on status:
refreshed: {status, action, path, hash, word_count, in_word_budget, summary_preview}
rejected, protected installation/source root or stale repo_hash: {status, reason}
rejected, summary failed the sanity check:
{status, reason, word_count, has_heading, summary_preview}
error: {status, error}; over stdio a workspace error adds pid, workspace_inputs
and, from a server the Claude desktop app started, hint
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| repo_hash | Yes | ||
| repo_path | No | Optional directory within the caller workspace; defaults to the workspace. | |
| workspace | No | Absolute path of your working directory, the project this session works in. Pass it whenever you have one: one server can serve several sessions. | |
| workspace_id | No | Optional workspace id returned by describe_repo. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |