Skip to content

Custom provider with multisession support #177

@alex35mil

Description

@alex35mil

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, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions