Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions .config/opencode/opencode.jsonc

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository contains:
- **Shell configurations**: Bash, Zsh, and common shell utilities
- **Git configuration**: Global git settings and helpers
- **Claude Code integration**: Comprehensive development guidelines and MCP server configurations
- **OpenCode integration**: Portable global config with model routing and quantization preferences
- **OpenCode integration**: Portable custom agents
- **Development tools**: Prettier, Stylelint, and other code quality tools

## Quick Start
Expand All @@ -30,11 +30,9 @@ See **[SETUP-CLAUDE.md](SETUP-CLAUDE.md)** for complete setup instructions.

## OpenCode

`bin/install.sh` links `.config/opencode/opencode.jsonc` to
`~/.config/opencode/opencode.jsonc`. The committed config contains global
model defaults, OpenRouter provider ordering, quantization preferences, MCP
servers, and agent defaults. API keys and other credentials stay in environment
variables or OpenCode's local auth store and are not exported here.
`bin/install.sh` links the custom agents in `.config/opencode/agents/` into
`~/.config/opencode/agents/`. OpenCode configuration, API keys, and credentials
remain local and are not managed by this repository.

**Quick links**:
- 📖 **[CLAUDE.md](CLAUDE.md)** - Comprehensive development guidelines
Expand Down
32 changes: 1 addition & 31 deletions bin/install-opencode.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Link the portable OpenCode configuration into its global config location.
# Link portable OpenCode agents into the global agent directory.

set -euo pipefail

Expand All @@ -18,39 +18,9 @@ EOF
esac

REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
SOURCE="$REPO_ROOT/.config/opencode/opencode.jsonc"
TARGET="$HOME/.config/opencode/opencode.jsonc"
AGENT_SOURCE_DIR="$REPO_ROOT/.config/opencode/agents"
AGENT_TARGET_DIR="$HOME/.config/opencode/agents"

[[ -f "$SOURCE" ]] || { echo "install-opencode: source missing: $SOURCE" >&2; exit 1; }

if [[ -L "$TARGET" && "$(readlink "$TARGET")" == "$SOURCE" ]]; then
echo " OpenCode config already linked: $TARGET"
exit 0
fi

if [[ -e "$TARGET" || -L "$TARGET" ]]; then
backup="$TARGET.pre-dotfiles"
if [[ -e "$backup" || -L "$backup" ]]; then
echo "install-opencode: refusing to overwrite existing backup: $backup" >&2
exit 1
fi
if [[ $DRY_RUN -eq 1 ]]; then
echo " [dry-run] move $TARGET to $backup"
else
mv "$TARGET" "$backup"
fi
fi

if [[ $DRY_RUN -eq 1 ]]; then
echo " [dry-run] link $SOURCE to $TARGET"
else
mkdir -p "$(dirname "$TARGET")"
ln -s "$SOURCE" "$TARGET"
echo " linked OpenCode config: $TARGET"
fi

if [[ $DRY_RUN -eq 0 ]]; then
mkdir -p "$AGENT_TARGET_DIR"
fi
Expand Down
4 changes: 2 additions & 2 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 1. install-runtime-deps.sh — python/gh/git/rg/jq/direnv
# 2. install-skills.sh — symlink/copy agent skills from manifest
# 3. install-worklog.sh — clone _worklog repo + wire hooks
# 4. install-opencode.sh — link OpenCode config
# 4. install-opencode.sh — link OpenCode agents
# 5. doctor.sh — verify
#
# Refuses Windows-native. WSL2 is the supported Windows path.
Expand Down Expand Up @@ -126,7 +126,7 @@ else
fi

echo
echo "=== 4/5 OpenCode config ==="
echo "=== 4/5 OpenCode agents ==="
if [[ $DRY_RUN -eq 1 ]]; then
echo " [dry-run] would run: bin/install-opencode.sh"
else
Expand Down
Loading