Skip to content

Feat: add a setting for some initial instructions for the agent #281

Description

@edmonl

This plugin already injects some system info. I just need to config a string to add after the system info, e.g.

settings = {
  initial_instrustions = 'You are running in nvim. Diagnostics means those from LSP in a nvim buffer. This MCP is available with current nvim ...blah blah',
}

Because I don't always run agents with nvim, this provides a logic way to give instructions unique to this plugin environment.

Without this feature, I may have to paste the same instructions around, or inject more instructions to every agent session to teach agents how to tell different environments that is a waste of tokens and pollution of context for most agents that don't run with nvim.

Because system info is already injected, I'd expect this is a minimal change that may include 10-20 lines of code. I can send PR if this is accepted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions