Repository navigation
Introducing Atmos AI - #2030
Merged
Merged
Introducing Atmos AI#2030
Conversation
- Extract constants for repeated strings (filterAll, newlineChar, sessionNamePlaceholder) - Refactor sessionListView to reduce cyclomatic complexity from 12 to 3 - Split into helper functions: renderSessionListHeader, renderSessionListDialogs, renderSessionListContent - Add funlen directive for handleNormalSessionListKeys (keyboard handler) - Fix duplicate constant declaration (newlineChar already in create_session.go) - Update test to initialize sessionFilter
… (v2.0) Major updates to PRD reflecting actual implementation status: COMPLETED Features: - ✅ Session Management (SQLite-backed with full CRUD in TUI) - ✅ Tool Execution System (Atmos-specific tools + permission system) - ✅ Project Memory (ATMOS.md with auto-update) - ✅ MCP Support (stdio/HTTP transports) PARTIAL Features: -⚠️ Enhanced TUI (sessions complete, syntax highlighting pending) PENDING Features: - ❌ LSP Integration - ❌ Ollama/LLAMA Support (new section added with analysis) - ❌ Git Integration - ❌ Dynamic Model Switching Changes: - Updated feature comparison matrix (3-column: Original → Current → Status) - Added implementation file references for completed features - Reorganized sections by completion status - Added comprehensive Ollama/LLAMA analysis - Updated Executive Summary with current status - Added detailed changelog Version: 1.0 → 2.0
Implemented terminal-style history navigation in chat TUI: Features: - Press ↑ to navigate to previous messages in history - Press ↓ to navigate to next messages - Automatically saves current input when starting navigation - Restores original input when navigating past end of history - Only stores user messages (not assistant responses) - Loads history from existing session messages - Resets navigation state when sending message Implementation: - Added messageHistory, historyIndex, historyBuffer fields to ChatModel - Implemented navigateHistoryUp() and navigateHistoryDown() functions - Updated handleKeyMsg() to handle up/down keys in chat mode - Updated handleSendMessage() to add messages to history - Updated loadSessionMessages() to populate history from session Tests: - Added 9 comprehensive tests in TestChatModel_HistoryNavigation - Tests cover: initialization, navigation, edge cases, key handling - All 48 TUI tests passing Files modified: - pkg/ai/tui/chat.go - Added history state fields - pkg/ai/tui/keys.go - Added navigation functions and key handlers - pkg/ai/tui/chat_test.go - Added 9 new tests User Experience: - Familiar terminal UX pattern (bash/zsh-like) - No learning curve for users familiar with terminal history - Preserves partial messages while navigating - Works seamlessly with multi-line input (Shift+Enter)
Implement markdown rendering with syntax highlighting for AI assistant responses using Glamour, enhancing readability and code presentation. Changes: - Added Glamour markdown renderer for assistant messages - Auto-style detection for terminal theme compatibility - Word wrapping based on viewport width with minimum constraint - Graceful fallback to plain text on rendering errors - Syntax highlighting for code blocks using Chroma - Left padding to maintain visual consistency Implementation details: - Modified updateViewportContent() to conditionally render markdown - Only assistant messages get markdown rendering - User and system messages remain plain text - Added renderMarkdown() with error handling and fallbacks - Added constants: minMarkdownWidth, newlineChar (consolidated from create_session.go) Tests: - Added TestChatModel_MarkdownRendering with 8 comprehensive cases - Tests cover markdown rendering, plain text, width constraints - Tests for code blocks, lists, tables, role-specific rendering - All 8 tests passing This completes 2 of 3 MEDIUM PRIORITY TUI enhancements: ✅ History navigation (↑/↓ arrows) ✅ Markdown rendering with syntax highlighting ⏳ Documentation update (next) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Update AI assistant documentation to reflect new TUI enhancements: - History navigation (↑/↓ arrows) - Markdown rendering for AI responses - Syntax highlighting for code blocks Changes: - Added keyboard shortcuts for history navigation to Chat View section - Added feature descriptions for history navigation, markdown rendering, and syntax highlighting under Conversation Management - Updated documentation to match latest TUI capabilities This completes all 3 MEDIUM PRIORITY TUI enhancements: ✅ History navigation (↑/↓ arrows) ✅ Markdown rendering with syntax highlighting ✅ Documentation update 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Update AI chat and sessions documentation to reflect new TUI enhancements. Changes to website/docs/cli/commands/ai/chat.mdx: - Updated "Interactive Features" section with markdown, syntax highlighting, and history navigation - Added ↑/↓ arrow keys to keyboard shortcuts table - Added Ctrl+N shortcut for creating sessions - Added detailed "History Navigation" section explaining Bash-like arrow key behavior - Added "Markdown Rendering & Syntax Highlighting" section with examples Changes to website/docs/ai/sessions.mdx: - Added enhanced chat experience highlights in TUI management section - Cross-referenced chat documentation for detailed feature descriptions Documentation now covers: ✅ History navigation with ↑/↓ arrows (Bash-style) ✅ Markdown rendering for AI responses ✅ Syntax highlighting for code blocks ✅ Multi-line input with Shift+Enter ✅ Session management features 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Add comprehensive tests for provider badge, filter display, and filter cycling functions to improve test coverage. New tests: - TestChatModel_GetProviderBadge (5 test cases) - Tests all AI providers (anthropic, openai, gemini, grok) - Tests unknown provider fallback - Verifies correct badge labels and hex color codes - TestChatModel_GetFilterDisplayName (6 test cases) - Tests all filter types (all, anthropic, openai, gemini, grok) - Tests unknown filter passthrough - Verifies user-friendly display names - TestChatModel_CycleFilter (6 test cases) - Tests complete filter cycle (all → anthropic → openai → gemini → grok → all) - Verifies selection index resets on filter change - Tests unknown filter handling (defaults to "all") Coverage improvement: - Previous: 72.0% of statements - Current: 74.9% of statements - Total test cases: 132 (added 17 new test cases) Functions now fully covered: ✅ getProviderBadge: 33.3% → 100% ✅ getFilterDisplayName: 28.6% → 100% ✅ cycleFilter: 0% → 100% 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Update Crush comparison PRD to reflect completion of all TUI enhancements. Changes: - Updated executive summary: Enhanced TUI now COMPLETE - Updated feature comparison matrix: - Interactive Chat: PARTIAL → COMPLETE - Syntax Highlighting: Pending → COMPLETE (Glamour + Chroma) - Added History Navigation row: COMPLETE (Bash-style ↑/↓) - Updated section 6: Enhanced Interactive Chat UI - Status: PARTIAL → COMPLETE - Moved completed items: syntax highlighting, history navigation, markdown rendering - Moved pending items to "Future Enhancements (LOW PRIORITY)" Completed TUI features: ✅ Session management TUI (create/switch/delete/rename/filter) ✅ Provider-aware sessions with color-coded badges ✅ Markdown rendering (bold, italic, lists, tables) ✅ Syntax highlighting for code blocks (Chroma) ✅ History navigation (↑/↓ arrows, Bash-style) ✅ Multi-line input (Shift+Enter) Next major feature: LSP Integration (HIGH PRIORITY) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Add Ollama as a supported AI provider, enabling local AI model usage
via OpenAI-compatible API. This allows privacy-focused, offline, and
cost-free AI assistance.
Implementation:
- Created new Ollama agent package (pkg/ai/agent/ollama/)
- Uses OpenAI Go SDK with custom base URL for Ollama compatibility
- Registered Ollama in factory pattern (factory.go)
- Added Ollama to TUI session creation and management
- Default model: llama3.3:70b
- Default endpoint: http://localhost:11434/v1
- Optional API key support (not required for local Ollama)
Features:
- BaseURL configuration support for custom Ollama endpoints
- Dummy API key for local instances (Ollama doesn't require auth)
- Full TUI integration: create, filter, display sessions
- Provider badge: [Ollama] in blue
- Filter cycling: All → Claude → GPT → Gemini → Grok → Ollama → All
Tests:
- 10 comprehensive tests for Ollama client (all passing)
- Factory integration test for Ollama provider
- Updated TUI tests for provider badge, filter, cycling
- Total: 20+ new test cases covering Ollama functionality
Benefits:
✅ Privacy - Data never leaves your infrastructure
✅ Offline - Works in air-gapped environments
✅ Cost - Zero API costs after initial setup
✅ Compliance - Meets data residency requirements
Configuration example:
```yaml
settings:
ai:
enabled: true
provider: "ollama"
model: "llama3.3:70b"
base_url: "http://localhost:11434/v1" # Optional
api_key_env: "OLLAMA_API_KEY" # Optional
```
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Remove blanket LSP linting exclusions from .golangci.yml and fix all 36 resulting issues: wrap dynamic errors with sentinels, use errors.Is/As, fix staticcheck QF1012/S1039/SA1029, reduce cyclomatic complexity, extract helpers for function-length, pass large structs by pointer. Improve test coverage: client 49.7→81.5%, server 94.5→96.7%. Co-Authored-By: Claude Opus 4.6 <[email protected]>
…nition lists - Rewrite CLI config AI pages (providers, tools, sessions, skills, instructions) with full configuration reference content using definition lists - Update CLI config AI index with split links (config reference vs guides) - Convert tables to definition lists in ai.mdx (capabilities, providers, shortcuts) - Add cross-links from AI guide pages to CLI config reference pages - Add <Intro> components to all 11 docs/ai/ pages - Fix backslash escapes in nested code blocks (use 4-backtick fences) - Convert IDE setup chapters to <Tabs> in mcp-server.mdx - Replace bullet lists with definition lists in skills.mdx available tools - Use real marketplace skill names instead of fictional examples Co-Authored-By: Claude Opus 4.6 <[email protected]>
…rences - Rename ApiKeyEnv → ApiKey in schema, base config, and all 7 provider clients - Remove GetAPIKey() runtime env var lookup (resolved by !env at YAML load time) - Update all tests to provide api_key directly instead of setting env vars - Update all docs, blog, PRD, examples, and fixtures with latest model IDs: claude-sonnet-4-6, claude-opus-4-6, gpt-5.4, o3/o4-mini, llama4, grok-4-latest, gemini-2.5-flash, anthropic.claude-sonnet-4-6 (Bedrock), Azure API version 2025-04-01-preview Co-Authored-By: Claude Opus 4.6 <[email protected]>
- README.md: update claude-sonnet-4-5-20250929 → claude-sonnet-4-6, llama3.3:70b → llama4 - atmos.yaml: fix file_edit → edit_file, use real tool names for restricted/blocked lists - atmos.yaml: remove unsupported per-provider timeout_seconds, fix /ai/memory → /ai/instructions link Co-Authored-By: Claude Opus 4.6 <[email protected]>
Andriy Knysh (aknysh)
requested a review
from Erik Osterman (Cloud Posse) (osterman)
March 7, 2026 09:13
Erik Osterman (Cloud Posse) (osterman)
approved these changes
Mar 9, 2026
|
Warning Release Documentation RequiredThis PR is labeled
|
|
These changes were released in v1.209.0. |
1 similar comment
|
These changes were released in v1.209.0. |
|
These changes were released in v1.209.0. |
|
These changes were released in v1.210.0-test.8. |
|
These changes were released in v1.210.0-test.10. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Atmos integrates AI directly into infrastructure management, providing intelligent assistance for understanding configurations, analyzing stacks, troubleshooting issues, and automating workflows. This PR introduces Atmos AI, MCP Server, and LSP integration with comprehensive documentation, CLI commands, and examples.
AI Assistant (
atmos ai)atmos ai chat— Interactive TUI chat with tool calling, sessions, skills, and multi-provider supportatmos ai ask— Single-question CLI for quick answersatmos ai exec— Execute Atmos/shell commands via natural language promptsatmos ai sessions— Manage persistent conversation sessions (list, clean, export, import)atmos ai skill— Install/list/uninstall marketplace skills, refer to agentskills.ioMCP Server (
atmos mcp start)LSP Integration (
atmos lsp start)Documentation
Examples
examples/ai/— Complete AI configuration example with multi-provider setup, sessions, tools, and custom skillsSee It in Action