refactor: retire core leftovers the plugins replaced #26
Closed
gabrielvidal
wants to merge 0 commits from
retire-dead-leftovers into main
pull from: retire-dead-leftovers
merge into: gabrielvidal:main
gabrielvidal:main
gabrielvidal:card-icon-beside-title
gabrielvidal:worktrees-cli
gabrielvidal:worktrees-plugin
gabrielvidal:agent-presets
gabrielvidal:no-plugin-white-flash
gabrielvidal:agy-tasks
gabrielvidal:home-declutter
gabrielvidal:perf-plugin-batching
gabrielvidal:fresh-context-plugin
gabrielvidal:remove-hooks-page
gabrielvidal:palette-plugins
gabrielvidal:linear-projects
gabrielvidal:agent-messaging
gabrielvidal:model-router
gabrielvidal:conv-card-layout
gabrielvidal:ask-more-options
gabrielvidal:agent-limits
gabrielvidal:generic-ui-strings
gabrielvidal:android-push-bridge
gabrielvidal:auto-translate
gabrielvidal:filter-chips
gabrielvidal:plugin-catalog
gabrielvidal:file-viewers
gabrielvidal:plugins-page-rework
gabrielvidal:hub-mcp-plugin
gabrielvidal:translation-plugin
gabrielvidal:scheduled-doors
gabrielvidal:cron-jobs-plugin
gabrielvidal:context-skills-plugin
gabrielvidal:files-plugins
gabrielvidal:worker-names
gabrielvidal:details-panel-perf
gabrielvidal:services-plugin-only
gabrielvidal:fix-test-env-leaks
gabrielvidal:bg-shells-plugin
gabrielvidal:feat-commits-plugins
gabrielvidal:fix-branch-line-tag-rows
gabrielvidal:runner-into-harness-pi
gabrielvidal:retire-tool-proxy
gabrielvidal:new-project-policy-plugin-only
gabrielvidal:guest-jobs-sonnet
gabrielvidal:push-buttons-everywhere
gabrielvidal:mail-send-plugin
gabrielvidal:ui-polish-batch
gabrielvidal:command-palette-plugin
gabrielvidal:keyboard-shortcuts-plugin
gabrielvidal:prompt-shortcuts-plugin
gabrielvidal:matomo-site-grants
gabrielvidal:lab-chrome-plugin
gabrielvidal:performance-plugin
gabrielvidal:whats-new-plugin
gabrielvidal:skills-agents-plugin
gabrielvidal:goals-plugin-only
gabrielvidal:storage-server-side
gabrielvidal:plugin-scheduled-conversations
gabrielvidal:plugin-fences
gabrielvidal:handoff-plugin
gabrielvidal:plugin-commands
gabrielvidal:plugin-speed
gabrielvidal:cleanup-provider-harness
gabrielvidal:plugin-conversation-labels
gabrielvidal:plugin-plan-usage
gabrielvidal:fix-worker-harness-sync
gabrielvidal:plugin-gcloud-reauth
gabrielvidal:feat/plugin-cards-in-thread
gabrielvidal:feat/plugin-proxy-wake
gabrielvidal:unify-subagents-children
gabrielvidal:wave3d-frontend-typed-plugins
gabrielvidal:wave3c-sidecar-strict-plugins
gabrielvidal:wave3a-catalog-accounts-profiles
gabrielvidal:wave3b-pricing-usage-cutover
gabrielvidal:wave1a-typed-plugins
gabrielvidal:wave1b-sidecar-runtime
gabrielvidal:fix-ios-overlay-scroll
gabrielvidal:batch2-work-resources-core
gabrielvidal:batch2-apikeys
gabrielvidal:plugin-blue-green-deploy
gabrielvidal:plugin-ship
gabrielvidal:plugin-project-env
gabrielvidal:plugin-memories
gabrielvidal:plugin-activity
gabrielvidal:plugin-templates
gabrielvidal:plugin-desk-phone
gabrielvidal:batch1-platform
gabrielvidal:plugins-list-view
gabrielvidal:dash-plugins
gabrielvidal:pets-plugin
gabrielvidal:ha-push-channel
gabrielvidal:mail-agents
gabrielvidal:graph-fix
gabrielvidal:graph-plugin
gabrielvidal:services-plugin
gabrielvidal:left-to-do-plugin
gabrielvidal:plugins-gallery
gabrielvidal:home-conv-menu
gabrielvidal:meta-business
gabrielvidal:agy-rdrand
gabrielvidal:bg-lag
gabrielvidal:conv-load-perf
gabrielvidal:askform-instant
gabrielvidal:fix/drawer-menu-done-chip
gabrielvidal:pi-midrun-compaction
gabrielvidal:interrupt-menu-btn
gabrielvidal:authz
gabrielvidal:inkling
gabrielvidal:repo-plugins
gabrielvidal:work-sync
gabrielvidal:leftovers
gabrielvidal:fix/agy-guest-guard
gabrielvidal:feat/model-presets
gabrielvidal:scroll-back
gabrielvidal:feedback-bell
gabrielvidal:feat/movies-tool
gabrielvidal:feat/running-thread-padding
gabrielvidal:feat/drawer-filter-button-card-chat
gabrielvidal:burn-rate
gabrielvidal:guest-install
gabrielvidal:guest-usage
gabrielvidal:guest-palette
gabrielvidal:guest-form-links
gabrielvidal:form-open-buttons
gabrielvidal:clarifier-lean
gabrielvidal:auto-archive
gabrielvidal:guests-profile
gabrielvidal:conv-motion
gabrielvidal:share-target
gabrielvidal:terminal-sync
gabrielvidal:work-context-past
gabrielvidal:work-context-brief
gabrielvidal:enroll-codes
gabrielvidal:open-image-file
gabrielvidal:worker-uploads
gabrielvidal:conv-drawer-search
gabrielvidal:stack-motion-v3
gabrielvidal:notif-stack-fixes
gabrielvidal:home-motion
gabrielvidal:i18n-fr
gabrielvidal:local-electricity-cost
gabrielvidal:cache-pill-thread
gabrielvidal:cache-scenarios
gabrielvidal:fresh-start
gabrielvidal:msg-select
gabrielvidal:shortcuts-setup
gabrielvidal:ui-0-40-3
gabrielvidal:outbox-landing
gabrielvidal:resume-scope
gabrielvidal:conv-filter-range
gabrielvidal:fix-subagent-form-session
gabrielvidal:ask-form-integration
gabrielvidal:form-visual-options
gabrielvidal:watcher-perf
gabrielvidal:last-msg-summary
gabrielvidal:secret-fields
gabrielvidal:commit-review
gabrielvidal:summary-mode-fixes
gabrielvidal:service-tag-parser
gabrielvidal:clarifier
gabrielvidal:fetch-diet-2
gabrielvidal:fetch-diet
gabrielvidal:conv-look
gabrielvidal:pwa-links
gabrielvidal:tool-widgets
gabrielvidal:worker-autoupdate
gabrielvidal:usage-rings
gabrielvidal:opencode-harness
gabrielvidal:notif-diet
gabrielvidal:conv-resources
gabrielvidal:scheduled-tasks
gabrielvidal:profiles
gabrielvidal:notify-exact-cost
gabrielvidal:usage-measuring
gabrielvidal:guest-projects
gabrielvidal:usage-calibration
gabrielvidal:account-switch
gabrielvidal:multiuser-improve
gabrielvidal:form-groups
gabrielvidal:multiuser
gabrielvidal:motion-reel
gabrielvidal:dashboards-fixes
gabrielvidal:split-big-files
gabrielvidal:held-regex
gabrielvidal:subagent-interrupts
gabrielvidal:form-html
gabrielvidal:tokunia-video
gabrielvidal:settings-uniform
gabrielvidal:worker-ask-fix
gabrielvidal:worker-generic-mac
gabrielvidal:runner-shortcuts
gabrielvidal:notify-unify
gabrielvidal:perf-list-cache
gabrielvidal:mac-worker
gabrielvidal:model-switch
gabrielvidal:pipeline-paths
gabrielvidal:multi-account
gabrielvidal:feature-flags
gabrielvidal:qwen38-support
gabrielvidal:url-prompt
gabrielvidal:running-pages
gabrielvidal:homelab-tag
gabrielvidal:root-project
gabrielvidal:or-models
gabrielvidal:deploying-loader
gabrielvidal:worktree-diff
gabrielvidal:conv-tags
gabrielvidal:tags-page
gabrielvidal:agents-page
gabrielvidal:icon-picker-shortcuts
gabrielvidal:conv-cta
gabrielvidal:stamp-refine
gabrielvidal:post-task-cache
gabrielvidal:post-tidy-completed
gabrielvidal:form-badge
gabrielvidal:hooks-delay-seconds
gabrielvidal:cost-dashboard
gabrielvidal:plan-forms
gabrielvidal:form-mobile
gabrielvidal:guidelines-dag
gabrielvidal:skills-view
gabrielvidal:navbar-hold
gabrielvidal:spawnbox-status
gabrielvidal:hold-editable-expand
gabrielvidal:drawer-transparent
gabrielvidal:hold-fix
gabrielvidal:hold-editable
gabrielvidal:charroll-bump
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
gabrielvidal (Gabriel Vidal)
Clear assignees
No Assignees
gabrielvidal
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gabrielvidal/ai-agent#26
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
This removes core code that the plugins have replaced and that nothing calls any more. It covers the "a" items and the approved route and provider-copy items from the retire-legacy audit (form
retire-legacy-built-in-tools-decisions_wmmg1t, 2026-11-27). I checked every deletion withgit grepin this repo and inai-agent-plugins. Anything still imported stays.Key changes
Dead frontend
business/dashboards/components/DashboardFilters.tsx,ConversationsDashboard.tsxandlib/costAnalysis.ts. Also deleted the tests ofcostAnalysisinlib/pricing.test.tsandlib/localEnergy.test.ts.lib/analytics.tskeeps only what has callers:billingMonthsandsubscriptionPaid(Plan & cost),convTime,modelFamily,MODEL_COLORSandMODEL_COLOR_FALLBACK. Removed: date ranges, activity buckets, histogram, stats helpers andfmtDuration.lib/footprint.ts: removedconversationFootprint.FootprintUsageis no longer exported.guestStats.test.tsnow builds its expected value fromestimateFootprint+localFootprint.lib/pricing.ts: removedcostByType,hasOwnTokenRowandUsageLike. OnlycostAnalysisused them.api.ts: removed the orphan doc comment.mock/perf.tsnow serves only/api/perf/conversation/<sid>and/calls, which PerfCard reads. The live, history, conversations, commands, settings, kill, keep and series handlers are gone.mock/perfStorage.tsnow serves only/conversation/<sid>/storage, which StorageCard reads.mock/telemetry.tskeeps only the beacon. Hub and usage are gone./api/usage/daily,/api/usage/historyand/api/usage/calibrationare gone, and so areusageHistoryandusageCalibrationinmock/usage.ts.i18n/fr: removed the 22 strings that only the deleted code used. The i18n test requires this.Dead backend
conversations/look.py parse_actionand its test. The conversation-labels plugin has its own.users/store.py UsersStore.emails(). It had no caller.Unused routes
GET /api/usage/daily,GET /api/usage/history,GET /api/usage/calibration,GET /api/telemetry/usage,GET /api/goalsandPOST /api/goal-work.daily_usage,calibrate.history,telemetry.views.usage,goals_list,goal_workandGoalWorkBody.goals/routes.pyno longer has a router, so it is no longer included inmain.py.authz/routes.pyandauthz/matrix.golden.txt(6 rows dropped).POST /api/usage/plans,GET /api/usage/plans,/api/usage/importand/api/usage/calibrate.frontend/openapi.jsonand rannpm run gen:api. This removes the generated models for those routes.Provider copy
FALLBACK_ACCOUNTS(lib/accounts.tsx) no longer carries the stale hard-coded copy of the five profiles. It is now one neutral default seat: idpersonal, label "Claude", orange. That is what a guest sees (a guest never fetches/api/accounts) and what the owner sees until/api/accountsanswers.mock/accounts.ts(MOCK_ACCOUNTS) for the mock backend andUsageRings.test.tsx.cli/notify.py: removedPRICESand the local price estimate. The push line is nowClaude Code · 78k tokens · 8m 38s.usage/calibrate.restate_costinserts the run's exact list price into that line (_CLI_TOKENS_RE). It still restates the$xline from an older CLI. If the hub has no totals for the session, the line stays without a price. The repo's.claude/skills/notify/SKILL.mdwas updated to match.Stale docs and docstrings
CLAUDE.md:scheduled/andtemplates/catalog.pymodule entries.claude_usage.py,opencode_usage.pyandagy_usage.pyreferences at the plugin readers.agents[]and itsui.prefs.usage/dailyandtelemetry/usagereferences.runs/extras.py,sidecar/routes_chrome.py(now "the host half of the lab-chrome plugin"), and the backend comments that still mentionedcostAnalysis.tsorsidecar/*_usage.py.docs/plugins.md,docs/usage-calibration.mdanddocs/local-energy.mdwere updated the same way.Key decisions
GoalsResponse,TelemetryUsage,UsageHistory,CalibrationHistory,DailyUsageResponse). They still describe what the bridges return, and removing them cascades intoschemas/__init__./api/perf/*and/api/telemetry/hubroutes. They are not in this audit's scope.backend/toolproxy,cli/skills, users tools/PaidTools, Meta, new-project policy andrunner/.Changelog
costAnalysis,DashboardFilters,ConversationsDashboard), unused analytics, footprint and pricing helpers, and the dead mocks.GET /api/usage/daily|history|calibration,GET /api/telemetry/usage,GET /api/goalsandPOST /api/goal-work. The plugins use their bridges.CLAUDE.mdis aligned with the plugin moves (clarifier, sidecar usage readers, scheduled, templates).Test notes
npx tsc --noEmit: clean.vitest: 1077 passed, 3 failed. The 3 failures areuseShareTarget×2 and FreshContextCacheExpiredNotice. They also fail on main.backend/test_*.pymodule was run on its own under bwrap with a throwaway/data, on this branch and on main (161 modules: identical to main except the deletedparse_actiontest and the new one;test_typed_pluginshas 1 failure on main too). New test: a price-less CLI line gets the hub's price (test_usage_measuring). The route-removal tests check the OpenAPI paths and the authz table.cli/test_*.py(conv, ai_agent, mcp_tools): pass.openapi.jsonreproduces main's file byte for byte on main, so the diff comes only from this branch.authHeaderfrom the Seerr webhook in Seerr.🤖 Generated with Claude Code
Merged into
mainas78c8dd26by the auto-ship batch https://ai-agent.lab.gabvdl.xyz/conversation/12d75a3b-25dc-487a-ac3b-17782cba4214.Pull request closed