Remove upstream-project attribution from docs and code comments

Strips references to the upstream npm-package agent harness from
README design notes, developer.md, the compaction package, the
runtime context/streaming comments, and the tools/mcp adapter
doc-comments. The technical patterns being described stand on their
own; the attribution chain isn't needed.

Remaining mentions of the word in the providers/anthropic package
are literal Anthropic model identifiers (the 'claude-…' API model
strings) — those are functional product names, not attribution.
This commit is contained in:
sausheong committed 2026-05-08 13:43:10 +08:00
1 parent fa61dbdf77
commit 7e9801bf9c
8 files changed
+17 -26

No files matched your search

-6
View File
@@ -57,9 +57,6 @@ func transcriptDelimiterSuffix() string {
// - The <analysis> block is a drafting scratchpad (stripped before
// injection by FormatCompactSummary). It improves summary quality on
// small models without polluting the resulting context.
//
// Pattern adapted from Claude Code's BASE_COMPACT_PROMPT
// (claude-code-source/src/services/compact/prompt.ts:61-143).
const summarizationPromptHeader = `You are summarizing an AI assistant's conversation so it can continue past the context window.
CRITICAL: Respond with TEXT ONLY. Do NOT call any tools. The output must be an <analysis> block followed by a <summary> block — nothing else.
@@ -247,9 +244,6 @@ var blankLineCollapseRE = regexp.MustCompile(`\n{3,}`)
// returned as-is so we never silently drop content. Multiple <summary>
// blocks (rare, but possible) are each unwrapped consistently so no literal
// tags leak into the injected context.
//
// Pattern adapted from Claude Code's formatCompactSummary
// (claude-code-source/src/services/compact/prompt.ts:311-335).
func FormatCompactSummary(raw string) string {
out := analysisBlockRE.ReplaceAllString(raw, "")