LearnNewsExamplesServices
Frontmatter
title>-
docsexpand CodebaseOverview with Agent OS internals and DevIndex
authortobiu
stateMerged
createdAtApr 12, 2026, 10:10 AM
updatedAtApr 12, 2026, 10:29 AM
closedAtApr 12, 2026, 10:29 AM
mergedAtApr 12, 2026, 10:29 AM
branchesdevagent/9892-codebase-overview-internals
urlhttps://github.com/neomjs/neo/pull/9897
Merged
tobiu
tobiu commented on Apr 12, 2026, 10:10 AM

Resolves #9892

Summary

Expands CodebaseOverview.md with 6 missing content areas identified during deep-read sessions:

Changes Made

# Area What Was Added
1 DevIndex as Flagship App Full entry under Flagship Applications — documents it as the only Neo.mjs app proving Neo.core.Base works as a Node.js backend runtime. Documents Spider (6 discovery strategies), Updater (meritocracy logic), Storage (flat-file persistence).
2 Bridge Topology ASCII diagram showing the three-party WebSocket architecture (Bridge ↔ Agent ↔ App Worker). Clarifies Bridge.mjs is a standalone process enabling multi-agent concurrent access.
3 Daemon Lifecycle Scripts Concrete invocation commands (node buildScripts/ai/runSandman.mjs, runGoldenPath.mjs) + maintenance utilities. Clarifies these are Node.js scripts, not MCP operations.
4 ToolService Documents ai/mcp/ToolService.mjs as the universal dispatch layer — callTool() as the single choke-point for all 5 MCP servers with OpenAPI-driven Zod validation.
5 Agent Profiles New subsection documenting Librarian, QA, and Browser profiles with configurable model providers. Notes MLX/ML Studio as first-class local inference targets.
6 ConnectionService Session Awareness Integrated into the Neural Link description — documents session tracking (appName, connectedAt, console logs, window topology) and auto-targeting.

Scope Boundary

Documentation-only. No code changes. No overlap with #9875 (which addressed scale metrics) or #9893 (which addressed ask_knowledge_base tooling references).

Verification

  • Visual review of heading hierarchy (######### nesting)
  • Confirmed no content duplication with existing sections
  • All new content grounded in source file analysis (Bridge.mjs, ConnectionService.mjs, ToolService.mjs, Librarian.mjs, Spider.mjs, Updater.mjs, Storage.mjs)
tobiu
tobiu commented on Apr 12, 2026, 10:25 AM

Input from Claude Opus 4.6 (Antigravity):

❋ ## Post-Push Delta (Review Feedback)

Addressed two corrections from review:

1. Flagship App Reordering

  • DevIndex promoted to #2 (after Portal) — architecturally significant as the only backend-runtime Neo app
  • SharedCovid moved to #3
  • RealWorld demoted to #4 with honest context: Conduit's rigid DOM template requirements constrain Neo to component.Base, making it an anti-pattern for the component library. API patterns remain useful.

2. Neural Link Three-Tier Introspection (replaced shallow description)

The original "feeding structured JSON component blueprints" was less accurate than the old version. Replaced with:

  • Component Trees: JSON-like but richer — class instances with full config state, toJSON() exports
  • VDOM: Pure JSON desired next state (pending update()). Syntax: tag, cls, cn
  • VNode: Pure JSON current live DOM state. Syntax: nodeName, className, childNodes — deliberately different to distinguish at a glance
  • Delta pipeline: TreeBuilder.mjs → symmetric VDOM/VNode trees with updateDepth → VDom Worker → Helper.mjs converts VDOM→VNode → compares two VNode trees → minimal delta stream (loggable in main for debugging)
  • VDOM Teleportation: Components flagged for updates carry their own updateDepth, allowing parents to send only dirty children to the VDom Worker

tobiu
tobiu commented on Apr 12, 2026, 10:28 AM

Input from Claude Opus 4.6 (Antigravity):

❋ # PR Review Summary

Status: Approved

This PR delivers on all 6 content areas specified in #9892 and incorporates two substantial post-push corrections (app reordering, three-tier introspection) that significantly improved accuracy.


📊 Evaluation Metrics

  • [ARCH_ALIGNMENT]: 95 - All new content is grounded in source file analysis (7 files read). The three-tier introspection explanation (Component Trees / VDOM / VNode) accurately reflects the framework's actual rendering pipeline. The VDOM Teleportation concept and updateDepth mechanics are correctly described relative to TreeBuilder.mjs and Helper.mjs.
  • [CONTENT_COMPLETENESS]: 98 - All 6 ticket requirements fulfilled. The post-push delta comment properly documents the RealWorld anti-pattern context and the Neural Link correction. The only gap: the ask_knowledge_base scope extension from the ticket comment was already addressed in #9893/#9894, which could have been noted explicitly.
  • [EXECUTION_QUALITY]: 95 - Single file modified, clean diff (49 insertions, 9 deletions). Heading hierarchy (#########) is consistent. No duplication with #9875 (scale metrics) or #9893 (tooling references). ASCII diagram for Bridge topology is clear and renders correctly.
  • [PRODUCTIVITY]: 100 - All 6 goals from the ticket are fully addressed: DevIndex flagship entry, Bridge topology diagram, daemon lifecycle scripts, ToolService documentation, agent profiles, ConnectionService session awareness.
  • [IMPACT]: 75 - Documentation-only change targeting agent onboarding quality. High value for reducing new-agent ramp-up time and preventing hallucinations about Agent OS internals. Does not affect runtime behavior.
  • [COMPLEXITY]: 30 - Single markdown file with well-scoped insertions. No code changes, no cross-file dependencies. Complexity is in the accuracy of content, not structural risk.
  • [EFFORT_PROFILE]: Quick Win - High documentation ROI for moderate research effort. The source file analysis (7 files) provides durable accuracy.

🕸️ Context & Graph Linking

  • Target Issue: Resolves #9892
  • Related Graph Nodes: CodebaseOverview.md, CONCEPT:DevIndex, CONCEPT:NeuralLink, CONCEPT:BridgeTopology, CLASS:ToolService, CLASS:ConnectionService, CLASS:DreamService, FILE:TreeBuilder.mjs, FILE:Helper.mjs
  • Prior PRs: #9894 (ask_knowledge_base promotion), #9896 (PullRequestService CWD fix)

🧠 Graph Ingestion Notes

  • [RETROSPECTIVE]: The three-tier introspection model (Component Trees / VDOM / VNode) is a critical architectural differentiator that was previously under-documented. The distinction between VDOM syntax (tag, cls, cn) and VNode syntax (nodeName, className, childNodes) is a deliberate design choice for disambiguation — this should be reinforced in future agent training contexts. The RealWorld anti-pattern callout is architecturally honest and prevents agents from using it as a reference implementation.
  • [RETROSPECTIVE]: VDOM Teleportation (flagged components carrying their own updateDepth to skip clean siblings during diff) is a performance optimization that agents must understand when debugging "too many deltas" — this is now documented in the canonical onboarding guide.

📋 Required Actions

No blocking items. PR is approved for merge.

  • All 6 ticket requirements addressed
  • Post-push corrections incorporated (app reordering, three-tier introspection)
  • No content duplication with existing sections
  • Heading hierarchy consistent