├── README.md └── augment_reset_scriptby_aniruddha.py /README.md: -------------------------------------------------------------------------------- 1 | # Augment Code Extension Reset Tool 2 | 3 | A Python script to completely reset and clean all Augment Code extension data from VS Code, allowing you to start fresh with a new account. 4 | 5 | joint this channel for Updates https://t.me/+jTuTq5BLvxU5OWZl 6 | 7 | ## 🚀 Features 8 | 9 | - **Complete Extension Removal** - Removes all Augment-related extensions 10 | - **Settings Cleanup** - Cleans configuration files and user settings 11 | - **Cache & Storage Reset** - Clears all cached data and workspace storage 12 | - **Registry Cleaning** - Cleans Windows registry entries (Windows only) 13 | - **Cross-Platform Support** - Works on Windows, macOS, and Linux 14 | 15 | ## 📋 Requirements 16 | 17 | - Python 3.6+ 18 | - Administrator/Root privileges 19 | - VS Code installed 20 | 21 | ## 🚀 Usage 22 | 23 | ### Windows (Run as Administrator) 24 | ```cmd 25 | python reset_augment.py 26 | ``` 27 | 28 | ### macOS/Linux 29 | ```bash 30 | sudo python3 reset_augment.py 31 | ``` 32 | 33 | **Steps:** 34 | 1. Close VS Code 35 | 2. Run the script with admin privileges 36 | 3. Type `YES` when prompted 37 | 4. Wait for completion 38 | 5. Restart computer (recommended) 39 | 40 | ## 📁 What Gets Removed 41 | 42 | - ✅ Augment Code extensions 43 | - ✅ VS Code settings (Augment-related) 44 | - ✅ Cache files and logs 45 | - ✅ Workspace storage 46 | - ✅ Temporary files 47 | - ✅ Registry entries (Windows) 48 | 49 | ## 🔄 After Reset 50 | 51 | 1. Restart your computer 52 | 2. Open VS Code 53 | 3. Install Augment Code extension fresh 54 | 4. Create new account 55 | 56 | ## ⚠️ Important Notes 57 | 58 | - **Backup Important Data** - This permanently removes data 59 | - **Administrator Rights Required** - Needed for complete cleanup 60 | - **VS Code Will Be Closed** - Save your work first 61 | 62 | ## 🐛 Troubleshooting 63 | 64 | - Ensure Python is installed: `python --version` 65 | - Run with administrator privileges 66 | - Manually close VS Code if needed 67 | 68 | ## 🏆 Credits 69 | 70 | **Created by: Aniruddha ...!** 71 | 72 | V2 -------------------------------------------- 73 | Date - 26- 7 74 | Follow this Steps For getting 50 Request 75 | 1 Log out from All the places related augment 76 | 2 Use script 77 | 3 Create new Account with temp mail 78 | 4 wait until band 79 | 5 After ban Go to the augmented Website amd change plan to the Community plan 80 | 5 Refresh Augment 1,2 times i will auto gets Working 81 | For now use thsi Wait for the Full fix 82 | ❤️ 83 | -------------------------------------------------------------------------------- /augment_reset_scriptby_aniruddha.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import os 4 | import sys 5 | import shutil 6 | import subprocess 7 | import platform 8 | import json 9 | import sqlite3 10 | from pathlib import Path 11 | # Windows registry import will be done conditionally later 12 | 13 | class AugmentResetTool: 14 | def __init__(self): 15 | self.system = platform.system() 16 | self.home = Path.home() 17 | self.removed_items = [] 18 | self.errors = [] 19 | 20 | def log_success(self, message): 21 | print(f"✓ {message}") 22 | self.removed_items.append(message) 23 | 24 | def log_error(self, message): 25 | print(f"✗ {message}") 26 | self.errors.append(message) 27 | 28 | def log_info(self, message): 29 | print(f"ℹ {message}") 30 | 31 | def get_vscode_paths(self): 32 | """Get VS Code configuration paths for different OS""" 33 | if self.system == "Windows": 34 | return { 35 | "user_data": self.home / "AppData" / "Roaming" / "Code" / "User", 36 | "extensions": self.home / ".vscode" / "extensions", 37 | "cache": self.home / "AppData" / "Roaming" / "Code" / "CachedExtensions", 38 | "logs": self.home / "AppData" / "Roaming" / "Code" / "logs", 39 | "workspaceStorage": self.home / "AppData" / "Roaming" / "Code" / "User" / "workspaceStorage" 40 | } 41 | elif self.system == "Darwin": # macOS 42 | return { 43 | "user_data": self.home / "Library" / "Application Support" / "Code" / "User", 44 | "extensions": self.home / ".vscode" / "extensions", 45 | "cache": self.home / "Library" / "Caches" / "com.microsoft.VSCode", 46 | "logs": self.home / "Library" / "Application Support" / "Code" / "logs", 47 | "workspaceStorage": self.home / "Library" / "Application Support" / "Code" / "User" / "workspaceStorage" 48 | } 49 | else: # Linux 50 | return { 51 | "user_data": self.home / ".config" / "Code" / "User", 52 | "extensions": self.home / ".vscode" / "extensions", 53 | "cache": self.home / ".cache" / "vscode", 54 | "logs": self.home / ".config" / "Code" / "logs", 55 | "workspaceStorage": self.home / ".config" / "Code" / "User" / "workspaceStorage" 56 | } 57 | 58 | def close_vscode(self): 59 | """Close VS Code processes""" 60 | try: 61 | if self.system == "Windows": 62 | subprocess.run(["taskkill", "/F", "/IM", "Code.exe"], 63 | capture_output=True, check=False) 64 | else: 65 | subprocess.run(["pkill", "-f", "Visual Studio Code"], 66 | capture_output=True, check=False) 67 | self.log_success("Closed VS Code processes") 68 | except Exception as e: 69 | self.log_error(f"Error closing VS Code: {e}") 70 | 71 | def remove_augment_extensions(self): 72 | """Remove Augment-related extensions""" 73 | paths = self.get_vscode_paths() 74 | extensions_dir = paths["extensions"] 75 | 76 | if not extensions_dir.exists(): 77 | self.log_info("Extensions directory not found") 78 | return 79 | 80 | # Common Augment extension patterns 81 | augment_patterns = [ 82 | "augment", 83 | "augmentcode", 84 | "augment-code", 85 | "augment.code", 86 | "augment-ai", 87 | "augmentai" 88 | ] 89 | 90 | for item in extensions_dir.iterdir(): 91 | if item.is_dir(): 92 | item_name = item.name.lower() 93 | if any(pattern in item_name for pattern in augment_patterns): 94 | try: 95 | shutil.rmtree(item) 96 | self.log_success(f"Removed extension: {item.name}") 97 | except Exception as e: 98 | self.log_error(f"Error removing {item.name}: {e}") 99 | 100 | def clean_vscode_settings(self): 101 | """Clean VS Code settings and configurations""" 102 | paths = self.get_vscode_paths() 103 | 104 | # Files to clean 105 | files_to_clean = [ 106 | paths["user_data"] / "settings.json", 107 | paths["user_data"] / "keybindings.json", 108 | paths["user_data"] / "globalStorage" / "state.vscdb", 109 | paths["user_data"] / "globalStorage" / "storage.json" 110 | ] 111 | 112 | for file_path in files_to_clean: 113 | if file_path.exists(): 114 | try: 115 | if file_path.suffix == '.json': 116 | self.clean_json_file(file_path) 117 | elif file_path.suffix == '.vscdb': 118 | self.clean_vscdb_file(file_path) 119 | except Exception as e: 120 | self.log_error(f"Error cleaning {file_path}: {e}") 121 | 122 | def clean_json_file(self, file_path): 123 | """Clean Augment-related entries from JSON files""" 124 | try: 125 | with open(file_path, 'r', encoding='utf-8') as f: 126 | data = json.load(f) 127 | 128 | original_data = json.dumps(data, sort_keys=True) 129 | 130 | # Remove Augment-related keys 131 | if isinstance(data, dict): 132 | keys_to_remove = [] 133 | for key in data.keys(): 134 | if 'augment' in key.lower(): 135 | keys_to_remove.append(key) 136 | 137 | for key in keys_to_remove: 138 | del data[key] 139 | self.log_success(f"Removed setting: {key}") 140 | 141 | # Write back if changed 142 | if json.dumps(data, sort_keys=True) != original_data: 143 | with open(file_path, 'w', encoding='utf-8') as f: 144 | json.dump(data, f, indent=2) 145 | self.log_success(f"Cleaned: {file_path.name}") 146 | 147 | except Exception as e: 148 | self.log_error(f"Error cleaning JSON {file_path}: {e}") 149 | 150 | def clean_vscdb_file(self, file_path): 151 | """Clean Augment-related entries from SQLite database""" 152 | try: 153 | conn = sqlite3.connect(file_path) 154 | cursor = conn.cursor() 155 | 156 | # Get all table names 157 | cursor.execute("SELECT name FROM sqlite_master WHERE type='table';") 158 | tables = cursor.fetchall() 159 | 160 | for table in tables: 161 | table_name = table[0] 162 | try: 163 | # Remove rows containing 'augment' in key/value 164 | cursor.execute(f"DELETE FROM {table_name} WHERE key LIKE '%augment%' OR value LIKE '%augment%'") 165 | deleted = cursor.rowcount 166 | if deleted > 0: 167 | self.log_success(f"Removed {deleted} entries from {table_name}") 168 | except Exception as e: 169 | self.log_error(f"Error cleaning table {table_name}: {e}") 170 | 171 | conn.commit() 172 | conn.close() 173 | self.log_success(f"Cleaned database: {file_path.name}") 174 | 175 | except Exception as e: 176 | self.log_error(f"Error cleaning database {file_path}: {e}") 177 | 178 | def clean_workspace_storage(self): 179 | """Clean workspace storage""" 180 | paths = self.get_vscode_paths() 181 | workspace_dir = paths["workspaceStorage"] 182 | 183 | if not workspace_dir.exists(): 184 | return 185 | 186 | for item in workspace_dir.iterdir(): 187 | if item.is_dir(): 188 | try: 189 | # Check if workspace contains Augment data 190 | state_file = item / "state.vscdb" 191 | if state_file.exists(): 192 | self.clean_vscdb_file(state_file) 193 | except Exception as e: 194 | self.log_error(f"Error cleaning workspace {item.name}: {e}") 195 | 196 | def clean_cache_and_logs(self): 197 | """Clean cache and log files""" 198 | paths = self.get_vscode_paths() 199 | 200 | # Clean cache 201 | cache_dir = paths["cache"] 202 | if cache_dir.exists(): 203 | try: 204 | for item in cache_dir.iterdir(): 205 | if 'augment' in item.name.lower(): 206 | if item.is_dir(): 207 | shutil.rmtree(item) 208 | else: 209 | item.unlink() 210 | self.log_success(f"Removed cache: {item.name}") 211 | except Exception as e: 212 | self.log_error(f"Error cleaning cache: {e}") 213 | 214 | # Clean logs 215 | logs_dir = paths["logs"] 216 | if logs_dir.exists(): 217 | try: 218 | for item in logs_dir.iterdir(): 219 | if 'augment' in item.name.lower(): 220 | if item.is_dir(): 221 | shutil.rmtree(item) 222 | else: 223 | item.unlink() 224 | self.log_success(f"Removed log: {item.name}") 225 | except Exception as e: 226 | self.log_error(f"Error cleaning logs: {e}") 227 | 228 | def clean_system_temp(self): 229 | """Clean system temporary files""" 230 | temp_dirs = [] 231 | 232 | if self.system == "Windows": 233 | temp_dirs = [ 234 | Path(os.environ.get('TEMP', '')), 235 | Path(os.environ.get('TMP', '')), 236 | self.home / "AppData" / "Local" / "Temp" 237 | ] 238 | else: 239 | temp_dirs = [ 240 | Path('/tmp'), 241 | Path('/var/tmp'), 242 | self.home / '.tmp' 243 | ] 244 | 245 | for temp_dir in temp_dirs: 246 | if temp_dir.exists(): 247 | try: 248 | for item in temp_dir.iterdir(): 249 | if 'augment' in item.name.lower(): 250 | if item.is_dir(): 251 | shutil.rmtree(item) 252 | else: 253 | item.unlink() 254 | self.log_success(f"Removed temp file: {item.name}") 255 | except Exception as e: 256 | self.log_error(f"Error cleaning temp directory {temp_dir}: {e}") 257 | 258 | def clean_registry_windows(self): 259 | """Clean Windows registry (Windows only)""" 260 | if self.system != "Windows": 261 | return 262 | 263 | try: 264 | import winreg 265 | 266 | # Registry paths to check 267 | registry_paths = [ 268 | (winreg.HKEY_CURRENT_USER, r"Software\Microsoft\VSCode"), 269 | (winreg.HKEY_CURRENT_USER, r"Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages"), 270 | ] 271 | 272 | for hkey, path in registry_paths: 273 | try: 274 | with winreg.OpenKey(hkey, path) as key: 275 | # This is a simplified registry cleaning 276 | # In practice, you'd need to enumerate and check values 277 | self.log_info(f"Registry path checked: {path}") 278 | except FileNotFoundError: 279 | pass 280 | except Exception as e: 281 | self.log_error(f"Error accessing registry {path}: {e}") 282 | 283 | except ImportError: 284 | self.log_error("Registry cleaning not available (winreg not imported)") 285 | except Exception as e: 286 | self.log_error(f"Registry cleaning error: {e}") 287 | 288 | def reset_network_cache(self): 289 | """Reset network/DNS cache""" 290 | try: 291 | if self.system == "Windows": 292 | subprocess.run(["ipconfig", "/flushdns"], capture_output=True, check=False) 293 | elif self.system == "Darwin": 294 | subprocess.run(["sudo", "dscacheutil", "-flushcache"], capture_output=True, check=False) 295 | else: 296 | subprocess.run(["sudo", "systemctl", "restart", "systemd-resolved"], capture_output=True, check=False) 297 | 298 | self.log_success("Network cache flushed") 299 | except Exception as e: 300 | self.log_error(f"Error flushing network cache: {e}") 301 | 302 | def run_full_reset(self): 303 | """Run complete reset process""" 304 | print("=" * 60) 305 | print("AUGMENT CODE EXTENSION COMPLETE RESET TOOL") 306 | print("=" * 60) 307 | print("This will completely remove all Augment Code extension data.") 308 | print("You will be able to create a fresh account afterwards.") 309 | print() 310 | 311 | confirm = input("Are you sure you want to proceed? (type 'YES' to confirm): ") 312 | if confirm != 'YES': 313 | print("Operation cancelled.") 314 | return 315 | 316 | print("\nStarting complete reset process...") 317 | print("-" * 40) 318 | 319 | # Step 1: Close VS Code 320 | self.log_info("Step 1: Closing VS Code...") 321 | self.close_vscode() 322 | 323 | # Step 2: Remove extensions 324 | self.log_info("Step 2: Removing Augment extensions...") 325 | self.remove_augment_extensions() 326 | 327 | # Step 3: Clean settings 328 | self.log_info("Step 3: Cleaning VS Code settings...") 329 | self.clean_vscode_settings() 330 | 331 | # Step 4: Clean workspace storage 332 | self.log_info("Step 4: Cleaning workspace storage...") 333 | self.clean_workspace_storage() 334 | 335 | # Step 5: Clean cache and logs 336 | self.log_info("Step 5: Cleaning cache and logs...") 337 | self.clean_cache_and_logs() 338 | 339 | # Step 6: Clean system temp 340 | self.log_info("Step 6: Cleaning system temporary files...") 341 | self.clean_system_temp() 342 | 343 | # Step 7: Clean registry (Windows only) 344 | if self.system == "Windows": 345 | self.log_info("Step 7: Cleaning Windows registry...") 346 | self.clean_registry_windows() 347 | 348 | # Step 8: Reset network cache 349 | self.log_info("Step 8: Resetting network cache...") 350 | self.reset_network_cache() 351 | 352 | # Summary 353 | print("\n" + "=" * 60) 354 | print("RESET COMPLETE!") 355 | print("=" * 60) 356 | print(f"✓ Successfully removed {len(self.removed_items)} items") 357 | if self.errors: 358 | print(f"✗ {len(self.errors)} errors occurred") 359 | 360 | print("\nNext steps:") 361 | print("1. Restart your computer (recommended)") 362 | print("2. Open VS Code") 363 | print("3. Install Augment Code extension fresh") 364 | print("4. Create a new account") 365 | print("\nYour system is now clean of all Augment Code extension data!") 366 | print("\n" + "=" * 60) 367 | print("Credit: Aniruddha ...!") 368 | print("=" * 60) 369 | 370 | if __name__ == "__main__": 371 | tool = AugmentResetTool() 372 | tool.run_full_reset() 373 | --------------------------------------------------------------------------------