**TermX** is an AI-powered Windows terminal app that turns natural-language requests into safe PowerShell or CMD commands. It explains each command, asks for confirmation, executes it, shows the output, detects errors, and suggests fixes.
Project: TermX — AI-Powered Intelligent Terminal You are a Senior Software Architect, Senior Python Developer, AI Engineer, and UI/UX Designer. Your task is to design and build a complete, production-quality, open-source desktop application named **TermX**. 1. Project Vision TermX is an intelligent AI-powered terminal assistant for Windows that allows developers and regular users to interact with their operating system using natural language. Users should be able to write commands in natural language, and TermX should: - Understand the user's request. - Generate appropriate PowerShell or CMD commands. - Explain what each command does. - Display the generated command before execution. - Ask for user confirmation before executing commands. - Execute approved commands. - Capture and display terminal output. - Detect and explain errors. - Suggest safe corrections. - Remember previous terminal sessions. TermX must be a real functional application, not a UI-only prototype. 2. Technology Stack Use the following technologies: - Python 3.12+ - PySide6 for the desktop GUI. - SQLite for local storage. - Ollama API for local AI integration. - HTTPX for API communication. - Pydantic for data validation. - PyInstaller for Windows executable builds. Architecture must be modular, maintainable, and scalable. Do not use Docker as a requirement. 3. Application Design Create a premium, modern, futuristic developer interface. Design language: - Dark theme by default. - Background: #0B0D12. - Secondary surfaces: #121722. - Accent: Electric blue and purple. - Rounded panels. - Subtle borders. - Smooth animations. - Modern typography. - Consistent spacing. - Professional icons. Main Layout **Sidebar** - Dashboard - AI Terminal - Command History - Sessions - AI Models - Settings - About TermX **Main Workspace** - Terminal output panel. - Natural language command input. - Generated command preview. - Execute button. - Copy command button. - Explain command button. - Clear terminal button. - AI status indicator. **Bottom Status Bar** - Current shell. - Current working directory. - AI connection status. - Selected model. - Application version. 4. Core Features A. AI Command Generator Users can write requests such as: - Show all files in the current directory. - Find large files. - Check available disk space. - Display
Lints .env and .env.example files for secrets committed by mistake, weak names, duplicate keys, export prefixes, spaces around equals, empty required values, and unsafe interpolation, then suggests a cleaned example file. Use when a user asks "is this .env safe to commit?", "why won't dotenv load?", or "diff my .env.example". Includes a tested stdlib Python linter.
Explains any cron expression in plain English, lists the next run times, and flags pitfalls such as the day-of-month OR day-of-week rule, dates that never occur, DST gaps, UTC versus local time, and overlapping jobs. Includes a tested stdlib Python checker for crontab files.
Reads Conventional Commits or a changelog snippet, classifies fix/feat/breaking changes, and recommends the next SemVer bump (patch, minor, or major) with a clear rationale and a preview of the resulting version. Use when a user asks "what version should I ship?", "is this a breaking change?", or "bump SemVer from these commits". Includes a tested stdlib Python advisor.
Builds fixed-rate loan and mortgage amortization schedules, shows how much of each payment goes to interest, and compares payoff strategies such as extra monthly payments, one-off lump sums, a higher fixed payment, or a shorter term, with interest saved, months saved, payoff date, and an APR estimate when fees apply. Use when a user asks "how much interest will I pay?", "should I overpay my mortgage?", "what if I pay 200 more a month?", or wants a payoff plan for a car, student, or home loan.
Finds code nobody uses anymore: unused files, exports, routes, styles and dependencies, with proof for each one, and suggests small safe pull requests to remove them.