COBOT is a powerful AI-driven coding assistant specifically designed for COBOL development. It leverages advanced LLMs (via OpenRouter) and an Agentic workflow to understand, generate, and modify COBOL code while maintaining context of your legacy codebase.
🚀 Features
1. Intelligent Chat & Code Generation
Context-Aware: COBOT builds a knowledge graph of your workspace to understand file dependencies.
COBOL Expert: Trained to generate valid COBOL syntax with correct Area A/B formatting.
Agentic Workflow: Uses a Planner-Developer-Reviewer loop to ensure high-quality code generation.
2. Code Editing & Refactoring
Smart Edits: Automatically finds the right place to insert or modify code in your files.
Action Reviews: Every code change is presented as a "Proposed Change" card. You can Accept or Reject the changes before they are applied to your file.
3. Conversation Management
History Sidebar: Access your past conversations easily.
New Session: Start fresh with a clean context whenever needed.
Rename Conversations: Click the Pencil (✎) icon in the history list to name your threads (e.g., "Login Fix", "Payroll Update").
Delete Conversations: Click the Trash (🗑) icon to permanently remove old history.
4. Advanced Message Features
Edit & Fork: Made a mistake in your prompt? Click the Edit (✎) button on any of your previous messages to change it. COBOT will "fork" the conversation from that point, creating a new thread while preserving your original history.
🛠️ Installation & Setup
Install the VSIX:
Download the AgenticCobotCodeAssistant-x.x.x.vsix file.
In VS Code, go to the Extensions view.
Click the ... menu (Views and Actions) -> Install from VSIX...
Select the downloaded file.
Configuration:
COBOT requires an API Key (OpenRouter) to function.
Go to File > Preferences > Settings (or Ctrl+,).
Search for cobol-assistant.
Enter your API Key.
(Optional) Configure the Model (default nvidia/nemotron-3-nano-30b-a3b:free).
📖 How to Use
Open COBOT: Press Ctrl+Shift+P and run "Start AI Coder".
Ask a Question: Type your request in the chat (e.g., "Create a program to calculate compound interest").
Review the Plan: For complex tasks, COBOT will propose a plan. Click Execute Plan.
Apply Code: When code is generated, review the diff in the chat card and click ✅ Apply Changes.
Manage History: Use the hamburger menu (☰) to open the sidebar and manage your sessions.
⚠️ Troubleshooting
Extension Not Starting? Ensure you don't have a lingering cobol-server.exe process running in Task Manager.
Edits Not Applying? Make sure the file you are editing is open and active in the editor.