Custom provider with multisession support
- Vorherrschende Sprache
- Lua
- Sterne
- 3.1k
- Forks
- 216
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I’m not sure if there’ll be interest in implementing it in the plugin core, but I hacked a custom provider that adds two features:
- **Tab-scoped sessions**: Each Neovim tab gets its own independent Claude Code session. I can run multiple sessions within the same branch, or have agents working autonomously on different worktrees while I focus on something else.
- **Layout switching**: Sometimes I have long discussions with an agent without referencing code much. In those cases, I prefer a centered floating window over the side panel. The provider supports two layouts—`side` and `float`—and I can toggle between them with a keybind.
Multisession required a [few patches](https://github.com/alex35mil/dotfiles/blob/master/home/.config/nvim/lua/editor/features/claudecode-provider.lua#L268-L445), but it works.
I put all details in the blog post: https://alex.draft42.io/blog/multisession-agentic-workflow-with-claude-code-in-neovim-lsdoiuzd0
Provider source: https://github.com/alex35mil/dotfiles/blob/master/home/.config/nvim/lua/editor/features/claudecode-provider.lua
Provider + plugin config: https://github.com/alex35mil/dotfiles/blob/master/home/.config/nvim/lua/plugins/ai/claudecode.lua
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit dem Lesen der verlinkten Provider-Quelle und der Multisession-Patches um die Zeilen 268–445 und vergleiche sie anschließend mit der aktuellen Provider-Architektur des Plugins. Verwende den verlinkten Blogbeitrag und die Konfiguration als Kontext für die angeforderten tabbezogenen Sitzungen und das Umschalten zwischen Side-/Float-Layout; abgeschlossen wäre die Aufgabe, wenn ein geeignetes Core-Design vereinbart und integriert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- lua, neovim
- Bereich
- developer-experience, devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100