Skip to content

Add AI Assistant chat flow documentation - #145

Merged
japperJ merged 2 commits into
masterfrom
japperj-refactored-funicular
Aug 19, 2026
Merged

japperJ merged 2 commits into
masterfrom
japperj-refactored-funicular

Conversation

@japperJ

@japperJ japperJ commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Summary

Adds AI-Assistens-chat-flow.md documenting how the in-app AI assistant works.

The document explains, in simplified technical English:

  • The parts of the assistant (ContainerAgent, AgentToolRegistry, ContainerSnapshotBuilder, ChatClientFactory, AgentTextCleaner, AiChatService, AiViewModel).
  • The step-by-step flow when a user sends a chat message.
  • The single system prompt and the hidden continuation nudges.
  • The 22 tools, including the 4 destructive tools and the confirmation safety gate.
  • The turn loop (up to 10 steps).
  • The retry logic (3 attempts, 10 s wait, chat countdown).
  • The streaming text cleaning (DSML token recovery and sanitization).
  • Model and privacy notes (local Ollama, on-disk chat storage).
  • A clarification that there is no skill system inside the app; skills-lock.json is developer coding-tooling only.

Scope

Documentation only. No source code changed.

How to verify

Open AI-Assistens-chat-flow.md and review. No build or test impact.

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

Copilot AI lite review requested due to automatic review settings August 19, 2026 18:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new markdown document describing the WinContainers in-app AI assistant’s architecture and end-to-end chat/turn execution flow (agent loop, tool calling, safety gate, retries, and streaming cleanup) to help contributors understand how WinContainers.AI and the app UI cooperate.

Changes:

  • Introduces AI-Assistens-chat-flow.md documenting the assistant components and the step-by-step chat flow.
  • Documents tool inventory (including destructive-tool confirmation), iteration limits, retry behavior, and DSML/tool-call recovery.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread AI-Assistens-chat-flow.md Resolved
Comment thread AI-Assistens-chat-flow.md Resolved
Comment thread AI-Assistant-chat-flow.md Resolved
Prefix source file references with src/ to match repo layout.
Align the output-truncation suffix with the code (newline + ellipsis char).
Rename AI-Assistens-chat-flow.md to AI-Assistant-chat-flow.md.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@japperJ
japperJ merged commit 2cee589 into master Aug 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants