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

+3 -3
View File
@@ -501,8 +501,8 @@ func FormatDateLine(now time.Time) string {
// PostCompactRestoreFiles caps how many recently-touched files
// buildPostCompactRestore re-injects after a successful compaction.
// 5 mirrors Claude Code's harness behaviour (harness.md §3) and keeps
// the restore message bounded.
// 5 keeps the restore message bounded while covering the typical
// "the last few files I was working on" recall horizon.
const PostCompactRestoreFiles = 5
// PostCompactRestoreBytesPerFile bounds the per-file byte budget for
@@ -542,7 +542,7 @@ func extractPathFromInput(raw []byte) string {
//
// Format is wrapped in <system-reminder>...<file path="...">...</file>
// tags so the model recognises it as out-of-band context, not a fresh
// user request. Mirrors how Claude Code re-injects POST_COMPACT files.
// user request.
func buildPostCompactRestore(files []string, maxFiles, maxBytesPerFile int) llm.Message {
if len(files) == 0 || maxFiles <= 0 || maxBytesPerFile <= 0 {
return llm.Message{}
+1 -1
View File
@@ -14,7 +14,7 @@ import (
// 3. Otherwise off.
//
// Strict "1" for the env fallback (rather than truthy parsing) keeps the
// env contract simple and matches Claude Code's binary-feature-gate posture.
// env contract simple and unambiguous.
// Note: an explicit `false` in JSON5 behaves the same as the field being
// absent — to disable, leave both unset.
func (r *Runtime) streamingToolsEnabled() bool {