Skip to content

Rename claudine → delegate + 5 bug fixes#60

Merged
dean0x merged 16 commits intomainfrom
rename/delegate
Feb 24, 2026
Merged

Rename claudine → delegate + 5 bug fixes#60
dean0x merged 16 commits intomainfrom
rename/delegate

Conversation

@dean0x
Copy link
Owner

@dean0x dean0x commented Feb 21, 2026

Summary

Complete project rename from claudine to @dean0x/delegate plus 5 bug fixes discovered during live validation. 15 commits, 136 files changed.

Rename (commits 1-5):

  • Package name, CLI binary, all source references, docs, tests, CI workflows
  • Eliminated all noExplicitAny warnings, enforced biome formatting

Bug fixes (commits 6-15):

  • Worker env var stripping — strip CLAUDE_CODE_* env vars from spawned workers to prevent nested session rejection
  • Schedule chaining (afterScheduleId) — enforce execution order between schedules via dependency injection into spawned tasks
  • CLI lifecycle — add skipScheduleExecutor option to prevent ScheduleExecutor timer from blocking CLI exit
  • ConsoleLogger level filtering — respect configured logLevel (was printing DEBUG lines at INFO level)
  • Cleanupprocess.exit(0) in scheduleCreate, rename stale CLAUDINE_WORKER reference in cleanup script, untrack launch/ marketing files

Quality:

  • 668 tests pass (all 8 groups)
  • Build, typecheck, biome all clean
  • Live validated with MCP server: direct delegation, one-time schedules, chained schedules

Test plan

  • npm run build passes
  • npm run test:cli — 86 tests pass
  • npm run test:implementations — 265 tests pass
  • npm run test:handlers — 84 tests pass
  • npm run test:core — 317 tests pass
  • Live validated: worker spawn, schedule execution, schedule chaining
  • grep -r "CLAUDINE" scripts/ returns nothing
  • launch/ files untracked, social-preview.svg moved to .github/assets/

This commit renames the project from "claudine" to "@dean0x/delegate" to avoid
trademark concerns with Anthropic's "Claude" branding. This is a clean break with
no data migration from ~/.claudine/.

Breaking Changes:
- Package: claudine → @dean0x/delegate (scoped npm namespace)
- CLI command: claudine → delegate
- MCP server name: claudine → delegate
- Error class: ClaudineError → DelegateError
- Type guards: isClaudineError → isDelegateError; toClaudineError → toDelegateError
- Environment variables: CLAUDINE_* → DELEGATE_*
- Data paths: ~/.claudine/ → ~/.delegate/
- Git artifacts: claudine/task-{id} → delegate/task-{id}
- Patch directory: .claudine-patches → .delegate-patches

Changes:
- Rename across ~80 files: source code, tests, configuration, documentation
- Update package.json with scoped name and publishConfig
- Update npm registry references in CI/CD workflows
- Regenerate package-lock.json
- Update all user-facing strings (help text, examples, error messages)
- All 844+ tests passing, build and typecheck verified

This ships as v0.4.0 - the first release under the new name.
@qodo-free-for-open-source-projects

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: test (20.x)

Failed stage: Lint and format check [❌]

Failed test name: ""

Failure summary:

The action failed during npm run check when running biome check src/ tests/.
Node crashed with
Error: Cannot find module @biomejs/cli-linux-x64/biome (MODULE_NOT_FOUND) required by
node_modules/@biomejs/biome/bin/biome (see stack pointing to
/home/runner/work/claudine/claudine/node_modules/@biomejs/biome/bin/biome:48:11).
This indicates the
Biome platform-specific CLI package for Linux x64 was not installed/available in the CI environment,
causing the check step to exit with code 1.

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

