AI Tools
The aider/ package provides AI pair programming with local Ollama models.
Contents
| File | Purpose |
|---|---|
|
Main configuration |
|
Model-specific settings |
|
Aider directory (not tracked) |
Installation
stow -t ~ aider
Configuration
| Setting | Value |
|---|---|
Model |
|
Architect Mode |
Enabled |
Edit Format |
|
Auto-commits |
Disabled |
Shell Commands |
Ask first |
What is Architect Mode?
Architect mode separates:
-
Architect - Thinks about the approach, plans changes
-
Editor - Formats the actual file edits
This dramatically improves quality with local quantized models.
Usage
# Start with current directory
aider
# Start with specific file
aider src/main.py
# Start with multiple files
aider src/*.py tests/*.py
# Read-only mode
aider --read-only src/main.py
# With specific model
aider --model ollama_chat/codestral
Key Commands (in aider)
| Command | Action |
|---|---|
|
Add file to chat context |
|
Remove from context |
|
Commit current changes |
|
Show uncommitted changes |
|
Undo last change |
|
Quit |
|
Show context usage |
|
Switch model |
|
Toggle architect mode |
Safety Settings
-
auto-commits: false- Never auto-commit -
auto-test: false- Never auto-run tests -
suggest-shell-commands: false- Ask before running shell commands -
dirty-commits: false- No auto commits for dirty state
Model Settings
The .aider.model.settings.yml file sets:
-
num_ctx: 32768- Extended context for large models -
Important for Ollama which defaults to 2048!
The claude/ package manages Claude Code configuration for ~/.claude/.
Contents
| File | Purpose |
|---|---|
|
Global instructions (772 lines) |
|
Permissions (56 allow, 5 deny), env vars, sandbox |
|
Lifecycle hooks (backup, validation, session start) |
|
Custom shortcuts (Ctrl+E, Ctrl+T, Ctrl+P, Ctrl+R) |
|
AsciiDoc attribute validator |
|
/deploy skill |
|
/worklog skill |
|
Documentation auditor agent |
|
Path-specific rules for *.adoc |
|
Path-specific rules for Neovim Lua |
|
gocryptfs credentials symlink setup |
Excluded (via .gitignore)
Runtime data not tracked:
-
.credentials.json- API credentials -
history.jsonl- Conversation history (18MB+) -
backups/,memory/,projects/,plugins/ -
session-env/,shell-snapshots/,todos/
Installation
# Stow claude package
stow -d ~/atelier/_projects/personal/dots-quantum -t ~ claude
# Verify symlinks
ls -la ~/.claude/CLAUDE.md
# Should point to dots-quantum/claude/.claude/CLAUDE.md
| Runtime data stays in place - only config files are symlinked. |
Credentials Setup (gocryptfs)
Claude credentials are stored in a gocryptfs-encrypted vault, NOT in the dotfiles repo. After stowing, run the setup script to create the symlink:
# 1. Mount your gocryptfs vault
gocryptfs ~/atelier/_vaults/encrypted ~/atelier/_vaults/mounted
# 2. Run credentials setup (creates symlink)
~/atelier/_projects/personal/dots-quantum/claude/setup-credentials.sh
# Or with custom vault path
VAULT_PATH=/custom/mount ./setup-credentials.sh
Expected structure after setup:
~/.claude/
βββ CLAUDE.md β dots-quantum (stow-managed)
βββ settings.json β dots-quantum (stow-managed)
βββ credentials.json β gocryptfs vault (setup-credentials.sh)
βββ .credentials.json (local, auto-generated by Claude)
The credentials.json symlink is NOT stow-managed because it points to a mounted encrypted volume that varies per machine.
|
See PRJ: Claude Code Features for detailed configuration documentation.
The opencode/ package provides OpenCode AI coding agent configuration, stowed to ~/.config/opencode/.
Contents
| File | Purpose |
|---|---|
|
Main config: providers, permissions, agents, formatters, MCP, features |
|
TUI config: Catppuccin Mocha theme, |
|
Global agent instructions (288 lines, adapted from CLAUDE.md) |
|
5 always-on instruction files (asciidoc, lua-nvim, bash-shell, d2-diagrams, python) |
|
5 agent definitions (3 subagents + 2 primary) |
|
3 custom slash commands ( |
|
Custom Catppuccin Mocha theme ( |
Providers
| Provider | Auth | Notes |
|---|---|---|
Ollama (Local) |
N/A |
Active default — Qwen3 30B MoE + DeepSeek R1 14B on RTX 5090 |
Anthropic |
|
Claude Sonnet/Haiku (after dsec setup) |
OpenAI |
|
O4-mini reasoning |
DeepSeek |
|
OpenAI-compatible API |
|
Gemini 2.5, large context |
|
GitHub Copilot |
|
Auto-registers after auth |
Agents
Primary (Tab-cyclable)
-
build — Default coding agent, full tool access
-
reviewer — Read-only documentation review (Haiku, no edit/bash/webfetch)
Subagents (@-invocable)
-
@doc-auditor — Audit docs for staleness, broken xrefs, attributes (Haiku, read-only)
-
@adoc-linter — Lint AsciiDoc for convention violations (Haiku, read-only)
-
@build-fixer — Fix all Antora build warnings (Sonnet, edit+bash)
-
@project-modularizer — Split monolithic PRJ files into partials (Sonnet, edit+bash)
Commands
| Command | Purpose |
|---|---|
|
Lint AsciiDoc files (dispatches to adoc-linter) |
|
Run |
|
Run |
|
Session statistics and model usage summary |
Permissions
60+ bash commands auto-allowed (git, make, awk, sed, jq, etc.).
-
Deny:
rm -rf /,rm -rf ~,bash -c,age -d,gopass show,curlwith data flags (-d,--data,-F,--form,--upload-file) -
Ask: docker, systemctl, ssh, scp, npx, websearch
-
Read/edit deny:
.env*,~/.secrets/,~/.age/
Installation
stow -R -t ~ opencode
Verify with ls -la ~/.config/opencode/ — should show symlinks to all config files.
Key Differences from Claude Code
| Feature | OpenCode Difference |
|---|---|
Rules |
Always-loaded (not file-type scoped) |
Hooks |
Plugins (JS/TS) — not yet ported |
Memory |
Not supported |
Undo/Redo |
Built-in ( |
MCP Servers |
Not yet configured |
Formatters |
Defined but commented out (shfmt, ruff, prettier) |
Global config |
|
Skills |
Cross-compatible — reads |