{
  "interval": {
    "intervalStart": "2025-09-19T00:00:00.000Z",
    "intervalEnd": "2025-09-20T00:00:00.000Z",
    "intervalType": "day"
  },
  "repository": "elizaos/eliza",
  "overview": "From 2025-09-19 to 2025-09-20, elizaos/eliza had 0 new PRs (2 merged), 0 new issues, and 6 active contributors.",
  "topIssues": [],
  "topPRs": [
    {
      "id": "PR_kwDOMT5cIs6meEtU",
      "title": "refactor: centralize business logic in server package",
      "author": "standujar",
      "number": 5864,
      "body": "# Relates to\r\n\r\n  #5860 Refactor Eliza CLI\r\n                                                                                                                                                                                                                                                                                                                                                                                                                                                           \r\n   # Risks                                                                                                                                                                                                                                                                               \r\n                                                                                                                                                                                                                                                                                         \r\n   **Low to Medium**                                                                                                                                                                                                                                                                     \r\n   - **Low**: All existing functionality maintained with backward compatibility                                                                                                                                                                                                          \r\n   - **Medium**: Large architectural change affecting core components, thoroughly tested                                                                                                                                                                                                 \r\n                                                                                                                                                                                                                                                                                         \r\n   # Background                                                                                                                                                                                                                                                                          \r\n                                                                                                                                                                                                                                                                                         \r\n   ## What does this PR do?                                                                                                                                                                                                                                                              \r\n                                                                                                                                                                                                                                                                                         \r\n   This PR refactors the ElizaOS architecture by moving all business logic from the CLI package to the server package. The CLI becomes a thin orchestration layer that delegates to the server package, eliminating code duplication and creating a cleaner separation of concerns.      \r\n                                                                                                                                                                                                                                                                                         \r\n   **Key changes:**                                                                                                                                                                                                                                                                      \r\n   - Moved 870+ lines of business logic from CLI to server package                                                                                                                                                                                                                       \r\n   - Created new `ElizaOS` orchestration class and managers (Agent, Plugin, Config) in server package                                                                                                                                                                                    \r\n   - Simplified CLI to ~170 lines of pure delegation code                                                                                                                                                                                                                                \r\n   - Removed 1,612 lines of redundant code while adding 1,211 lines of well-organized managers                                                                                                                                                                                           \r\n   - Maintained 100% backward compatibility for all existing use cases                                                                                                                                                                                                                   \r\n                                                                                                                                                                                                                                                                                         \r\n   **Files deleted from CLI:**                                                                                                                                                                                                                                                           \r\n   - `commands/start/actions/agent-start.ts` (134 lines)                                                                                                                                                                                                                                 \r\n   - `commands/start/actions/server-start.ts` (118 lines)                                                                                                                                                                                                                                \r\n   - `commands/start/utils/config-utils.ts` (73 lines)                                                                                                                                                                                                                                   \r\n   - `commands/start/utils/dependency-resolver.ts` (56 lines)                                                                                                                                                                                                                            \r\n   - `commands/start/utils/loader.ts` (120 lines)                                                                                                                                                                                                                                        \r\n   - `commands/start/utils/plugin-utils.ts` (99 lines)                                                                                                                                                                                                                                   \r\n                                                                                                                                                                                                                                                                                         \r\n   **New files in server:**                                                                                                                                                                                                                                                              \r\n   - `orchestration/ElizaOS.ts` - Main orchestration (166 lines)                                                                                                                                                                                                                         \r\n   - `managers/AgentManager.ts` - Agent lifecycle (171 lines)                                                                                                                                                                                                                            \r\n   - `managers/PluginLoader.ts` - Plugin management (140 lines)                                                                                                                                                                                                                          \r\n   - `managers/ConfigManager.ts` - Config handling (123 lines)                                                                                                                                                                                                                           \r\n   - `characters/default.ts` - Default Eliza character (271 lines)                                                                                                                                                                                                                       \r\n                                                                                                                                                                                                                                                                                         \r\n   ## What kind of change is this?                                                                                                                                                                                                                                                       \r\n                                                                                                                                                                                                                                                                                         \r\n   **Improvements** (misc. changes to existing features) - Major architectural refactoring without breaking changes                                                                                                                                                                      \r\n                                                                                                                                                                                                                                                                                         \r\n   # Documentation changes needed?                                                                                                                                                                                                                                                       \r\n                                                                                                                                                                                                                                                                                         \r\n   My changes do not require a change to the project documentation.                                                                                                                                                                                                                      \r\n   - The public API remains the same                                                                                                                                                                                                                                                     \r\n   - All commands work identically                                                                                                                                                                                                                                                       \r\n   - Internal architecture changes only                                                                                                                                                                                                                                                  \r\n                                                                                                                                                                                                                                                                                         \r\n   # Testing                                                                                                                                                                                                                                                                             \r\n                                                                                                                                                                                                                                                                                         \r\n   ## Where should a reviewer start?                                                                                                                                                                                                                                                     \r\n                                                                                                                                                                                                                                                                                         \r\n   1. Review the new architecture in `packages/server/src/`:                                                                                                                                                                                                                             \r\n      - `orchestration/ElizaOS.ts` - Main orchestration class                                                                                                                                                                                                                            \r\n      - `managers/AgentManager.ts` - Agent lifecycle management                                                                                                                                                                                                                          \r\n      - `managers/PluginLoader.ts` - Plugin loading and dependency resolution                                                                                                                                                                                                            \r\n      - `managers/ConfigManager.ts` - Configuration management                                                                                                                                                                                                                           \r\n                                                                                                                                                                                                                                                                                         \r\n   2. Check the simplified CLI in `packages/cli/src/commands/start/index.ts`                                                                                                                                                                                                             \r\n                                                                                                                                                                                                                                                                                         \r\n   ## Detailed testing steps                                                                                                                                                                                                                                                             \r\n                                                                                                                                                                                                                                                                                         \r\n   ```bash                                                                                                                                                                                                                                                                               \r\n   # Test 1: CLI with character files (standalone mode)                                                                                                                                                                                                                                  \r\n   cd eliza                                                                                                                                                                                                                                                                              \r\n   bun run build                                                                                                                                                                                                                                                                         \r\n   bunx elizaos start --character characters/cartman.json                                                                                                                                                                                                                                \r\n   # Verify: Agent starts successfully                                                                                                                                                                                                                                                   \r\n                                                                                                                                                                                                                                                                                         \r\n   # Test 2: CLI within a project                                                                                                                                                                                                                                                        \r\n   bunx elizaos create test-project --yes                                                                                                                                                                                                                                                \r\n   cd test-project                                                                                                                                                                                                                                                                       \r\n   bunx elizaos start                                                                                                                                                                                                                                                                    \r\n   # Verify: Project agents load and start                                                                                                                                                                                                                                               \r\n                                                                                                                                                                                                                                                                                         \r\n   # Test 3: Test command still works                                                                                                                                                                                                                                                    \r\n   bunx elizaos test                                                                                                                                                                                                                                                                     \r\n   # Verify: Tests run successfully                                                                                                                                                                                                                                                      \r\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     \r\n   # Test 5: Build and test                                                                                                                                                                                                                                                              \r\n   bun run build                                                                                                                                                                                                                                                                         \r\n   bun test                                                                                                                                                                                                                                                                              \r\n   # Verify: All tests passing test still passing                                                                                                                                                                                                                                                        \r\n   ```                                                                                                                                                                                                                                                                                   \r\n                                                                                                                                                                                                                                                                                         \r\n   **Results:**                                                                                                                                                                                                                                                                          \r\n   - ✅ Created and tested a new project outside monorepo                                                                                                                                                                                                                                 \r\n   - ✅ Verified CLI works with --character flag                                                                                                                                                                                                                                          \r\n   - ✅ Confirmed projects created with `elizaos create` work correctly                                                                                                                                                                                                                   \r\n   - ✅ All test and scenario commands functioning                                                                                                                                                                                                                                        \r\n   - ✅ Added comprehensive unit tests for new managers\"\n\n<!-- This is an auto-generated comment: release notes by coderabbit.ai -->\n\n## Summary by CodeRabbit\n\n- New Features\n  - Introduced unified server orchestration via ElizaOS, enabling simpler startup and agent management.\n  - Added a server-provided default character with environment-aware plugin loading.\n  - Ensured Ollama is always available as a fallback plugin.\n  - Added dotenv support for loading .env at startup.\n- Refactor\n  - CLI start flow now delegates to the server for bootstrap, agent lifecycle, and character loading.\n  - Plugin parsing updated to functional APIs; centralized plugin loading and dependency resolution.\n- Chores\n  - Updated CLI dependencies, including adding the OpenAI plugin.\n- Tests\n  - Significant test suite updates aligning with the new orchestration and loaders.\n\n<!-- end of auto-generated comment: release notes by coderabbit.ai -->",
      "repository": "elizaos/eliza",
      "createdAt": "2025-09-02T14:28:47Z",
      "mergedAt": "2025-09-19T22:30:29Z",
      "additions": 4107,
      "deletions": 2670
    },
    {
      "id": "PR_kwDOMT5cIs6pVqqx",
      "title": "fix(cli): wait for port to be free before dev restart",
      "author": "wtfsayo",
      "number": 5988,
      "body": "This fixes the dev mode port increment loop by waiting for the previous server port to be released before restarting.\\n\\n- Adds a small utility  using existing \\n- Ensures we wait before starting the server after rebuild\\n\\nTested locally; the server no longer hops ports upon file change restarts.",
      "repository": "elizaos/eliza",
      "createdAt": "2025-09-18T17:00:34Z",
      "mergedAt": "2025-09-19T04:41:53Z",
      "additions": 55,
      "deletions": 7
    }
  ],
  "codeChanges": {
    "additions": 4709,
    "deletions": 2570,
    "files": 71,
    "commitCount": 16
  },
  "completedItems": [
    {
      "title": "refactor: centralize business logic in server package",
      "prNumber": 5864,
      "type": "refactor",
      "body": "# Relates to\r\n\r\n  #5860 Refactor Eliza CLI\r\n                                                                                                                                                                                                    ",
      "files": [
        "bun.lock",
        "packages/cli/package.json",
        "packages/cli/src/characters/eliza.ts",
        "packages/cli/src/commands/create/actions/setup.ts",
        "packages/cli/src/commands/scenario/index.ts",
        "packages/cli/src/commands/scenario/src/plugin-parser.ts",
        "packages/cli/src/commands/scenario/src/runtime-factory.ts",
        "packages/cli/src/commands/start/actions/agent-start.ts",
        "packages/cli/src/commands/start/actions/server-start.ts",
        "packages/cli/src/commands/start/index.ts",
        "packages/cli/src/commands/start/utils/__tests__/loader.test.ts",
        "packages/cli/src/commands/start/utils/config-utils.ts",
        "packages/cli/src/commands/start/utils/dependency-resolver.ts",
        "packages/cli/src/commands/start/utils/loader.ts",
        "packages/cli/src/commands/start/utils/plugin-utils.ts",
        "packages/cli/src/commands/test/actions/e2e-tests.ts",
        "packages/cli/src/utils/local-cli-delegation.ts",
        "packages/cli/tests/commands/dev.test.ts",
        "packages/cli/tests/integration/version-display.test.ts",
        "packages/cli/tests/unit/characters/character-plugin-ordering.test.ts",
        "packages/cli/tests/unit/commands/create/ollama-plugin-installation.test.ts",
        "packages/cli/tests/unit/commands/test/e2e-tests.test.ts",
        "packages/cli/tests/unit/utils/handle-error.test.ts",
        "packages/cli/tests/unit/utils/loader-integration.test.ts",
        "packages/cli/tests/unit/utils/loader-sync-async.test.ts",
        "packages/cli/tests/unit/utils/loader.test.ts",
        "packages/cli/tests/unit/utils/local-cli-delegation.test.ts",
        "packages/cli/tests/unit/utils/test-runner.test.ts",
        "packages/cli/tests/unit/utils/testing/timeout-manager.test.ts",
        "packages/server/src/characters/default.ts",
        "packages/server/src/index.ts",
        "packages/server/src/managers/AgentManager.ts",
        "packages/server/src/managers/ConfigManager.ts",
        "packages/server/src/managers/PluginLoader.ts",
        "packages/server/src/managers/__tests__/AgentManager.test.ts",
        "packages/server/src/managers/__tests__/ConfigManager.test.ts",
        "packages/server/src/managers/__tests__/PluginLoader.test.ts",
        "packages/server/src/orchestration/ElizaOS.ts",
        "packages/server/src/orchestration/__tests__/ElizaOS.test.ts",
        "packages/core/src/elizaos.ts",
        "packages/core/src/index.browser.ts",
        "packages/core/src/index.node.ts",
        "packages/core/src/index.ts",
        "packages/server/src/api/agents/crud.ts",
        "packages/server/src/api/agents/lifecycle.ts",
        "packages/core/src/__tests__/elizaos.test.ts",
        "packages/core/src/runtime.ts",
        "packages/plugin-sql/src/index.ts",
        "packages/server/src/__tests__/agent-server-constructor.test.ts",
        "packages/server/src/__tests__/agent-server-database.test.ts",
        "packages/server/src/__tests__/agent-server-errors.test.ts",
        "packages/server/src/__tests__/agent-server-initialization.test.ts",
        "packages/server/src/__tests__/agent-server-lifecycle.test.ts",
        "packages/server/src/__tests__/agent-server-management.test.ts",
        "packages/server/src/__tests__/agent-server-middleware.test.ts",
        "packages/server/src/__tests__/agent-server.test.ts",
        "packages/server/src/__tests__/integration/agent-server-interaction.test.ts",
        "packages/server/src/api/agents/index.ts",
        "packages/server/src/api/agents/logs.ts",
        "packages/server/src/api/agents/panels.ts",
        "packages/cli/tests/commands/agent.test.ts",
        "packages/cli/tests/utils/bun-test-helpers.ts",
        "packages/plugin-bootstrap/src/services/task.ts",
        "packages/plugin-sql/src/base.ts",
        "packages/server/src/__tests__/integration/database-operations.test.ts",
        "packages/server/src/__tests__/integration/socketio-message-flow.test.ts",
        "packages/core/src/utils/node.ts",
        "packages/core/src/utils/paths.ts"
      ]
    },
    {
      "title": "fix(cli): wait for port to be free before dev restart",
      "prNumber": 5988,
      "type": "bugfix",
      "body": "This fixes the dev mode port increment loop by waiting for the previous server port to be released before restarting.\\n\\n- Adds a small utility  using existing \\n- Ensures we wait before starting the server after rebuild\\n\\nTested locally; ",
      "files": [
        "packages/cli/src/commands/dev/actions/dev-server.ts",
        "packages/cli/tests/commands/start.test.ts",
        "packages/cli/tests/test-timeouts.ts"
      ]
    }
  ],
  "topContributors": [
    {
      "username": "ChristopherTrimboli",
      "avatarUrl": "https://avatars.githubusercontent.com/u/27584221?u=0d816ce1dcdea8f925aba18bb710153d4a87a719&v=4",
      "totalScore": 5,
      "prScore": 0,
      "issueScore": 0,
      "reviewScore": 5,
      "commentScore": 0,
      "summary": null
    },
    {
      "username": "github-advanced-security",
      "avatarUrl": "https://avatars.githubusercontent.com/in/57789?v=4",
      "totalScore": 4.5,
      "prScore": 0,
      "issueScore": 0,
      "reviewScore": 4.5,
      "commentScore": 0,
      "summary": null
    },
    {
      "username": "standujar",
      "avatarUrl": "https://avatars.githubusercontent.com/u/16385918?u=718bdcd1585be8447bdfffb8c11ce249baa7532d&v=4",
      "totalScore": 0.2,
      "prScore": 0,
      "issueScore": 0,
      "reviewScore": 0,
      "commentScore": 0.2,
      "summary": null
    }
  ],
  "newPRs": 0,
  "mergedPRs": 2,
  "newIssues": 0,
  "closedIssues": 0,
  "activeContributors": 6
}