{"id":25867581,"url":"https://github.com/robacarp/agent.vim","last_synced_at":"2026-03-06T15:02:54.249Z","repository":{"id":279829593,"uuid":"939674080","full_name":"robacarp/agent.vim","owner":"robacarp","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-27T17:01:23.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T00:14:58.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robacarp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-26T23:17:27.000Z","updated_at":"2025-02-27T17:01:27.000Z","dependencies_parsed_at":"2025-02-28T00:14:59.766Z","dependency_job_id":"293118cc-e561-45b4-acd1-b7e29e0ba5d5","html_url":"https://github.com/robacarp/agent.vim","commit_stats":null,"previous_names":["robacarp/agent.vim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robacarp%2Fagent.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robacarp%2Fagent.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robacarp%2Fagent.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robacarp%2Fagent.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robacarp","download_url":"https://codeload.github.com/robacarp/agent.vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241455387,"owners_count":19965601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-02T03:38:01.691Z","updated_at":"2026-03-06T15:02:54.237Z","avatar_url":"https://github.com/robacarp.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# agent.vim\n\nA Vim plugin for interacting with AI Agents directly from your editor.\n\n## Features\n\n- Send text selections to Claude and get responses in a new buffer\n- Configure Claude model, temperature, and token limits\n- Simple key mappings for quick interaction\n\n## Requirements\n\n- Vim 8.0+ or Neovim\n- curl\n- A Claude API key from Anthropic\n\n## Installation\n\nUsing vim-plug:\n\n```vim\nPlug 'robacarp/agent.vim'\n```\n\nAfter installation, set your Claude API key:\n\n```vim\n:ClaudeSetApiKey your_api_key_here\n```\n\n## Configuration\n\nAdd these settings to your vimrc:\n\n```vim\n\" Required: Your Claude API key\nlet g:claude_api_key = 'your_api_key_here'\n\n\" Optional: Change the Claude model (default: claude-3-7-sonnet-20250219)\nlet g:claude_model = 'claude-3-7-sonnet-20250219'\n\n\" Optional: Set the maximum tokens in the response (default: 1000)\nlet g:claude_max_tokens = 1000\n\n\" Optional: Adjust temperature (default: 0.7)\nlet g:claude_temperature = 0.7\n\n\" Optional: Disable default key mappings\nlet g:claude_no_mappings = 1\n```\n\n## Usage\n\n1. Select text in visual mode or place cursor on a line in normal mode\n2. Press `\u003cLeader\u003eca` (or your custom mapping)\n3. A new buffer will open with Claude's response\n\n## Commands\n\n- `:ClaudeAsk` - Send selected text to Claude\n- `:ClaudeSetModel {model}` - Change the Claude model\n- `:ClaudeSetApiKey {key}` - Set your Claude API key\n\n## Custom Mappings\n\n```vim\n\" Examples of custom mappings\nnmap \u003cLeader\u003ec \u003cPlug\u003e(claude-ask)\nvmap \u003cLeader\u003ec \u003cPlug\u003e(claude-ask)\n```\n\n### Asking Questions About Code\n\nYou can ask specific questions about your code:\n\n1. Select the code you want to ask about\n2. Press `\u003cLeader\u003ecq` (or use the command `:ClaudeAskQuestion`)\n3. You'll be prompted to enter your question\n4. Claude will analyze the code and answer your question in a new buffer\n\nExample questions:\n- \"What does this function do?\"\n- \"How can I optimize this code?\"\n- \"What are potential bugs in this implementation?\"\n- \"How would I add feature X to this code?\"\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobacarp%2Fagent.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobacarp%2Fagent.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobacarp%2Fagent.vim/lists"}