Standalone Portable Application  
Visual Studio Extension  

AI Companion (1.6.20)(2024-03-02) answers questions, analyzes project files, and works alongside, streamlining development and boosting productivity. Application allows easy creation of custom, fine-tuned AI models as chatbots or virtual employees. It is a free, open-source project for people who have an OpenAI API (GPT-3/4, Davinci...) subscription or/and run OpenAI on their local machine (GPT4All), on-premises, or on Azure Cloud. AI Companion can run as a standalone portable application or as a Visual Studio extension. Extension version can also be installed via Visual Studio Extension Manager. Digitally Signed. If you have questions or something doesn’t work as expected, please write to info@jocys.com

2024-02-23 FIXED Windows Defender false positive virus warning issue. Pre-built DLL and core files were also digitally signed.

If Microsoft Windows Defender Antivirus issues a false positive warning saying “Couldn’t download - Virus detected” and prevents you from downloading a new release, please wait for a Microsoft Windows Defender Antivirus update. This usually takes about one day and will resolve the issue. IMPORTANT: Only download and run digitally signed files. DO NOT disable antivirus or exclude AI Companion app from antivirus protection. You can always check app's download URL on VirusTotal.com.


Visual Studio Code Document Options Templates Plugins




This is a free, open-source project for people who have an OpenAI API (GPT-3/4, Davinci...) subscription or/and run OpenAI on their local machine (GPT4All), on-premises, or on Azure Cloud.

AI Companion answers questions, analyzes project files, and works alongside, streamlining development and boosting productivity. Application allows easy creation of custom, fine-tuned AI models as chatbots or virtual employees. AI Companion can run as a standalone portable application or as a Visual Studio extension. It’s like a Swiss Army Knife of AI for developers.

Why use API-based tools over web ChatGPT?

  • Data submitted via the API is not used to train or improve its models, unless customers explicitly decide to share their data.
  • Web Chat is limited to 4K tokens, while AI models on API can process data 4-8 times larger.
  • API provides access to more recent and smarter AI models.

Where to get API Organization ID and API Key?


How can I access GPT-4?


After adding credit to your balance on your OpenAI Account ► Billing ► Overview page, open “Options” tab in Jocys.com AI Companion and click on “Refresh” button. After that, “gpt-4” should appear in “AI Model” drop-down list.

System requirements

Microsoft .NET 8.0 dotnet.microsoft.com/download/dotnet

For VS Extension: Visual Studio 2022 17.9+ (update through Visual Studio Installer)

Why was this extension created?

Existing tools like GitHub CoPilot have limitations when it comes to interacting with AI. I wanted to create an app that could handle common tasks with more in-depth AI guidance and information. This tool does not replace GitHub CoPilot, but rather offers new features. My goal was to create a tool that would assist AI in responding to inquiries about an entire project or in revamping a Visual Studio solution using a different framework. Right now, you have the ability to request a project rewrite, as the extension can send an entire project or solution. However, there are some necessary updates that need to be made in order to save the outcomes.



Why use API-based tools over web ChatGPT?

Where to get API Organization ID and API Key?

How can I access GPT-4?

System requirements

Why was this extension created?


Rate limits

How it works

Data safety concerns



Visual Studio extension
Standalone application
Application options



Code - Smart Search
Code - Document
Code - Fix Selected Issue
Code - Fix Debug Exception
Custom - Historical Events
Translate - English to Klingon

Custom AI models - Fine-Tuning

How-to examples

Grammar - Detail - Professional
Code - Fix Selected Error


Allow AI to run applications and scripts
Ask AI about solution and changes


You can ask questions about an entire solution or project using the “Code - Smart Search” template. However, the size of the solution or project is limited by the maximum amount of tokens the AI can process. People who have access to the GPT-4 API can upload projects or solutions for AI analysis, up to sizes of 96KB (about 3 bytes per token). These limitations could potentially be removed if AI is hosted on-premises.

Rate Limits

Rate limits are restrictions that OpenAI API imposes on the number of times a user or client can access its services within a specified period of time.


How it works

This application (or extension) allows you to create advanced prompt templates and include data from various sources such as the Clipboard, Selection, Active Document, Selected Documents, Active Project, Selected Project, Solution, Selected Error, Exception with relevant code files, or Chat History. You can execute this template with just one button press, and the data will be sent to your preferred AI model for results at api.openai.com.

Data safety concerns

OpenAI will not use the data submitted by customers via the OpenAI API to train or improve its models, unless customers explicitly decide to share their data for this purpose. Customers have the option to opt-in to share data. Please note that this data policy does not apply to OpenAI’s Non-API consumer services like ChatGPT or DALL·E. More information can be found at openai.com/policies/api-data-usage-policies.


