# 99 | ThePrimeagen | Knowledge Base | Instagit

Neovim AI agent done right

GitHub Stars: 3.8k

Repository: https://github.com/theprimeagen/99

---

## Articles

### [How 99 Auto-Detects and Loads Language-Specific Configurations in Neovim](/theprimeagen/99/how-does-99-auto-detect-and-load-language-specific-configurations)

Discover how 99 auto-detects and loads language-specific configurations in Neovim by mapping the filetype option to pre-loaded modules for tailored editor helpers. Learn more!

- Tags: how-to-guide
- Published: 2026-02-19

### [How 99 Handles Request Cancellation and Process Management in Neovim](/theprimeagen/99/how-does-99-handle-request-cancellation-and-process-management)

Discover how 99 effectively manages AI query lifecycles in Neovim. Learn about request cancellation, process management via vim.system, and SIGTERM termination.

- Tags: internals
- Published: 2026-02-19

### [How 99's @file Completion System Discovers and Indexes Project Files](/theprimeagen/99/how-does-99s-file-completion-system-discover-and-index-files)

Discover how 99s @file completion system efficiently indexes project files using Neovims libuv API for fast fuzzy matching. Learn about its caching and retrieval methods.

- Tags: internals
- Published: 2026-02-19

### [How the Tutorial Operation Stores and Retrieves Learning Data in ThePrimeagen/99](/theprimeagen/99/how-does-the-tutorial-operation-store-and-retrieve-learning-data)

Discover how ThePrimeagen/99 tutorial operation stores and retrieves learning data in-memory using the __tutorials array. Learn about efficient data management.

- Tags: internals
- Published: 2026-02-16

### [How the Range Operation Applies AI Suggestions to Code in 99](/theprimeagen/99/how-does-the-range-operation-over-range-apply-ai-suggestions-to-code)

Discover how the range operation in 99 leverages AI to suggest code improvements. Send code regions to an LLM for automatic replacement with intelligent suggestions.

- Tags: how-to-guide
- Published: 2026-02-16

### [How the 99 Extension System Works: A Deep Dive into Extensions.init](/theprimeagen/99/how-does-the-extension-system-extensionsinit-work-for-plugins)

Explore how Extensions.init in ThePrimeagen/99 loads, initializes, and delegates plugin operations. Understand the core of the extension system for seamless plugin integration.

- Tags: deep-dive
- Published: 2026-02-16

### [How 99 Integrates with LSP for Code Intelligence: A Deep Dive into the Neovim Plugin](/theprimeagen/99/how-does-99-integrate-with-lsp-for-code-intelligence)

Discover how the 99 plugin integrates with LSP for code intelligence in Neovim. Learn about its asynchronous API for definitions, hover info, symbols, and export extraction.

- Tags: deep-dive
- Published: 2026-02-16

### [How the 99 Agent Rules System Parses and Loads SKILL.md Files](/theprimeagen/99/how-does-the-agent-rules-system-parse-and-load-skillmd-files)

Learn how the 99 agent rules system parses and loads SKILL.md files. Discover directory walking, rule descriptor building, and on-demand content loading.

- Tags: how-to-guide
- Published: 2026-02-16

### [How Request Status Tracking Works Internally in ThePrimeagen's 99 Plugin](/theprimeagen/99/how-does-the-request-status-tracking-work-internally)

Discover how ThePrimeagen's 99 plugin tracks request status internally using defer loops, spinners, and virtual text. Learn about its flexible output options.

- Tags: internals
- Published: 2026-02-16

### [How Window Capture Functions Work in ThePrimeagen/99 for Prompt Input](/theprimeagen/99/how-do-the-window-capture-functions-work-for-prompt-input)

Explore how ThePrimeagen/99 uses window capture functions with Neovim autocmds for responsive prompt input. Learn about BufWriteCmd, WinClosed, and callback delivery via CR or q.

- Tags: how-to-guide
- Published: 2026-02-16

### [How the Prompt-Settings System Customizes AI Instructions in ThePrimeagen's 99](/theprimeagen/99/how-does-the-prompt-settings-system-customize-ai-instructions)

Discover how the prompt-settings system customizes AI instructions in ThePrimeagen's 99. Learn about its Lua pipeline, XML-like tags, and extensible fragments for tailored AI operations.

- Tags: how-to-guide
- Published: 2026-02-16

### [How the 99 Logging System Works: Configure Debug Output in Neovim](/theprimeagen/99/how-does-the-logging-system-work-and-how-to-configure-debug-output)

Learn how the 99 logging system works. Configure debug output in Neovim using structured JSON logging with customizable sinks and per-request context. Enable debug logs easily.

- Tags: internals
- Published: 2026-02-16

### [How the 99 Plugin's Request History System Tracks Previous Operations](/theprimeagen/99/how-does-the-request-history-system-track-previous-operations)

Discover how the 99 plugin's request history system tracks previous operations using a centralized state object and efficient data structures. Get fast lookups and track status from start to finish.

- Tags: internals
- Published: 2026-02-16

### [How 99 Handles AGENT.md File Discovery and Injection into AI Context](/theprimeagen/99/how-does-99-handle-agentmd-file-discovery-and-injection-into-context)

Discover how the 99 Neovim plugin finds and injects AGENT.md file content into AI context for LLM requests. Learn about its automatic discovery process.

- Tags: internals
- Published: 2026-02-16

### [How the 99 Completion System Integrates with nvim-cmp: A Complete Technical Guide](/theprimeagen/99/how-does-the-completion-system-integrate-with-nvim-cmp)

