{"id":50692840,"url":"https://github.com/rudra496/termmind","last_synced_at":"2026-06-09T04:33:50.735Z","repository":{"id":347169815,"uuid":"1193098519","full_name":"rudra496/termmind","owner":"rudra496","description":"🧠 TermMind — Terminal-based AI mind mapping \u0026 brainstorming tool. Generate, organize \u0026 visualize ideas right from your CLI.","archived":false,"fork":false,"pushed_at":"2026-06-04T20:50:09.000Z","size":496,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-04T22:14:51.792Z","etag":null,"topics":["ai","ai-assistant","aider-alternative","chatgpt","claude","claude-code-alternative","cli","coding-assistant","developer-tools","gemini","gpt4","hacktoberfest","llm","open-source","openai","productivity","python","terminal","terminal-ui","tui"],"latest_commit_sha":null,"homepage":"https://rudra496.github.io/termmind","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rudra496.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["rudra496"]}},"created_at":"2026-03-26T21:50:48.000Z","updated_at":"2026-06-04T20:50:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rudra496/termmind","commit_stats":null,"previous_names":["rudra496/termmind"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rudra496/termmind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudra496%2Ftermmind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudra496%2Ftermmind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudra496%2Ftermmind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudra496%2Ftermmind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rudra496","download_url":"https://codeload.github.com/rudra496/termmind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudra496%2Ftermmind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34092260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-assistant","aider-alternative","chatgpt","claude","claude-code-alternative","cli","coding-assistant","developer-tools","gemini","gpt4","hacktoberfest","llm","open-source","openai","productivity","python","terminal","terminal-ui","tui"],"created_at":"2026-06-09T04:33:49.965Z","updated_at":"2026-06-09T04:33:50.721Z","avatar_url":"https://github.com/rudra496.png","language":"Python","funding_links":["https://github.com/sponsors/rudra496"],"categories":[],"sub_categories":[],"readme":"\u003c!-- TermMind: AI terminal assistant supporting 9+ LLM providers. Chat with GPT, Claude, Gemini, Mistral, Cohere in your terminal with security scanning, code generation, and 50+ commands. --\u003e\n\u003c!-- Keywords: AI terminal assistant, CLI coding tool, GPT terminal, Claude terminal, coding assistant, AI code editor, terminal AI chat, LLM CLI tool, security scanner, code generation, Mistral AI, Cohere --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/rudra496/termmind/actions/workflows/ci.yml\"\u003e\n    \u003cimg src=\"https://github.com/rudra496/termmind/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Python-3.9+-blue.svg\" alt=\"Python\"\u003e\n  \u003ca href=\"https://pypi.org/project/termmind/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/termmind?color=blue\u0026label=PyPI\" alt=\"PyPI\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\" alt=\"License\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"PRs Welcome\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/9-Providers-9cf.svg\" alt=\"Providers\"\u003e\n  \u003ca href=\"https://github.com/rudra496/termmind/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/rudra496/termmind?style=social\" alt=\"Stars\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/rudra496/termmind/issues\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/rudra496/termmind\" alt=\"Issues\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/rudra496/termmind/commits\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/last-commit/rudra496/termmind\" alt=\"Last Commit\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/rudra496/termmind\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/repo-size/rudra496/termmind\" alt=\"Repo Size\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/termmind/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/dm/termmind?color=blue\u0026label=Downloads\" alt=\"Downloads\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e⚡ TermMind\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eAI-Powered Terminal Assistant\u003c/strong\u003e\u003cbr\u003e\n  Chat with GPT, Claude, Gemini, Mistral, and more — directly in your terminal.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Free_%26_Open_Source-MIT-success?style=for-the-badge\" alt=\"Tagline\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-quick-start\"\u003eQuick Start\u003c/a\u003e •\n  \u003ca href=\"#-features\"\u003eFeatures\u003c/a\u003e •\n  \u003ca href=\"#-providers\"\u003eProviders\u003c/a\u003e •\n  \u003ca href=\"#-commands\"\u003eCommands\u003c/a\u003e •\n  \u003ca href=\"#-architecture\"\u003eArchitecture\u003c/a\u003e •\n  \u003ca href=\"#-configuration\"\u003eConfiguration\u003c/a\u003e •\n  \u003ca href=\"#-contributing\"\u003eContributing\u003c/a\u003e •\n  \u003ca href=\"#-documentation\"\u003eDocumentation\u003c/a\u003e •\n  \u003ca href=\"#-license\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## 🖥️ Demo\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/workflow.svg\" alt=\"How TermMind Works\" width=\"700\"\u003e\n\u003c/p\u003e\n\n```\n$ termmind chat\n\n  ╔═══════════════════════════════════╗\n  ║      T e r m M i n d            ║\n  ║   AI Terminal Assistant v2.0.0  ║\n  ╚═══════════════════════════════════╝\n\nProvider: ollama | Model: llama3.2 | Git: detected ✓\n\n❯ Refactor this function to use a list comprehension\n\n🤖 Thinking...\n┌──────────────────────────────────────────────┐\n│ Here's the refactored version using a list   │\n│ comprehension:                               │\n│                                              │\n│   def get_urls(text):                        │\n│       return [m.group(1) for line in text    │\n│               for m in re.finditer(...)]     │\n│                                              │\n│ This is ~40% shorter and avoids the nested   │\n│ append pattern.                              │\n└──────────────────────────────────────────────┘\n\n⚡ 1,247 tokens • 2.3s • $0.000000\n```\n\n## 🚀 Quick Start\n\n```bash\n# Install\npip install termmind\n\n# Or from source\ngit clone https://github.com/rudra496/termmind.git\ncd termmind\npip install -e .\n\n# Setup (first run)\ntermmind init\n\n# Start chatting\ntermmind chat\n\n# One-shot question\ntermmind ask \"How do I reverse a list in Python?\"\n\n# Edit a file with AI\ntermmind edit main.py \"Add type hints to all functions\"\n\n# Review code\ntermmind review src/\n\n# Generate tests\ntermmind test utils.py --framework pytest\n\n# Security scan (NEW)\ntermmind scan src/\ntermmind scan api.py --ai    # AI-powered deep review\n\n# Generate code from description (NEW)\ntermmind generate api \"REST API for blog with auth\" -f fastapi\ntermmind generate test \"user auth module\" -o test_auth.py\n\n# Pipe support (NEW)\ncat error.log | termmind pipe\ngit diff | termmind ask \"Summarize these changes\"\n\n# Prompt library (NEW)\ntermmind prompts list\ntermmind prompts use code-review\n```\n\n### Docker\n\n```bash\ndocker build -t termmind .\ndocker run -it --rm -v $(pwd):/workspace termmind chat\n```\n\n## ✨ Features\n\n- **9 LLM Providers** — OpenAI, Anthropic (Claude), Gemini, Mistral, Cohere, Groq, Together, OpenRouter, Ollama\n- **Security Scanner** — 15+ vulnerability detection rules + AI-powered deep review\n- **AI Code Generation** — Generate APIs, classes, tests, Dockerfiles from natural language\n- **Prompt Library** — 12+ built-in templates for code review, debugging, optimization, and more\n- **Smart Autocomplete** — Context-aware file, command, and action suggestions\n- **Streaming Responses** — Real-time markdown rendering with syntax highlighting\n- **Smart Code Context** — Automatically includes relevant files based on your query\n- **File Editing** — AI-powered edits with diff preview and undo\n- **Code Review** — Get constructive feedback on any file or directory\n- **Test Generation** — Generate pytest/unittest tests for any file\n- **Refactoring Engine** — 8 AI-powered operations (extract function, rename, simplify, etc.)\n- **Git Integration** — Status, diff, commit with AI-generated messages, branch management\n- **Code Index** — Parse 10+ languages, query functions/classes, persist across sessions\n- **Session Management** — Save, load, export conversations\n- **Snippet Manager** — Save, search, import/export reusable code blocks\n- **Project Templates** — Scaffold from 8 templates (FastAPI, Flask, Next.js, Django, etc.)\n- **Voice Mode** — Text-to-speech for AI responses (optional)\n- **Cost Tracking** — Token usage, cost estimation, budget alerts, provider comparison\n- **Plugin System** — Extend with custom plugins (TodoTracker, CodeStats, AutoCommit built-in)\n- **Pipe Support** — Process piped stdin with AI\n- **5 Color Themes** — Dark, Light, Solarized, Dracula, Monokai\n- **Shell Completions** — Bash, Zsh, Fish\n- **Session Recording** — Record, replay, and export sessions as HTML\n- **ELI5 Mode** — Simplified explanations for any topic\n- **Multi-line Input** — Shift+Enter for newlines\n\n### 🚀 What's New in v3.0\n\n- **Multi-Agent System** — Orchestrate Researcher, Coder, Reviewer, Writer, Architect agents working together\n- **Knowledge Base with RAG** — Vector storage, document ingestion, semantic search, and retrieval-augmented generation\n- **Event-Driven Architecture** — Pub/sub event bus for decoupled communication\n- **Caching Layer** — LRU cache with TTL for chat responses and expensive operations\n- **Middleware Chain** — Interceptor pattern for request/response processing\n- **Custom Exception Hierarchy** — Structured error handling with specific exception types\n- **Agent CLI Commands** — `termmind agent run`, `termmind agent chat`, `termmind agent list`\n- **Knowledge Base CLI Commands** — `termmind kb add`, `termmind kb query`, `termmind kb init`, `termmind kb stats`\n- **Workflow State Persistence** — Save and load multi-agent workflow states as JSON\n\n## 🌐 Providers\n\n| Provider | Free Tier | Local | Default Model |\n|----------|-----------|-------|---------------|\n| **Ollama** | ✅ Free | ✅ Yes | llama3.2 |\n| **Groq** | ✅ Free | ❌ | llama-3.3-70b |\n| **Gemini** | ✅ Free | ❌ | gemini-2.0-flash |\n| **OpenAI** | 💰 Paid | ❌ | gpt-4o-mini |\n| **Anthropic** | 💰 Paid | ❌ | claude-sonnet-4 |\n| **Mistral** | 💰 Paid | ❌ | mistral-small |\n| **Cohere** | 💰 Paid | ❌ | command-r-plus |\n| **Together** | 💰 Paid | ❌ | llama-3-70b |\n| **OpenRouter** | 💰 Varies | ❌ | gpt-4o-mini |\n\nSwitch providers mid-conversation: `/provider ollama`\n\n## ⌨️ Commands\n\n### File Operations\n| Command | Description |\n|---------|-------------|\n| `/edit \u003cfile\u003e [instruction]` | Edit a file with AI |\n| `/run \u003ccmd\u003e` | Run a shell command |\n| `/files` | List files in context |\n| `/search \u003cquery\u003e` | Search in project files |\n| `/grep \u003cpattern\u003e` | Grep with regex |\n| `/tree [--depth N]` | Show file tree |\n| `/undo [--all]` | Undo last/all edits |\n| `/diff [file]` | Show session changes |\n\n### Chat \u0026 Session\n| Command | Description |\n|---------|-------------|\n| `/clear` | Clear conversation |\n| `/save [name]` | Save session |\n| `/load [name]` | Load session |\n| `/sessions` | List saved sessions |\n| `/export [--json]` | Export conversation |\n| `/compact` | Compact to save tokens |\n\n### Provider \u0026 Model\n| Command | Description |\n|---------|-------------|\n| `/model [name]` | Switch model |\n| `/providers` | List all providers |\n| `/cost` | Show usage \u0026 cost |\n| `/cost compare` | Compare provider costs |\n| `/cost optimize` | Suggest savings |\n\n### Git\n| Command | Description |\n|---------|-------------|\n| `/git status` | Git status |\n| `/git diff` | Git diff |\n| `/git log` | Recent commits |\n| `/git commit` | AI-generated commit message |\n| `/git checkout \u003cbranch\u003e` | Switch branch |\n\n### Advanced\n| Command | Description |\n|---------|-------------|\n| `/refactor \u003cop\u003e \u003cfile\u003e` | AI-powered refactoring |\n| `/snippet save \u003cname\u003e` | Save a code snippet |\n| `/template use \u003cname\u003e` | Scaffold a project |\n| `/index` | Build code index |\n| `/symbols [pattern]` | List functions/classes |\n| `/record start` | Start session recording |\n| `/voice on` | Enable text-to-speech |\n| `/eli5 \u003ctopic\u003e` | Explain Like I'm 5 |\n\n### CLI Commands\n```bash\ntermmind chat          # Interactive chat session\ntermmind ask \"...\"     # One-shot question\ntermmind edit \u003cfile\u003e   # Edit a file\ntermmind review \u003cpath\u003e # Review code\ntermmind test \u003cfile\u003e   # Generate tests\ntermmind explain \u003cf\u003e   # Explain a file\ntermmind debug \u003cfile\u003e  # Debug a file\ntermmind refactor \u003cf\u003e  # Refactor a file\ntermmind docstring \u003cf\u003e # Add docstrings\ntermmind translate \u003cf\u003e # Translate comments\ntermmind scan \u003cpath\u003e   # Security vulnerability scan (NEW)\ntermmind generate \u003ct\u003e  # AI code generation (NEW)\ntermmind pipe          # Process piped stdin (NEW)\ntermmind prompts list  # Prompt library (NEW)\ntermmind init          # Setup wizard\ntermmind config        # Show config\ntermmind index         # Build code index\ntermmind symbols       # List symbols\ntermmind doctors       # Health check\ntermmind completions   # Shell completions\n\n# v3.0 — Multi-Agent Commands\ntermmind agent list                    # List available agent personas\ntermmind agent run \"research-code\" \"Build a REST API\"   # Run multi-agent workflow\ntermmind agent chat researcher \"Explain quantum computing\"  # Chat with specific persona\n\n# v3.0 — Knowledge Base Commands\ntermmind kb init                       # Initialize knowledge base\ntermmind kb add ./docs --recursive     # Add documents to KB\ntermmind kb query \"What is RAG?\"      # Query with RAG\ntermmind kb list                       # List KB documents\ntermmind kb stats                      # Show KB statistics\n```\n\n## 🏗 Architecture\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/architecture.svg\" alt=\"TermMind Architecture\" width=\"700\"\u003e\n\u003c/p\u003e\n\n## 🔧 Configuration\n\nConfig stored at `~/.termmind/config.json`:\n\n```json\n{\n  \"provider\": \"ollama\",\n  \"api_key\": \"\",\n  \"model\": \"llama3.2\",\n  \"max_tokens\": 4096,\n  \"temperature\": 0.7,\n  \"theme\": \"dark\",\n  \"auto_context\": true,\n  \"max_context_files\": 20,\n  \"confirm_edits\": true,\n  \"stream\": true\n}\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing`)\n5. Open a Pull Request\n\n## 📚 Documentation\n\n- [Architecture](docs/ARCHITECTURE.md) — Module design and data flow\n- [FAQ](docs/FAQ.md) — Frequently asked questions\n- [Changelog](CHANGELOG.md) — Version history\n- [Roadmap](ROADMAP.md) — Planned features\n- [Support](SUPPORT.md) — Getting help\n- [Examples](examples/README.md) — Usage examples\n\n## 📄 License\n\nMIT License — see [LICENSE](LICENSE) for details.\n\n## ⭐ Star History\n\n\u003ca href=\"https://star-history.com/#rudra496/termmind\u0026Date\"\u003e\n \u003cpicture\u003e\n   \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=rudra496/termmind\u0026type=Date\u0026theme=dark\" /\u003e\n   \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=rudra496/termmind\u0026type=Date\" /\u003e\n   \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=rudra496/termmind\u0026type=Date\" /\u003e\n \u003c/picture\u003e\n\u003c/a\u003e\n\n---\n\n## 🔗 Connect\n\n- [![GitHub](https://img.shields.io/badge/GitHub-rudra496-181717?logo=github)](https://github.com/rudra496)\n- [![LinkedIn](https://img.shields.io/badge/LinkedIn-rudrasarker-0A66C2?logo=linkedin)](https://www.linkedin.com/in/rudrasarker)\n- [![X/Twitter](https://img.shields.io/badge/X-@Rudra496-000000?logo=x)](https://x.com/Rudra496)\n- [![YouTube](https://img.shields.io/badge/YouTube-@rudrasarker9732-FF0000?logo=youtube)](https://youtube.com/@rudrasarker9732)\n- [![Dev.to](https://img.shields.io/badge/Dev.to-rudra__sarker-000000?logo=devdotto)](https://dev.to/rudra_sarker)\n\n---\n\n\u003cp align=\"center\"\u003e\n  Built with ❤️ by \u003ca href=\"https://github.com/rudra496\"\u003eRudra Sarker\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudra496%2Ftermmind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudra496%2Ftermmind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudra496%2Ftermmind/lists"}