The source code is licensed under MPL-2.0 (Mozilla Public License 2.0), permitting corporations to integrate and enhance this application with proprietary code, without the requirement to disclose their modifications. Specifically, this license facilitates the use of the application for purposes such as enabling AI to access corporate resources or to automate task creation for AI, while still keeping any proprietary additions private.

This tool acts as an intermediary, facilitating data exchange between the user and the AI. Consequently, the licensing of this tool itself does not directly impact the rights to the code or content generated by the AI. Instead, the generated content is subject to the license of the AI model used (e.g., GPT-3/4, Davinci...). Typically, the initiator of the AI-generated code process is granted copyright. Both OpenAI and Microsoft offer a legal safeguard, known as a “Copyright Commitment”, to protect customers who face lawsuits for copyright infringement related to content generated by the companies’ AI systems.


Visual Studio extension

Open extension in Visual Studio.

Standalone application

Quickly access tasks from the notification icon in the tray.

Application options

Task and Template settings are saved in separate files for easy exchange and sharing.



AI can provide you with the exact location of specific code features.

Code - Document

Code - Fix Selected Issue

Select Errors or Warnings reported by Visual Studio and ask AI to fix it.

Code - Fix Debug Exception

Ask AI to fix the exception by either copying and pasting the exception info as a message or clicking the [Send] button when Visual Studio throws it during debugging.

Custom - Historical Events

Translate - English to Klingon



Grammar - Detail - Professional. How to check spelling and grammar.

1. Click on the “Grammar - Detail – Professional” template icon on the toolbar. This template will be added to the [Tasks] tab.
2. Select the newly created “Grammar - Detail – Professional” task in the [Tasks] tab.
3. Enter the text you would like to check in the “message” field.
4. Click the [Send] button.
5. Wait for the AI’s response to appear in the chat.

Code - Fix Selected Error. How to Fix Selected Error in Visual Studio.

1. Double-click on the error you would like to fix in the “Error List” panel.
2. Wait for the file with the error to open. It will become the active document.
3. Optional: Click on the “Code - Fix Selected Error” template icon on the toolbar.
4. Choose a task that has been cloned from the “Code - Fix Selected Error” template.
5. Select the “Active Document“ as the attachment to send.
6. Check the “Selected Error” as the attachment to send.
7. Select “Replace” under Automation (VS) if you are brave enough to rely on AI for the correct solution.
8. Click the [Send] button.
9. Wait for the AI’s response to appear in the chat. Active document will be fixed by AI.


Allow AI to run applications and scripts

Ask AI about solution, changed files or the code


Issues (GitHub.com) Control value is empty!


Source (GitHub.com) Control value is empty!


Version Updates & Fixes
Version Updates and Fixes

2024-03-02 v1.6.20

- Fix: AI Functions with enums failing.
- Update: The function approval form will now display only the supplied parameters.
- Update: Text file read and modify functions improved to be more understandable for AI.
- Update: Updated some tooltips to improve clarity.
- New: Web content and download functions with default credentials.
- New: Added function category descriptions.

2024-02-29 v1.6.13

- Fix: Issue with inability to cancel message requests.
- New: Plugin for searching Windows Index.

2024-02-28 v1.6.11

- Fix: Extension license file.
- Update: The function approval process has been updated.
- Update: Approval control is now within the app instead of in a popup message box.

2024-02-27 v1.6.6

- Fix: 3rd attempt to fix the "Method not found: ...Generic.IAsyncEnumerable" issue.
- Fix: Settings.CompanyName.zip example file.
- Fix: Auto clean up AI models without services on service delete.
- Update: Don't deselect the list when making mass changes to properties.
- Update: Changed to the less restrictive "Mozilla Public License v2.0".

2024-02-26 v1.5.16

- Fix: Update to address the issue of "Method not found: ...Generic.IAsyncEnumerable."
- Fix: Enable chat history when enabling Plugins.
- Fix: Redirect to options when API key is missing for Microsoft API.
- New: Added `ReadTextFile` and `WriteTextFile` functions.

2024-02-25 v1.5.12

- Fix: The app is overwriting newer settings.
- New: Customizable setting options for enterprises.

2024-02-25 v1.5.6

- New: Added new Basic and Visual Studio functions.
- New: Added option for maximum risk level.
- Fix: Downgraded some packages so that Extension can run on older versions of VS 2022.

2024-02-22 v1.4.24

