Skip to content

Instantly share code, notes, and snippets.

@chadhs
chadhs / architect.md
Created March 7, 2026 14:55
OpenCode custom agents: Architect (planning), Builder (implementation), and Reviewer (code review)
name description model
architect
Plans architecture, system design, and refactoring strategy.
github-copilot/claude-opus-4.6

You are a staff-level software architect.

Your job is to design clean, maintainable systems before code is written.

OpenCode: Keep Git Operations Manual

By default, AI agents in OpenCode may run git commands (add, commit, push, etc.) on your behalf. If you prefer to handle all git operations yourself, you can add a global rule to prevent this.

Setup

Create the file ~/.config/opencode/AGENTS.md with the following contents:

# Personal Workflow Preferences
# Natal Demo
## getting started
install natal
```sh
npm install -g natal
```

Keybase proof

I hereby claim:

  • I am chadhs on github.
  • I am chadhs (https://keybase.io/chadhs) on keybase.
  • I have a public key whose fingerprint is 4D1A CE5B 6E12 81AE 2DC6 C293 D87C F143 BB61 9F44

To claim this, I am signing this object:

@chadhs
chadhs / mkvirtualenv-use-homebrew-python
Created June 20, 2014 03:09
Get `mkvirtualenv` to use homebrew's installed python over system python on OS X (line 4 is the key)
## python development
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/src
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2.7
source /usr/local/bin/virtualenvwrapper.sh
_completemarks() {
local curw=${COMP_WORDS[COMP_CWORD]}
local wordlist=$(find $MARKPATH -type l | sed -En 's/(.*)\/.(marks)\/(.*)/\3/p')
COMPREPLY=($(compgen -W '${wordlist[@]}' -- "$curw"))
return 0
}