Frontmatter
| id | 7245 |
| title | Implement AI Knowledge Base Support for Workspaces |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Sep 24, 2025, 2:47 AM |
| updatedAt | Sep 24, 2025, 2:54 AM |
| githubUrl | https://github.com/neomjs/neo/issues/7245 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 24, 2025, 2:54 AM |
Implement AI Knowledge Base Support for Workspaces
tobiu assigned to @tobiu on Sep 24, 2025, 2:47 AM
tobiu referenced in commit
5db3a8c - "counterpart for https://github.com/neomjs/neo/issues/7245" on Sep 24, 2025, 2:54 AM
tobiu closed this issue on Sep 24, 2025, 2:54 AM
Task
Implement AI knowledge base support for a Neo.mjs workspace.
Scope
Extend the existing AI knowledge base functionality, currently implemented for the
neorepository, to a generic workspace structure. This involved:Modifying the
create-appproject:create-app/tasks/createPackageJson.mjsto include the latestdevDependenciesfrom theneorepo and added alphabetically sortedai:*scripts.create-app/tasks/neo-app.mjsto copyAGENTS.mdto the workspace root, create thechromadirectory, and copyAI_QUICK_START.mdto the workspace's.githubfolder.create-app/tasks/createGitignore.mjsto include.envandchroma/in the generated.gitignorefile.Adapting AI scripts within the
neorepository:neo/buildScripts/ai/createKnowledgeBase.mjs,embedKnowledgeBase.mjs, andqueryKnowledgeBase.mjsto useprocess.env.npm_package_namefor theinsideNeocheck.dotenv.config()calls in these scripts to dynamically load.envfiles from the correct location (either theneorepo root or two levels up for a workspace).Establishing and applying formatting consistency:
package.jsonfiles across the project, specifically re-formattingneo/package.jsonto adhere to this standard.These changes ensure that newly generated Neo.mjs workspaces are fully equipped with AI knowledge base capabilities, including proper environment variable handling and documentation.
Goal
Enable AI agents to effectively use the knowledge base within any Neo.mjs workspace, improving their ability to understand and contribute to workspace-specific projects and reducing hallucination.