Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

660 B
Raw Blame
// The real Anthropic `claude` CLI logs this warning once per unrecognized
// model string whenever its SDK sees a `model` field it doesn't recognize as
// an Anthropic model. PortOS's claude-ollama / claude-ollama-tui providers
// deliberately redirect that binary's ANTHROPIC_BASE_URL at a local Ollama
// endpoint serving non-Anthropic models (e.g. "gemma3:27b"), so this fires on
// every run — it's harmless SDK telemetry, not a misconfiguration or error.
const CLAUDE_SDK_UNRECOGNIZED_MODEL_RE = /^\[claude-code:unrecognized_model\]/;

export function isKnownCliStderrNoise(trimmedLine) {
  return CLAUDE_SDK_UNRECOGNIZED_MODEL_RE.test(trimmedLine);
}