No description
Find a file
mwiegand 38f07179c4
agents: Bootstrap-Logik ins Repo, ein Script für beide Maschinen-Keys
Die imperative Hälfte der Key-Architektur lag unversioniert in ~/.zshrc und
~/.local/bin, während die deklarative (.env.agents) getrackt war. Jetzt liegt
alles Agent-bezogene hier:

- agents/agent-env.zsh — SSH_AUTH_SOCK + agent-env(), gesourced von .zshrc
- agents/ensure-machine-agent — startet den Maschinen-Agent und stellt beide
  Keys sicher (ersetzt load-signing-key, das nur den Signing-Key kannte,
  während agent-env separat den Agent-Key lud)
- agents/README.md — Design-Doc, verschoben aus dem ai-Repo zum Code

.env.agents bleibt rein deklarativ, weil op run --env-file die Datei nur
parst und keinen Code ausführt — daher die Zweiteilung.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012aD7fG6BpN1HchyHeNXZb4
2026-08-04 23:37:45 +02:00
agents agents: Bootstrap-Logik ins Repo, ein Script für beide Maschinen-Keys 2026-08-04 23:37:45 +02:00
claude feat(statusline): reset countdowns, thinking fallback, color-grade percentages 2026-05-17 02:14:04 +02:00
.zshrc agents: Bootstrap-Logik ins Repo, ein Script für beide Maschinen-Keys 2026-08-04 23:37:45 +02:00
AGENTS.md docs: add repo usage and agent guidance 2026-04-19 16:06:54 +02:00
README.md add Claude Code statusline script 2026-05-12 22:59:51 +02:00

dotfiles

Shared shell and tool configuration.

Scope

Tracked files:

  • .zshrc — shared zsh UI behavior
  • agents/AGENTS.md — shared global personal preferences (agent-agnostic)
  • agents/AGENTS-claude.md — Claude Code wrapper (@AGENTS.md + @~/.claude/RTK.md)
  • agents/AGENTS-opencode.md — OpenCode wrapper (@AGENTS.md)
  • claude/statusline-command.sh — Claude Code statusline (dir, branch, model, thinking, rate limits)

This repo is intentionally small. Machine-specific setup stays local unless explicitly promoted into shared config later.

Local Setup

zsh: Local ~/.zshrc sources this repo:

source "$HOME/Projekte/dotfiles/.zshrc"

Claude Code & OpenCode: symlink the wrappers into each agent's config dir:

ln -s "$HOME/Projekte/dotfiles/agents/AGENTS-claude.md"        ~/.claude/CLAUDE.md
ln -s "$HOME/Projekte/dotfiles/agents/AGENTS-opencode.md"      ~/.config/opencode/AGENTS.md
ln -s "$HOME/Projekte/dotfiles/claude/statusline-command.sh"   ~/.claude/statusline-command.sh

The wrappers @-include the shared base agents/AGENTS.md; add agent-specific content directly in the wrapper file.

What Lives Here

Current shared config includes:

  • prompt styling
  • git branch display in the prompt
  • exit-code based prompt arrow color
  • zsh autosuggestions
  • prefix-based history search on arrow keys

Verification

Syntax check:

zsh -n ~/.zshrc
zsh -n ~/Projekte/dotfiles/.zshrc

Quick interactive prompt check:

zsh -i -c 'true; precmd; print -P -- "$PROMPT"'

Notes

Keep this repo focused on shared interactive shell UX.

Examples of config that should usually stay local:

  • secrets
  • host-specific paths
  • machine-specific SDK setup
  • one-off helper functions