ngpt
🤖 nGPT - A lightning-fast CLI tool that brings any OpenAI-compatible LLM (OpenAI, Ollama, Groq, Claude, Gemini) directly to your terminal. Generate code, craft git commits, execute shell commands, rewrite text, and chat interactively, all with seamless provider switching and real-time streaming.
Discover how nGPT's UI components including tui, tables, colors, and formatters work together. Understand the TUI architecture of the nazdridoy/ngpt repository.
How Text Mode Handles Multiline Input Submission with Ctrl+D in ngptDiscover how ngpt text mode handles multiline input submission with Ctrl+D. Learn how it captures your complete buffer for seamless interaction.
How the nGPT Markdown Rendering System Handles Elements and Styling CustomizationsDiscover how the nGPT markdown rendering system efficiently handles elements and styling. Learn about its use of the Rich library for live streaming, auto-truncation, and centralized color customization.
How to Troubleshoot NGPT API Key and Configuration Issues: A Complete GuideTroubleshoot NGPT API key and configuration issues with our complete guide. Learn to fix common errors by setting environment variables or config files for seamless operation.
How the nGPT Logging System Records Conversations and Debug InformationLearn how the nazdridoy nGPT logging system captures conversations and debug info using specialized classes and factories. Understand its detailed recording capabilities.
NGPT API Client Architecture: A Modular Abstraction for Multi-Provider LLMsExplore the NGPT API client architecture a modular abstraction separating LLM provider interactions into distinct layers for unified access to OpenAI, Anthropic, Gemini and more.
How nGPT Processes Large Diffs for Git Commit Message GenerationDiscover how nGPT processes large diffs for Git commit message generation. Learn its unique chunking and recursive summarization technique for efficient analysis.
Error Handling and Exception Patterns in the nGPT CLI: A Complete GuideExplore nGPT CLI error handling patterns. Discover its three-layer architecture, centralized exception handler, and POSIX exit codes for robust command-line applications. Learn to manage errors effectively.
How the ngpt Rewrite Mode Functions with the --humanize Flag to Transform AI-Generated TextDiscover how ngpt rewrite mode with the --humanize flag transforms AI text by removing detection markers and adding human writing patterns. Make your AI content more natural and undetectable.
How the ngpt Code Generation Mode Ensures Clean, Markdown-Free OutputDiscover how ngpt code generation mode delivers clean, markdown-free output using CLI flags, system prompts, and API parameters. Ensure your code is always pristine.
Integrating nGPT with Custom OpenAI-Compatible API Endpoints: Patterns and Best PracticesLearn how to integrate nGPT with custom OpenAI-compatible API endpoints using configuration options. Discover patterns and best practices for seamless integration without code changes.
How nGPT Manages Conversation Memory and Chat History in Interactive SessionsExplore how nGPT manages conversation memory and chat history using a chronological Python list, persistently storing it in JSON files for seamless interactive sessions.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →