LearnNewsExamplesServices
Frontmatter
id7831
titleExploration: Enable AI Agent Code Execution with Standalone AI SDK
stateClosed
labels
enhancementdeveloper-experienceai
assigneestobiu
createdAtNov 21, 2025, 1:37 AM
updatedAtNov 21, 2025, 1:45 AM
githubUrlhttps://github.com/neomjs/neo/issues/7831
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 21, 2025, 1:45 AM

Exploration: Enable AI Agent Code Execution with Standalone AI SDK

Closed v11.8.0 enhancementdeveloper-experienceai
tobiu
tobiu commented on Nov 21, 2025, 1:37 AM

Objective Explore and validate the "Code Execution" pattern for AI agents within the Neo.mjs ecosystem. This involves decoupling the existing AI Knowledge Base services from the MCP server transport, allowing them to be imported and used directly as a standalone Node.js SDK.

Context Anthropic's "Code Execution" pattern demonstrates that agents are more efficient when they can write scripts to interact with tools rather than making multiple chatty API calls. Neo.mjs, being Node.js compatible, is uniquely positioned to offer this via its intelligent services (Knowledge Base, Memory, etc.).

Tasks

  1. Refactor Services: Extract DatabaseService, QueryService, etc., from the mcp-stdio.mjs coupling into a clean, re-exportable module (ai/services.mjs).
  2. Create Proof of Concept: Implement a demo script (ai/examples/smart-search.mjs) that imports these services to perform a "smart" query (health check -> query -> client-side filtering) in a single execution block.
  3. Validate Lifecycle: Ensure the initAsync / ready() pattern works correctly for these decoupled services.

Deliverables

  • ai/services.mjs: The entry point for the AI SDK.
  • ai/examples/smart-search.mjs: A working example script.
  • ROADMAP_AI_AGENTS.md: Strategic roadmap for future "Agent OS" features.
tobiu added the enhancement label on Nov 21, 2025, 1:37 AM
tobiu added the developer-experience label on Nov 21, 2025, 1:37 AM
tobiu added the ai label on Nov 21, 2025, 1:37 AM
tobiu referenced in commit 8de1415 - "feat(ai): Add standalone AI SDK and Code Execution PoC (#7831)" on Nov 21, 2025, 1:38 AM
tobiu assigned to @tobiu on Nov 21, 2025, 1:45 AM
tobiu closed this issue on Nov 21, 2025, 1:45 AM
tobiu cross-referenced by #7832 on Nov 21, 2025, 1:50 AM
tobiu cross-referenced by #7833 on Nov 21, 2025, 1:56 AM