Codync
免費、開源的 1:1 替代方案,取代 Grok Bot 與 Muse。從 iPhone、Mac 或 Linux 桌面將 Claude Code、Codex、Cursor 與 40+ 程式碼代理人作為持續機器人傳訊。群組聊天、主題串…
AI 翻譯
尚未收集儲存庫資訊。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Describe a project in plain English. Get a task plan, a tech-stack recommendation and a generated codebase, pushed to GitHub.
Live demo · Quick start · How it works · API · Roadmap · Contributing
Synapse is an open-source AI development assistant built with FastAPI and Google Gemini. It chains three agents together:
The browser UI is plain HTML, CSS and JavaScript, so there's no build step and it's easy to hack on.
Note on the live demo: it runs on a free Render instance, so the first request after a period of inactivity can take about 30 seconds while it wakes up.
Requirements: Python 3.10+, a Google Gemini API key, and MongoDB (local or Atlas). A GitHub token is optional and only needed for pushing.
git clone https://github.com/skdas20/Synapse.git
cd Synapse
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env # then fill in GEMINI_API_KEY and MONGODB_URI
uvicorn app:app --app-dir backend --reload --port 8000
Open http://localhost:8000. Interactive API docs are at http://localhost:8000/docs.
| Variable | Required | Purpose |
|---|---|---|
GEMINI_API_KEY | Yes | Task planning and code generation |
GEMINI_MODEL | No | Gemini model for planning and code generation (default gemini-2.5-flash) |
MONGODB_URI | Yes, for pushing to GitHub | Stores generated projects between steps |
GITHUB_TOKEN | No | Default token for the GitHub agent (repo scope). Users can also paste a token in the UI. |
Never commit your .env file.
graph LR;
U[Your requirement] --> TP[Task planner agent];
TP -->|tasks, tech stack, milestones| UI[Web UI];
UI --> DB[Dev bot agent];
DB -->|generated files| M[(MongoDB)];
DB -->|ZIP download| UI;
M --> GH[GitHub agent];
GH -->|repo + files + one issue per task| G[GitHub];
| Component | File |
|---|---|
| FastAPI app and routes | backend/app.py |
| Task planning (Gemini) | backend/agents/task_planner.py |
| Code generation (Gemini) | backend/agents/dev_bot.py |
| GitHub integration (PyGithub) | backend/agents/github_agent.py |
| Web UI | index.html, styles.css, script.js |
| Method | Endpoint | Description |
|---|---|---|
GET | /health | Status of MongoDB, Gemini and GitHub services |
POST | /api/process-requirement | Requirement → tasks, tech stack and goals |
POST | /api/generate-code | Tasks → generated project: stored for pushing, returned as a ZIP (used by the UI) |
POST | /api/generate-project | Tasks → generated project ZIP only |
POST | /api/push-to-github | Create a repo, push the latest generated project and open issues |
POST | /api/update-github-token | Set the GitHub token used for pushing |
Request and response examples are in docs/API.md.
The included Procfile works on Render, Railway and Heroku-style platforms:
web: uvicorn app:app --app-dir backend --host 0.0.0.0 --port $PORT
Set GEMINI_API_KEY, MONGODB_URI and, optionally, GITHUB_TOKEN in the platform's environment settings.
⚠️ Single-user for now. The GitHub token and the "latest generated project" are shared server-wide, so a public multi-user deployment can push one visitor's project with another visitor's token. Deploy it for yourself or your team until per-session isolation lands (roadmap).
docker compose setupSynapse is a friendly place for a first open-source contribution: Python, prompt engineering, frontend or docs. See CONTRIBUTING.md and pick an issue labelled good first issue.
If Synapse saves you time, please ⭐ the repo; it helps more people find it.
MIT © Sumit Kumar Das