- Update: Added a "context type" property to documents to improve AI responses.
- Update: Updated the item template control.
- New: Added splash screen to the standalone app.

2024-02-20 v1.4.21

- New: Added Database Functions.
- New: Added the Ability to Read and Write Files.
- Fix: Content Retrieval from Visual Studio.

2024-02-19 v1.4.18

- Fix: Wrap text issue in Plugins' descriptions.
- Fix: Error report. Add more details.
- Fix: Issue where some Visual Studio functions would fail.

2024-02-18 v1.4.15

- Fix: App crashes when clicking on header.
- Fix: Issue with plugins not scrolling.
- Fix: Make sure system templates are recreated if missing.
- New: VS plugins. Mention "selection" or "open document" and AI will know how to get the code.

2024-02-14 v1.4.6

- New: Plugin Feature. You can allow AI to run apps and scripts. Disabled by default.
- New: "System - Plugin Approval" template. Assess action safety with a secondary AI.
- Update: Upgraded the standalone app to .NET 8.0.
- Update: Updated NuGet Packages.

2024-01-28 v1.3.28

- Fix: Maximum token value for preview models.
- New: "Maximize" and "Restore" buttons to the message and instructions textbox.
- New: Added new "Code - Localize XAML" template.
- New: Visual Studio "Open Documents" added to attachment types.

2024-01-02 v1.3.24

- New: Option to set model names manually.
- New: Allow settings to be stored in the program folder.
- New: Enable bulk changes to the list items when more than one is selected.

2023-11-26 v1.3.20

- Fix: Crash when refreshing models.
- Update: Updated some templates.

2023-11-12 v1.3.17

- Update: Updated some templates.

2023-11-12 v1.3.16

- Fix: Resolved several potential crashes during file conversions.
- New: Added the option to use the maximum auto-detected context size.
- New: Introduced new templates for "Writing" and "AI - Evaluate Morality".
- Update: Now tool autofocus on the Tasks tab when a new task is created.

2023-11-05 v1.3.6

- New: Added a new feature to fine-tune custom models.
- New: Added new templates for "Writing".

2023-09-29 v1.2.13

- Update: Hide the prompting bar by default.
- Update: Require hold CTRL key to paste a markdown block from the clipboard.

2023-09-28 v1.2.11

- Fix: The letter 's' will be trimmed in the messages window.
- Fix: Invalid maximum token size for models.
- New: Added new "Language" prompting template.
- New: Button to insert custom and "PowerShell" markdown language block.

2023-09-26 v1.2.6

- Fix: Crash when attempting to send a preview message.
- New: Button toolbar for pasting and inserting markdown language blocks.
- New: Added "Code - Simplify" template.
- Update: Minor user interface enhancements and theme updates.

2023-09-25 v1.1.18

- Fixed: Crash when sending the message.
- Fixed: Incorrect service being called for instruct models.

2023-09-24 v1.1.16

- New: Option to toggle between user and system message instructions.
- Update: Minor user interface enhancements and theme update.

2023-09-17 v1.1.12

- New: Prompting feature that helps to customize the AI's output.

2023-09-07 v1.1.6

- Fixed: Task cloning, stop sending.
- New: Added support for streaming replies.
- New: Added service timeout option.
- New: Warning when API URL is insecure and not local.
- Update: Improved support for Azure OpenAI.
- Update: Improved support for GPT4All.

2023-08-31 v1.0.115

- Fix: Unable to hide template or task list panel.

2023-08-29 v1.0.114

- Fix: Unable to add new messages after using the Edit and Remove buttons.
- New: Added [Regenerate] button to the last user message.

2023-08-28 v1.0.112

- Fix: Loading of grid splitter settings.

2023-08-28 v1.0.111

- Fix: Reset value of AI Service dropdown box.
- Fix: Improved list navigation for smoother operation.
- Fix: TrayNotifyIcon visible after app shutdown.
- New: Zoom slider for chat window.
- Update: Resolved some UI and theme issues.

2023-08-23 v1.0.103

- New: "Enable Spell Check" option.
- Fix: AI Service dropdown box value reset.

2023-08-21 v1.0.101

- Fix: AI service setting in templates.
- Fix: Copy AI service value from template.
- Fix: Initial app start position.
- Fix: Dropdown box theme.

2023-08-20 v1.0.97

- Fix: Corrected dropdown box theme.
- Update: Information on About control.

2023-08-17 v1.0.95

- Fix: In message edit mode, following messages won't be deleted if sent using ENTER key.

2023-08-16 v1.0.94

