Skip to content

feat: remove in-process LLM packages and dead model management#108

Merged
alexey-pelykh merged 1 commit intomainfrom
102-remove-pi-packages-model-management
Mar 1, 2026
Merged

feat: remove in-process LLM packages and dead model management#108
alexey-pelykh merged 1 commit intomainfrom
102-remove-pi-packages-model-management

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Closes #102.

  • Remove ~70 dead files from the in-process LLM provider pipeline (model-catalog, model-selection, model-fallback, model-auth, compaction, context-window-guard, cli-runner, system-prompt, bedrock-discovery, and associated tests)
  • Extract live utilities (resolveApiKeyForProviderprovider-auth.ts, normalizeProviderIdprovider-utils.ts) before deleting parent modules
  • Add resolveModelAuthLabel for rich auth labels (truncated key snippet + profile name) in /status output
  • Restore model resolution cascade in subagent-spawn.ts and context1m handling in status.ts
  • Cascade-update ~100 surviving caller files and fix unused imports

Net: -17,052 lines deleted, +975 lines added across 174 files.

Test plan

  • Full test suite passes (92 files, 829 tests, 0 failures)
  • Build passes (pnpm build)
  • Type check passes (47 errors, all pre-existing — down from 48 on main)
  • Lint passes (0 errors)
  • Format passes (pnpm format)

🤖 Generated with Claude Code

Remove ~70 dead files from the in-process LLM provider pipeline that are
no longer needed now that RemoteClaw delegates model selection, auth, and
context windows to CLI agents (Claude, Gemini, Codex, OpenCode).

Key changes:
- Delete dead modules: model-catalog, model-selection, model-fallback,
  model-auth, compaction, context-window-guard, cli-runner, system-prompt,
  bedrock-discovery, and associated tests
- Extract live utilities into provider-auth.ts and provider-utils.ts
  before deleting their parent modules
- Restore resolveModelAuthLabel for rich auth labels in /status output
- Restore model resolution cascade in subagent-spawn.ts
- Restore context1m parameter handling in status.ts
- Cascade-update ~100 surviving caller files
- Fix unused imports caught by linter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) March 1, 2026 10:23
@alexey-pelykh alexey-pelykh merged commit 4608a6a into main Mar 1, 2026
2 checks passed
@alexey-pelykh alexey-pelykh deleted the 102-remove-pi-packages-model-management branch March 1, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove in-process LLM packages and dead model management

1 participant