You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use .opencode/opencoder/ directory structure
Move all opencoder files under .opencode/opencoder/ to keep all
OpenCode-related files together in a shared parent directory.
Changes:
- .opencoder/ → .opencode/opencoder/
- opencoder.json → .opencode/opencoder/config.json
- Updated fs.ts paths, config.ts loader, CLI help text
- Updated .gitignore to ignore state/logs but allow config
- Updated README.md and AGENTS.md documentation
- Renamed opencoder.json.example → config.json.example
Signed-off-by: leocavalcante <leo@cavalcante.dev>
Copy file name to clipboardExpand all lines: README.md
+25-23Lines changed: 25 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
-**Autonomous Development Loop** - Continuously plans, builds, and evaluates without stopping
10
10
-**OpenCode SDK Integration** - Direct SDK integration with real-time event streaming
11
-
-**Ideas Queue** - Drop markdown files in `.opencoder/ideas/` to prioritize specific tasks before autonomous plan
11
+
-**Ideas Queue** - Drop markdown files in `.opencode/opencoder/ideas/` to prioritize specific tasks before autonomous plan
12
12
-**Two-Model Architecture** - Uses a high-capability model for plan and a faster model for building
13
13
-**Live Output Streaming** - Real-time display of AI thinking, tool calls, and results
14
14
-**State Persistence** - Resumes from where it left off after interruptions (JSON format)
@@ -163,9 +163,9 @@ The loop continues indefinitely until manually stopped (Ctrl+C).
163
163
164
164
## Configuration
165
165
166
-
### Config File (opencoder.json)
166
+
### Config File (.opencode/opencoder/config.json)
167
167
168
-
Create an `opencoder.json` in your project directory:
168
+
Create a `.opencode/opencoder/config.json` in your project:
169
169
170
170
```json
171
171
{
@@ -195,27 +195,29 @@ Create an `opencoder.json` in your project directory:
195
195
Configuration is merged in this order (later overrides earlier):
196
196
197
197
1. Defaults (hardcoded)
198
-
2.`opencoder.json` in project directory
198
+
2.`.opencode/opencoder/config.json` in project directory
199
199
3. Environment variables (`OPENCODER_*`)
200
200
4. CLI arguments
201
201
202
202
## Directory Structure
203
203
204
-
OpenCoder creates a `.opencoder/` directory in your project:
204
+
OpenCoder creates a `.opencode/opencoder/` directory in your project:
205
205
206
206
```
207
-
.opencoder/
208
-
├── state.json # Current state (JSON)
209
-
├── current_plan.md # Active task plan
210
-
├── ideas/ # Drop .md files here to queue tasks
211
-
│ ├── feature-x.md
212
-
│ └── bugfix-y.md
213
-
├── history/ # Archived completed plans
214
-
│ └── plan_YYYYMMDD_HHMMSS_cycleN.md
215
-
└── logs/
216
-
├── main.log # Main rotating log
217
-
└── cycles/ # Per-cycle detailed logs
218
-
└── cycle_001.log
207
+
.opencode/
208
+
└── opencoder/
209
+
├── config.json # Configuration file
210
+
├── state.json # Current state (JSON)
211
+
├── current_plan.md # Active task plan
212
+
├── ideas/ # Drop .md files here to queue tasks
213
+
│ ├── feature-x.md
214
+
│ └── bugfix-y.md
215
+
├── history/ # Archived completed plans
216
+
│ └── plan_YYYYMMDD_HHMMSS_cycleN.md
217
+
└── logs/
218
+
├── main.log # Main rotating log
219
+
└── cycles/ # Per-cycle detailed logs
220
+
└── cycle_001.log
219
221
```
220
222
221
223
## Plan Format
@@ -244,13 +246,13 @@ Using bcrypt for password hashing, JWT for tokens.
244
246
245
247
## Ideas Queue
246
248
247
-
Want to direct OpenCoder toward specific tasks? Drop markdown files in `.opencoder/ideas/` and OpenCoder will prioritize them before generating its own plans.
249
+
Want to direct OpenCoder toward specific tasks? Drop markdown files in `.opencode/opencoder/ideas/` and OpenCoder will prioritize them before generating its own plans.
0 commit comments