- New: [Edit] button has been added. Edit chat message and delete any messages that follow it.
- Update: Grammar instruction template updated to make it easier to copy the corrected sentence.
- Update: Updated some default settings.

2023-08-14 v1.0.91

- New: Added support for multiple API services, including local machine, on-premise, or cloud.
- New: Option to send a message with ENTER. Use SHIFT+ENTER for a new line.
- Update: UI style updated.

2023-08-04 v1.0.82

- Fix: Remove duplicate option to attach chat logs.
- Fix: The visibility of the "Show Icon in Toolbar" checkbox.
- Fix: The URL for Markdown help is not opening.
- Fix: Default icon is missing when creating a new task.
- Update: UI style updated.

2023-07-31 v1.0.77

- Fix: Crash when no error is selected while fixing the selected error.
- Fix: Crash when no document is open while replacing the selection.

2023-07-16 v1.0.75

- Fix: Add missing title and markdown format templates.
- Update: Theme has been updated and more tooltips have been added.

2023-07-15 v1.0.73

- New: Option to use AI to auto-format your message with markdown.
- New: Option to use AI to auto-generate chat title.
- New: Button to re-generate chat title.
- New: Separated Visual Studio options for clarity.
- Fix: URLs open inside the message control instead of a new browser window.
- Fix: The scroll does not stay at the bottom when the message box is resized. 

2023-07-12 v1.0.67

- Fix: Template bar does not display button to access all templates.
- Fix: Code box expands outside of the message window.
- Fix: The scroll does not stay at the bottom when resizing.
- New: Stop button for cancelling prompt requests.

2023-07-11 v1.0.61

- Fix: HTML and markdown text weren't being displayed properly.
- New: Code is displayed in a code box now.
- New: A copy button has been added to each code block.

2023-07-09 v1.0.57

- Fix: Preview messages are excluded from the chat log now.
- Fix: Chat log markdown display.
- Update: The chat log is now submitted to the API correctly.
- Update: AI model in templates.
- Update: Improved instructions in the grammar template to ensure more consistent results.

2023-07-07 v1.0.52

- Fix: Error with the limit of reply tokens.
- Fix: AI models not refreshing in the select box when [Refresh] is clicked.
- Fix: Maximum height for the message and instructions text box.
- Fix: The scroll does not stay at the bottom when resizing.
- Fix: The HTML code display in the message box was sometimes incorrect.
- Fix: Settings not saving when exiting from Tray menu.

2023-07-05 v1.0.47

- Fix: The entire list refreshes when a task is removed or updated on the disk.
- Fix: Display XML elements within the message.
- Fix: App not restoring the last Task selection upon restart.

2023-07-02 v1.0.42

- Fix: Issue when attempting to paste an item with the same name.
- Fix: Corrected message output display.
- New: Now allows for attachment of multiple item types to AI with the same message.
- New: Added the option to send selected errors.
- New: Added the capability to send debugging exception errors.
- New: Feature to send relevant files/documents for exceptions.
- New: Show a warning when files are sent to the AI.
- New: Show a warning when files sent to the AI contains possible sensitive data.

2023-06-27 v1.0.35

- Fix: Send button opacity when a message is changed.
- Update: Reduce the amount of space that attachments and data occupy in the chat.

2023-06-26 v1.0.33

- Fix: AI response added to a different task.
- Fix: Use Macros Template property not copying to the Task.
- New: Clear all messages button.
- New: Scroll to the bottom button.

2023-06-25 v1.0.28

- New: Include macros for the Environment.
- New: Easily access tasks from the Tray Notification icon.
- Fix: Correct rendering of template list when switching tabs.
- Fix: Automatically enable macros if they are used.

2023-06-22 v1.0.26

- Fix: Send button opacity when a message is changed.

2023-06-22 v1.0.25

- Fix: Some Template properties not copying to the Task.
- New: Separate the AI instructions from the main message.
- Update: Updated all templates.

2023-06-21 v1.0.23

- New: Added an "Allow Only One Copy" option for standalone application.
- Update: The "Minimize On Close" option is now enabled by default.

2023-06-20 v1.0.22

- Fix: Changed how the chat log is sent to allow for better AI interpretation.
- Fix: Updated the API requests spinning indicator.
- New: Added feature to show the count of active API requests on the spinning indicator.
- New: Introduced ability to customize the base URL.
- New: Standalone program can now be restored, focused, or minimized to the tray by clicking on the notification icon.
- Update: Renamed AI creativity setting from "Normal" to "Balanced".

2023-06-18 v1.0.19

- New: Public release.

2023-04-11 v1.0.6

- New: Internal release.