Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run compile
- run: npm run lint
39 changes: 24 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@ An autonomous AI pair programmer for VS Code
• Rich task & status webviews – cancel / retry individual steps.

## 📦 Installation
1. Ensure you have **Node.js ≥ 18** and **VS Code ≥ 1.85**.
2. Install from the VSIX in the repo root:
1. Ensure you have **VS Code ≥ 1.85**.
2. Download the `.vsix` from GitHub Releases: <https://github.com/haadfida/code-companion/releases/latest>
3. Install it:
```bash
code --install-extension code-companion-0.1.0.vsix
code --install-extension code-companion-<version>.vsix
```
3. Reload VS Code and look for the `code-companion` icon in the Activity Bar.
(or in VS Code: Extensions view, `...` menu, **Install from VSIX...**)
4. Reload VS Code and look for the `CodeCompanion` icon in the Activity Bar.

### Demo
![CodeCompanion demo](docs/demo.gif)

<!-- TODO: record docs/demo.gif by following docs/record-demo.md -->

## 🚀 Quick Start
1. Open any workspace.
Expand All @@ -40,17 +47,19 @@ Set these in your user or workspace `settings.json`:

## 🏗 Architecture Overview
```mermaid
graph TD;
User["VS Code UI"] -->|Commands & prompts| Manager;
Manager --> Planner;
Planner --> Executor;
Executor -->|Reads| ContextAnalyzer;
Executor -->|LLM calls| LLMProvider;
LLMProvider --> Ollama & OpenAI;
Executor -->|Edits| Workspace;
Executor -->|Safety| SafetyValidator;
Manager --> UIWebviews;
ContextAnalyzer --> Git & RemoteDocs;
graph TD
UI["VS Code UI<br/>(commands, chat and task webviews, status bar)"] -->|prompts| Manager["CodeCompanionManager"]
Manager --> Planner["Task Planner"]
Planner --> Executor["Code Executor"]
Executor -->|reads| Context["Context Analyzer"]
Context --> Git["Git / GitHub"]
Context --> RemoteDocs["Remote Docs"]
Executor -->|LLM calls| LLM["LLM Provider"]
LLM --> Ollama["Ollama"]
LLM --> OpenAI["OpenAI-compatible"]
Executor -->|validates| Safety["Safety Validator"]
Executor -->|edits| Workspace["Workspace files"]
Manager --> UI
```

## 📂 Project Structure (depth 2)
Expand Down
12 changes: 12 additions & 0 deletions docs/record-demo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Recording the demo GIF

Output file: `docs/demo.gif` (referenced from the README).

1. Launch the extension (F5 Extension Development Host, or install the `.vsix`) and open a small sample web project.
2. Open the CodeCompanion sidebar from the Activity Bar.
3. In the chat view, type `Add dark-mode toggle` and press Enter.
4. Wait for the generated execution plan and keep it on screen for a few seconds so the steps are readable.
5. Apply the plan and show the resulting diff / edited files.
6. Keep the recording under ~30 seconds, about 1000px wide.

Suggested tools: macOS screen recording + `ffmpeg`, or LICEcap / ScreenToGif. Save as `docs/demo.gif` and commit.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@
"chalk": "^5.3.0",
"@octokit/rest": "^20.0.0"
},
"publisher": "codecompanion",
"publisher": "haadfida",
"repository": {
"type": "git",
"url": "https://github.com/your-username/code-companion.git"
"url": "https://github.com/haadfida/code-companion"
},
"bugs": {
"url": "https://github.com/your-username/code-companion/issues"
"url": "https://github.com/haadfida/code-companion/issues"
},
"homepage": "https://github.com/your-username/code-companion#readme"
"homepage": "https://github.com/haadfida/code-companion#readme"
}
Loading