diff --git a/home/.chezmoiexternals/attention-span.toml b/home/.chezmoiexternals/attention-span.toml new file mode 100644 index 0000000..9fa76df --- /dev/null +++ b/home/.chezmoiexternals/attention-span.toml @@ -0,0 +1,21 @@ +# Output styles from https://github.com/alexgreensh/attention-span (AGPL-3.0). +# Fetched at apply time rather than vendored, so no AGPL content lands in this +# MIT-licensed repo. Claude Code reads user styles from $CLAUDE_CONFIG_DIR. + +[".config/claude/output-styles/attention-kind.md"] +private = true +refreshPeriod = "168h" +type = "file" +url = "https://raw.githubusercontent.com/alexgreensh/attention-span/main/output-styles/attention-kind.md" + +[".config/claude/output-styles/rundown.md"] +private = true +refreshPeriod = "168h" +type = "file" +url = "https://raw.githubusercontent.com/alexgreensh/attention-span/main/output-styles/rundown.md" + +[".config/claude/output-styles/spartan.md"] +private = true +refreshPeriod = "168h" +type = "file" +url = "https://raw.githubusercontent.com/alexgreensh/attention-span/main/output-styles/spartan.md" diff --git a/home/private_dot_config/private_claude/private_output-styles/README.md b/home/private_dot_config/private_claude/private_output-styles/README.md new file mode 100644 index 0000000..eec6d20 --- /dev/null +++ b/home/private_dot_config/private_claude/private_output-styles/README.md @@ -0,0 +1,15 @@ +# Output styles + +Claude Code reads user-level output styles from `$CLAUDE_CONFIG_DIR/output-styles`, +which `../env.sh` points at `~/.config/claude`. Upstream's install docs say +`~/.claude/output-styles`; that is wrong for this setup. + +The styles here come from [attention-span](https://github.com/alexgreensh/attention-span), +which is AGPL-3.0. They are fetched at apply time by +`home/.chezmoiexternals/attention-span.toml` rather than committed, so no AGPL +content lands in this MIT-licensed repo. This directory exists only to own the +`0700` permissions the rest of `~/.config/claude` uses. + +Pick one with `/config` → *Output style* (writes `.claude/settings.local.json`, +per project) or set `outputStyle` in `~/.config/claude/settings.json` for every +session. Takes effect on the next `/clear` or new session.