Skip to content

[FEATURE] Enhance cortex ask with interactive tutor capabilities #393

@ShreeJejurikar

Description

@ShreeJejurikar

Problem

Currently, there's a proposal for a separate cortex tutor command (see cortexlinux/cortex-distro#30), but this creates redundancy since cortex ask can already provide educational content, explanations, and best practices. Having two similar commands adds confusion for users and fragments the learning experience.

Proposed solution

Enhance the existing cortex ask command to include tutor-like capabilities without adding a separate command or flag. The enhanced ask command should:

  • Provide structured learning content when users ask educational questions
  • Include code examples and best practices in responses
  • Offer step-by-step tutorials when appropriate
  • Track learning progress for returning users (optional)
  • Suggest related topics to explore

Example interactions:

# Educational queries work naturally
cortex ask "explain how Docker containers work"
cortex ask "what are best practices for nginx configuration"
cortex ask "teach me about systemd services"

# System-specific queries still work
cortex ask "what packages need updating"
cortex ask "why is my disk full"
The key insight is that cortex ask should be intelligent enough to detect when a user wants to learn vs. when they need system diagnostics, and respond appropriately.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions