Skip to content

Introducing Atmos AI - #2030

Merged
Andriy Knysh (aknysh) merged 292 commits into
mainfrom
aknysh/ai-1
Mar 9, 2026
Merged

Andriy Knysh (aknysh) merged 292 commits into
mainfrom
aknysh/ai-1

Conversation

@aknysh

@aknysh Andriy Knysh (aknysh) commented Jan 26, 2026 •

Copy link
Copy Markdown
Member

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 support
  • atmos ai ask — Single-question CLI for quick answers
  • atmos ai exec — Execute Atmos/shell commands via natural language prompts
  • atmos ai sessions — Manage persistent conversation sessions (list, clean, export, import)
  • atmos ai skill — Install/list/uninstall marketplace skills, refer to agentskills.io
  • 7 AI providers: Anthropic, OpenAI, Gemini, Grok, Ollama, AWS Bedrock, Azure OpenAI
  • 21+ agent skills following the SKILL.md/AGENTS.md open standards
  • Token caching for cost optimization across providers
  • Auto-compact sessions — AI-powered conversation summarization

MCP Server (atmos mcp start)

  • Expose Atmos tools to any MCP-compatible client (Claude Desktop, VS Code, Cursor, Windsurf, etc.)
  • 10 client configuration guides
  • stdio and HTTP transport support
  • 8+ available tools with permission controls

LSP Integration (atmos lsp start)

  • LSP Server — IDE integration with autocomplete, hover docs, and diagnostics for Atmos stack files
  • LSP Client — Connects to external language servers (yaml-ls, terraform-ls) for AI-powered file validation
  • Supports 11 editors (VS Code, Neovim, Zed, Helix, Sublime Text, Emacs, IntelliJ, Vim, Kate, Lapce, Nova)
  • stdio, TCP, and WebSocket transport modes

Documentation

  • Atmos AI Landing Page
  • CLI configuration reference pages for AI, providers, sessions, skills, tools, instructions, MCP, and LSP
  • CLI command reference pages for all new commands
  • Conceptual guides: AI overview, MCP server, Claude Code integration, troubleshooting
  • LSP server and client guides with editor-specific setup instructions
  • Blog posts: Introducing Atmos AI, Introducing Atmos LSP, AI Agent Skills
  • AI assistants setup guide (Claude Code, OpenAI Codex, Gemini CLI, Cursor, Windsurf, GitHub Copilot)
  • Updated roadmap with AI/MCP/LSP milestones

Examples

  • examples/ai/ — Complete AI configuration example with multi-provider setup, sessions, tools, and custom skills

See It in Action

$ atmos ai ask "what stacks and components do we have in the infra?"

👽 Thinking...

  I'll list all the available stacks and components in your infrastructure.

  Based on the infrastructure configuration, here are the stacks and components:

  ## Stacks (4 total)

  1. **ue1-network** - Network stack in us-east-1
  2. **ue1-prod** - Production stack in us-east-1
  3. **uw2-network** - Network stack in us-west-2
  4. **uw2-prod** - Production stack in us-west-2

  ## Components by Stack

  ### ue1-network

  • tgw/attachment - Transit Gateway attachment
  • tgw/hub - Transit Gateway hub
  • vpc - Virtual Private Cloud

  ### ue1-prod

  • tgw/attachment - Transit Gateway attachment
  • vpc - Virtual Private Cloud

  ### uw2-network

  • tgw/attachment - Transit Gateway attachment
  • tgw/cross-region-hub-connector - Cross-region Transit Gateway connector
  • vpc - Virtual Private Cloud

  ### uw2-prod

  • tgw/attachment - Transit Gateway attachment
  • vpc - Virtual Private Cloud

  ## Summary

  Your infrastructure is organized across two AWS regions (us-east-1 and us-west-2),
  with dedicated network and production stacks in each region. The network stacks
  contain Transit Gateway hubs for network connectivity, while the production stacks
  use Transit Gateway attachments to connect to the network infrastructure. All stacks
  include VPC components for network isolation.

Andriy Knysh (aknysh) and others added 30 commits October 23, 2025 14:44
- 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]>
coderabbitai[bot]
coderabbitai Bot previously approved these changes Mar 7, 2026
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]>
Andriy Knysh (aknysh) and others added 2 commits March 7, 2026 04:07
…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]>
@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown

Warning

Release Documentation Required

This PR is labeled minor or major and requires documentation updates:

  • Changelog entry - Add a blog post in website/blog/YYYY-MM-DD-feature-name.mdx
  • Roadmap update - Update website/src/data/roadmap.js with the new milestone

Alternatively: If this change doesn't require release documentation, remove the minor or major label.

@github-actions

Copy link
Copy Markdown

These changes were released in v1.209.0.

1 similar comment
@github-actions

Copy link
Copy Markdown

These changes were released in v1.209.0.

@github-actions

Copy link
Copy Markdown

These changes were released in v1.209.0.

@github-actions

Copy link
Copy Markdown

These changes were released in v1.210.0-test.8.

@github-actions

Copy link
Copy Markdown

These changes were released in v1.210.0-test.10.

This branch was successfully deployed

1 active deployment
preview — 848ac4c3 Deployed Mar 9, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor New features that do not break anything

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants