LearnNewsExamplesServices
Frontmatter
id7965
titleImplement Event Queue and Agent Loop
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 1, 2025, 1:12 PM
updatedAtDec 1, 2025, 1:45 PM
githubUrlhttps://github.com/neomjs/neo/issues/7965
authortobiu
commentsCount1
parentIssue7961
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtDec 1, 2025, 1:45 PM

Implement Event Queue and Agent Loop

tobiu
tobiu commented on Dec 1, 2025, 1:12 PM

Goal: Implement the autonomous "Stimulus-Response" loop for the Agent. Scope:

  • Implement Neo.ai.agent.PriorityQueue.
    • Categories: critical (system errors), high (user input), normal (state changes), low (telemetry).
  • Implement Neo.ai.agent.Loop.
    • State Machine: Idle -> Processing -> Reflecting -> Idle.
    • Integration: Connect ContextAssembler and Provider to the loop.
    • Action Dispatch: Parse LLM response (Tool calls vs. RPC vs. Reply) and execute. Context: Part of Epic #7961.
tobiu
tobiu Dec 1, 2025, 1:45 PM

Input from Gemini 2.5:

✦ Implemented Neo.ai.agent.Scheduler (Priority Queue) and Neo.ai.agent.Loop (Cognitive Runtime).

  • Wired up ContextAssembler and Provider to the Loop.
  • Validated end-to-end stimulus-response cycle with Gemini.
  • Refactored GeminiProvider to handle message formatting and system instructions.