commit e1f427511eb9eb3839aeee943480f20089f68230 Author: opencode-agent Date: Thu Jul 23 17:39:03 2026 +0000 chore: initial repo skeleton diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2eb052e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{py,toml}] +indent_style = space +indent_size = 4 + +[*.{ts,tsx,js,jsx,json,yml,yaml,css,md}] +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6cfd13b --- /dev/null +++ b/.gitignore @@ -0,0 +1,43 @@ +# app_data (runtime, not in git except .gitkeep structure) +app_data/* +!app_data/.gitkeep +!app_data/workspaces/ +app_data/workspaces/* +!app_data/workspaces/.gitkeep +!app_data/ssh/ +app_data/ssh/* +!app_data/ssh/.gitkeep + +# opencode plugin node_modules +.opencode/node_modules/ + +# Python +__pycache__/ +*.py[cod] +*$py.class +*.egg-info/ +*.egg +build/ +dist/ +.eggs/ +*.spec + +# Virtual environments +.venv/ +venv/ + +# Environment / secrets +.env +*.env +!.env.example +!.env.template + +# Testing / quality caches +.pytest_cache/ +.coverage +htmlcov/ +.mypy_cache/ +.ruff_cache/ + +# OS +.DS_Store diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0ba857c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 slaid098 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..456cc79 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# opencode-config + +Docker-based AI coding assistant with persistent memory — opencode configuration. + +## Quick start + +```bash +git clone https://github.com/slaid098/opencode-config.git +cd opencode-config +mkdir -p app_data/{workspaces,ssh} +cp .env.example .env # fill in your keys +docker compose up -d +``` + +Access at http://localhost:4096. + +## Structure + +- `.opencode/` — global opencode config (agents, skills, tools, scripts) +- `app_data/workspaces/` — agent working directory +- `app_data/ssh/` — SSH keys (not in git) +- `app_data/opencode-memory/` — persistent memory (separate git repo) +- `src/` — Python RAG CLI (second-brain) diff --git a/app_data/.gitkeep b/app_data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/app_data/ssh/.gitkeep b/app_data/ssh/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/app_data/workspaces/.gitkeep b/app_data/workspaces/.gitkeep new file mode 100644 index 0000000..e69de29