Skip to content

Commit 08d128a

Browse files
committed
docs: update LLM prompt to locate OpenCode config dynamically
1 parent 59aad2b commit 08d128a

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,34 @@ Rules:
6464
Steps:
6565
1. Validate tools:
6666
- Run: opencode --version
67-
2. Update OpenCode config:
68-
- File: ~/.config/opencode/opencode.json
67+
68+
2. Locate OpenCode config:
69+
- Run: CONFIG=$(find "$HOME/.config" -name "opencode.json*" -type f 2>/dev/null | head -1)
70+
- Verify: echo "Found config: $CONFIG"
71+
72+
3. Update OpenCode config:
73+
- Read current config: cat "$CONFIG"
74+
- If "plugin" array doesn't exist, add it after "$schema":
75+
{"$schema": "...", "plugin": []}
6976
- Ensure the plugin array includes: "@itssimplereally/opencode-kimicode-auth@latest"
7077
- Preserve all other existing plugin entries.
71-
3. Verify OpenCode starts cleanly:
78+
- Write updated config back to "$CONFIG"
79+
80+
4. Verify OpenCode starts cleanly:
7281
- Run: opencode auth list
7382
- If plugin install/import errors occur, fix the plugin entry first.
74-
4. **Do not attempt interactive auth in this session.**
83+
84+
5. **Do not attempt interactive auth in this session.**
7585
- Ask the human to run: opencode auth login
7686
- Ask the human to choose provider "Moonshot AI" and method "OAuth (Kimi Code / kimi-cli)".
7787
- Wait for the human to confirm they completed authorization.
78-
5. After human confirmation, verify:
88+
89+
6. After human confirmation, verify:
7990
- Run: opencode auth list
8091
- Run: opencode models moonshotai
8192
- Confirm output includes moonshotai/kimicode-kimi-k2.5 and moonshotai/kimicode-kimi-k2.5-thinking.
82-
6. Return a concise report of changes and verification results.
93+
94+
7. Return a concise report of changes and verification results.
8395
```
8496

8597
## License

0 commit comments

Comments
 (0)