Rewrite SYNC.md for token-efficient Claude Code workflow
Browse files
SYNC.md
CHANGED
|
@@ -1,113 +1,52 @@
|
|
| 1 |
-
# PluginBridge β Sync File
|
| 2 |
-
>
|
| 3 |
-
> Claude Code: READ THIS FIRST before doing anything on the project.
|
| 4 |
|
| 5 |
---
|
| 6 |
|
| 7 |
-
##
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
## Current Status
|
| 19 |
-
|
| 20 |
-
**Phase:** Pre-build (research complete, architecture locked)
|
| 21 |
-
**Last updated:** 2026-05-16
|
| 22 |
-
**Next action:** HF Claude scaffolds Sprint 1 source files and pushes to repo
|
| 23 |
-
|
| 24 |
-
### Completed
|
| 25 |
-
- [x] Deep research on all reference repos (juce-plugin-wrapper, AudioPluginHost, cpp-httplib, LUFSMeter, Sound-Analyser, mcp-servers-jos)
|
| 26 |
-
- [x] Architecture decisions finalized
|
| 27 |
-
- [x] Roadmap refined with concrete code patterns
|
| 28 |
-
- [x] CLAUDE.md context file created
|
| 29 |
-
- [x] Project decisions confirmed (macOS, GPL, Pro-Q 4 + LA-2A, default paths)
|
| 30 |
-
|
| 31 |
-
### In Progress
|
| 32 |
-
- [ ] Sprint 1: Scaffold CMakeLists.txt + all source files
|
| 33 |
-
- [ ] Sprint 1: Download and add libs (httplib.h, json.hpp)
|
| 34 |
-
- [ ] Sprint 1: Implement empty audio passthrough plugin
|
| 35 |
-
- [ ] Sprint 1: Implement httplib background server
|
| 36 |
-
|
| 37 |
-
### Not Started
|
| 38 |
-
- [ ] Sprint 2: Plugin hosting (load VST3 by file path)
|
| 39 |
-
- [ ] Sprint 3: MCP JSON-RPC tools
|
| 40 |
-
- [ ] Sprint 4: Audio analysis
|
| 41 |
-
|
| 42 |
-
---
|
| 43 |
-
|
| 44 |
-
## What Claude Code Should Do (And NOT Do)
|
| 45 |
-
|
| 46 |
-
### DO:
|
| 47 |
-
- Pull latest from `https://huggingface.co/RAM2118/pluginbridge`
|
| 48 |
-
- Set up local build environment (JUCE submodule, CMake, Xcode)
|
| 49 |
-
- Build the project and report errors back to Adi
|
| 50 |
-
- Test the built plugin in Ableton
|
| 51 |
-
- Run `curl` tests against the MCP server
|
| 52 |
-
- Report test results so HF Claude can fix issues
|
| 53 |
|
| 54 |
-
|
| 55 |
-
- Write new source files (HF Claude does this)
|
| 56 |
-
- Change architecture decisions
|
| 57 |
-
- Add dependencies not listed in ROADMAP.md
|
| 58 |
-
- Refactor code structure
|
| 59 |
-
- Start a sprint that HF Claude hasn't pushed yet
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
| 64 |
|
| 65 |
-
|
| 66 |
|
|
|
|
| 67 |
```
|
| 68 |
-
|
| 69 |
-
[paste error here]
|
| 70 |
-
|
| 71 |
-
FILE: [which file]
|
| 72 |
-
LINE: [if applicable]
|
| 73 |
-
CONTEXT: [what you were trying to do]
|
| 74 |
```
|
| 75 |
|
| 76 |
-
|
| 77 |
|
| 78 |
---
|
| 79 |
|
| 80 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
|
|
|
| 82 |
```bash
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
cd pluginbridge
|
| 86 |
-
|
| 87 |
-
# Pull latest (after HF Claude pushes updates)
|
| 88 |
-
git pull
|
| 89 |
-
|
| 90 |
-
# Add JUCE submodule (one time, after first clone)
|
| 91 |
git submodule add https://github.com/juce-framework/JUCE.git JUCE
|
| 92 |
git submodule update --init
|
| 93 |
-
|
| 94 |
-
# Build
|
| 95 |
-
mkdir build && cd build
|
| 96 |
-
cmake .. -G Xcode
|
| 97 |
-
cmake --build . --config Release
|
| 98 |
-
|
| 99 |
-
# Or open in Xcode directly:
|
| 100 |
-
open build/PluginBridge.xcodeproj
|
| 101 |
-
```
|
| 102 |
-
|
| 103 |
-
---
|
| 104 |
-
|
| 105 |
-
## Environment Requirements (Claude Code should verify these)
|
| 106 |
-
|
| 107 |
-
```bash
|
| 108 |
-
xcode-select --version # need 14+
|
| 109 |
-
cmake --version # need 3.22+
|
| 110 |
-
brew --version # for installing cmake if missing
|
| 111 |
```
|
| 112 |
|
| 113 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
# PluginBridge β Sync File
|
| 2 |
+
> HF Claude builds. Claude Code: pull β build β paste error (if any). That's it.
|
|
|
|
| 3 |
|
| 4 |
---
|
| 5 |
|
| 6 |
+
## Claude Code Rules (TOKEN EFFICIENT MODE)
|
| 7 |
|
| 8 |
+
**Your ENTIRE job is 3 commands:**
|
| 9 |
+
```bash
|
| 10 |
+
cd ~/pluginbridge && git pull
|
| 11 |
+
cd build && cmake --build . --config Release 2>&1 | tail -20
|
| 12 |
+
# If plugin built: load in Ableton, curl localhost:16620/mcp
|
| 13 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
**If build succeeds:** Reply "β
build ok" β nothing else.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
**If build fails:** Reply with ONLY:
|
| 18 |
+
```
|
| 19 |
+
β [filename]:[line] β [one-line error message]
|
| 20 |
+
```
|
| 21 |
|
| 22 |
+
Example: `β McpServer.cpp:42 β use of undeclared identifier 'httplib'`
|
| 23 |
|
| 24 |
+
**If Ableton test fails:** Reply with ONLY:
|
| 25 |
```
|
| 26 |
+
β οΈ [what failed] β [one-line description]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
```
|
| 28 |
|
| 29 |
+
Example: `β οΈ plugin not visible in Ableton β VST3 not in ~/Library/Audio/Plug-Ins/VST3/`
|
| 30 |
|
| 31 |
---
|
| 32 |
|
| 33 |
+
## DO NOT:
|
| 34 |
+
- Explain errors (just paste the line)
|
| 35 |
+
- Suggest fixes (HF Claude fixes)
|
| 36 |
+
- Write code
|
| 37 |
+
- Read source files to understand them
|
| 38 |
+
- Add verbose commentary
|
| 39 |
+
- Ask clarifying questions about the code
|
| 40 |
|
| 41 |
+
## Setup (one time only, then never again):
|
| 42 |
```bash
|
| 43 |
+
git clone https://huggingface.co/RAM2118/pluginbridge ~/pluginbridge
|
| 44 |
+
cd ~/pluginbridge
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
git submodule add https://github.com/juce-framework/JUCE.git JUCE
|
| 46 |
git submodule update --init
|
| 47 |
+
mkdir build && cd build && cmake .. -G Xcode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
```
|
| 49 |
|
| 50 |
+
## Status
|
| 51 |
+
**Last push:** 2026-05-16 β repo scaffolded, no source code yet
|
| 52 |
+
**Next push:** Sprint 1 source files (HF Claude will update this line)
|