https://github.com/sozercan/copilot-anywhere
https://github.com/sozercan/copilot-anywhere
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sozercan/copilot-anywhere
- Owner: sozercan
- Created: 2025-09-16T18:01:31.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2025-09-16T20:02:34.000Z (28 days ago)
- Last Synced: 2025-09-16T21:59:27.796Z (28 days ago)
- Language: TypeScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Copilot Anywhere
Autonomous workspace agent + HTTP/SSE bridge + minimal web UI — all inside a VS Code extension.
## Features
* Autonomous multi‑step agent (read / list / create / edit / run)
* Multiple surfaces: VS Code Chat, HTTP API, SSE stream, minimal web UI
* Safe edits: allowed roots + approval with unified diff preview
* Persistence (optional) to reload recent session context
* Multi-root aware with diagnostics + fallback discovery
* Fast troubleshooting: `/diag` for roots & sample files### Architecture
```
┌────────────┐ ┌──────────────────┐ ┌───────────────────────┐
│ VS Code UI │──┐ │ Message Bus │ ┌─▶│ External Server (HTTP)│
└──────┬─────┘ │ └────────┬─────────┘ │ └──────────┬────────────┘
│ Chat Participant │ │ │ SSE (events)
│ (Agent Loop) │ │ ▼
│ ┌────────────▼──────┐ │ ┌────────────┐
│ │ Agent Controller │ │ │ Web UI │
│ └───────┬──────────┘ │ └────────────┘
│ │ Tools │
│ ▼ │
│ (FS + Shell Actions) │
└───────────────────────────────────┘
```## Key Tools
`listFiles`, `readFiles`, `createFile`, `editFile` (whole-file replace with diff), `runCommand`## Slash Commands
`/files` recent changed files · `/run ` shell · `/clear` reset history · `/diag` discovery diagnostics## Fast Start
```bash
npm install
npm run compile
# Press F5 to launch Extension Development Host
```
Send a goal:
```bash
curl -X POST http://localhost:1337/message \
-H 'Content-Type: application/json' \
-d '{"text":"Generate a concise README"}'
```
Stream events:
```bash
curl -N http://localhost:1337/events
```## Limitations
- Whole-file edits only
- Simple diff algorithm
- No cancellation yet
- No auth/rate limiting
- Naive broad scan fallback.## Future Work
* Multi-agent orchestration (specialists / planner-executor)
* Diff-based incremental edits
* Search tool (regex / indexed)
* Cancellation & run status
* Auth + rate limiting
* Ignore/include patterns & depth control