Explore how the 99 completion system integrates with nvim-cmp. Learn about custom sources, prompt buffers, and context-aware completions for rule references and file paths.

- Tags: deep-dive
- Published: 2026-02-16

### [How 99's Search Operation Differs from Visual Mode: A Technical Deep Dive](/theprimeagen/99/how-does-99s-search-operation-differ-from-visual-mode-operationally)

Learn how 99's search operation differs from visual mode. Discover read-only project lookups vs AI-powered buffer modifications. Explore ThePrimeagen/99 technical details.

- Tags: deep-dive
- Published: 2026-02-16

### [How the Marks System Tracks AI-Assisted Edits in ThePrimeagen/99](/theprimeagen/99/how-does-the-marks-system-work-for-tracking-ai-assisted-edits)

Discover how the marks system in ThePrimeagen/99 uses Neovim extmarks to track AI-assisted edits ensuring accurate AI responses and cleanup. Learn about its persistent markers.

- Tags: internals
- Published: 2026-02-16

### [How 99 Uses TreeSitter to Determine Code Boundaries for Visual Selection](/theprimeagen/99/how-does-99-use-treesitter-to-determine-code-boundaries-for-visual-selection)

Learn how 99 uses TreeSitter to find code boundaries for smarter visual selection. Get context-aware AI prompts with function signatures and body content.

- Tags: deep-dive
- Published: 2026-02-16

### [How 99 Tracks and Displays In-Flight Request Status with the Throbber](/theprimeagen/99/how-does-99-track-and-display-in-flight-request-status-with-the-throbber)

Discover how 99 tracks in-flight request status using a self-scheduling Throbber object. Learn how it polls for active requests and animates a Unicode spinner for clear visualization.

- Tags: internals
- Published: 2026-02-16

### [How the Provider Abstraction Works in 99: BaseProvider Deep Dive](/theprimeagen/99/how-does-the-provider-abstraction-baseprovider-work-in-99)

Explore the 99 BaseProvider abstraction for unified AI backend switching. Learn how abstract methods streamline requests for OpenCode, Claude, Cursor-Agent, and Kiro seamlessly.

- Tags: deep-dive
- Published: 2026-02-16

### [How 99 Builds the Request Context for AI Providers](/theprimeagen/99/how-does-99-build-the-request-context-before-sending-to-ai-providers)

Learn how 99 builds the request context for AI providers in three stages: initializing from Neovim, enriching with code and docs, and serializing into a prompt file.

- Tags: internals
- Published: 2026-02-16

### [How 99's #rules Autocomplete System Works Internally: A Deep Dive into the Completion Framework](/theprimeagen/99/how-does-99s-rules-autocomplete-system-work-internally)

Explore the internal workings of 99s #rules autocomplete system. Discover how its completion framework leverages SKILL.md files and LLM prompts for efficient rule discovery and injection.

- Tags: internals
- Published: 2026-02-16

### [How 99's Visual Selection Mode Integrates with AI Code Generation in Neovim](/theprimeagen/99/how-does-99s-visual-selection-mode-integrate-with-ai-code-generation)

Discover how 99's visual selection mode in Neovim seamlessly integrates with AI code generation. Highlight code, get AI suggestions, and update instantly.

- Tags: how-to-guide
- Published: 2026-02-16

### [How to Configure Custom SKILL.md Rules for AI Context in 99](/theprimeagen/99/how-do-i-configure-custom-skillmd-rules-for-ai-context-in-99)

Learn to configure custom SKILL.md rules for AI context in 99. Add directories to custom_rules, structure each skill, and use # to trigger AI completion easily.

- Tags: how-to-guide
- Published: 2026-02-16

### [How Visual Mode Uses Treesitter for Code Selection and Transformation in ThePrimeagen/99](/theprimeagen/99/visual-mode-treesitter-code-selection-transformation)

Discover how ThePrimeagen/99's visual mode leverages Treesitter for advanced code selection and transformation, enabling semantic context for powerful edits.

- Tags: deep-dive
- Published: 2026-02-16

### [How to Integrate Custom AI Providers with the 99 Neovim Plugin](/theprimeagen/99/custom-ai-provider-integration)

Integrate custom AI providers with the 99 Neovim plugin by creating a Lua class that inherits from BaseProvider. Learn how to build custom AI commands and easily extend the plugin's functionality.

- Tags: how-to-guide
- Published: 2026-02-16

### [Internal Workings of Request Tracking and Logging in ThePrimeagen/99](/theprimeagen/99/internal-request-tracking-logging)

Explore the internal workings of request tracking and logging in ThePrimeagen/99. Learn how unique IDs, JSON logs, and lifecycle hooks manage AI editor operations efficiently.

- Tags: internals
- Published: 2026-02-16

### [Understanding the Custom Rules and SKILL.md System in ThePrimeagen's 99 Neovim AI Agent](/theprimeagen/99/understanding-custom-rules-skill-md-system)

Master ThePrimeagen's 99 Neovim AI Agent by understanding its custom rules and SKILL.md system. Learn how to define reusable AI prompts in markdown for dynamic triggering.

- Tags: deep-dive
- Published: 2026-02-16

### [How the 99 Completion System Handles #rules and @file References](/theprimeagen/99/completion-system-rules-file-references)

Discover how the 99 completion system efficiently handles #rules and @file references. Learn about its provider-based architecture and token validation for seamless markdown resolution.

- Tags: internals
- Published: 2026-02-16