137:  ##[group]Run npm run typecheck
138:  �[36;1mnpm run typecheck�[0m
139:  shell: /usr/bin/bash -e {0}
140:  ##[endgroup]
141:  > @dean0x/delegate@0.4.0 typecheck
142:  > tsc --noEmit
143:  ##[group]Run npm run check
144:  �[36;1mnpm run check�[0m
145:  shell: /usr/bin/bash -e {0}
146:  ##[endgroup]
147:  > @dean0x/delegate@0.4.0 check
148:  > biome check src/ tests/
149:  node:internal/modules/cjs/loader:1210
150:  throw err;
151:  ^
152:  Error: Cannot find module '@biomejs/cli-linux-x64/biome'
153:  Require stack:
...

155:  at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
156:  at Function.resolve (node:internal/modules/helpers:193:19)
157:  at Object.<anonymous> (/home/runner/work/claudine/claudine/node_modules/@biomejs/biome/bin/biome:48:11)
158:  at Module._compile (node:internal/modules/cjs/loader:1521:14)
159:  at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
160:  at Module.load (node:internal/modules/cjs/loader:1266:32)
161:  at Module._load (node:internal/modules/cjs/loader:1091:12)
162:  at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
163:  at node:internal/main/run_main_module:28:49 {
164:  code: 'MODULE_NOT_FOUND',
165:  requireStack: [
166:  '/home/runner/work/claudine/claudine/node_modules/@biomejs/biome/bin/biome'
167:  ]
168:  }
169:  Node.js v20.20.0
170:  ##[error]Process completed with exit code 1.
171:  Post job cleanup.

@qodo-free-for-open-source-projects

Review Summary by Qodo

Rename project from claudine to @dean0x/delegate

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Comprehensive project rename from claudine to @dean0x/delegate across 117 files to resolve
  trademark concerns with Anthropic's "Claude" branding
• **Core changes**: Renamed ClaudineError to DelegateError, ClaudineEvent to DelegateEvent
  throughout codebase (src/ and tests/)
• **Environment variables**: Updated CLAUDINE_DATABASE_PATHDELEGATE_DATABASE_PATH,
  CLAUDINE_DATA_DIRDELEGATE_DATA_DIR, CLAUDINE_WORKERDELEGATE_WORKER, CLAUDINE_TASK_IDDELEGATE_TASK_ID, and autoscaling-related variables
• **File system paths**: Changed database from ~/.claudine/claudine.db to
  ~/.delegate/delegate.db, patch directory from .claudine-patches/ to .delegate-patches/, git
  branches from claudine/task-{id} to delegate/task-{id}
• **CLI and branding**: Updated all command references from claudine to delegate, process titles
  from claudine-cli/claudine-mcp to delegate-cli/delegate-mcp, logging messages, and help text
• **Documentation**: Updated 25+ docs including README, ROADMAP, release notes (v0.2.0-v0.3.3),
  architecture guides, and testing documentation
• **Launch materials**: Added new Discord, LinkedIn, and Twitter announcement templates
• **Testing**: Updated 50+ test files with new error classes, environment variables, temporary
  directory naming, and assertions
• **Verification**: All 844+ tests passing, TypeScript compilation clean, zero "claudine" references
  remaining in src/ and tests/
Diagram
flowchart LR
  A["Old Project<br/>claudine"] -->|Rename| B["New Project<br/>@dean0x/delegate"]
  C["ClaudineError<br/>ClaudineEvent"] -->|Rename| D["DelegateError<br/>DelegateEvent"]
  E["~/.claudine/<br/>claudine.db"] -->|Migrate Paths| F["~/.delegate/<br/>delegate.db"]
  G["CLAUDINE_*<br/>env vars"] -->|Update| H["DELEGATE_*<br/>env vars"]
  I["claudine CLI<br/>commands"] -->|Update| J["delegate CLI<br/>commands"]
  K["Documentation<br/>25+ files"] -->|Update| L["Delegate<br/>branding"]
Loading

Grey Divider

File Changes

1. src/cli.ts ✨ Enhancement +56/-56

CLI command and help text rename from claudine to delegate

• Renamed all claudine references to delegate in CLI output, help text, and command examples
• Updated process title from claudine-cli to delegate-cli
• Changed MCP configuration examples to use @dean0x/delegate package name
• Updated repository URL from dean0x/claudine to dean0x/delegate
• Modified all usage messages and error messages to reference delegate command instead of
 claudine

src/cli.ts


2. tests/unit/core/errors.test.ts 🧪 Tests +50/-50

Error class rename from ClaudineError to DelegateError

• Renamed ClaudineError class to DelegateError throughout test file
• Updated isClaudineError function calls to isDelegateError
• Updated toClaudineError function calls to toDelegateError
• Changed all test descriptions and assertions to reference DelegateError

tests/unit/core/errors.test.ts


3. tests/unit/cli.test.ts 🧪 Tests +33/-33

CLI test updates for DelegateError rename

• Updated imports to use DelegateError instead of ClaudineError
• Changed all mock error instantiations from ClaudineError to DelegateError
• Updated help text and config text assertions to reference Delegate instead of Claudine
• Modified validation function error returns to use DelegateError

tests/unit/cli.test.ts


View more (112)
4. src/core/events/event-bus.ts ✨ Enhancement +20/-20

Event bus type and error class rename

• Renamed ClaudineEvent type to DelegateEvent in all type signatures
• Updated error instantiations from ClaudineError to DelegateError
• Changed biome lint ignore comments to reference DelegateEvent instead of ClaudineEvent

src/core/events/event-bus.ts


5. tests/unit/services/task-manager.test.ts 🧪 Tests +22/-22

Task manager test error class rename

• Updated all ClaudineError imports and instantiations to DelegateError
• Changed error type assertions from ClaudineError to DelegateError
• Updated error code type casting to use DelegateError

tests/unit/services/task-manager.test.ts


6. src/services/worktree-manager.ts ✨ Enhancement +18/-18

Worktree manager rename and path updates

• Renamed ClaudineError to DelegateError in all error instantiations
• Updated branch name prefix from claudine/task- to delegate/task-
• Changed patch directory from .claudine-patches to .delegate-patches
• Updated commit message and PR body text to reference Delegate instead of Claudine

src/services/worktree-manager.ts


7. src/core/errors.ts ✨ Enhancement +31/-31

Core error class and function rename

• Renamed ClaudineError class to DelegateError with updated JSDoc
• Renamed isClaudineError type guard to isDelegateError
• Renamed toClaudineError conversion function to toDelegateError
• Updated all error factory functions to return DelegateError instead of ClaudineError
• Updated error name property from ClaudineError to DelegateError

src/core/errors.ts


8. src/implementations/dependency-repository.ts ✨ Enhancement +12/-12

Dependency repository error class rename

• Updated all ClaudineError instantiations to DelegateError
• Changed error type checks from ClaudineError to DelegateError
• Updated comments referencing semantic error types

src/implementations/dependency-repository.ts


9. src/core/events/handlers.ts ✨ Enhancement +13/-13

Event handlers type and error class rename

• Renamed ClaudineEvent type references to DelegateEvent
• Updated ClaudineError instantiations to DelegateError
• Changed error type checks from ClaudineError to DelegateError

src/core/events/handlers.ts


10. tests/unit/services/handlers/worker-handler.test.ts 🧪 Tests +11/-11

Worker handler test error class rename

• Updated ClaudineError imports and instantiations to DelegateError
• Changed all error type references in test mocks and assertions

tests/unit/services/handlers/worker-handler.test.ts


11. tests/unit/services/worktree-manager.test.ts 🧪 Tests +13/-13

Worktree manager test rename and assertions

• Updated ClaudineError imports and instantiations to DelegateError
• Changed branch name pattern assertions from claudine/task- to delegate/task-
• Updated error type assertions to use DelegateError

tests/unit/services/worktree-manager.test.ts


12. src/core/container.ts ✨ Enhancement +10/-10

Container dependency injection error class rename

• Renamed all ClaudineError instantiations to DelegateError
• Updated error messages and type references throughout dependency injection container

src/core/container.ts


13. src/services/schedule-manager.ts ✨ Enhancement +12/-12

Schedule manager error class rename

• Updated all ClaudineError instantiations to DelegateError
• Changed error type references in validation and error handling

src/services/schedule-manager.ts


14. src/implementations/database.ts ⚙️ Configuration changes +21/-21

Database configuration and path rename

• Updated environment variable names from CLAUDINE_DATABASE_PATH and CLAUDINE_DATA_DIR to
 DELEGATE_DATABASE_PATH and DELEGATE_DATA_DIR
• Changed database file name from claudine.db to delegate.db
• Updated directory paths from .claudine to .delegate
• Updated JSDoc comments and error messages to reference new environment variables

src/implementations/database.ts


15. tests/unit/services/recovery-manager.test.ts 🧪 Tests +9/-9

Recovery manager test error class rename

• Updated ClaudineError imports and instantiations to DelegateError
• Changed all error type references in test mocks

tests/unit/services/recovery-manager.test.ts


16. src/utils/validation.ts ✨ Enhancement +11/-11

Validation utilities error class rename

• Updated all ClaudineError instantiations to DelegateError
• Changed error type references in path and buffer validation functions

src/utils/validation.ts


17. src/utils/cron.ts ✨ Enhancement +11/-11

Cron utilities error class rename

• Updated ClaudineError instantiations to DelegateError in cron validation functions
• Changed error type references in return type signatures

src/utils/cron.ts


18. src/services/handlers/schedule-handler.ts ✨ Enhancement +10/-10

Schedule handler error class rename

• Updated ClaudineError instantiations to DelegateError
• Changed error type references in method signatures and error handling

src/services/handlers/schedule-handler.ts


19. src/implementations/event-driven-worker-pool.ts ✨ Enhancement +7/-7

Worker pool error class rename

• Updated all ClaudineError instantiations to DelegateError
• Changed error type references in worker pool operations

src/implementations/event-driven-worker-pool.ts


20. src/core/events/events.ts ✨ Enhancement +8/-8

Event types and error class rename

• Renamed ClaudineEvent union type to DelegateEvent
• Updated ClaudineError type references to DelegateError in event interfaces
• Changed event source default from claudine to delegate in createEvent helper

src/core/events/events.ts


21. src/adapters/mcp-adapter.ts ✨ Enhancement +2/-2

MCP adapter server name and description update

• Updated MCP server name from claudine to delegate
• Changed branch name description from claudine/task-{id} to delegate/task-{id}

src/adapters/mcp-adapter.ts


22. tests/integration/service-initialization.test.ts Refactoring +13/-13

Update environment variables and temp directories in service initialization tests

• Renamed environment variable CLAUDINE_DATABASE_PATH to DELEGATE_DATABASE_PATH across all test
 cases
• Updated temporary directory naming from claudine-test- to delegate-test-
• Consistent updates across 5 test functions (service initialization, configuration loading, event
 handlers, health checks, graceful shutdown)

tests/integration/service-initialization.test.ts


23. tests/unit/services/autoscaling-manager.test.ts Refactoring +6/-6

Replace ClaudineError with DelegateError in autoscaling manager tests

• Replaced all ClaudineError references with DelegateError (6 occurrences)
• Updated error instantiation calls to use new error class name
• No logic changes, purely class name updates

tests/unit/services/autoscaling-manager.test.ts


24. src/services/handler-setup.ts Refactoring +7/-7

Replace ClaudineError with DelegateError in handler setup service

• Replaced ClaudineError import and usage with DelegateError (5 occurrences)
• Updated error instantiation in dependency injection and handler setup failure paths
• No functional logic changes

src/services/handler-setup.ts


25. tests/fixtures/event-spy.ts Refactoring +9/-9

Rename ClaudineEvent to DelegateEvent in event spy test fixture

• Renamed ClaudineEvent type to DelegateEvent throughout the file (8 occurrences)
• Updated type annotations in method signatures and return types
• Updated generic type parameters in event handling methods

tests/fixtures/event-spy.ts


26. tests/unit/services/handlers/checkpoint-handler.test.ts Refactoring +6/-6

Replace ClaudineError with DelegateError in checkpoint handler tests

• Replaced ClaudineError with DelegateError in import and 4 test cases
• Updated error instantiation in task failure and git state capture scenarios
• No test logic changes

tests/unit/services/handlers/checkpoint-handler.test.ts


27. src/bootstrap.ts Refactoring +5/-5

Replace ClaudineError with DelegateError and update bootstrap logging

• Replaced ClaudineError with DelegateError in import and 3 error instantiations
• Updated console logger prefix from [Claudine] to [Delegate]
• Updated bootstrap log message from "Bootstrapping Claudine" to "Bootstrapping Delegate"

src/bootstrap.ts


28. src/services/schedule-executor.ts Refactoring +7/-7

Replace ClaudineError with DelegateError in schedule executor service

• Replaced ClaudineError with DelegateError in import and 4 method signatures/returns
• Updated error instantiation in subscription and state validation methods
• No functional changes to schedule execution logic

src/services/schedule-executor.ts


29. tests/unit/implementations/event-driven-worker-pool.test.ts Refactoring +6/-6

Replace ClaudineError with DelegateError in worker pool tests

• Replaced ClaudineError with DelegateError in import and 4 test assertions
• Updated error type checks and instanceof comparisons
• No test logic changes

tests/unit/implementations/event-driven-worker-pool.test.ts


30. tests/unit/implementations/process-spawner.test.ts Refactoring +6/-6

Update error names and environment variables in process spawner tests

• Updated error name assertion from ClaudineError to DelegateError (2 occurrences)
• Updated environment variable names from CLAUDINE_WORKER and CLAUDINE_TASK_ID to
 DELEGATE_WORKER and DELEGATE_TASK_ID
• Updated test descriptions to reference new environment variable names

tests/unit/implementations/process-spawner.test.ts


31. src/core/domain.ts Refactoring +4/-4

Replace ClaudineError with DelegateError in domain types

• Replaced ClaudineError import with DelegateError
• Updated type annotations in Task and TaskUpdate interfaces to use DelegateError
• Updated branch name comment from claudine/task-{id} to delegate/task-{id}

src/core/domain.ts


32. src/services/task-manager.ts Refactoring +5/-5

Replace ClaudineError with DelegateError in task manager service

• Replaced ClaudineError import with DelegateError (3 occurrences)
• Updated error instantiation in task lookup, retry validation, and resume validation methods
• Updated CLI usage comment from claudine retry-task to delegate retry-task

src/services/task-manager.ts


33. tests/integration/task-persistence.test.ts Refactoring +5/-5

Update temporary directory naming in task persistence integration tests

• Updated temporary directory naming from claudine-test- to delegate-test- in 5 test cases
• Consistent updates across task persistence, transaction rollback, queue ordering, concurrent
 operations, and partial data recovery tests

tests/integration/task-persistence.test.ts


34. src/implementations/output-repository.ts Refactoring +5/-5

Replace ClaudineError with DelegateError in output repository

• Replaced ClaudineError with DelegateError in import and 4 error instantiations
• Updated error creation in save, append, get, and delete output methods
• No functional changes to output repository logic

src/implementations/output-repository.ts


35. src/services/handlers/checkpoint-handler.ts Refactoring +4/-4

Replace ClaudineError with DelegateError in checkpoint handler service

• Replaced ClaudineError with DelegateError in import and 2 method signatures
• Updated error instantiation in event subscription method
• No functional changes to checkpoint handling logic

src/services/handlers/checkpoint-handler.ts


36. src/core/dependency-graph.ts Refactoring +3/-3

Replace ClaudineError with DelegateError in dependency graph

• Replaced ClaudineError with DelegateError in import and 2 error instantiations
• Updated error creation in task ID validation and cycle detection methods
• No logic changes to dependency graph algorithms

src/core/dependency-graph.ts


37. tests/unit/adapters/mcp-adapter.test.ts Refactoring +4/-4

Replace ClaudineError with DelegateError in MCP adapter tests

• Replaced ClaudineError with DelegateError in import and 2 mock error instantiations
• Updated comment from "claudine name" to "delegate name"
• No test logic changes

tests/unit/adapters/mcp-adapter.test.ts


38. tests/unit/core/events/event-bus-request.test.ts Refactoring +4/-4

Replace ClaudineError with DelegateError in event bus request tests

• Replaced ClaudineError with DelegateError in import and 2 error instantiations
• Updated test description from "ClaudineError" to "DelegateError"
• No test logic changes

tests/unit/core/events/event-bus-request.test.ts


39. src/implementations/process-spawner.ts Refactoring +5/-5

Replace ClaudineError and update environment variables in process spawner

• Replaced ClaudineError with DelegateError in import and error instantiation
• Updated environment variable names from CLAUDINE_WORKER and CLAUDINE_TASK_ID to
 DELEGATE_WORKER and DELEGATE_TASK_ID
• Updated comment from "Claudine-specific" to "Delegate-specific"

src/implementations/process-spawner.ts


40. src/implementations/task-queue.ts Refactoring +3/-3

Replace ClaudineError with DelegateError in task queue implementations

• Replaced ClaudineError with DelegateError in import and 2 error instantiations
• Updated error creation in queue size validation for both priority and FIFO queue implementations
• No functional changes to queue logic

src/implementations/task-queue.ts


41. src/index.ts Refactoring +4/-4

Update process title and logging messages in main entry point

• Updated process title from claudine-mcp to delegate-mcp
• Updated log messages from "Claudine" to "Delegate" (3 occurrences)
• Updated startup and ready state logging messages

src/index.ts


42. src/implementations/task-repository.ts Refactoring +3/-3

Replace ClaudineError with DelegateError in task repository

• Replaced ClaudineError with DelegateError in import and 2 error instantiations
• Updated error creation in task lookup and transaction failure methods
• No functional changes to task repository logic

src/implementations/task-repository.ts


43. tests/fixtures/mock-process-spawner.ts Refactoring +3/-3

Replace ClaudineError and update mock paths in process spawner fixture

• Replaced ClaudineError with DelegateError in import and error instantiation
• Updated mock output from /workspace/claudine to /workspace/delegate
• No functional changes to mock spawner behavior

tests/fixtures/mock-process-spawner.ts


44. src/services/handlers/dependency-handler.ts Refactoring +3/-3

Replace ClaudineError with DelegateError in dependency handler

• Replaced ClaudineError with DelegateError in import and 2 error instantiations
• Updated error creation in dependency validation methods (cycle detection and chain depth)
• No functional changes to dependency resolution logic

src/services/handlers/dependency-handler.ts


45. src/implementations/output-capture.ts Refactoring +2/-2

Replace ClaudineError with DelegateError in output capture

• Replaced ClaudineError with DelegateError in import and error instantiation
• Updated error creation in buffer limit validation
• No functional changes to output capture logic

src/implementations/output-capture.ts


46. src/services/handlers/worker-handler.ts Refactoring +3/-3

Replace ClaudineError with DelegateError in worker handler

• Replaced ClaudineError with DelegateError in import and 2 error instantiations
• Updated error creation in task cancellation and worker timeout methods
• Updated method signature for onWorkerTimeout to use DelegateError

src/services/handlers/worker-handler.ts


47. tests/integration/task-resumption.test.ts Refactoring +3/-3

Update environment variables and temp directories in task resumption tests

• Updated temporary directory naming from claudine-resume-test- to delegate-resume-test-
• Updated environment variable from CLAUDINE_DATABASE_PATH to DELEGATE_DATABASE_PATH (2
 occurrences)

tests/integration/task-resumption.test.ts


48. tests/integration/task-scheduling.test.ts Refactoring +3/-3

Update environment variables and temp directories in task scheduling tests

• Updated temporary directory naming from claudine-schedule-test- to delegate-schedule-test-
• Updated environment variable from CLAUDINE_DATABASE_PATH to DELEGATE_DATABASE_PATH (2
 occurrences)

tests/integration/task-scheduling.test.ts


49. tests/unit/core/events/event-bus.test.ts Refactoring +3/-3

Update event source field in event bus tests

• Updated event source field from claudine to delegate in 2 test assertions
• No logic changes to event bus tests

tests/unit/core/events/event-bus.test.ts


50. tests/integration/task-dependencies.test.ts Refactoring +3/-3

Update environment variables and temp directories in task dependencies tests

• Updated temporary directory naming from claudine-deps-test- to delegate-deps-test-
• Updated environment variable from CLAUDINE_DATABASE_PATH to DELEGATE_DATABASE_PATH (2
 occurrences)

tests/integration/task-dependencies.test.ts


51. src/implementations/resource-monitor.ts Refactoring +2/-2

Replace ClaudineError with DelegateError in resource monitor

• Replaced ClaudineError with DelegateError in import and error instantiation
• Updated error creation in resource monitoring failure handler
• No functional changes to resource monitoring logic

src/implementations/resource-monitor.ts


52. src/implementations/schedule-repository.ts Refactoring +2/-2

Replace ClaudineError with DelegateError in schedule repository

• Replaced ClaudineError with DelegateError in import and error instantiation
• Updated error creation in schedule lookup method
• No functional changes to schedule repository logic

src/implementations/schedule-repository.ts


53. tests/unit/services/handler-setup.test.ts Refactoring +2/-2

Replace ClaudineError with DelegateError in handler setup tests

• Replaced ClaudineError with DelegateError in import and error instantiation
• Updated error creation in DependencyHandler creation failure test
• No test logic changes

tests/unit/services/handler-setup.test.ts


54. src/core/configuration.ts Refactoring +1/-1

Update configuration validation warning message

• Updated configuration validation warning message from [Claudine] to [Delegate]
• No functional changes to configuration loading logic

src/core/configuration.ts


55. src/utils/git-state.ts Refactoring +2/-2

Replace ClaudineError with DelegateError in git state utility

• Replaced ClaudineError with DelegateError in import and error instantiation
• Updated error creation in git state capture failure handler
• No functional changes to git state capture logic

src/utils/git-state.ts


56. src/services/handlers/worktree-handler.ts Refactoring +2/-2

Replace ClaudineError with DelegateError in worktree handler

• Replaced ClaudineError with DelegateError in import and error instantiation
• Updated error creation in interactive cleanup strategy validation
• No functional changes to worktree handling logic

src/services/handlers/worktree-handler.ts


57. src/core/interfaces.ts Refactoring +1/-1

Update event type import in core interfaces

• Updated import to use DelegateEvent instead of ClaudineEvent
• No functional changes to interface definitions

src/core/interfaces.ts


58. tests/integration/event-flow.test.ts Refactoring +1/-1

Update temporary directory naming in event flow tests

• Updated temporary directory naming from claudine-test- to delegate-test-
• No functional changes to event flow tests

tests/integration/event-flow.test.ts


59. src/services/github-integration.ts 📦 Other +1/-1
• Replaced `Clau

src/services/github-integration.ts


60. docs/releases/RELEASE_NOTES.md 📝 Documentation +11/-11

Rename project branding from Claudine to Delegate

• Updated all references from Claudine to Delegate in release notes headers and descriptions
• Changed repository URLs from dean0x/claudine to dean0x/delegate
• Updated installation and configuration examples to use new package name
• Modified MCP server configuration examples to reference delegate instead of claudine

docs/releases/RELEASE_NOTES.md


61. docs/releases/RELEASE_NOTES_v0.3.0.md 📝 Documentation +10/-10

Update v0.3.0 release notes with new package name

• Replaced ClaudineError with DelegateError in error handling documentation
• Updated npm installation commands from claudine@0.3.0 to @dean0x/delegate@0.3.0
• Changed MCP server configuration to use delegate command
• Updated all GitHub repository links to point to dean0x/delegate

docs/releases/RELEASE_NOTES_v0.3.0.md


62. launch/discord.md 📝 Documentation +85/-0

Add Discord launch announcement templates

• New file with Discord announcement templates for three communities
• Includes messaging for Claude/Anthropic Discord, MCP Community Discord, and AI Tools communities
• Highlights key features: task delegation, dependency chains, cron scheduling, crash recovery
• Provides installation instructions and GitHub repository link

launch/discord.md


63. tests/e2e/test-plans/002-concurrent-tasks.md 🧪 Tests +8/-8

Update concurrent tasks test plan with new CLI name

• Replaced all claudine CLI commands with delegate throughout test steps
• Updated process management commands from claudine mcp start to delegate mcp start
• Changed cleanup commands from killall claudine to killall delegate
• Updated test descriptions to reference Delegate instead of Claudine

tests/e2e/test-plans/002-concurrent-tasks.md


64. tests/e2e/test-plans/007-priority-queue.md 🧪 Tests +8/-8

Update priority queue test with new data directory paths

• Updated directory references from .claudine/ to .delegate/
• Changed database path from .claudine/claudine.db to .delegate/delegate.db
• Updated process kill commands from claudine to delegate
• Modified cleanup and rollback procedures to use new directory structure

tests/e2e/test-plans/007-priority-queue.md


65. tests/e2e/test-plans/003-task-retry-failure.md 🧪 Tests +9/-9

Update task retry failure test plan with new CLI

• Replaced all claudine CLI invocations with delegate command
• Updated database path references from .claudine/claudine.db to .delegate/delegate.db
• Changed process termination from killall claudine to killall delegate
• Updated test descriptions to use Delegate terminology

tests/e2e/test-plans/003-task-retry-failure.md


66. tests/e2e/test-plans/008-queue-overflow.md 🧪 Tests +7/-7

Update queue overflow test with new directory structure

• Updated directory cleanup from .claudine/ to .delegate/
• Changed database file references from .claudine/claudine.db to .delegate/delegate.db
• Updated log file paths from .claudine/logs/ to .delegate/logs/
• Modified process management commands to use delegate instead of claudine

tests/e2e/test-plans/008-queue-overflow.md


67. src/services/worktree-strategy.md 📝 Documentation +8/-8

Update worktree strategy documentation with new naming

• Updated patch directory reference from .claudine-patches/ to .delegate-patches/
• Changed commit message from "Generated by Claudine task delegation" to "Generated by Delegate task
 orchestration"
• Updated all CLI example commands from claudine delegate to delegate delegate
• Modified git branch naming from claudine/task-* to delegate/task-*

src/services/worktree-strategy.md


68. tests/e2e/test-plans/009-autoscaling-basic.md 🧪 Tests +8/-8

Update autoscaling test with new environment variables

• Updated environment variable names from CLAUDINE_MIN_WORKERS and CLAUDINE_MAX_WORKERS to
 DELEGATE_MIN_WORKERS and DELEGATE_MAX_WORKERS
• Changed directory cleanup from .claudine/ to .delegate/
• Updated process management commands from claudine to delegate
• Modified cleanup procedures to unset new environment variable names

tests/e2e/test-plans/009-autoscaling-basic.md


69. docs/ROADMAP.md 📝 Documentation +6/-6

Update roadmap documentation with new project name

• Updated project title from "Claudine Development Roadmap" to "Delegate Development Roadmap"
• Changed version descriptions to reference Delegate v0.4.0 instead of Claudine v0.4.0
• Updated CLI command examples from claudine resume to delegate resume
• Changed GitHub discussion link from dean0x/claudine to dean0x/delegate

docs/ROADMAP.md


70. tests/e2e/test-plans/001-basic-task-delegation.md 🧪 Tests +7/-7

Update basic task delegation test with new naming

• Updated test description to reference Delegate instead of Claudine
• Changed CLI availability check from claudine CLI to delegate CLI
• Updated database directory from .claudine/ to .delegate/ with new filename
• Modified cleanup commands to use new directory structure

tests/e2e/test-plans/001-basic-task-delegation.md


71. docs/releases/RELEASE_NOTES_v0.2.1.md 📝 Documentation +11/-11

Update v0.2.1 release notes with new package name

• Updated CLI command examples from claudine to delegate throughout
• Changed repository clone URL from dean0x/claudine to dean0x/delegate
• Updated GitHub links and issue tracker references to new repository
• Modified installation instructions to use @dean0x/delegate package name

docs/releases/RELEASE_NOTES_v0.2.1.md


72. docs/releases/RELEASE_NOTES_v0.2.2.md 📝 Documentation +5/-5

Update v0.2.2 release notes with new naming conventions

• Updated process naming examples from claudine-cli and claudine-mcp to delegate-cli and
 delegate-mcp
• Changed environment variable from CLAUDINE_WORKER to DELEGATE_WORKER
• Updated npm installation command to @dean0x/delegate@0.2.2
• Modified GitHub repository link to dean0x/delegate

docs/releases/RELEASE_NOTES_v0.2.2.md


73. launch/linkedin.md 📝 Documentation +42/-0

Add LinkedIn launch post template

• New file with LinkedIn launch post template (~1300 characters)
• Includes hook about Claude Code limitations and Delegate solution
• Highlights key features: event-driven architecture, DAG dependencies, SQLite persistence,
 autoscaling
• Provides installation command and GitHub repository link
• Includes separate first comment with direct links

launch/linkedin.md


74. tests/e2e/test-plans/006-event-bus-coordination.md 🧪 Tests +6/-6

Update event bus coordination test with new naming

• Updated preconditions to reference delegate instead of claudine processes
• Changed log directory from .claudine/logs/ to .delegate/logs/
• Updated cleanup commands to remove .delegate/ directory
• Modified process kill commands to use delegate terminology

tests/e2e/test-plans/006-event-bus-coordination.md


75. tests/e2e/TEST_PLAN_OVERVIEW.md 🧪 Tests +4/-4

Update E2E test plan overview with new project name

• Updated document purpose to reference Delegate instead of Claudine
• Changed test category descriptions to use Delegate terminology
• Updated workspace path from /workspace/claudine/ to /workspace/delegate/
• Modified database cleanup instructions from .claudine/claudine.db to .delegate/delegate.db

tests/e2e/TEST_PLAN_OVERVIEW.md


76. docs/releases/RELEASE_NOTES_v0.2.0.md 📝 Documentation +8/-8

Update v0.2.0 release notes with new storage paths

• Updated storage paths from ~/.claudine/claudine.db to ~/.delegate/delegate.db
• Changed Windows storage path from %APPDATA%/claudine/ to %APPDATA%/delegate/
• Updated npm installation commands to use @dean0x/delegate package
• Modified MCP configuration examples to use delegate server name

docs/releases/RELEASE_NOTES_v0.2.0.md


77. launch/twitter.md 📝 Documentation +64/-0

Add Twitter/X launch thread template

• New file with X (Twitter) launch thread template (5 tweets)
• Includes hook, before/after comparison, architecture details, scheduling features, and CTA
• Highlights event-driven architecture, DAG dependencies, SQLite persistence, autoscaling, task
 resumption
• Provides installation command and GitHub repository link

launch/twitter.md


78. tests/e2e/test-plans/005-worker-lifecycle.md 🧪 Tests +1/-1

Update worker lifecycle test with new database path

• Updated database cleanup from .claudine/claudine.db* to .delegate/delegate.db*
• Modified process kill command to use delegate instead of claudine

tests/e2e/test-plans/005-worker-lifecycle.md


79. tests/TESTING_ARCHITECTURE.md 📝 Documentation +5/-5

Update testing architecture documentation with new naming

• Updated document title from "Claudine Testing Architecture" to "Delegate Testing Architecture"
• Changed CLI example command from claudine delegate to delegate delegate
• Updated debug environment variable from DEBUG=claudine:* to DEBUG=delegate:*
• Modified conclusion section to reference Delegate instead of Claudine

tests/TESTING_ARCHITECTURE.md


80. tests/README.md 🧪 Tests +5/-5

Update test suite README with new project name

• Updated test suite title from "Claudine Test Suite" to "Delegate Test Suite"
• Changed temporary artifact directory from .claudine/ to .delegate/
• Updated troubleshooting commands from pkill -f claudine to pkill -f delegate
• Modified database cleanup instructions to use new directory structure

tests/README.md


81. tests/e2e/test-plans/013-worker-crash-recovery.md 🧪 Tests +5/-5

Update worker crash recovery test with new directories

• Updated directory cleanup from .claudine/ to .delegate/
• Changed process kill commands from claudine to delegate
• Modified rollback plan to reference new directory structure

tests/e2e/test-plans/013-worker-crash-recovery.md


82. CONTRIBUTING.md 📝 Documentation +5/-5

Update contributing guide with new project name

• Updated repository clone URL from dean0x/claudine to dean0x/delegate
• Changed project references from Claudine to Delegate throughout
• Updated architecture description to reference Delegate event-driven system

CONTRIBUTING.md


83. docs/releases/RELEASE_NOTES_v0.3.3.md 📝 Documentation +4/-4

Update v0.3.3 release notes with new package name

• Updated npm installation commands from claudine@0.3.3 to delegate@0.3.3
• Changed package directory reference from node_modules/claudine/ to node_modules/delegate/
• Updated upgrade instructions to use new package name

docs/releases/RELEASE_NOTES_v0.3.3.md


84. tests/e2e/test-plans/011-worktree-isolation.md 🧪 Tests +4/-4

Update worktree isolation test with new naming

• Updated git config email from test@claudine.ai to test@delegate.ai
• Changed git config name from "Claudine Test" to "Delegate Test"
• Updated directory cleanup from .claudine/ to .delegate/
• Modified process kill commands to use delegate instead of claudine

tests/e2e/test-plans/011-worktree-isolation.md


85. tests/e2e/test-plans/010-autoscaling-resource-limits.md 🧪 Tests +4/-4

Update autoscaling resource limits test with new directories

• Updated directory cleanup from .claudine/ to .delegate/
• Changed process kill commands from claudine to delegate
• Modified cleanup procedures to reference new directory structure

tests/e2e/test-plans/010-autoscaling-resource-limits.md


86. docs/releases/RELEASE_NOTES_v0.3.1.md 📝 Documentation +2/-2

Update v0.3.1 release notes with new package name

• Updated npm installation command from claudine@0.3.1 to @dean0x/delegate@0.3.1
• Changed GitHub issues link from dean0x/claudine to dean0x/delegate

docs/releases/RELEASE_NOTES_v0.3.1.md


87. docs/TASK-DEPENDENCIES.md 📝 Documentation +2/-2

Update task dependencies documentation with new naming

• Updated project references from Claudine to Delegate in overview
• Changed CLI example command from claudine delegate to delegate delegate

docs/TASK-DEPENDENCIES.md


88. .github/ISSUE_TEMPLATE/bug_report.md 📝 Documentation +2/-2

Update bug report template with new project name

• Updated issue template to reference Delegate instead of Claudine
• Changed version field label from "Claudine version" to "Delegate version"

.github/ISSUE_TEMPLATE/bug_report.md


89. tests/e2e/README.md 🧪 Tests +3/-3

Update E2E testing README with new project name

• Updated framework title from "E2E Testing Framework for Claudine" to "E2E Testing Framework for
 Delegate"
• Changed troubleshooting commands from pkill -f claudine to pkill -f delegate
• Updated database cleanup from .claudine/ to .delegate/

tests/e2e/README.md


90. docs/architecture/EVENT_FLOW.md 📝 Documentation +2/-2

Update event flow architecture documentation

• Updated architecture description from "Claudine uses" to "Delegate uses"
• Changed debug logging command from claudine mcp start to delegate mcp start

docs/architecture/EVENT_FLOW.md


91. docs/releases/RELEASE_NOTES_v0.2.3.md 📝 Documentation +2/-2

Update v0.2.3 release notes with new package name

• Updated release title from "Claudine v0.2.3" to "Delegate v0.2.3"
• Changed npm installation command to @dean0x/delegate@0.2.3

docs/releases/RELEASE_NOTES_v0.2.3.md


92. CLAUDE.md 📦 Other +4/-4

Update Claude.md project guidance with new naming

• Updated project guidance from "Claudine" to "Delegate" throughout
• Changed MCP server startup command from claudine mcp start to delegate mcp start
• Updated project overview to reference Delegate task orchestration
• Modified final note to reference Delegate-specific guidance

CLAUDE.md


93. .github/ISSUE_TEMPLATE/feature_request.md Additional files +1/-1

...

.github/ISSUE_TEMPLATE/feature_request.md

<...

@qodo-free-for-open-source-projects
Copy link

qodo-free-for-open-source-projects bot commented Feb 21, 2026

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (1) 📎 Requirement gaps (0)

Grey Divider


Remediation recommended

1. Unstructured console.warn config log 📘 Rule violation ✓ Correctness
Description
The configuration validation warning is emitted as an unstructured string via console.warn, which
makes logs harder to parse/monitor and conflicts with the requirement for structured logging. This
also risks inconsistent logging behavior compared to the project’s structured logger usage.
Code

src/core/configuration.ts[159]

+    console.warn(`[Delegate] Configuration validation failed, using defaults:\n${errors}`);
Evidence
Compliance ID 5 requires structured logs; the modified line logs a plain-text message (not
structured JSON) directly to stdout via console.warn.

Rule 5: Generic: Secure Logging Practices
src/core/configuration.ts[159-159]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Configuration validation failures are currently logged with an unstructured `console.warn(...)` string, which conflicts with the requirement for structured logs.
## Issue Context
This message is emitted when environment-derived configuration fails schema validation; it should be logged in a structured, machine-parseable format (and ideally through the project logger abstraction).
## Fix Focus Areas
- src/core/configuration.ts[159-159]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Unignored delegate patches🐞 Bug ⛯ Reliability
Description
The app now writes patch artifacts into .delegate-patches/ under the repo root, but .gitignore
still only ignores .claudine/. This can leave a dirty working tree and lead to accidental commits
of generated patches.
Code

src/services/worktree-manager.ts[R349-350]

+      const patchDir = path.join(process.cwd(), '.delegate-patches');
     await fs.mkdir(patchDir, { recursive: true });
Evidence
GitWorktreeManager.createPatch() writes generated patch files into .delegate-patches/ in the
current working directory, but .gitignore does not ignore that directory (and still ignores the
old .claudine/). This makes generated runtime artifacts show up as untracked changes and can be
mistakenly committed.

src/services/worktree-manager.ts[347-353]
.gitignore[55-61]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`GitWorktreeManager` creates `.delegate-patches/` in the repo working directory, but `.gitignore` does not ignore it (it still ignores the old `.claudine/`). This causes generated patch artifacts to appear as untracked files and be accidentally committed.
## Issue Context
The directory is created at runtime during patch-based completion.
## Fix Focus Areas
- .gitignore[55-70]
- src/services/worktree-manager.ts[347-353]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. E2E cleanup mismatches defaults 🐞 Bug ✓ Correctness
Description
Multiple E2E test plans instruct rm -rf .delegate/ even though the DB default is
~/.delegate/delegate.db, and they use pkill -f "delegate" which is overly broad. This can leave
real state behind between runs and can kill unrelated processes that happen to match "delegate".
Code

tests/e2e/test-plans/009-autoscaling-basic.md[R27-28]

+rm -rf .delegate/
+pkill -f "delegate" || true
Evidence
The test plan cleanup targets a repo-local .delegate/ directory, but the production default DB
path is in the user home directory (~/.delegate/delegate.db). Additionally, the docs recommend
pkill -f "delegate", while the code already sets specific process titles (delegate-cli /
delegate-mcp) that can be used for safer matching. The code also requires DELEGATE_DATA_DIR to
be an absolute path, so if these plans intend to use repo-local state they should explicitly set
DELEGATE_DATA_DIR="$(pwd)/.delegate" (or use DELEGATE_DATABASE_PATH like integration tests do).

tests/e2e/test-plans/009-autoscaling-basic.md[24-34]
src/implementations/database.ts[109-116]
src/implementations/database.ts[129-136]
src/cli.ts[1-5]
src/index.ts[26-29]
tests/integration/task-dependencies.test.ts[23-27]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
E2E test plans currently clean `.delegate/` and run `pkill -f &amp;quot;delegate&amp;quot;`, but the application default DB path is `~/.delegate/delegate.db` and the code sets specific process titles (`delegate-cli`, `delegate-mcp`). The current instructions can leave DB state behind and can kill unrelated processes.
## Issue Context
`DELEGATE_DATA_DIR` must be absolute, so if the intent is to use repo-local state, plans should use `$(pwd)/.delegate`.
## Fix Focus Areas
- tests/e2e/test-plans/009-autoscaling-basic.md[24-35]
- tests/e2e/test-plans/007-priority-queue.md[1-250]
- tests/e2e/test-plans/008-queue-overflow.md[1-260]
- tests/e2e/test-plans/010-autoscaling-resource-limits.md[1-260]
- src/implementations/database.ts[109-136]
- src/cli.ts[1-5]
- src/index.ts[26-29]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

Dean Sharon and others added 14 commits February 22, 2026 01:23
Replace all 113 `any` types across 12 test infrastructure files with
proper types: `unknown`, concrete interface types, `Record<string, unknown>`,
and typed function signatures. No biome-ignore suppressions needed.

Files modified:
- test-doubles.ts: TestEventBus handler maps, payloads, event signatures
- test-factories.ts: Mock factories, assertion helpers, mock verification
- test-helpers.ts: MockFunction, RetryTestFunction, createMockFunction
- event-helpers.ts: TestableEventBus interface, event collection types
- event-spy.ts: subscribe/unsubscribe cast types
- test-container.ts: Container resolution casts to concrete types
- factories.ts: EventFactory payload, withError parameter
- mock-process-spawner.ts: ChildProcess cast via unknown
- test-data.ts: Event bus emit/once handler types
- mocks.ts: Event bus emit/once data types
- async-helpers.ts: waitForEvent emitter parameter type
- setup.ts: clearTimeout/clearInterval cast types

Co-Authored-By: Claude <noreply@anthropic.com>
Replace all 119 `any` type annotations with proper types across 8 test
files: specific interfaces (DelegateRequest, Task, TaskOutput, Worker),
Record<string, unknown> for event payloads, branded types (TaskId) for
repository calls, and typed mock arrays. Two unavoidable `as any` casts
in cli.test.ts for setting readonly fields on test mocks are suppressed
with biome-ignore comments.

Co-Authored-By: Claude <noreply@anthropic.com>
…orce error level

Replace all `any` types across 17 test files with proper type-safe
alternatives: branded types (TaskId/WorkerId), interface casts for
private field access (DatabaseInternals), domain event types
(TaskResumedEvent), concrete types (TestEventBus, WorktreeManager),
and unknown where specific types are unnecessary.

Update biome.json tests/ override from "warn" to "error" so new
any introductions fail the lint check immediately.
- Fix ClaudineEvent type reference in event-spy.ts (code bug)
- Update social-preview.svg title and install command
- Update .gitignore paths from claudine to delegate
- Update release notes index to reference v0.4.0
- Remove phantom config/mcp-servers.example.json from files array
…ependencies

afterScheduleId was accepted by the domain model, CLI, and MCP adapter but
never persisted by the repository or enforced by the handler. This was a
complete stub.

Repository: persist after_schedule_id in save/update/rowToSchedule roundtrip.

Handler: on ScheduleTriggered, look up the chained schedule's latest execution
and inject a dependsOn entry if the target task is still non-terminal. If the
target already completed, skip the dependency (correct semantic: "run after A
finishes" + "A already finished" = "run now").

Tests: 4 new behavioral tests covering inject-when-running, skip-when-completed,
skip-when-no-history, and skip-when-no-taskId.
…on rejection

Workers are independent Claude Code instances, not nested sessions. When a
worker spawns inside an existing Claude Code session (e.g., delegate CLI
running in Claude Code), the inherited CLAUDECODE environment variable
causes Claude to reject the spawn with 'nested session' error.

Fix: explicitly remove CLAUDECODE from env when spawning workers. Workers
will have DELEGATE_WORKER flag but no CLAUDECODE, allowing them to spawn
independently even when delegate itself runs in Claude Code.
Add test to verify that process spawner removes CLAUDECODE env var
from worker environment. This ensures workers can spawn as independent
Claude Code instances even when delegate itself runs in a Claude Code session.
…ent nesting rejection

Workers fail instantly with "Claude Code cannot be launched inside another Claude Code
session" when the MCP server runs within Claude Code. The issue isn't just CLAUDECODE—
Claude Code's nesting check triggers on any CLAUDE_CODE_* prefixed vars:
- CLAUDECODE (stripped before, now via filter)
- CLAUDE_CODE_ENTRYPOINT (was NOT stripped)
- CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS (was NOT stripped)

Solution: Filter strips both CLAUDECODE and any CLAUDE_CODE_* prefixed vars, making it
future-proof for additional Claude Code environment variables.

Tests: Added 3 comprehensive env var tests
- Verify all known nesting indicators are stripped
- Verify future CLAUDE_CODE_* flags are handled
- Verify safe vars (CLAUDE_API_KEY, ANTHROPIC_API_KEY, PATH, HOME) pass through

All 258 implementation tests pass, biome/typecheck clean.
Add skipScheduleExecutor: true to all CLI bootstrap calls. Short-lived
commands (delegate, status, logs, cancel, etc.) no longer start the
ScheduleExecutor's 60-second tick loop. This prevents race conditions
where the executor timer blocks process.exit() and the shell kills the
process, orphaning spawned workers.

Only the MCP server daemon (index.ts) needs the executor running
continuously. CLI commands exit cleanly immediately after completion.

Fixes the known issue where schedule create/list/get commands would hang
until either (a) a schedule fired, or (b) the shell forced termination.
ConsoleLogger ignored the configured logLevel, printing all DEBUG messages
unconditionally. Now accepts a LogLevel parameter (default INFO) and filters
messages the same way StructuredLogger does. Bootstrap passes the resolved
logLevel to both logger implementations.
Replace nested ternary operator with explicit switch statement for better clarity
and maintainability. Also remove redundant comments from test suite that describe
obvious code behavior.

Changes:
- Extract logLevel resolution into dedicated function with switch statement
- Remove unnecessary comments from ConsoleLogger test suite
- Preserve all functionality and test coverage
Replace resolveLogLevel closure with type-safe Record lookup map.
The closure accepted loose `string` type instead of Configuration['logLevel']
union. The Record approach is more concise, eliminates the switch statement,
and ensures exhaustive mapping at compile time.
- Add process.exit(0) to scheduleCreate success path (prevents async handles keeping CLI alive)
- Rename CLAUDINE_WORKER → DELEGATE_WORKER in cleanup script to match source code
- Move social-preview.svg to .github/assets/ and gitignore launch/ directory
@dean0x dean0x changed the title chore: rename from claudine to @dean0x/delegate Rename claudine → delegate + 5 bug fixes Feb 24, 2026
Patch completion strategy writes patch files to .delegate-patches/ in working
directory. This directory must be gitignored to prevent patch artifacts from
appearing as untracked files and being accidentally committed.
@dean0x dean0x merged commit acd082b into main Feb 24, 2026
1 check failed
@dean0x dean0x deleted the rename/delegate branch February 24, 2026 20:44
dean0x added a commit that referenced this pull request Feb 24, 2026
## Summary

- Regenerated `package-lock.json` to include all platform-specific Biome
binaries (Linux x64, Linux x64 musl, darwin arm64, etc.)

## Problem

CI failing on every push with:
```
Error: Cannot find module '@biomejs/cli-linux-x64/biome'
```

The lockfile was regenerated on macOS during the project rename (#60,
3643 lines changed) and only contained `@biomejs/cli-darwin-arm64`. When
`npm ci` ran on the Ubuntu GitHub Actions runner, it found no Linux
binary entry, skipped it (optional dep), and biome failed at runtime.

## Fix

`rm -rf node_modules package-lock.json && npm install` — the regenerated
lockfile now includes entries for `@biomejs/cli-linux-x64` and
`@biomejs/cli-linux-x64-musl`.

## Test plan

- [x] `npm run build` passes locally
- [x] `npm run check` (biome) passes locally
- [ ] CI passes on GitHub Actions (Linux runner) — **this is the real
validation**

Co-authored-by: Dean Sharon <deanshrn@gmain.com>
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.

1 participant