This plan defines what to migrate, in what order, and why, until all code files are covered.
Scope covered in this file:
- All files under
src/(499 files total) - File-by-file coverage mapped to phases (Appendix)
- Phase 1 core file (
src/runtime/cli-setup.ts) updated from reviewer decisions:- naming fixes, duplicate merge removals, missing completion logs, async update timing logs
- legacy/misplaced concerns marked with TODO comments where required
- Shared telemetry noise cleanup completed:
- removed debug-noise emissions (legacy no-op noise and tracing diag logger setup)
- retired old
appDebugfile-path behavior
appDebugmigration completed end-to-end:- all active
appDebug(...)callsites insrc/migrated to explicitotel_debug(..., LOGGER_NAMES.* , ...) - legacy
appDebug/otel_appDebugAPI removed fromsrc/shared/logging/logger.ts
- all active
- Reviewer "declaration/API remove" items decision:
src/shared/metrics/meters.ts(#110-115): KEEP (API stability; helper surface, not runtime telemetry event emission)src/shared/tracing/tracers.ts(#129-134): KEEP (API stability; helper surface, not runtime telemetry event emission)
- Optional follow-up cleanup:
- remove commented legacy bootstrap block in
src/runtime/cli-setup.tsafter confirming no side effects
- remove commented legacy bootstrap block in
- Run phase gate validation:
bun run typecheck- grep check for legacy logging leftovers in P1 files
- smoke check: CLI boot + TUI launch + workflow start
- Mark Phase 1 closed in this document.
- Start Phase 2 on runtime/import/update surfaces listed below.
- Closed with explicit keep decision on declaration helpers (
get*Meter,get*Tracer) for compatibility/stability. - Scope moved to Phase 2.
Move the codebase from mixed logging to a consistent telemetry model:
- Internal runtime telemetry uses
otel_debug/info/warn/error+LOGGER_NAMES.* - User-facing CLI/TUI messages remain user-facing (
console.log/errorwhen that is UX output) - Spans remain in execution orchestration paths; logs are correlated to active spans
- Keep user UX output as UX output.
- Convert internal diagnostics to OTEL wrappers.
- Use subsystem logger names consistently:
- Boot/runtime startup:
LOGGER_NAMES.BOOT - CLI/runtime services/imports:
LOGGER_NAMES.CLI - TUI components/runtime:
LOGGER_NAMES.TUI - Agent execution/coordinator:
LOGGER_NAMES.AGENT - MCP/process infra:
LOGGER_NAMES.MCPorLOGGER_NAMES.PROCESS - Engine lifecycle:
LOGGER_NAMES.ENGINE
- Boot/runtime startup:
- Add duration logs around network/fs/process boundaries when they matter.
- Do not refactor architecture while migrating telemetry (separate PR for structural refactors).
For each file in the current phase:
- Read file.
- Classify each log call as
telemetryvsuser output. - Apply conversion.
- Add/update duration telemetry where needed.
- Typecheck and run targeted tests for touched subsystem.
- Commit phase once all phase files are complete.
- Move to next phase only when current phase has:
- No leftover internal legacy log calls (
appDebug/debug/info/warn/error) in that phase files - No broken imports/types
- Smoke test of that subsystem passes
- No leftover internal legacy log calls (
Why first:
- Everything else depends on this layer being correct; correlation and logger naming start here.
When done:
- Logging wrappers and boot tracing/logging paths are consistent and stable.
Primary areas:
src/shared/logging/**src/shared/tracing/**src/shared/metrics/**src/shared/telemetry/**src/shared/runtime/**src/runtime/cli-setup.ts
Why second:
- This is the immediate execution path after boot and the first high-impact operational telemetry.
When done:
- Workspace init/discovery/import/update lifecycle emits consistent OTEL telemetry.
Primary areas:
src/runtime/services/**src/runtime/version.tssrc/runtime/index.tssrc/shared/imports/**src/shared/updates/**
Why third:
- Infra failures are common debugging hotspots; instrumentation here unlocks root-cause analysis.
When done:
- Process spawning, engine adapters, MCP plumbing all emit OTEL-consistent logs and timings.
Primary areas:
src/infra/**
Why fourth:
- Workflow state and step orchestration is the largest logical execution graph.
When done:
- Workflow control/state/runner/events have coherent telemetry naming and causal timelines.
Primary areas:
src/workflows/**
Why fifth:
- Agent lifecycle telemetry should sit on top of stabilized workflow+infra telemetry.
When done:
- Agent runner/execution/monitoring/coordinator logs are correlated and consistent.
Primary areas:
src/agents/**
Why sixth:
- Commands are user entrypoints; internal command diagnostics should be standardized after core layers.
When done:
- CLI command internals use OTEL telemetry while preserving user-visible terminal output.
Primary areas:
src/cli/commands/**src/cli/index.tssrc/cli/program.tssrc/cli/utils/**
Why seventh:
- TUI emits high volume logs; do after core telemetry semantics are stable.
When done:
- TUI internals produce meaningful OTEL logs with minimal noise and preserved UX behavior.
Primary areas:
src/cli/tui/**
Why last:
- These are cross-cutting helpers; finalize once all major call paths are migrated.
When done:
- Remaining shared modules align with final telemetry conventions.
Primary areas:
- Remaining
src/shared/**not already included in earlier phases
- Recommended PR strategy:
- 1 PR per phase
- If phase is large (P3/P4/P7), split by subfolder into stacked PRs
- Recommended validation at each phase:
bun run typecheck(or project equivalent)- Targeted test/smoke for touched subsystem
- Quick grep check for legacy logging leftovers in phase paths
# Legacy/internal logging hotspots
rg -n "appDebug\(|\bdebug\(|\binfo\(|\bwarn\(|\berror\(" src
# OTEL usage growth
rg -n "otel_(debug|info|warn|error)\(|LOGGER_NAMES" src
# User-facing output (review, do not blindly convert)
rg -n "console\.(log|warn|error|debug)\(" srcTotal files covered: 499
src/runtime/cli-setup.tssrc/shared/logging/agent-loggers.tssrc/shared/logging/index.tssrc/shared/logging/logger.tssrc/shared/logging/otel-init.tssrc/shared/logging/otel-logger.tssrc/shared/logging/spinner-logger.tssrc/shared/metrics/config.tssrc/shared/metrics/exporters/file.tssrc/shared/metrics/index.tssrc/shared/metrics/init.tssrc/shared/metrics/instruments/process.tssrc/shared/metrics/meters.tssrc/shared/runtime/dev.tssrc/shared/runtime/suppress-baseline-warning.tssrc/shared/telemetry/capture.tssrc/shared/telemetry/index.tssrc/shared/telemetry/logger.tssrc/shared/telemetry/types.tssrc/shared/tracing/config.tssrc/shared/tracing/exporters/factory.tssrc/shared/tracing/exporters/file.tssrc/shared/tracing/index.tssrc/shared/tracing/init.tssrc/shared/tracing/sampler.tssrc/shared/tracing/storage.tssrc/shared/tracing/tracers.ts
src/runtime/index.tssrc/runtime/services/index.tssrc/runtime/services/validation.tssrc/runtime/services/workspace/discovery.tssrc/runtime/services/workspace/fs-utils.tssrc/runtime/services/workspace/index.tssrc/runtime/services/workspace/init.tssrc/runtime/version.tssrc/shared/imports/auto-import.tssrc/shared/imports/defaults.tssrc/shared/imports/index.tssrc/shared/imports/installer.tssrc/shared/imports/manifest.tssrc/shared/imports/paths.tssrc/shared/imports/registry.tssrc/shared/imports/resolve.tssrc/shared/imports/resolver.tssrc/shared/imports/types.tssrc/shared/updates/checker.tssrc/shared/updates/index.tssrc/shared/updates/types.ts
src/infra/engines/core/auth.tssrc/infra/engines/core/base.tssrc/infra/engines/core/factory.tssrc/infra/engines/core/index.tssrc/infra/engines/core/registry.tssrc/infra/engines/core/types.tssrc/infra/engines/index.tssrc/infra/engines/providers/auggie/auth.tssrc/infra/engines/providers/auggie/config.tssrc/infra/engines/providers/auggie/execution/commands.tssrc/infra/engines/providers/auggie/execution/executor.tssrc/infra/engines/providers/auggie/execution/index.tssrc/infra/engines/providers/auggie/execution/runner.tssrc/infra/engines/providers/auggie/index.tssrc/infra/engines/providers/auggie/mcp/adapter.tssrc/infra/engines/providers/auggie/mcp/index.tssrc/infra/engines/providers/auggie/mcp/settings.tssrc/infra/engines/providers/auggie/metadata.tssrc/infra/engines/providers/auggie/telemetryParser.tssrc/infra/engines/providers/ccr/auth.tssrc/infra/engines/providers/ccr/config.tssrc/infra/engines/providers/ccr/execution/commands.tssrc/infra/engines/providers/ccr/execution/executor.tssrc/infra/engines/providers/ccr/execution/index.tssrc/infra/engines/providers/ccr/execution/runner.tssrc/infra/engines/providers/ccr/index.tssrc/infra/engines/providers/ccr/mcp/adapter.tssrc/infra/engines/providers/ccr/mcp/index.tssrc/infra/engines/providers/ccr/mcp/settings.tssrc/infra/engines/providers/ccr/metadata.tssrc/infra/engines/providers/ccr/telemetryParser.tssrc/infra/engines/providers/claude/auth.tssrc/infra/engines/providers/claude/config.tssrc/infra/engines/providers/claude/execution/commands.tssrc/infra/engines/providers/claude/execution/executor.tssrc/infra/engines/providers/claude/execution/index.tssrc/infra/engines/providers/claude/execution/runner.tssrc/infra/engines/providers/claude/index.tssrc/infra/engines/providers/claude/mcp/adapter.tssrc/infra/engines/providers/claude/mcp/index.tssrc/infra/engines/providers/claude/mcp/settings.tssrc/infra/engines/providers/claude/metadata.tssrc/infra/engines/providers/claude/telemetryParser.tssrc/infra/engines/providers/codex/auth.tssrc/infra/engines/providers/codex/config.tssrc/infra/engines/providers/codex/execution/commands.tssrc/infra/engines/providers/codex/execution/executor.tssrc/infra/engines/providers/codex/execution/index.tssrc/infra/engines/providers/codex/execution/runner.tssrc/infra/engines/providers/codex/index.tssrc/infra/engines/providers/codex/mcp/adapter.tssrc/infra/engines/providers/codex/mcp/index.tssrc/infra/engines/providers/codex/mcp/settings.tssrc/infra/engines/providers/codex/metadata.tssrc/infra/engines/providers/codex/telemetryParser.tssrc/infra/engines/providers/cursor/auth.tssrc/infra/engines/providers/cursor/config.tssrc/infra/engines/providers/cursor/execution/commands.tssrc/infra/engines/providers/cursor/execution/executor.tssrc/infra/engines/providers/cursor/execution/index.tssrc/infra/engines/providers/cursor/execution/runner.tssrc/infra/engines/providers/cursor/index.tssrc/infra/engines/providers/cursor/mcp/adapter.tssrc/infra/engines/providers/cursor/mcp/index.tssrc/infra/engines/providers/cursor/mcp/settings.tssrc/infra/engines/providers/cursor/metadata.tssrc/infra/engines/providers/cursor/telemetryParser.tssrc/infra/engines/providers/mistral/auth.tssrc/infra/engines/providers/mistral/config.tssrc/infra/engines/providers/mistral/execution/commands.tssrc/infra/engines/providers/mistral/execution/executor.tssrc/infra/engines/providers/mistral/execution/index.tssrc/infra/engines/providers/mistral/execution/runner.tssrc/infra/engines/providers/mistral/index.tssrc/infra/engines/providers/mistral/mcp/adapter.tssrc/infra/engines/providers/mistral/mcp/index.tssrc/infra/engines/providers/mistral/mcp/settings.tssrc/infra/engines/providers/mistral/metadata.tssrc/infra/engines/providers/mistral/telemetryParser.tssrc/infra/engines/providers/opencode/auth.tssrc/infra/engines/providers/opencode/config.tssrc/infra/engines/providers/opencode/execution/commands.tssrc/infra/engines/providers/opencode/execution/executor.tssrc/infra/engines/providers/opencode/execution/index.tssrc/infra/engines/providers/opencode/execution/runner.tssrc/infra/engines/providers/opencode/index.tssrc/infra/engines/providers/opencode/mcp/adapter.tssrc/infra/engines/providers/opencode/mcp/index.tssrc/infra/engines/providers/opencode/mcp/settings.tssrc/infra/engines/providers/opencode/metadata.tssrc/infra/engines/providers/opencode/telemetryParser.tssrc/infra/mcp/context.tssrc/infra/mcp/errors.tssrc/infra/mcp/index.tssrc/infra/mcp/registry.tssrc/infra/mcp/router/backend.tssrc/infra/mcp/router/config.tssrc/infra/mcp/router/index.tssrc/infra/mcp/servers/agent-coordination/config.tssrc/infra/mcp/servers/agent-coordination/executor.tssrc/infra/mcp/servers/agent-coordination/handler.tssrc/infra/mcp/servers/agent-coordination/index.tssrc/infra/mcp/servers/agent-coordination/schemas.tssrc/infra/mcp/servers/agent-coordination/tools.tssrc/infra/mcp/servers/agent-coordination/validator.tssrc/infra/mcp/servers/workflow-signals/config.tssrc/infra/mcp/servers/workflow-signals/handler.tssrc/infra/mcp/servers/workflow-signals/index.tssrc/infra/mcp/servers/workflow-signals/queue.tssrc/infra/mcp/servers/workflow-signals/schemas.tssrc/infra/mcp/servers/workflow-signals/tools.tssrc/infra/mcp/setup.tssrc/infra/mcp/types.tssrc/infra/mcp/writer.tssrc/infra/process/spawn.ts
src/workflows/context/index.tssrc/workflows/context/step.tssrc/workflows/context/types.tssrc/workflows/controller/config.tssrc/workflows/controller/helper.tssrc/workflows/controller/index.tssrc/workflows/controller/init.tssrc/workflows/controller/types.tssrc/workflows/controller/view.tssrc/workflows/directives/checkpoint/evaluator.tssrc/workflows/directives/checkpoint/handler.tssrc/workflows/directives/checkpoint/index.tssrc/workflows/directives/error/evaluator.tssrc/workflows/directives/error/handler.tssrc/workflows/directives/error/index.tssrc/workflows/directives/index.tssrc/workflows/directives/loop/evaluator.tssrc/workflows/directives/loop/handler.tssrc/workflows/directives/loop/index.tssrc/workflows/directives/loop/types.tssrc/workflows/directives/onAdvance.tssrc/workflows/directives/pause/evaluator.tssrc/workflows/directives/pause/handler.tssrc/workflows/directives/pause/index.tssrc/workflows/directives/pause/types.tssrc/workflows/directives/reader.tssrc/workflows/directives/trigger/evaluator.tssrc/workflows/directives/trigger/execute.tssrc/workflows/directives/trigger/handler.tssrc/workflows/directives/trigger/index.tssrc/workflows/directives/types.tssrc/workflows/events/emitter.tssrc/workflows/events/event-bus.tssrc/workflows/events/index.tssrc/workflows/events/types.tssrc/workflows/index.tssrc/workflows/indexing/debug.tssrc/workflows/indexing/index.tssrc/workflows/indexing/lifecycle.tssrc/workflows/indexing/manager.tssrc/workflows/indexing/persistence.tssrc/workflows/indexing/types.tssrc/workflows/input/emitter.tssrc/workflows/input/index.tssrc/workflows/input/providers/controller.tssrc/workflows/input/providers/index.tssrc/workflows/input/providers/user.tssrc/workflows/input/types.tssrc/workflows/mcp.tssrc/workflows/mode/index.tssrc/workflows/mode/mode.tssrc/workflows/mode/types.tssrc/workflows/onboarding/emitter.tssrc/workflows/onboarding/index.tssrc/workflows/onboarding/service.tssrc/workflows/preflight.tssrc/workflows/recovery/detect.tssrc/workflows/recovery/index.tssrc/workflows/recovery/restore.tssrc/workflows/recovery/types.tssrc/workflows/run.tssrc/workflows/runner/actions/advance.tssrc/workflows/runner/actions/directives.tssrc/workflows/runner/actions/index.tssrc/workflows/runner/actions/loop.tssrc/workflows/runner/actions/resume.tssrc/workflows/runner/core.tssrc/workflows/runner/index.tssrc/workflows/runner/modes/autonomous.tssrc/workflows/runner/modes/continuous.tssrc/workflows/runner/modes/index.tssrc/workflows/runner/modes/interactive.tssrc/workflows/runner/modes/types.tssrc/workflows/runner/types.tssrc/workflows/session/index.tssrc/workflows/session/session.tssrc/workflows/session/types.tssrc/workflows/signals/handlers/index.tssrc/workflows/signals/handlers/mode.tssrc/workflows/signals/handlers/pause.tssrc/workflows/signals/handlers/return.tssrc/workflows/signals/handlers/skip.tssrc/workflows/signals/handlers/stop.tssrc/workflows/signals/index.tssrc/workflows/signals/manager/index.tssrc/workflows/signals/manager/manager.tssrc/workflows/signals/manager/types.tssrc/workflows/signals/mcp/controller.tssrc/workflows/signals/mcp/detector.tssrc/workflows/signals/mcp/index.tssrc/workflows/state/index.tssrc/workflows/state/machine.tssrc/workflows/state/types.tssrc/workflows/step/engine.tssrc/workflows/step/execute.tssrc/workflows/step/hooks.tssrc/workflows/step/index.tssrc/workflows/step/run.tssrc/workflows/step/scenarios/definitions.tssrc/workflows/step/scenarios/index.tssrc/workflows/step/scenarios/types.tssrc/workflows/step/skip.tssrc/workflows/templates/globals.tssrc/workflows/templates/index.tssrc/workflows/templates/loader.tssrc/workflows/templates/types.tssrc/workflows/templates/validator.tssrc/workflows/utils/config.tssrc/workflows/utils/index.tssrc/workflows/utils/resolvers/folder.tssrc/workflows/utils/resolvers/module.tssrc/workflows/utils/resolvers/step.tssrc/workflows/utils/separator.tssrc/workflows/utils/types.ts
src/agents/chat/index.tssrc/agents/chat/types.tssrc/agents/coordinator/execution.tssrc/agents/coordinator/index.tssrc/agents/coordinator/parser.tssrc/agents/coordinator/service.tssrc/agents/coordinator/types.tssrc/agents/execution/actions.tssrc/agents/execution/index.tssrc/agents/execution/run.tssrc/agents/execution/telemetry.tssrc/agents/execution/types.tssrc/agents/index.tssrc/agents/monitoring/cleanup.tssrc/agents/monitoring/converters.tssrc/agents/monitoring/db/connection.tssrc/agents/monitoring/db/repository.tssrc/agents/monitoring/db/schema.tssrc/agents/monitoring/index.tssrc/agents/monitoring/logLock.tssrc/agents/monitoring/logger.tssrc/agents/monitoring/monitor.tssrc/agents/monitoring/registry.tssrc/agents/monitoring/status.tssrc/agents/monitoring/types.tssrc/agents/runner/chained.tssrc/agents/runner/config.tssrc/agents/runner/index.tssrc/agents/runner/runner.tssrc/agents/session/capture.tssrc/agents/session/index.tssrc/agents/session/resume.tssrc/agents/session/types.ts
src/cli/commands/agents/export.tssrc/cli/commands/agents/index.tssrc/cli/commands/agents/list.tssrc/cli/commands/agents/logs.tssrc/cli/commands/agents/register.tssrc/cli/commands/auth.command.tssrc/cli/commands/export.command.tssrc/cli/commands/import.command.tssrc/cli/commands/index.tssrc/cli/commands/mcp.command.tssrc/cli/commands/run.command.tssrc/cli/commands/step.command.tssrc/cli/commands/templates.command.tssrc/cli/index.tssrc/cli/program.tssrc/cli/utils/selection-menu.ts
src/cli/tui/app-shell.tsxsrc/cli/tui/app.tsxsrc/cli/tui/components/error-boundary.tsxsrc/cli/tui/exit.tssrc/cli/tui/launcher.tssrc/cli/tui/routes/home/components/command-input.tsxsrc/cli/tui/routes/home/components/help-row.tsxsrc/cli/tui/routes/home/components/welcome-section.tsxsrc/cli/tui/routes/home/config/commands.tssrc/cli/tui/routes/home/dialogs/import-dialog.tsxsrc/cli/tui/routes/home/home-view.tsxsrc/cli/tui/routes/home/hooks/use-home-commands.tsxsrc/cli/tui/routes/home/index.tsxsrc/cli/tui/routes/onboard/components/footer-hints.tsxsrc/cli/tui/routes/onboard/components/option-list.tsxsrc/cli/tui/routes/onboard/components/project-name-input.tsxsrc/cli/tui/routes/onboard/components/question-display.tsxsrc/cli/tui/routes/onboard/hooks/use-onboard-keyboard.tssrc/cli/tui/routes/onboard/index.tsxsrc/cli/tui/routes/onboard/onboard-view.tsxsrc/cli/tui/routes/workflow/adapters/base.tssrc/cli/tui/routes/workflow/adapters/headless.tssrc/cli/tui/routes/workflow/adapters/index.tssrc/cli/tui/routes/workflow/adapters/mock.tssrc/cli/tui/routes/workflow/adapters/opentui.tssrc/cli/tui/routes/workflow/adapters/types.tssrc/cli/tui/routes/workflow/components/modals/checkpoint-modal.tsxsrc/cli/tui/routes/workflow/components/modals/checkpoint/checkpoint-actions.tsxsrc/cli/tui/routes/workflow/components/modals/checkpoint/checkpoint-content.tsxsrc/cli/tui/routes/workflow/components/modals/checkpoint/index.tsxsrc/cli/tui/routes/workflow/components/modals/controller-continue-modal.tsxsrc/cli/tui/routes/workflow/components/modals/error-modal.tsxsrc/cli/tui/routes/workflow/components/modals/history-view.tsxsrc/cli/tui/routes/workflow/components/modals/history/history-row.tsxsrc/cli/tui/routes/workflow/components/modals/history/history-tree.tssrc/cli/tui/routes/workflow/components/modals/history/index.tsxsrc/cli/tui/routes/workflow/components/modals/history/use-history-navigation.tssrc/cli/tui/routes/workflow/components/modals/index.tssrc/cli/tui/routes/workflow/components/modals/log-viewer.tsxsrc/cli/tui/routes/workflow/components/modals/log-viewer/index.tsxsrc/cli/tui/routes/workflow/components/modals/log-viewer/log-content.tsxsrc/cli/tui/routes/workflow/components/modals/log-viewer/log-footer.tsxsrc/cli/tui/routes/workflow/components/modals/log-viewer/log-header.tsxsrc/cli/tui/routes/workflow/components/modals/stop-modal.tsxsrc/cli/tui/routes/workflow/components/output/index.tssrc/cli/tui/routes/workflow/components/output/output-window.tsxsrc/cli/tui/routes/workflow/components/output/prompt-line/chain-confirm-modal.tsxsrc/cli/tui/routes/workflow/components/output/prompt-line/index.tsxsrc/cli/tui/routes/workflow/components/output/prompt-line/prompt-line-hint.tsxsrc/cli/tui/routes/workflow/components/output/prompt-line/prompt-line-symbol.tsxsrc/cli/tui/routes/workflow/components/output/prompt-line/types.tssrc/cli/tui/routes/workflow/components/output/prompt-line/use-typing-effect.tssrc/cli/tui/routes/workflow/components/output/shimmer-text.tsxsrc/cli/tui/routes/workflow/components/output/status-footer.tsxsrc/cli/tui/routes/workflow/components/output/telemetry-bar.tsxsrc/cli/tui/routes/workflow/components/output/typing-text.tsxsrc/cli/tui/routes/workflow/components/shared/log-line.tsxsrc/cli/tui/routes/workflow/components/shared/log-table.tsxsrc/cli/tui/routes/workflow/components/shared/markdown-table.tssrc/cli/tui/routes/workflow/components/shells/controller-shell.tsxsrc/cli/tui/routes/workflow/components/shells/executing-shell.tsxsrc/cli/tui/routes/workflow/components/shells/index.tssrc/cli/tui/routes/workflow/components/shells/shared-layout.tsxsrc/cli/tui/routes/workflow/components/timeline/agent-timeline.tsxsrc/cli/tui/routes/workflow/components/timeline/index.tssrc/cli/tui/routes/workflow/components/timeline/main-agent-node.tsxsrc/cli/tui/routes/workflow/components/timeline/separator-node.tsxsrc/cli/tui/routes/workflow/components/timeline/status-utils.tssrc/cli/tui/routes/workflow/components/timeline/sub-agent-node.tsxsrc/cli/tui/routes/workflow/components/timeline/sub-agent-summary.tsxsrc/cli/tui/routes/workflow/constants.tssrc/cli/tui/routes/workflow/context/ui-state.tsxsrc/cli/tui/routes/workflow/context/ui-state/actions/agent-actions.tssrc/cli/tui/routes/workflow/context/ui-state/actions/history-actions.tssrc/cli/tui/routes/workflow/context/ui-state/actions/index.tssrc/cli/tui/routes/workflow/context/ui-state/actions/navigation-actions.tssrc/cli/tui/routes/workflow/context/ui-state/actions/subagent-actions.tssrc/cli/tui/routes/workflow/context/ui-state/actions/workflow-actions.tssrc/cli/tui/routes/workflow/context/ui-state/index.tssrc/cli/tui/routes/workflow/context/ui-state/initial-state.tssrc/cli/tui/routes/workflow/context/ui-state/provider.tsxsrc/cli/tui/routes/workflow/context/ui-state/store.tssrc/cli/tui/routes/workflow/context/ui-state/types.tssrc/cli/tui/routes/workflow/context/ui-state/utils.tssrc/cli/tui/routes/workflow/hooks/use-workflow-computed.tssrc/cli/tui/routes/workflow/hooks/use-workflow-events.tssrc/cli/tui/routes/workflow/hooks/use-workflow-handlers.tssrc/cli/tui/routes/workflow/hooks/use-workflow-keyboard.tssrc/cli/tui/routes/workflow/hooks/use-workflow-modals.tssrc/cli/tui/routes/workflow/hooks/use-workflow-shell.tssrc/cli/tui/routes/workflow/hooks/useLogStream.tssrc/cli/tui/routes/workflow/hooks/useRegistrySync.tssrc/cli/tui/routes/workflow/hooks/useSubAgentSync.tssrc/cli/tui/routes/workflow/index.tsxsrc/cli/tui/routes/workflow/state/formatters.tssrc/cli/tui/routes/workflow/state/navigation.tssrc/cli/tui/routes/workflow/state/output.tssrc/cli/tui/routes/workflow/state/performance.tssrc/cli/tui/routes/workflow/state/telemetry.tssrc/cli/tui/routes/workflow/state/types.tssrc/cli/tui/routes/workflow/state/utils.tssrc/cli/tui/routes/workflow/workflow-shell.tsxsrc/cli/tui/shared/components/fade-in.tsxsrc/cli/tui/shared/components/index.tssrc/cli/tui/shared/components/layout/branding-header.tsxsrc/cli/tui/shared/components/logo.tsxsrc/cli/tui/shared/components/modal/index.tssrc/cli/tui/shared/components/modal/modal-base.tsxsrc/cli/tui/shared/components/modal/modal-content.tsxsrc/cli/tui/shared/components/modal/modal-footer.tsxsrc/cli/tui/shared/components/modal/modal-header.tsxsrc/cli/tui/shared/components/prompt-input.tsxsrc/cli/tui/shared/components/prompt/index.tsxsrc/cli/tui/shared/components/prompt/types.tssrc/cli/tui/shared/components/select-menu/index.tsxsrc/cli/tui/shared/components/select-menu/types.tssrc/cli/tui/shared/components/spinner.tsxsrc/cli/tui/shared/config/agent-characters.tssrc/cli/tui/shared/config/agent-characters.types.tssrc/cli/tui/shared/context/dialog.tsxsrc/cli/tui/shared/context/helper.tsxsrc/cli/tui/shared/context/kv.tsxsrc/cli/tui/shared/context/session.tsxsrc/cli/tui/shared/context/theme.tsxsrc/cli/tui/shared/context/theme/codemachine.jsonsrc/cli/tui/shared/context/toast.tsxsrc/cli/tui/shared/context/update-notifier.tsxsrc/cli/tui/shared/hooks/index.tssrc/cli/tui/shared/hooks/use-modal-keyboard.tssrc/cli/tui/shared/services/index.tssrc/cli/tui/shared/services/timer.tssrc/cli/tui/shared/ui/dialog-select/index.tsxsrc/cli/tui/shared/ui/dialog-select/types.tssrc/cli/tui/shared/ui/dialog-wrapper.tsxsrc/cli/tui/shared/ui/index.tssrc/cli/tui/shared/ui/progress-step.tsxsrc/cli/tui/shared/ui/status-badge.tsxsrc/cli/tui/shared/ui/terminal-link.tsxsrc/cli/tui/shared/ui/toast.tsxsrc/cli/tui/shared/utils/clipboard.tssrc/cli/tui/shared/utils/format-bytes.tssrc/cli/tui/shared/utils/index.tssrc/cli/tui/shared/utils/text.tssrc/cli/tui/shared/utils/tui-logger.tssrc/cli/tui/utils/index.tssrc/cli/tui/utils/terminal-detection.tssrc/cli/tui/utils/theme-storage.ts
src/shared/agents/config/paths.tssrc/shared/agents/config/types.tssrc/shared/agents/discovery/catalog.tssrc/shared/agents/discovery/steps.tssrc/shared/agents/index.tssrc/shared/formatters/logFileFormatter.tssrc/shared/formatters/outputMarkers.tssrc/shared/prompts/config/index.tssrc/shared/prompts/config/loader.tssrc/shared/prompts/config/types.tssrc/shared/prompts/content/glob.tssrc/shared/prompts/content/index.tssrc/shared/prompts/content/loader.tssrc/shared/prompts/index.tssrc/shared/prompts/injected.tssrc/shared/prompts/replacement/builtins.tssrc/shared/prompts/replacement/errors.tssrc/shared/prompts/replacement/index.tssrc/shared/prompts/replacement/parser.tssrc/shared/prompts/replacement/processor.tssrc/shared/utils/errors.tssrc/shared/utils/index.tssrc/shared/utils/path.tssrc/shared/utils/terminal.tssrc/shared/workflows/index.tssrc/shared/workflows/template.ts
AFTER DONE WITH EACH FILE, do a commit.. commits are file based max per commit 1-3 files very related.. must commit after done of files to be easy track what is going