Skip to content

Commit 83b0aed

Browse files
authored
Merge pull request #202 from syncable-dev/develop
feat: Add Syncable IDE Companion VS Code extension
2 parents 7dc2d89 + 7e1bf6b commit 83b0aed

11 files changed

Lines changed: 100 additions & 17 deletions

File tree

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ debug/
44
target/
55

66
node_modules/
7+
*.vsix
78

89
# These are backup files generated by rustfmt
910
**/*.rs.bk
@@ -28,4 +29,8 @@ docs/phase2/
2829
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
2930
# and can be added to the global gitignore or merged into this file. For a more nuclear
3031
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
31-
#.idea/
32+
#.idea/
33+
# VS Code extension build artifacts
34+
syncable-ide-companion/*.vsix
35+
syncable-ide-companion/node_modules/
36+
syncable-ide-companion/dist/

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ sync-ctl security # Thorough scan (default)
3333
sync-ctl security --mode lightning # Ultra-fast critical files only
3434
sync-ctl security --mode paranoid # Most comprehensive scan
3535

36+
# AI Agent - Interactive DevOps assistant
37+
sync-ctl chat
38+
3639
# Force update check (clears cache)
3740
sync-ctl --clear-update-cache analyze .
3841

39-
4042
# Get help with any command
4143
sync-ctl --help # Show all available commands
4244
sync-ctl analyze --help # Show analyze command options
@@ -103,6 +105,12 @@ $ sync-ctl analyze ./my-express-app
103105
- **Clear instructions** - Provides multiple update methods with step-by-step guidance
104106
- **Zero-maintenance** - Automatically keeps you informed of new releases
105107

108+
### 🤖 AI Agent
109+
- **Interactive chat** - Natural language DevOps assistant powered by OpenAI/Anthropic
110+
- **Code generation** - Creates Dockerfiles, Terraform, Helm charts, and CI/CD configs
111+
- **Project-aware** - Analyzes your codebase to generate optimized configurations
112+
- **IDE integration** - Native diff views in VS Code for file changes
113+
106114
## 🛠️ Installation
107115

108116
### Via Cargo (Recommended - Cross Platform)
@@ -171,6 +179,34 @@ sync-ctl dependencies --licenses # Show license information
171179
sync-ctl dependencies --vulnerabilities # Check for known CVEs
172180
```
173181

182+
### 🤖 AI Agent
183+
184+
```bash
185+
# Start interactive chat
186+
sync-ctl chat
187+
188+
# Use specific provider/model
189+
sync-ctl chat --provider openai --model gpt-4o
190+
sync-ctl chat --provider anthropic --model claude-sonnet-4-20250514
191+
192+
# Single query mode
193+
sync-ctl chat --query "Create a Dockerfile for this project"
194+
```
195+
196+
**Commands in chat:**
197+
- `/model` - Switch AI model
198+
- `/provider` - Switch provider (OpenAI/Anthropic)
199+
- `/clear` - Clear conversation
200+
- `/exit` - Exit chat
201+
202+
**IDE Integration (VS Code):**
203+
204+
For native diff views when the agent modifies files:
205+
206+
1. Install [Syncable IDE Companion](https://marketplace.visualstudio.com/items?itemName=syncable.syncable-ide-companion)
207+
2. Run `sync-ctl chat` from VS Code's integrated terminal
208+
3. File changes open in VS Code's diff viewer instead of terminal
209+
174210
### Security Scan Modes
175211

176212
The turbo security engine offers 5 scan modes optimized for different use cases:
@@ -386,18 +422,17 @@ sync-ctl security --fail-on-findings # Exit with error code if issues found
386422
### ✅ Phase 1: Analysis Engine (Complete)
387423
- Project analysis and technology detection
388424
- Vulnerability scanning with 260+ supported packages
389-
- Turbo Security Engine turbo-fast scanning with 5 modes
390-
391-
### 🔄 Phase 2: AI-Powered Generation (In Progress)
392-
- Smart Dockerfile generation
393-
- Intelligent Docker Compose creation
394-
- Cloud-optimized configurations
395-
396-
### 📅 Future Phases
397-
- Kubernetes manifests & Helm charts
398-
- Terraform modules for AWS/GCP/Azure
399-
- CI/CD pipeline generation
400-
- Real-time monitoring setup
425+
- Turbo Security Engine with 5 scan modes
426+
427+
### ✅ Phase 2: AI Agent (Complete)
428+
- Interactive chat with OpenAI/Anthropic
429+
- Dockerfile, Terraform, Helm chart generation
430+
- VS Code IDE integration for native diffs
431+
432+
### 📅 Phase 3: Coming Soon
433+
- Kubernetes manifest generation
434+
- CI/CD pipeline templates
435+
- Multi-cloud Terraform modules
401436

402437
## 🤝 Contributing
403438

syncable-ide-companion/.yarnrc.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

syncable-ide-companion/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Apache License 2.0 - See https://www.apache.org/licenses/LICENSE-2.0

syncable-ide-companion/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Syncable IDE Companion
2+
3+
VS Code extension for [Syncable CLI](https://github.com/syncable-dev/syncable-cli) - enables native diff views when the AI agent modifies files.
4+
5+
## Installation
6+
7+
Install from [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=syncable.syncable-ide-companion) or:
8+
9+
```bash
10+
code --install-extension syncable.syncable-ide-companion
11+
```
12+
13+
## Usage
14+
15+
1. Open your project in VS Code
16+
2. Open the integrated terminal (`` Ctrl+` `` or `` Cmd+` ``)
17+
3. Run `sync-ctl chat`
18+
4. When the agent creates/modifies files, diffs open in VS Code's native diff viewer
19+
20+
## Screenshots
21+
22+
### AI Agent with Thinking & Tool Calls
23+
![Agent analyzing project](screenshot-1.png)
24+
25+
### Code Analysis & Reasoning
26+
![Agent reading files and explaining](screenshot-2.png)
27+
28+
### Detailed Project Analysis
29+
![Detailed analysis output](screenshot-3.png)
30+
31+
## Features
32+
33+
- Native VS Code diff viewer for file changes
34+
- Accept/reject changes with `Cmd+S` or toolbar buttons
35+
- Automatic connection when running from VS Code terminal
36+
37+
## Requirements
38+
39+
- [Syncable CLI](https://github.com/syncable-dev/syncable-cli) installed (`cargo install syncable-cli`)
40+
- VS Code 1.70.0+
41+
42+
## License
43+
44+
Apache-2.0

syncable-ide-companion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "syncable-ide-companion",
33
"displayName": "Syncable IDE Companion",
44
"description": "IDE companion extension for Syncable Agent - enables native diff views and IDE integration",
5-
"version": "0.1.0",
5+
"version": "0.1.3",
66
"publisher": "syncable",
77
"icon": "assets/icon.png",
88
"repository": {
248 KB
Loading
438 KB
Loading

0 commit comments

Comments
 (0)