Skip to content

About

Six AI coding agents. One engineer in control. A reproducible Linux workspace for parallel delivery—with scoped commits, browser regressions, privacy-aware context and verification before shipping.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

896 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One engineer. Six AI agents. Proof in the commits.

I coordinate six concurrent AI coding agents across product fixes, infrastructure and developer tooling. Shared instructions, reusable automation, scoped changes and explicit verification turn those sessions into a repeatable engineering workflow. This reproducible Linux workspace versions the tools and policies behind it, alongside the desktop configuration that keeps it practical.

Approximately 90th-percentile AI-enabled engineering effectiveness among developers overall, including nonusers — subjective, unvalidated self-estimate. Assessment, original range and supporting evidence.

For recruiters hiring AI-focused software engineers, the proof is inspectable: shared Codex/Claude policy, privacy-aware session tooling, an evaluation report that publishes negative results, and scoped product fixes with browser regression contracts. Start with the receipts below, then explore the implementation and setup. Private notes, account data and raw session records stay outside this repo.

Tech Stack And Why Chosen

Layer Repo evidence Why chosen
chezmoi dot_config/chezmoi/chezmoi-template.toml.tmpl Keeps the environment reproducible across machines instead of trapping setup inside one laptop.
Codex CLI and tracked config dot_codex/config.toml Versions model, reasoning, trust, MCP, and session defaults so new Codex panes start from repo policy instead of memory.
AGENTS instruction chain dot_codex/AGENTS.md, with compact AGENTS.md and AGENTS.repo.md routing layers Keeps one inspectable policy body for planning, verification, commit hygiene, and docs sync instead of loading duplicated instructions.
Claude Code global config dot_claude/CLAUDE.md and dot_claude/settings.json Wires dot_codex/AGENTS.md into Claude Code globally via @path import so both Codex and Claude share the same behavioral baseline without a separate copy.
Local skills dot_agents/skills/ and dot_agents/skills/README.md Packages recurring jobs into reusable local capabilities shared across Codex (~/.agents/skills/) and Claude Code (~/.claude/skills/<name>/ directory symlinks) via a post-apply chezmoi script.
Ponytail Codex plugin run_onchange_after_install-codex-ponytail-plugin.sh.tmpl and dot_codex/config.toml Installs Ponytail (pinned to v5.2.0) so Codex prefers the smallest correct change and gets ponytail-review/ponytail-audit skills; trust its hooks once via /hooks.
Graphiti MCP with Neo4j dot_codex/config.toml, scripts/executable_codex, and docs/graphiti-mcp-codex.md Adds a retrievable memory layer for multi-session work where provenance and evolving context matter.
Shell and terminal tooling dot_config/fish/config.fish.tmpl, dot_tmux.conf, dot_config/st/config.def.h.tmpl, dot_config/kitty/kitty.conf, and dot_config/i3/config.tmpl Optimizes for terminal-first execution and multiple parallel panes, with kitty as the default terminal, st kept ready as the low-friction alternate, and tmux handling the heavier session workflow.
Python and Bash automation scripts/ and dot_config/fish/functions/refresh-config.fish Keeps repeatable operations small, inspectable, and version-controlled instead of burying them in chat or muscle memory.
Private-context workflow the vault placeholder, the session skill, and the command package Publishes the privacy-aware workflow and validation code without publishing the operator's notes, captures, attachments, or account data.

Table Of Contents

Engineering Receipts

Engineering signal Concrete proof
Reproducible AI setup One policy imported by Claude alongside tracked Codex approval, sandbox and agent settings.
Privacy-aware session reuse Source filtering and regression cases for sources becoming private.
Honest evaluation A capped prompt benchmark reports failures and no supported overall winner; upstream provenance separates adaptation from original authorship.
Scoped UI delivery A public notice change with a browser regression preserving the player iframe.
Concrete acceptance criteria A public grid sizing fix with 2×2 geometry checks at three viewport sizes.

The dated evidence review covers seven selected sessions across three projects. It records delivered changes, shared-checkout interference and unfinished work. The receipts establish AI-assisted integration and delivery; agent count describes concurrency, with no measured productivity multiplier attached.

Operating Model At A Glance

The most distinctive part of this repo is its tracked operating surface:

AGENTS.md
AGENTS.repo.md
dot_codex/
dot_agents/
plans/
second-brain/README.md

Those paths define how the AI layer behaves:

  • AGENTS.md and AGENTS.repo.md are compact compatibility layers that route assistants to one policy body.
  • dot_codex/AGENTS.md is the canonical merged instruction document that pushes Codex toward plan-first, verification-heavy engineering behavior. Procedural guides begin with a plain-language overview of their purpose and main steps before commands.
  • dot_codex/config.toml tracks model, reasoning, trust boundaries, MCP servers, and repo-specific developer instructions.
  • dot_agents/skills/ packages recurring work into reusable local capabilities.
  • plans/ is where non-trivial work becomes explicit, checklisted, and reviewable under the ExecPlan contract.
  • second-brain/README.md documents the boundary for an optional private vault. The vault itself, raw events, attachments, and migration ledgers do not enter this public repository.

AI Layer Highlights

The interesting changes in this repo are often workflow upgrades, not just dotfile tweaks. The current operating surface has a few high-leverage properties:

  • Instruction-chain upgrades can tighten planning, bug-fix discipline, documentation rules, and verification requirements across every new Codex session.
  • Tracked runtime defaults in dot_codex/config.toml change how new sessions start without requiring re-prompting.
  • Skill growth in dot_agents/skills/ turns repeated prompting into reusable local tools for shipping, research, browser automation, design work, docs lookup, and media tasks.
  • commit-plan-push planning-only mode makes commit hygiene inspectable: before anything is staged, it can review a dirty worktree the way a senior SWE would review a PR draft, separating concerns, flagging risky mixed changes, and turning messy local work into a coherent commit sequence.
  • The Graphiti MCP layer gives Codex a local temporal memory surface for longer-running, multi-session work.
  • dot_agents/system-design/ keeps a chezmoi-managed ~/.agents/system-design/ reference pack for ExampleProject-style architecture, coding, UI, source-lineage, Knowledge Base, and education-platform decisions.
  • README sync is manual-only: explicitly request the versioned recruiter-first sync skill to review public docs for alignment with setup, usage, command flags, and repo positioning.
  • Non-trivial work is expected to move through tracked plans instead of disappearing into chat scrollback.
  • Kevin uses native Firstmate with Codex: run Codex in /home/kevin/coding/firstmate and reuse its owning primary conversation. Firstmate itself is the CTO coordinator across projects, delegating changes to Codex workers. Durable role preferences use its private captain memory; task-specific push, merge and restart authority remains explicit.
  • The Second Brain package turns explicit focus, deterministic session capture, reviewed closeout, and copy-first migration into a tested workflow while its operator data remains private.

Core Components

1. Instruction Chain

dot_codex/AGENTS.md is the behavioral backbone shared across Codex and Claude Code. Root AGENTS.md, AGENTS.repo.md, and the deprecated AGENTS-BASE.md are deliberately small routing layers, so the same policy is not loaded and maintained twice.

  • dot_codex/AGENTS.md is the only canonical working instruction document for this codebase. Task handoffs show three direct commands with expected outputs first, then Verified, Use and Implemented summaries, in that order.
  • dot_claude/CLAUDE.md wires that same canonical document into Claude Code globally via an @path import. No separate Claude-specific copy is maintained.

That canonical document is not generic philosophy. It encodes concrete engineering behavior:

  • Plan mode for non-trivial work so larger tasks move through explicit steps, assumptions, risks, and verification.
  • Decorative emojis throughout human-facing CLI/script/helper output, including headings, progress, prompts, successes, warnings and errors. Text stays readable; --plain (or CLI_PLAIN=1 for legacy helpers) removes decoration. JSON/CSV, clipboard data and protocol output remain clean; NO_COLOR controls ANSI color. See the output guide for safe examples and scope.
  • Failing reproducers before bug fixes so changes are grounded in observed behavior instead of guesswork.
  • Living postmortems for unexpected task failures so the observed evidence, investigation, resolution, and verification remain reviewable in one record. Shared postmortem memory retrieves prior remedies before retries and keeps reviewed learning aligned with new or changed reports.
  • Explicit verification before done so completion is demonstrated with tests, diffs, logs, or clear manual checks.
  • Docs updates with behavior changes so README, plans, setup steps, and workflows stay truthful.
  • Small reversible diffs so changes remain reviewable and easy to back out.
  • Conventional Commit discipline so commit history communicates intent clearly.
  • A concrete definition of done so another engineer can verify the result without reverse-engineering the whole session.

This is where agent behavior stops being prompt folklore and becomes versioned repo policy.

2. Tracked Codex Defaults

dot_codex/config.toml makes each Codex session start strong instead of neutral.

It tracks:

  • the default model and reasoning effort
  • trusted local project paths
  • MCP servers
  • notification, status-line, TUI keymap, and default Vim-mode preferences
  • repo-specific developer instructions for plan and commit hygiene

That matters because a new Codex pane inherits the same defaults immediately. No re-briefing. No guesswork.

One concrete example is the repo-local Graphiti MCP entry: Codex can launch the local Graphiti checkout over stdio, while the detailed setup and validation workflow lives in docs/graphiti-mcp-codex.md.

3. Reusable Local Skills

dot_agents/skills/ turns repeated prompting into reusable capabilities shared across Codex and Claude Code. Each skill is installed to ~/.agents/skills/<name>/SKILL.md for Codex and symlinked as a complete directory at ~/.claude/skills/<name>/ for Claude Code via a post-apply chezmoi script. Directory links preserve optional references, scripts, assets, and metadata beside SKILL.md; Claude Code documents directory symlinks for this personal-skill layout. The full inventory lives in dot_agents/skills/README.md, but the main categories are more interesting than a flat list.

Git Workflow

Representative highlights:

Delivery workflows favor complete coverage within the requested scope, prioritize session-touched files and safe companions, and report ordinary check failures without abandoning eligible commits. Planning-only requests remain read-only. After each commit, Codex reports a high-level status overview in both the active plan (or docs/task-status.md) and its response, alongside direct verification commands that exercise the implemented behavior, with example expected output immediately after each command, verified results, remaining work, blockers and the next step. Every task completion also includes exactly 3 direct verification commands with working directory, sudo requirements and labeled expected output after each command, even when no commit or push occurs. This applies to documentation, configuration, analysis and planning as well as features. In Codex replies, runnable shell commands are standalone raw-text lines at column zero, one physical line per command, using valid fish syntax. Omit fences, inline backticks, list prefixes, blockquotes, prompt markers and continuation backslashes; keep all arguments and flags on that line. Code for reading, including source snippets, JSON, diffs and illustrative shell code, keeps normal language-tagged fences and meaningful indentation. Expected output has a separate labeled code block; explanations, working-directory and sudo requirements stay outside command lines. “Raw” describes command presentation, not a requirement to render the whole conversation raw. The existing raw scrollback startup setting is a supported copying option, toggled with /raw or Alt+R; it does not establish selective rendering. See the Codex configuration reference and the formatting verification plan. Verify actual selection and paste of a visibly wrapped command into a fresh fish terminal separately from visible Python, JSON and diff colors. Change supported rendering settings only when observed evidence satisfies both requirements; report exact installed-TUI limitations otherwise. Automated checks run before completion and any commit, and are reported separately.

The Codex $comm picker uses numbered display titles: Commit 1 Session, Commit 2 Plan & Push, and Commit 3 Dirty. The plan-and-push survivor also handles planning-only requests without Git writes. Restart Codex after the separately authorized install update if cached labels persist.

  • commit-plan-push makes a best-effort pass over the entire dirty worktree, separates safe changes into chronological commits, pushes once after the series, and reports residuals when a file cannot be safely shipped. Invoking $commit-plan-push authorizes planning, committing, and pushing. Its explicit planning-only mode returns safe groups, checks and exclusions without staging, committing or pushing.
  • commit-session makes a best-effort commit and upstream push of session changes and their minimum reviewed prerequisites. Missing scope metadata falls back to observed edits; routine scope choices need no confirmation. It records non-safety validation warnings, repairs truthful README findings, and ships independent safe work or a useful factual handoff when implementation is blocked. Unrelated work, secrets and failed mandatory privacy or hook checks remain excluded.

This category matters because the repo stores reusable guardrails for commit hygiene, session scoping, safe exclusions, and shipping discipline, not just aliases or workflow notes.

Design And Frontend

  • frontend-design builds frontend web UI from confirmed audience, use cases and brand context. Backend scripts, documents and data-only tasks use their own workflows.
  • brand-system-designer develops a repo-native visual identity, logo, typography, favicon and social assets.

The pinned local Impeccable umbrella covers web design critique, polish, accessibility and responsive design. shadcn supplies explicit component-library work, while Vercel best practices provides pinned React/Next.js performance guidance. The approved cull removes the separate local pass skills; see the design-skill guide for the managed install and its boundaries.

Coding And Long Tasks

  • grok-cli-handoff verifies remote-assistant authorization, checkout evidence and cooperative STOP.

  • skill-eval benchmarks a named skill with real tasks and human-calibrated blind comparisons.

  • next-tasks proposes a small set of independently verifiable tasks from current repository evidence.

  • context-handoff carries a saved brief, observable acceptance criteria, goal, evidence review and progress note across sessions, and preserves strict criterion-by-criterion handoff evidence.

Research And Output Control

Representative highlights:

  • postmortem-memory searches reviewed incident solutions before remediation and updates shared knowledge as postmortems change. Its read-only helper contract documents scan with repeatable --root, search QUERY, and full or targeted check --postmortem PATH, plus fixture --knowledge overrides. Exact copied content retains source aliases; verified fixes, workarounds, unresolved causes and changes awaiting live activation stay distinguishable.
  • ai-workflow-doctor turns instruction size, duplicate policy, local references, skill-catalog drift, and source provenance into deterministic text or JSON evidence. Its --check mode blocks objective errors while leaving semantic candidates for human review.
  • metaprompt creates and sharpens prompts using Sentry's pinned prompt-optimizer workflow, with an eight-section report and a separately saved optimized prompt. The authoring-only compiler and fresh-conversation runner both save prompt artifacts; the skill guide records the upstream comparison, usage, reviewed updates, and rollback. The benchmark report separates maintenance evidence from downstream trials and links the pinned fixtures and quota-limited replay harness. python3 scripts/metaprompt-benchmark.py dry-run previews its schedule without using model quota; verify checks source and fixture integrity. The maintained-repository selection compares three native skills from repositories with at least 1,000 stars, with linked skill-level maintenance diffs and equal create/sharpen/template/coding cases. Its completed benchmark recommends Sentry's prompt-optimizer: 14/16 versus Wshobson's 13/16 and Senior's 11/16. Raw and minimal instructions both reached 15/16 at lower cost; the report includes adapter defects and a sensitivity check for an ambiguous template. All 100 attempts used 754 inference requests. python3 scripts/metaprompt-selection.py dry-run previews the new capped schedule without inference; verify checks its pinned sources and fixtures. Replay phases and --jobs/--development-round options are documented in the report. The benchmark itself installed nothing; the later authorized replacement puts Sentry behind the existing $metaprompt invocation.
  • Metaprompt & Run ($metaprompt-run) uses that current compiler to improve and save the original request, then immediately starts a new Codex conversation with fresh context to execute the saved prompt. No extra go is needed. It keeps the task's constraints and normal permissions; missing inputs leave execution pending, and runtimes without the new-task tool report the limitation. $metaprompt remains available for prompt review alone.
  • feedback-memory carries forward durable user corrections through a repo-tracked feedback.log.
  • personal-context automatically informs relevant direction, scope, architecture, design, tooling, milestones, and collaboration choices through compact private briefs. Mechanical work needs no lookup. $personal-context still starts a thoughtful conversation; try $personal-context Let's discuss what makes a project worth pursuing for me. Useful durable statements and unconfirmed interpretations stay private. The storage helper offers topics, projects --query, brief, and explicit detail retrieval; normal catalogs and briefs default to eight records and 6,000 characters. Read-only project inspection indexes relevant tracked files whose latest modifying commit author is exactly example-user Mok, case-insensitive. Committed blob evidence must match HEAD and the working tree; untracked and modified source bytes are excluded. Summaries describe supported contributions and retain their authorship qualification. The source-backed technical summaries stay under /home/example/coding/personal-context/ai-context/project-knowledge.json, beside the personal context.json and rebuildable cache/topic-briefs.json. All real records and payloads stay in that external directory, outside tracked feedback, Second Brain, and Graphiti. Normal chezmoi apply installs the skill and implicit metadata; missing private storage supports empty reads and conversation.
  • readme-recruiter-sync checks install, usage, command flags, stack rationale, and recruiter-facing value on explicit request. It never runs automatically before commits or pushes.

This category matters because it makes repository knowledge, documentation quality, and output discipline persistent instead of fragile session state.

Browser And Research

  • playwright drives real browser navigation, screenshots, extraction and UI debugging from the terminal. Load the skill before browser automation or Playwright commands.
  • last30days researches recent community discussion and provides a source health check. Its imported package includes local provenance beside the source. Codex built-in imagegen and openai-docs remain available from the runtime; duplicate repo copies are retired.

Skill sources can include helper scripts, references, provenance and picker metadata. The 28-skill managed catalog consolidates ai-ux-deslop into frontend-design, including secondary-text inventory and an unbriefed comprehension review. The approved cull changes this repository's managed catalog; it does not delete installed or upstream copies. This follow-up also removed the unchanged installed ai-ux-deslop copy after verifying its committed hash. Start a fresh agent session after installation updates to reload skill routing.

4. ExecPlans

.agent/PLANS.md defines the decision-complete plan contract, and plans/ is where non-trivial work stays explicit. The contract requires assumptions, checkboxes, verification evidence, review notes, and matching plan updates in the same commits as the work they describe.

A representative plan such as plans/commit-all-dirty.md does not just say "commit the changes." It inventories the dirty worktree, groups changes into coherent commit boundaries, notes partial-staging concerns, defines verification after each step, and calls out concrete risks.

That is execution discipline you can inspect.

The point of keeping plans in the repo is simple: larger tasks should not live only in chat scrollback or memory.

5. Parallel Codex Workflow

The workflow separates four responsibilities, with the number of parallel sessions adapted to the work:

  1. Exploration: read the codebase, trace behavior, inspect docs, and surface constraints before editing.
  2. Implementation: make focused code changes once the path is clear.
  3. Review and refinement: look for regressions, weak assumptions, and cleaner solutions.
  4. Verification and docs: run tests, validate behavior, and keep documentation or plans aligned with the work.

Shared instructions, config defaults, trust rules and reusable skills keep session expectations consistent. Concurrent edits still require bounded ownership, scoped diffs and isolated validation; the dated assessment records the integration costs observed when several sessions share a checkout.

Second Brain Context Layer

The public repository contains the second-brain-session skill, the deterministic command package, and the full operator guide. It does not contain a personal vault. The placeholder at second-brain/README.md explains that boundary, and .gitignore prevents accidental note or attachment commits.

Operators provide their own private vault path and XDG state. Raw captures, recaps, reminders, migrations, and personal/project briefs remain outside this repository; only deliberately authored public examples should be committed. The included doctor, schema checks, approval gates, and copy-first migration workflow are the reusable product surface.

Graphiti Memory Layer

Graphiti is the memory and retrieval layer that sits beside the repo's instruction chain, local skills, and ExecPlans. In this setup it is not just a theoretical fit. It is a local MCP service that helps Codex keep longer-running work coherent across sessions.

The practical use case is straightforward:

  • preserve evolving facts about tasks, services, files, branches, and verification state instead of leaving them buried in chat scrollback
  • keep provenance back to the source episodes that produced those facts
  • support multi-session Codex work where exploration, implementation, review, and docs all need the same durable context

The local setup is intentionally repo-specific. Instead of relying on Graphiti's default HTTP transport, the working config launches Graphiti over stdio from /home/example/coding/graphiti/mcp_server, keeps runtime settings in that checkout's .env, and expects Neo4j on localhost:7687. That keeps the Codex-side config small and avoids the host-port 8000 collision that already exists on this machine.

The repo-level codex wrapper also starts the same Graphiti command in the background before handing off to the real Codex CLI. That sidecar is useful for making sure the command is already alive when you launch Codex, but it does not replace the actual stdio MCP child that Codex spawns for tool communication.

For the plain dotfiles bootstrap path, Graphiti is not required. For the repo's tracked codex launcher, it is part of the documented AI operating path.

The detailed setup, validation steps, and troubleshooting notes live in docs/graphiti-mcp-codex.md. The short version is:

  1. Keep Neo4j running on localhost:7687.
  2. Let Codex launch Graphiti through the graphiti MCP entry in dot_codex/config.toml.
  3. Use Graphiti as the temporal memory layer that complements AGENTS files, skills, and ExecPlans instead of replacing them.

Public-Safe Personal Values

This repository contains templates and neutral examples, not live account values. Keep machine and identity data in the untracked chezmoi configuration at ~/.config/chezmoi/chezmoi.toml, and keep passwords, tokens, SSH material, browser state, and private notes in their dedicated local stores.

Raw benchmark output under benchmarks/metaprompt/runs/ and benchmarks/metaprompt-selection/runs/ stays private and ignored. Do not publish request/response traces, installation/session/turn identifiers, cache keys or raw ledgers. The benchmark guides retain reviewed aggregate findings. The history auditor reports keyed runtime UUIDs as runtime_identifier; inspect pending files separately because a history scan does not inspect uncommitted bytes.

The mail and calendar templates expect these non-secret chezmoi data keys:

[data]
mailHost = "smtp.example.invalid"
mailPort = 587
mailTlsStarttls = "on"
mailAddress = "user@example.invalid"
mailRealName = "Example User"
calendarHost = "calendar.example.invalid"
calendarPath = "/calendars/example"
calendarUsername = "example-user"

The msmtp template reads its password at runtime from pass show mail/smtp; never add that password to TOML or Git. The optional private knowledge vault is also external: second-brain/README.md documents the boundary. Before publishing changes, run the repository's history auditor:

./scripts/executable_audit-public-history --scope all

The auditor defaults to reachable objects. Use --scope all to include unreachable local objects, --format text|json for human or machine output, --plain for ASCII status text, and --rules PATH for a mode-0600 private literal/path rule file that is never committed.

Local pre-commit privacy gate

Activate the local gate after cloning with python3 scripts/executable_privacy-gate install. Check installation with python3 scripts/executable_privacy-gate status; repeat install after changing the scanner. Installation snapshots the scanner into the effective Git hooks directory, preserves and chains an existing pre-commit hook, and leaves core.hooksPath unchanged. Linked worktrees share that directory. A configured shared hooks directory also shares this gate; choose the hook scope deliberately. The snapshot continues working if unstaged edits change the source scanner.

Before daily commits, python3 scripts/executable_privacy-gate check scans the entire exact index candidate, including unchanged files and names, rather than the worktree or added patch lines. Git commits invoke the installed gate automatically. It checks again after a preserved hook modifies the index. A refusal leaves the gate's HEAD/index inputs unchanged; repair the private data locally, stage the safe replacement or removal, and retry. Existing hooks retain their own side effects and output. The three commit skills require the same check; Second Brain checks its immutable tree before its hook-bypassing plumbing commit. Private vault paths are refused in this public checkout, including checkpoint candidates; keep the actual vault external.

Existing pre-push wrappers that call pre-push --hook-args remain compatible with scanner snapshot updates. They inspect newly introduced commit trees and stored commit identities/messages under the same public-metadata policy, including non-tip commits. Incomplete/shallow history and malformed update records refuse inspection. Any preserved prior pre-push hook receives the original arguments and stdin after privacy checks, and its refusal is respected. This compatibility path does not install a new pre-push wrapper or audit annotated tag objects.

Use --plain for ASCII output and --details for hashed location references. No matched values, source lines or filenames appear in gate diagnostics. Resolve references locally by hashing the exact path bytes with SHA-256 and comparing the first 12 hex characters. Findings exit 1; incomplete inspection exits 2. Nothing is uploaded, and no provider/model call runs. Large scans print elapsed progress every ten seconds. Unresolved index conflicts, unsupported submodules, missing objects, unavailable rules, and scanner failures refuse inspection.

Shared detection covers recognizable OpenAI/Anthropic, GitHub, AWS access-ID, Google API and Slack token shapes; credential assignments (including JSON keys), PEM/base64 private-key headers and SSH key material; email/IP identifiers in file content; and known keyed runtime UUIDs, including nested serialized JSON. The commit gate permits ordinary home-directory paths, Git author/committer name/email metadata, and recovery-named source/docs such as restart_recovery.py. These defaults apply to local LFS payloads too. They do not permit authentication secrets, arbitrary email addresses in file content, or explicit private-policy matches. The standalone history auditor retains its broader identifier diagnostics. Nil runtime UUIDs, example domains, documentation networks and exact placeholder values remain safe. There are no blanket fixture-directory exemptions. Candidate path rules still block raw benchmark runs, private credentials/vault data, and private recovery/, recoveries/ and backup directories, even when force-added.

Reviewed legacy source expressions, synthetic redaction fixtures and public recovery runbooks are listed in scripts/privacy_gate_approvals.json using only path references, full content SHA-256 hashes, specific categories and public review reasons. Each approval applies to those exact bytes at that exact path; edits require review if the content still triggers another blocked category. Ordinary recovery filenames need no approval; their contents remain fully scanned. Explicit private forbidden literals/path globs always override public defaults and approvals. Reviewed public portfolio contact details and incidental SVG/media email or IP patterns can use the same exact-path/content-hash approval mechanism. This does not approve credentials, provider tokens, private keys or explicit private policy.

There is no test-directory content exemption. The installer snapshots this manifest; missing or malformed policy blocks inspection. After a scanner/policy update, repeat install before relying on the installed hook.

Git author/committer identity emails are permitted as metadata without an allowlist; Git identity settings remain unchanged. Other secret patterns and explicit private prohibitions still apply to identities. The same email in arbitrary file content remains checked.

Optional private policy uses --rules PATH or local Git config privacyGate.rules. Keep that mode-0600 JSON file outside the repository. It accepts the history auditor's forbidden_literals and forbidden_path_globs; the gate deliberately ignores allowed_paths so private policy cannot weaken built-in restrictions. The legacy approved_public_identities array remains accepted and validated for compatibility, but identity metadata no longer requires it. Explicit forbidden literals and path globs still take precedence. Keep private literals and policy files out of tracked documentation.

Every candidate blob, including binary raw bytes, is checked. LFS pointers require a readable local payload with matching size and SHA-256; nothing is fetched. Missing payloads refuse the commit. Compressed, encrypted, visual, or otherwise encoded payloads are not semantically inspected. These heuristic patterns cannot detect every possible secret; review all public content. History auditing remains a separate operation and does not establish candidate safety.

This is local enforcement. --no-verify, another core.hooksPath, removing the hook, alternate scanners, and direct plumbing commits can bypass it. Commit messages and arbitrary custom identity headers are outside pre-commit coverage; review them and audit history separately. No CI or server gate is installed. Concurrent external index mutations outside Git's commit locking remain outside the local scanner's control.

When blocked: sanitize by default

Sanitize is the default response whenever the gate blocks a commit or a push (both check and pre-push print it as the next step). Agents run it instead of stopping, bypassing, or skipping the push.

  1. Never bypass the gate (--no-verify) or weaken its rules.
  2. Run python3 scripts/executable_privacy-gate sanitize (dry-run by default; it lists what would change and masks every value).
  3. Then run it with --apply only when the user, or a standing instruction for that run, allows it. Automated runs never pass --apply otherwise; for unattended night runs the /goal text must explicitly grant --apply for sanitize. Without that grant, report the dry-run plan and wait. Add --exclude to write ignores to .git/info/exclude instead of .gitignore.
    • Private-in-nature tracked files (gate-private paths, NIGHT_NOTE.md, review-notes.md, logs, run-*.sh, .harness/ status files, .env, keys) are ignored and untracked with git rm --cached; the working copy stays.
    • Useful files with sensitive values get a sanitized <name>.example copy with placeholders (<REDACTED_TOKEN>, <API_KEY>, <PRIVATE_KEY>, <EMAIL>, $HOME, <IP_ADDRESS>, nil UUID). The original is ignored and untracked; SANITIZED.md has a table of each placeholder, the file and line numbers, the kind of value it replaced, and what you must enter manually, plus restore steps (copy <name>.example to <name>, fill the placeholders, never commit the filled file). It never holds the values and is updated idempotently on later runs. Files that still fail the re-scan are listed for manual review.
    • The staged result is re-scanned and reported clean only when it passes.
  4. Review git diff --cached, commit the sanitized version, rerun check.
  5. Push only the feature/night branch. Sanitize never rewrites history: local never-pushed commits can be rewritten (git rebase -i, git filter-repo) after you confirm; already-pushed history needs Kevin's explicit decision.

Rollback with python3 scripts/executable_privacy-gate uninstall: it restores the preserved hook and removes only the gate bundle. If the hook has changed, removal refuses to overwrite it; review locally. If the bundle was damaged, reinstall from reviewed source before removing it. See the implementation record and the smoke checklist.

Install And Bootstrap

The minimum bootstrap path is git plus chezmoi.

If you want to use the repo's local AI operating layer, install OpenAI's Codex CLI separately first and make sure the real codex binary is on PATH. The official starting point is the OpenAI Codex docs: https://platform.openai.com/docs/codex.

If you want the repo's AI operating layer as documented here, add Codex CLI plus the Graphiti-backed prerequisites that the tracked codex launcher expects: a local Graphiti checkout and Neo4j reachable on localhost:7687.

git clone https://github.com/example-user/dotfiles.git
cd ai-cli-dotfiles

# Preview what this repo would write into $HOME
chezmoi -S "$PWD" diff

# Apply the tracked source state from this clone
chezmoi -S "$PWD" apply

The approved skill cull retires the Superpowers installer and discovery link. Existing home-directory copies and timers require the explicit cleanup described in managed design skills.

The same apply installs the Second Brain command, shared session skill, and user-level checkpoint units, but it does not enable the timer. The tracked source command remains available as scripts/executable_second-brain, and the installed second-brain command works from unrelated directories without sudo.

After the verified implementation is pushed, opt into the daily checkpoint with setup-second-brain-timer --enable. The setup command reapplies and validates only the installed launcher, exact runtime-package modules, and two user units before enabling the timer; it never invokes sudo. Chezmoi ignores generated Python bytecode, and setup rejects unexpected runtime-package root entries that could shadow the reviewed modules. On a clean first install, setup transactionally creates only the missing launcher, runtime-package, and unit parent directories; it preserves existing modes and rejects symlinks before the exact-file apply.

To use the AI layer after the dotfiles are in place, run the repo-managed wrapper directly, or make sure it is the codex command that wins on your PATH:

"$HOME/scripts/codex"

The tracked wrapper is installed from scripts/executable_codex. It ensures the Graphiti startup command uv run main.py --transport stdio --database-provider neo4j --model qwen3:14b is already running in the background before it hands off to the real Codex CLI.

Day-to-Day Use

In Kitty and tmux, Ctrl+A selects all retained text in the active terminal or pane, including offscreen history. Ctrl+Shift+C copies it; Escape leaves tmux copy mode. Ctrl+A replaces application line-start behavior. History is limited to 50,000 configured lines; existing tmux panes keep their original history limit.

On the i3 desktop, ubs (ubuntu-start) needs the wallpaper disk mounted at /mnt/linux-files-3. Use python3 scripts/enable-ubs-boot-mount.py --check to preview the UUID-based boot mount, then run sudo python3 scripts/enable-ubs-boot-mount.py --apply once from the repo root. The installer backs up /etc/fstab, refuses conflicting entries, and enables an on-demand boot mount without changing sudo permissions or formatting data. An unavailable disk does not block boot; wallpaper still requires it to be connected. ubs and i3 login apply ~/Pictures/Backgrounds/fn-jonesy-cool.jpeg through the pywal theme helper. ubuntu-start also applies a 200 ms keyboard repeat delay and 90 repeats/second without needing a Fish shell first. Nonempty XSET_DELAY and XSET_RATE environment values override their respective defaults.

On the ALC897 desktop, ubs and i3 startup also run ~/scripts/set-dual-jack-audio to unmute front headphones and rear green-jack speakers together without changing volume or restarting audio. Run it directly to restore both outputs; --plain gives ASCII output and --help shows usage. It requires alsa-utils, safely skips other sound cards, and uses the existing HDA retask boot mapping saved in the audio recovery notes. No sudo is needed for everyday use.

On PipeWire desktops, the managed Spotify virtual microphone returns after audio restarts. Route Firefox Spotify to Spotify Cable and select Spotify Virtual Mic in Chrome Discord Web.

Treat this repository as the source of truth for most of the environment layer. Keep machine and identity values private. refresh-config preserves modified managed local files with chezmoi re-add before applying source changes; templates and ignored private settings are preserved.

  1. Edit the tracked source files in this repo when the repo-managed copy is meant to stay authoritative.
  2. Preview the resulting home-directory diff with chezmoi -S "$PWD" diff.
  3. Run refresh-config to apply reviewed chezmoi files and regenerate shortcuts. Ignored private settings stay private; refresh excludes scripts, externals, and removals. Local file drift is copied into the repo before apply. The prior repo file is backed up privately under the refresh-config state directory before import, so simultaneous repo edits remain recoverable. Changed templates stop for a merge; rendered local values never replace portable template source. Here, scripts means chezmoi run hooks; ordinary managed files under ~/scripts/ still apply. A permission-only difference can stop refresh just like a content edit. Inspect the private log and the exact target diff before reconciling a conflict; keep the broad apply unforced. If ordinary and private_ MIME sources both exist with identical bytes, refresh moves the ordinary duplicate into a private backup under ${XDG_STATE_HOME:-$HOME/.local/state}/refresh-config/backups/, prints its path, and keeps the private source. Different contents or symlinks stop before apply; neither source is changed. Other duplicate-target types retain normal chezmoi error handling.
  4. Apply changes with chezmoi -S "$PWD" apply when you want the direct chezmoi path instead of the higher-level refresh helper.
  5. Preview the protected daily Git operation with second-brain checkpoint --dry-run; use --no-push only when you intentionally want the resulting checkpoint commit to remain local.
  6. Use setup-second-brain-timer --check to validate an installed setup, --enable to opt into the persistent 16:20 user timer, and --disable to stop it.
  7. sync-superpowers-release is a compatibility no-op after the approved cull.
  8. setup-superpowers-release-timer --check reports the disabled repo integration without inspecting live timers. --enable is refused; --disable explicitly stops an existing legacy timer without sudo.
  9. Run the repo-managed codex wrapper from the repo root when you want the tracked AGENTS chain, Codex config, local skills, and plans to shape the session.
  10. Keep the root README.md aligned whenever the repo's public workflow changes, especially for install steps, usage, command flags, the repo-based tech stack section, and recruiter-facing positioning.

For a context-aware work session, start with second-brain status --format json, confirm exactly one measurable ExampleProject outcome, and let the shared skill use focus and closeout only after confirmation. Use doctor --format json --check before trusting structural changes. Migration and protected upgrades always start with their read-only inventory, plan, or dry-run steps; see the operator guide before applying either.

Search saved conversations across projects with codex-search "cache.*refresh" or csg -iF "exact phrase" in fish. Use codex-search --pick "pattern" to select a match in fzf and resume in its recorded directory; Esc cancels. Use codex-search --recent for the newest 20 sessions without a pattern, or crg (codex-search --recent --pick) for sessions ranked by AI priority: urgent, actionable, unknown, waiting, then complete, with activity breaking ties. The preview explains each priority and labels stale or missing evidence. Use --sort recent for newest-first picking, or --recent --sort priority to list cached priorities without calling a model. Picker rows use compact Toronto timestamps (Oct 8 12:24), with full timestamps in the preview. Abbreviated paths and tight spacing keep titles visible; Ctrl-/ toggles the responsive preview. Guardian review and untitled rows use AI recap headlines, updating in the list as recaps arrive. Waiting rows show queue position and elapsed time; generating rows show a ticking timer. Guardian/session changes refresh titles, activity, dialogue and discovery in the background, then update recaps and ordering. The query and selected UUID remain stable while still matching. --no-summaries keeps cached recaps and local previews without model calls; Ctrl-G requests a recap for the highlighted session when generation is enabled. Use codex-search --help for options and examples, and the grouped smoke checks to verify the workflow. The recent picker opens available local metadata before full archive indexing finishes, including when another refresh holds the index lock. Cold caches begin with bounded native metadata; remaining native titles catch up in the background. Pending dialogue ranks as unknown or keeps visibly stale cached evidence. Indexing continues with concise progress and no per-file warning flood; Ctrl-G waits for pending dialogue. --details adds bounded background diagnostics to the preview. Python 3.11+ and ripgrep are required for pattern search; fzf is optional for selection. See the session search guide for tool-output searches, cache controls, and verification. Terminal searches show the newest 20 matches with a short highlighted excerpt; use --details for full blocks and --limit 0 for all results. Piped output includes every full block without color; recent listing defaults to 20 even in pipes. Pattern picking sees all matches; recent picking adds usable sessions as background indexing progresses.

Core Command Reference

For instruction-size work, run ./scripts/trim-benchmark --check --plain from this checkout. It compares the pinned current-main baseline (the original experiment is preserved) with current instructions, skill descriptions and on-demand bodies; --json includes per-skill metrics, --baseline PATH compares another snapshot, --ref REF measures committed blobs, and --repo PATH selects a checkout. --ref cannot be combined with working-tree budget checks. The reproducible comparison and session context diff separates committed results from uncommitted drafts. Pass results separate recurring context estimates from body/output savings. Budgets reject loaded-total growth, configured per-file limit breaches and lost skill paths; pinned imported bodies are preserved; trigger descriptions may be trimmed with frozen routing evidence. Apply lean-instructions when adding to AGENTS.md or adding/editing a skill; each pass records its techniques there.

Run ./scripts/sync-vetted-skills --check --plain with Python 3.11+ after adding or removing a skill. It compares local sources, configured external/plugin exports and detectable installed/built-in skills with the on-demand vetted reference. The mandatory admission gate records scored PASS/DENY verdicts before new skills or standing rules. Each local skill needs PASS; the explicitly retained, denied AI UX checklist is the documented overnight no-delete exception pending review. The canonical standing core routes matching tasks to mandatory procedure references; the preservation map proves original policy text survived the split. --json lists source identities and verdicts; --repo PATH selects the checkout. Piped/agent --check output is a summary plus every error; --details shows the full inventory. Human terminal checks retain the listing. These checks and the README/doctor helpers suppress decoration in pipes or agent environments. Missing or stale entries fail --check; no installer runs and no file is written. Configured external packages must be available locally; unavailable sources produce exit 2 rather than an assumed empty inventory. Configured entries and installed-only copies stay separate. Preserve dated cull and merge reasons in the reference when updating it in the same pass commit.

Before trimming descriptions, run ./scripts/trigger-eval --plain --check. The archived 50 public synthetic cases include single-skill, multi-skill and no-skill requests, with a pre-cull baseline of 40/50 exact-set matches (80%). The active current-main gate has54 cases covering29 retained skills:49/54. It preserves the original46 intake cases (42/46) and unchanged17 keeper cases. Historical corpus scores cannot be compared directly. This names-and-descriptions lexical proxy does not establish real model routing. --cases PATH selects JSON-compatible YAML, --baseline PATH selects the frozen accuracy snapshot, --repo PATH selects sources and --json emits aggregate/per-case-ID results. The check rejects a lower score or changed corpus/algorithm; description changes are allowed. Before each description pass, save its current JSON report outside the repo; use --baseline PATH pointing to that before-edit report for the after-edit --check. Comparing only with the original 80% floor would miss a decline following an improvement. Revert any decline, log the accepted score and refine against the same cases.

The file-size guard checks the exact staged authored files with python3 scripts/file_size_guard.py --plain; --report inventories HEAD sizes. New files are limited to 5,000 estimated tokens, existing oversized files may stay the same size or shrink, and reviewed exact-path legacy ceilings are explicit. Tests use disposable repositories. Hook installation is an explicit local action; it preserves existing privacy-hook enforcement.

The Lavish connection test runs a complete disposable review with one command and no input. It creates a preset dark page in a normal configured Codex session, discovers the actual creator, verifies its connection, sends the edit request through Lavish's browser SDK, and checks the heading, creator reply and resumed listener. Expected results appear in both terminal and chat. Only then does TEST COMPLETE close its owned test page/creator and return exit status 0; no Send or End click is needed. Other editors are untouched. Ctrl-C cancels early.

Run it on the Lavish host with Python 3, Codex login, Google Chrome and the separately installed lavish-axi CLI. It uses the configured model and normal approval review, spending one small agent session. It does not install tools. Progress shows stages and elapsed time rather than an indefinite idle heartbeat. Startup is bounded to two minutes; --timeout bounds each acknowledgement/edit phase separately (default 60 seconds, plus up to 5 seconds for in-flight I/O).

To verify an existing page without editing it, supply its URL and actual creator CODEX_THREAD_ID as --expect-thread. That mode submits only a labeled nonce and observes delivery/reply state without opening a competing feedback poll. Neither mode certifies unrelated editors or automatically reconnects them.

These are the core entrypoints the README depends on. The flags and options listed below are verified against local CLI help or script source in this repo.

Command When to use it Flags and options that matter
chezmoi -S "$PWD" diff Preview what the checked-out source tree would change in $HOME. -S / --source points chezmoi at this clone instead of the default source directory. --reverse flips the diff direction when you need the comparison the other way around.
chezmoi -S "$PWD" apply -n -v Dry-run an apply with extra detail before touching files in $HOME. -S / --source uses this repo as the source state. -n / --dry-run previews changes without writing them. -v / --verbose prints more detail.
chezmoi -S "$PWD" apply Apply the tracked source state from this clone into $HOME. -S / --source uses this repo as the source state. -P / --parent-dirs is useful when you apply a nested target and also want its parent directories handled.
codex-search Search decoded local Codex conversations across directories, print snippets and resume commands, or select a session to resume. Installed from scripts/executable_codex-search; fish abbreviations csg (search) and crg (recent picker). --recent lists newest 20 sessions without a pattern or model calls; --recent --pick opens available metadata before full archive indexing, then adds usable sessions in the background and ranks them by AI priority. Pending dialogue stays unknown/stale and defers recap generation; Ctrl-G remembers a request until ready. Malformed archive records do not flood the picker; --details exposes diagnostics. Guardian/session changes refresh automatically. --sort priority|recent selects the order; picking defaults to priority, listing to recent. Priority is urgent/actionable/unknown/waiting/complete with activity ties; the preview explains its reason and freshness. --summary-count N sets the automatic newest-session window (default 20, 0 disables it); Ctrl-G requests a selected recap. --summary-model MODEL overrides the configured model; --no-summaries prohibits all generation. -i ignores case; -F uses literal text; --all-text adds tool calls/output; --pick uses optional fzf and browses all matches. Terminal output defaults to 20 compact results; --details shows full blocks; --limit N caps printing (0 means all). Pipes default to all full blocks without ANSI; NO_COLOR disables terminal color; --plain also uses ASCII printed decoration and ASCII borders in the recent picker. --rebuild-index reparses sources; --clear-cache deletes this Codex home's private index. CODEX_HOME selects sessions, XDG_CACHE_HOME selects cache storage; --help, -h or no arguments show usage and examples. Requires Python 3.11+ and rg for pattern search, fzf (tested 0.44.1) for recent picking, and compatible Codex with login for recaps; no sudo to run.
python3 scripts/executable_lavish-connection-test Verify a local Lavish page reaches its generating agent before presenting it as connected. With no URL or expected ID, creates a preset static mockup and its own creator agent, then verifies the discovered session. Automatically sends and verifies the isolated test edit, closes its owned resources, and exits; no clicks required. Explicit URL and --expect-thread check an existing page; the expected ID is never guessed. --timeout sets each acknowledgement/edit deadline (default 60 seconds; an in-flight network read may add up to 5 seconds before failure); --plain uses ASCII output. Requires an active foreground listener and live localhost access. The test observes delivery/reply state without polling or consuming existing feedback.
fn-budget -d 187 -e 12 -a 5 Plan daily Sprite Dust, Portable Extractor, and Extraction Accelerator use in one table. Pass any combination of --dust, --extractors, or --accelerators. Dust shorthand is in thousands, so 187 means 187,000 and 187d means 187. Gizmo counts are whole items. The cutoff defaults to December 4, 2026 at local midnight. --cutoff YYYY-MM-DD overrides it, --as-of YYYY-MM-DD overrides today, --target 25k keeps a dust reserve, and --plain uses ASCII. dust-budget 187 still works. Requires Python 3.
refresh-config Apply reviewed chezmoi files and reload shortcuts. No flags; CLI_PLAIN=1 provides ASCII decoration. Excludes scripts, externals, and removals; reports elapsed progress, imports modified managed files before apply, and retries local drift. Identical ordinary/private MIME duplicates are backed up automatically; differing or symlink duplicates stop safely. Persistent template conflicts and other errors stop with diagnostics. Diagnostics remain in a private temporary log.
./scripts/executable_fix-vps-codex.sh Run locally to repair Codex npm permissions on a VPS using SSH keys, without sudo. Reuses compatible Node/npm and verifies a normal update through a second SSH session. Defaults to example-user@192.0.2.10; --host, --port, and --identity override the connection. --dry-run reads diagnostics without repair writes or npm execution; --help shows prerequisites. Requires remote Linux, Python 3.8+, bash or fish, and an already trusted host key.
sync-superpowers-release Report the retired Superpowers integration; existing upstream files stay untouched. --dry-run and normal invocation are compatibility no-ops. --help explains the retirement.
sync-design-skills Refresh only the retained Higgsfield plugin; Impeccable is pinned locally. --dry-run previews the retained external target. --bootstrap is a compatibility no-op. LINUX_CONFIG_SOURCE selects another checkout. It never authenticates accounts, generates media, spends credits, or upgrades the Higgsfield CLI.
setup-design-skills-timer Validate, enable, or disable the daily 05:00 design-skill refresh timer. Exactly one of --check, --enable, or --disable is required. --enable validates and activates the Persistent=true user timer without sudo.
setup-superpowers-release-timer Report the disabled repo integration or explicitly clean up a legacy user timer; no sudo is required. Exactly one of --check, --enable, or --disable is required. --check does not inspect live timers; --enable exits 2 without installing; --disable stops/disables the old timer without needing chezmoi or a source checkout.
./scripts/executable_ai-workflow-doctor Audit the repo's AI instruction and skill surface, or capture a stable before/after measurement for workflow optimization. --repo PATH selects the repository. --format text|json selects human or machine output. --snapshot PATH writes a deterministic JSON baseline; --compare PATH compares the current report with one. --verify-sources resolves declared local source archives when available. --check exits nonzero for objective errors while review findings remain non-blocking warnings. Piped/agent text is a summary; --details includes full diagnostics, --plain suppresses decoration. JSON stays complete.
./scripts/executable_apply-pywal-theme <wallpaper> Regenerate the active pywal theme through the repo-owned wrapper so wallpaper changes also refresh kitty and the i3 color resources this repo depends on. Pass an image path directly, or pass raw wal flags when you need that lower-level control. The wrapper runs pywal with --saturate 0.8 -e, keeps all text at least 4.5:1 contrast for the dark 90%-opaque terminal (7:1 for color7, foreground and cursor), and assigns six muted semantic ANSI colors with paired lighter variants and a modest wallpaper-background hue influence. If the dark background lacks 10:1 white-composite headroom, it is darkened only as much as needed; already-dark backgrounds stay unchanged. It reloads Xresources, refreshes running kitty windows when the socket is available, and regenerates the derived i3 palette file. Valid low-color extractions repeat their actual colors before readability repair. XCF images fall back to isolated GIMP visible-layer decoding cached by source hash; the source stays untouched and pywal uses the decoded PNG path. Missing GIMP gives an actionable error only when an XCF needs decoding. -R -n restores and repairs the cached theme without changing wallpaper.
./scripts/executable_verify-wallpaper-merge Verify terminal readability for wallpaper images across the collection and check whether non-editing images can safely merge into editing collections. --root PATH selects the collection root (default ~/Pictures/Backgrounds); --report PATH writes JSON, refusing existing files and paths inside the root/live cache (omit it for a unique temporary report); --plain uses ASCII and --details prints raw child diagnostics. Every supported image recursively under the root is checked, including root files, 4k, calvin-hobbes, and all bright/dim editing and non-editing folders; new images are discovered on each run and .git is excluded. The JSON includes absolute image paths, before/after palettes, per-role contrast ratios, failed checks, child commands and captured output. It checks 18 text slots at 4.5:1 (7:1 for color7, foreground and cursor) and the 12 accent roles for OKLab chroma .055–.105, lightness at most .86, .02 minimum OKLab distance, 12 unique colors and paired lighter brights; background diagnostics show whether the white-composite bound is preserved or darkened for 10:1 headroom. It also verifies pywal extraction, restore/exports and background preservation. Non-editing-to-editing collisions, ancestor conflicts, unknown files and symlinks in merge sources, missing directories, and empty collections block, including duplicate names for identical files. shuffle.txt is skipped and left behind; unrelated non-image files outside merge sources stay as metadata. It never moves files or changes the live palette. Rerun immediately before moving; the check does not certify colored selection backgrounds or application-owned truecolor. Exit 0 means images-only merge is safe, 1 means checks/blockers failed, and 2 means setup failed.
./scripts/executable_install-chatgpt-linux Download and install the official ChatGPT desktop app package for a supported Linux desktop. No flags. Supports Ubuntu 24.04/26.04, Debian 13, and Fedora 43/44 on x64 or ARM64. It prints the selected official package URL, then prompts for sudo only to run apt install or dnf install.
./scripts/executable_install-tmux-tpm.sh Install or fast-forward the TPM plugin manager, correct the tracked tmux bootstrap path when needed, and reload an active tmux server. --help prints usage. With no flags, it clones or fast-forwards TPM under ~/.tmux/plugins/tpm; restart tmux if no server is active, then press prefix + I to install plugins.
./scripts/executable_directory-sizes [--depth N] [DIRECTORY] Show allocated usage in a nested directory report with provisional Dust indexing feedback. Defaults to current directory and display depth 1; depth does not limit scanning. --threads N, --json, --apparent-size (logical, with different hardlink/directory semantics), and --backend PATH are supported. Install pinned Dust with ./scripts/executable_setup-directory-sizes --prefix /tmp/directory-sizes-tools; use --backend /tmp/directory-sizes-tools/bin/dust. No sudo or source writes; reported errors/interruption withhold totals. See setup, accounting and measured limits.
./scripts/executable_largest-day-file-size DIRECTORY Show the three local modification dates whose regular files have the largest combined sizes. Scans recursively, skips symlinks, and prints up to three lines such as 2026-08-21 30.5 GiB, largest first. Sizes use binary units; equal totals choose the earlier date. Requires Python 3, needs no sudo, and exits with an error for an empty or invalid directory.
./scripts/executable_backup-pc backup Create a standalone full-system recovery backup of Ubuntu 24.04 amd64 UEFI, offline by default. See the dated-bundle backup and restore quickstart. Requires sudo and, by default, read-only ext4 root/home plus FAT EFI mounts beneath --source-root /mnt/source; --destination /mnt/backup/system-backups selects backup storage. --dry-run previews coverage and exclusions without writing. Uses xz -9e for system.tar.xz; --resource-percent 75 (default, integer 1–100) selects that share of available CPU threads and a compressor-memory ceiling based on currently available RAM. This is a budget, not an exact utilization target; home rsync is unchanged. New bundle directories use local MM-DD-YY dates (same-day extras get -02, etc.) and retain .incomplete until publication. Home stays browsable in normal home/ files with metadata and integrity verification. Use an ext4 backup filesystem; FAT/exFAT/NTFS are rejected. Includes installed state and personal data; omits runtime contents, known caches including Snap app revision/common caches, its destination and unrelated mounts. --live --source-root / permits the mounted running system and marks the bundle live-nonatomic; services keep running. excludes prints the embedded policy. Generated artifacts belong to the invoking sudo user; copied home ownership stays intact. access --bundle PATH --user example-user repairs access to older bundles (requires sudo). Legacy PROFILE tar-root and PROFILE home remain partial backups.
sudo ~/scripts/backup-pc backup --live --source-root / --destination /mnt/usb-8tb/sys-backup Back up this running machine to the mounted backup HDD. Add --dry-run to preview without writing. Requires the same supported root/home/EFI layout and Linux backup filesystem. Root, home and service data are copied at different times; this is not a snapshot or an application-consistency guarantee. Terminal output shows root/home progress bars, elapsed time, estimated remaining time and the current file; root/EFI progress is an estimate and copying is followed by integrity verification. Timestamped phases, filenames and warnings/errors are written to the bundle’s private backup.log, readable by the user invoking sudo; use tail -f /path/to/BACKUP.incomplete/backup.log while it runs. Changed/vanished tar-file warnings are checksummed in warnings.json; vanished home files are skipped after one best-effort rsync pass and recorded in the warnings, while read/permission/I/O errors fail visibly incomplete. sync-home --bundle PATH --source-root / --live reruns only home copying into an incomplete bundle, preserving the root tar and log; it keeps the bundle incomplete. Restore the complete bundle from a live USB.
backup-pc restore Run the script included in a completed backup from a live USB to restore onto an unmounted replacement whole disk. Currently blocked: the interactive erase prompt receives EOF; see the confirmation incident. Requires sudo, --archive /mnt/backup/BACKUP/system.tar.xz and --target-disk /dev/disk/by-id/TARGET-HDD. --dry-run verifies and previews without destructive operations; --root-size 80 or 80GiB overrides root size. Requires the complete bundle including intact home/ and its index; verifies both components, protects source/backup/running disks, requires exact ERASE <resolved-device-path> confirmation, then replaces every partition with EFI/root/swap/home. See the guide for supported layouts, dependencies and the disposable-VM boot check; Secure Boot has not been boot-tested.
python3 scripts/enable-usb-8tb-automount.py --check Preview power-on and on-access mounting of the existing 8 TB disk at /mnt/usb-8tb. Run once with sudo python3 scripts/enable-usb-8tb-automount.py --apply to back up/update fstab, install the UUID-specific udev rule, and reload configuration. Supports --plain; refuses conflicting entries and never formats or unmounts the disk. Current mounts are preserved; on-access activation may wait until reboot. Verification.
bash scripts/hdd-init-wizard.sh Diagnose a USB SATA dock and explicitly initialize one selected disk as GPT/ext4, then mount it by UUID. Run as your normal user; the wizard calls sudo for privileged steps. --help shows usage; --dry-run shows read-only diagnostics and a plan without writes. The interactive path blocks system and mounted disks, requires exact device and erase phrases, backs up /etc/fstab, and checks mount -a. Requires parted, smartmontools only for optional SMART data, and standard Ubuntu disk utilities.
./scripts/executable_concat-timestamped-videos DIRECTORY OUTPUT Join top-level camera clips; optionally normalize to landscape and check joined clip starts. Default order is capture time (Pixel filenames/iPhone metadata); --sort mtime uses oldest modification first. --list-only writes OUTPUT_STEM.ffconcat.txt. --landscape reencodes all selected clips to common 16:9 SDR H.264 High/yuv420p at a fixed frame rate and 1/90000 video time base, with AAC 48 kHz stereo. It honors embedded rotation, fits portrait clips with side bars, joins normalized video with continuous reencoded audio, rejects non-monotonic DTS warnings, verifies geometry, and writes one PNG per joined segment start plus OUTPUT_STEM.review/index.html. Add --resume to keep validated per-clip files and an input/settings manifest in OUTPUT_STEM.work; rerun the identical command to reuse completed clips or a matching final output. A lock prevents concurrent jobs; changed sources/settings/cache or unrelated existing outputs are refused. Keep the work folder until the result is accepted; originals stay untouched. Open that page to check upright orientation; the script cannot infer upside-down scenes from pixels or detect later rotation. Correct metadata mistakes with repeatable --rotate "FILENAME=180" (clockwise 0/90/180/270 after metadata rotation) and a new output name. --clips FIRST SECOND selects a pair; legacy --reencode still normalizes that pair using its first clip dimensions. Without these flags, compatible streams use fast stream copy. Normalization is lossy, tone-maps HLG to SDR, loses HDR/Dolby Vision metadata, and needs disk space for temporary normalized clips beside the output plus the final file. Progress continues during encoding; --details shows raw diagnostics and --plain uses ASCII status text. Supports case-insensitive .mp4, .mov, .m4v; excludes nested folders/symlinks, preserves sources, refuses unrelated existing output/review paths, and needs no sudo. Example (capture order): ./scripts/executable_concat-timestamped-videos /mnt/usb-8tb/concerts/olivia-rodrigo /mnt/usb-8tb/concerts/olivia-rodrigo-normalized.mp4 --landscape --resume.
./scripts/executable_i3-screenshot Capture an i3 region or focused window with maim, save the PNG and copy it using xclip. Region selection uses the shaders in dot_config/slop/ to shade the surrounding desktop. [region|window] [directory]; defaults to region capture under ~/Pictures/screenshots/desktop/unsorted/, named screenshot-YYYY-MM-DD_HH:MM:SS.png. Escape cancels selection without replacing the clipboard. Requires maim, xclip and xdotool, with the tracked shaders deployed to ~/.config/slop/.
./scripts/executable_screenshot-all-monitors Save one combined scrot capture of the full X virtual desktop, covering every active monitor in one image. No flags. Saves to /home/example/Pictures/screenshots/desktop/unsorted/screenshot-YYYY-MM-DD_HH:MM:SS.png. SCREENSHOT_ALL_MONITORS_DIR, SCREENSHOT_ALL_MONITORS_SCROT, and SCREENSHOT_ALL_MONITORS_DATE override the destination, capture binary, and timestamp binary for tests or alternate hosts.
./scripts/executable_setup-st.sh Render the tracked st config, sync it into your st source checkout, and install the compiled terminal you actually want to use. --source-dir points the script at a non-default st checkout path. --skip-install only refreshes ~/.config/st/config.def.h plus the source-tree config.def.h and prints the exact sudo make -C ... install command instead of running it. --clone-if-missing clones the official upstream source from https://git.suckless.org/st into the target checkout path before syncing and building.
~/scripts/codex-notification-activate Activate the optional notification hook after applying sources. Restarts only your current session's Dunst bus owner, clearing its history/queue; --open-kitty also opens a fresh Kitty process while preserving existing terminals. Requires deployed notification files, Dunst and dbus-send; no sudo. Does not enable sound.
i3blocks notification modes Left-click 🔔Notis for visuals and configured audio; middle-click 🔇Silent for visuals only; right-click 🔕DND for both off. Silent mode persists locally without changing clip, voice or volume settings. Explicit previews bypass mute; already playing audio may finish.
codex-notification-sound speech-volume [0–100] Set and remember TTS volume; omit the number to show it. Speech only; default75%; browser, system and intro-clip levels unchanged.
codex-notification-sound discord-speech enable|disable Read Discord channel notifications and Vesktop DMs locally as sender says message with Ryan, without a clip, at the default 75% speech volume. Independent, default-off switch; status reports activation. smoke discord, smoke discord-unicode, smoke discord-isolates, smoke discord-dm, smoke discord-links, smoke discord-link-only, smoke discord-saucybot and smoke discord-unrelated send synthetic desktop probes. Matches complete SENDER (#CHANNEL, SERVER) titles from any app after removing invisible direction isolates; reads once, announces only sender sends link/tweet for links and SaucyBot, and skips Twitter Cap Bot; sender-only DMs require observed appname vesktop. Speaks ビットコイン・スタッカー as bitcoin without changing popups. See usage and rollback.
~/scripts/codex-notification-sound Play a local MP3, optionally followed by the exact Codex conversation title or one sentence about a queued question using Voice Contributor high at the celebrate audition pace (0.95), generated locally while the clip plays. Popup audio and speech are separately disabled until configured. set PATH, preview [--title TEXT] [--speech-only], disable, status, `speech enable
~/scripts/setup-codex-notification-speech Install and verify the optional English title voice. --install downloads pinned Piper 1.8.0 and en_US-Voice Contributor-high into an isolated XDG data environment; --check verifies offline WAV synthesis; --plain uses ASCII and --details shows download logs/paths. Python venv/pip required, no sudo; installation needs internet, playback does not. Does not enable speech.
~/scripts/codex-voice-auditions Compare ten numbered local voices with upbeat lines and the question clip before each sample; includes a committed local celebration clip (see sound configuration) reference. Default plays all ten; --list, --samples, --voice NUMBER [NUMBER ...] (names/IDs also accepted), `--sample all
rintro → ~/scripts/Voice Contributor-intro Play example-user's saved Voice Contributor introduction without the question clip. No arguments plays local intro clip (see sound configuration) immediately; --text "WORDS" synthesizes custom Voice Contributor high speech only, pace 0.95; --help prints usage. Autoloadable fish command, available in existing shells after deployment; mpv required, custom speech also needs installed Piper. Local-only, no sudo.
~/scripts/kitty-scrollback-smoke Open a separate Kitty window to check dragging, paging, selection, wrapping, and streaming history without sudo or model requests. Kitty retains up to 500,000 native history lines; tmux keeps its separate 50,000-line pane limit. --lines defaults to 10000; --stream-lines to 300; --interval to 0.1 seconds. --emit prints in the current terminal instead. Press Enter to start streaming and again after it finishes to close the test. See the scrolling smoke checks.
~/scripts/tmux-scrollback-smoke Open an isolated Kitty/tmux fixture for held-edge multi-screen selection and drag/release/Ctrl+Shift+C copying. --lines defaults to 3000, with long logical lines for wrapping checks; --app-mouse checks application mouse ownership; --plain gives ASCII output. Escape returns to live input; Ctrl+D at empty input closes only the fixture. No sudo.
./scripts/executable_setup-aerc-mail.sh Install aerc mail prerequisites or add one Gmail/Outlook.com account at a time without storing addresses, app passwords, client IDs, or OAuth tokens in Git. --install may prompt for sudo to install shared packages. --init-pass GPG_KEY_ID initializes an empty password store. --add-gmail prompts for a Gmail app password; --add-outlook prompts for a Microsoft app client ID and launches device-code OAuth; --status checks configured accounts without printing credentials; --dry-run previews write actions without changing files or starting OAuth.
sudo ./scripts/executable_setup-neovim-python-completion.sh Upgrade Neovim from Ubuntu's older package, install the repo's vim-plug Neovim stack including nvim-lspconfig, and install the Python language server used for strong completion and signature help. --neovim-version pins a different official release. --skip-plugins skips vim-plug bootstrap and PlugInstall. --skip-lsp skips uv tool install --upgrade basedpyright.
python3 scripts/executable_mpv-count FILE (or interactive cgc for the configured concert clip) Play with hardware decoding, the fast profile, and 1920x1080 scaling; ordinary mpv sessions also save local-file counts through an automatic hook. --top shows a ranked text list with medals and aligned play counts; --count FILE reads one saved total; --plain gives ASCII output. Extra mpv options follow FILE --. Requires mpv and Python 3. The wrapper counts playlist reloads exactly; ordinary native file loops use wrap detection, so a manual rewind in its detection window may also count. Totals live in $XDG_STATE_HOME/mpv-count/plays.sqlite3 (default ~/.local/state), keyed by resolved path; renames start a new total. Partial plays count.
sudo ./scripts/executable_update-chrome.sh Refresh APT metadata and upgrade Google Chrome when a newer candidate is available. --check prints installed and cached candidate versions without modifying the system. Normal runs refresh metadata before deciding whether to upgrade, then re-read the candidate after installation. Installed versions equal to or newer than the candidate succeed using Debian version ordering. Prints initial activity and actionable query errors. Relaunch Chrome afterward to use the updated binary.
"$HOME/scripts/codex" or codex when that wrapper wins on PATH Start Codex in the repo so the tracked instruction chain and config take effect. The repo wrapper also ensures the Graphiti sidecar command is running first. -C / --cd sets the repo root when you launch from another directory. --search enables live web search for tasks that need current external information. CODEX_WRAPPER_GRAPHITI_CWD and CODEX_WRAPPER_STATE_DIR override the wrapper's Graphiti checkout path and state directory.
codex mcp list --json Verify which MCP servers Codex is loading from the tracked config. --json emits machine-readable output that is easier to inspect or diff.
second-brain status plus capture, focus, and closeout Retrieve targeted context, keep raw session text private, and persist only explicitly confirmed public-safe focus or closeout records. status --format text|json; capture --kind raw-session|personal-decision --payload PATH_OR_DASH; focus --payload PATH_OR_DASH; closeout --payload PATH_OR_DASH. Payload shapes live in the routing reference.
second-brain sessions Refresh the private cross-project Codex digest or review it on request; preserve unresolved checks and explicit dispositions outside Git. review defaults to five recent directories with three sessions each; --limit 1..20 changes the directory count, --refresh-limit 0..20 caps recap generation (default three per directory, capped at 20), full recaps, evidence, check history, session metadata and coverage are shown by default (--details is compatible); interactive text opens in bat/less with emoji cues (r refreshes discovery/recaps; q quits) and ongoing elapsed progress on stderr; --no-pager prints directly, --plain provides ASCII text, and --all selects eligible history (cannot combine with --limit; default refresh budget 20). refresh --limit 1..20 remains a background queue budget (default 20). Both accept --format text|json; resolve --payload - accepts confirmed checked/dismissed JSON on stdin. Review requires no ExampleProject outcome; see the digest guide.
setup-second-brain-sessions-timer Independently manage the persistent 16:00 America/Toronto private digest refresh with no notifications. Exactly one of --check, --enable, or --disable; no sudo. Does not activate checkpoint or deferred timers. Disable retains private state.
second-brain doctor Audit the tracked vault for structure, privacy, ownership, import-frontmatter, hard-link, and Git LFS errors without mutating it. --format text|json selects output. --check exits 1 when objective errors exist.
second-brain migrate Inventory and plan selected external text, copy one explicitly approved batch into the archive, or verify its private resume ledger. Subcommands are inventory --source PATH with repeatable absolute roots, plan --inventory PATH, apply --plan PATH --approve SHA256, and verify --ledger PATH. Follow the copy-first procedure; no initial migration is automatic.
second-brain upgrade Preview append-only protected-vault changes and exact-byte dated backups. --dry-run prints the current batch and approval SHA. --apply --approve SHA256 accepts only that unchanged batch; the current schema-v1 preview has zero pending operations.
snapshot-codex-config Validate live Codex configuration without copying it to public source. --dry-run retains the same read-only behavior. Validates ownership, size, TOML, likely secrets, exact mapping, and filesystem boundaries; checkpoint also binds the expected repository.
second-brain checkpoint Validate and ship one allowlisted daily Second Brain/Codex-config checkpoint on the current branch. --dry-run performs candidate preflight without staging, committing, or pushing; it does not prove the later immutable-tree or shipping gates. --no-push commits after all gates but leaves the commit local. With no flags, the command explicitly uploads reachable LFS objects and pushes only the exact configured-upstream ref without local hooks, tags, or force.
setup-second-brain-timer Validate, enable, or disable the persistent 16:20 systemd user checkpoint timer without sudo. Exactly one of --check, --enable, or --disable is required. --enable applies the launcher, exact runtime-package modules, and two unit targets before daemon reload and activation; unexpected package-root files, directories, or symlinks fail closed, while an owned real __pycache__ directory is allowed. Recovery-oriented --disable does not require chezmoi or a source checkout.

To inspect short real joins across every adjacent pair in a directory, run python3 tests/check_concat_boundary.py --directory /mnt/usb-8tb/concerts/logic. It uses the directory's FFmpeg concat list when one exists, or scans top-level video files otherwise. --concat-list PATH selects a specific list and --seconds N changes the sampled duration (default: 4 seconds per source). It retains joined samples and boundary contact sheets under /tmp for visual review and reports FFmpeg timestamp warnings. No sudo is needed.

For a full stream-copy join, inspect both output stream durations and decode frames across the join. FFmpeg can exit successfully while incompatible video time bases collapse later video frames into a fraction of a second; see the Logic and iPhone join incident.

Reproducibility Through Chezmoi

The productivity gain is not trapped inside one laptop.

This repo is chezmoi-managed, which means the environment itself is tracked as source state and can be applied back into $HOME through the standard chezmoi workflow. The same files that shape the Codex workflow, including AGENTS documents, Codex config, skills, aliases, templates, and supporting dotfiles, are part of a reproducible setup rather than fragile local state.

That means the workflow is portable when the setup changes, and the leverage is inspectable because you can see exactly which instructions, defaults, packaged skills, and plans are doing the work.

Typical commands are still the usual ones:

chezmoi -S "$PWD" diff
chezmoi -S "$PWD" apply

The difference is what is being reproduced. It is not only shell comfort. It is the operating environment for AI-assisted engineering.

Rest Of Repo

The rest of the repository is still a full desktop-dotfiles setup, not just an AI CLI config repo. The major non-AI surfaces break down like this.

Shells And Shared Shortcuts

  • dot_bashrc and dot_zshrc keep the fallback shells in sync around shared aliases, colors, and shell framework hooks.
  • aliases/key_aliases.tmpl, aliases/key_dirs.tmpl, and aliases/key_files.tmpl form the canonical shortcut layer. scripts/executable_sync-shortcuts regenerates shell aliases, fish abbreviations, and ranger mappings from those sources.
  • fish-alias accepts an abbreviation followed by a command or path: $fish-alias cbn codex-time burn day adds cbn "codex-time burn day" in the existing work section. It previews the diff, comments active conflicts in place, preserves quoted hashes and spaced paths, normalizes pasted /home/example directory prefixes to ~, and refreshes changed mappings, then commits and pushes the focused change to the configured upstream without another confirmation (unless local-only delivery is requested). File requests keep the requested name (btw ~/coding/btw.md becomes btw) through explicit nvim commands; existing file-catalog shortcuts also use nvim and retain their legacy n prefix. Activation follows current chezmoi conditions. The example is not installed automatically. See the isolated checks. From this checkout, python3 scripts/executable_check-fish-abbr runs a disposable local expansion/removal trial; add NAME 'EXPECTED' to check an installed abbreviation after its mapping is refreshed, before commit/push. The check validates fish syntax and Space expansion without executing the mapped command. Use --plain for ASCII output or --details for failure diagnostics. Run the disposable trial after checker/generator changes or for diagnosis; no scheduled or shell-startup run is needed.
  • dot_config/fish/config.fish.tmpl is the main interactive shell setup and loads the large helper surface under dot_config/fish/functions/.

Editor, Terminal, And Media

  • Monitor-aware Kitty fonts preserve each terminal's main-display size (new terminals default to19pt) and scale it to 0.743× on DVI-D-0 and 0.595× on HDMI-0. The i3-started user service preserves manual zoom and watcher restarts without changing global DPI. ~/scripts/kitty-monitor-font status inspects metrics; once applies once, watch follows i3 and restore stops the service and restores baselines. --plain gives ASCII output; --json emits one-shot results. Verify with ~/scripts/kitty-monitor-font-smoke --plain (--details for diagnostics), which uses isolated Kitty/Xvfb fixtures; physical calibration still needs review.
  • Workspace buttons use 15px left padding, a 10px number/icon gap, and 30px right padding at the current 135 DPI; changing DPI requires recalibrating the Pango spacers.
  • The 4K i3 bar uses available space beside workspace buttons for status blocks. Music uses 70% of the bar font, keeps title-artist order, and ellipsizes first when crowded, before the calendar compacts or hides.
  • The DP-2 4K bar uses a 46.2667-point font at 135 DPI, about 7 pixels smaller than its original 50-point setting; other bar font sizes are unchanged.
  • dot_config/kitty/kitty.conf is the default terminal config, and the i3 bindings now open kitty first for normal shells and Codex. Ctrl+Shift+Up/Down and Ctrl++/Ctrl+- adjust the focused Kitty window's font by one point; Ctrl+= also increases it. The i3 gaps shortcut is Ctrl+Super++ (Ctrl+Shift+0 still removes gaps). Each Kitty window has an i3 titlebar; Codex shows its activity indicator and a live “what are we doing?” summary (3–5 words, at most 36 characters), such as “Categorize card transactions”. Agents check their own native task name at each turn, resume, compaction recovery and before progress updates; they change it when the current task or phase differs. Pasted historical session reports do not define the active title. This also renames the saved conversation. These summaries depend on agent instruction compliance. Launch a new Codex process after refresh-config (including codex resume) to pick up the title settings/instructions; switching threads inside an existing TUI does not establish that the startup settings reloaded. If the native title tool is unavailable, use /rename manually. Fullscreen hides i3 titlebars. See the overview checks. It retains 50,000 lines with a rounded, draggable scrollbar and the existing 0.9 background opacity. Shift+PageUp/PageDown moves through history; Ctrl+Shift+End returns to the newest output. Codex defaults to tui.alternate_screen = "never", so normal launches and resumed sessions keep long transcripts in native terminal history. Super+C uses the current shell's Codex installation and also passes --no-alt-screen. Restart or resume an existing session after applying the setting. The fixture uses these same Kitty settings without overrides; use a fresh window and the scrolling smoke checks after applying changes; tmux pane history still uses tmux copy mode. dot_config/st/config.def.h.tmpl remains the alternate st template with the repo-preferred font, wal colors, opacity, clipboard shortcuts, and selectable local scrollback, while the repo-owned st-terminal launcher still resolves st or stterm at runtime on hosts where the binary name differs.
  • scripts/executable_apply-pywal-theme is the repo-owned wallpaper and theme entrypoint. It wraps wal, boosts saturation, brightens unsafe terminal text, refreshes kitty, regenerates contrast-safe i3 bar colors, and keeps the rest of the tracked wallpaper shortcuts on one consistent path instead of sprinkling raw wal -i calls through the config. All i3 bars use an 80% black translucent backdrop so status text stays readable across wallpapers, including Alt+R changes. The readability adapter uses the existing pywal Python installation and sRGB relative luminance. Every text slot meets at least 4.5:1 against the dark background and its black/white 90%-opacity composites; color7, foreground and cursor meet 7:1. Twelve ANSI accents (color1–6 and color9–14) use six stable semantic hue families with paired lighter variants, OKLab chroma .055–.105 and lightness at most .86. The generator targets chroma .085 and normal lightness .75 (increasing only for 4.5:1 contrast), with bright variants .035 lighter. A wallpaper-background hue adjustment of at most 8° keeps the theme connected to the image without scrambling ANSI roles. Body text is neutral gray. These are design bounds, not a comfort score. The background stays unchanged when white text has at least 10:1 contrast over the white 90%-opacity composite; insufficient backgrounds are darkened to leave room for muted text. Vim uses the explicit pywal background, and st uses its special background entry. The same correction runs on fresh generation, low-color extraction, cache reuse and -R/legacy -r restore. When ImageMagick cannot decode an XCF, GIMP renders visible layers to a content-addressed PNG under the pywal cache; pywal and the wallpaper setter then use that PNG, leaving the source untouched. Missing GIMP blocks only an XCF that needs decoding and reports an install/export remedy. The wallpaper verifier checks every supported image recursively under the root, including both editing and non-editing directories; .git is excluded and new images are picked up on each run. Its JSON report includes per-role contrast/colorfulness evidence and background-adjustment diagnostics. Lower opacity, colored selection backgrounds, application-owned truecolor and direct calls to upstream wal are outside the text guarantee. See the comfort policy and verification evidence.
  • dot_tmux.conf is the multiplexing layer with a custom prefix, mouse mode, TPM plugins, a status line, and copy-mode mappings that push selections to xclip. New panes keep 50,000 history rows; Shift+wheel browses pane history without holding a mouse button, even in mouse-aware apps. Hold a left-drag at the pane's first text row to extend the selection through older screens without wheel events. Release, then Ctrl+Shift+C copies the persistent highlight while keeping the viewport in place; Escape returns to live input. A history-mode status hint shows the shortcuts. Plain wheel works at a shell; Alt+wheel remains supported. Native Kitty selection copying is preserved; release Shift before dragging to select tmux-owned history. Copy detection supports tmux sharing a foreground process group with a fish launcher. tmux 3.4 text dragging selects rather than moving a scrollbar; Kitty's native thumb cannot expose tmux-owned history. See the tmux gesture checks and run ~/scripts/tmux-scrollback-smoke (or --app-mouse) in an isolated window. With the separately prepared ~/.local/opt/tmux-3.8/bin/tmux, add --scrollbar to preview native pane scrollbars without restarting existing sessions. Use scripts/executable_install-tmux-tpm.sh to install or update TPM and reload an active tmux server before using prefix + I to install its plugins.
  • dot_vimrc.tmpl plus dot_config/nvim/init.vim define the main editing environment across Vim and Neovim. Vim keeps the shared editing defaults and snippet workflow, while Neovim layers a Python-first Blink completion and basedpyright LSP stack on top via nvim-lspconfig.
  • dot_config/mpv/, dot_config/zathura/, and dot_config/neofetch/ round out the terminal-centric media and system-info stack.

Window Manager And Desktop UI

  • dot_xinitrc.tmpl, dot_Xresources.tmpl, and dot_Xmodmap control X startup, DPI, fonts, keyboard remaps, and wallpaper theming.
  • scripts/executable_apply-desktop-display-layout saves the three-monitor desktop order used by i3: 2048px left, 4K middle, and 1080p right.
  • media-screensaver adds a separate X11 conveyor across all three live outputs. Install with ./scripts/executable_media-screensaver install, then run ~/scripts/media-screensaver service for a supervised idle monitor or preview (fish abbreviation ss, i3 Alt+Shift+S or Super+Shift+S) for immediate playback. i3 starts the service at login, and systemd restarts it after an exit. daemon remains available in the foreground. Each launch fills the three outputs with one video and two photos when both types are available, then advances the conveyor every ten seconds. Compatible H.264 and HEVC clips use NVIDIA hardware decoding when available, with software fallback. Oversized video frames are scaled to fit within 1920×1080 before rotation and display. --media DIR selects a recursive photo/video library, --video-only selects only videos for a preview, and --seconds N bounds a preview; --report PATH records item IDs/timestamps; --plain and --details control output. status, probe and demo expose screen-motion readiness, codec checks and disposable media. The idle monitor compares full-color 4K samples outside the i3 bar. Video orientation metadata is honored automatically; orient opens a separate review chooser, or orient --file FILE reviews one video and saves a private additional rotation without rewriting the original. setup-screensaver-timer installs a separate daily 10:00 AM local-time user timer after updating the launcher; suspend can delay playback. Fish abbreviation sofss pauses idle playback and turns displays off until that next launch. sofs HOURS instead schedules one launch after that many hours (for example, sofs 2 or sofs 0.5), replacing the daily schedule; reboot cancels the delay. Input can wake displays early. Run sofss to restore daily 10 AM scheduling. At launch the timer powers displays on and resumes idle monitoring before playback. Scheduled playback tolerates a missing browser bridge and prevents automatic display blanking while it runs. Automatic activation waits five minutes without input or visible movement on the middle 4K monitor, excluding the i3 bar. It samples locally in memory; no Chrome extension is required. Non-bar animations count as activity; still scenes may be missed. Fish abbreviation ssof selects black displays after the same five quiet minutes. Keyboard or mouse input wakes them. Run ~/scripts/media-screensaver idle-playback to restore automatic media playback. While running, the idle service prevents competing automatic display blanking so Hevin playback can appear; stopping it restores normal blanking timeouts. See installation, browser enablement and limitations.
  • flavibot-browser opens the FlaviBot music player in Chrome with a separate ~/.local/share/flavibot-chrome data directory. Run ~/scripts/flavibot-browser after refresh-config, then sign in once in that window. It takes no arguments and reuses that directory on later launches. Regular Chrome profile-picker profiles do not isolate media players. Reserve this window for FlaviBot; use your ordinary Chrome window for YouTube and other sites. See the short usage guide.
  • The middle 4K music block uses now_playing_mpris to prefer playing tracks over paused tracks. Ties prefer Spotify, then mpv, then FlaviBot. Playing mpv therefore appears while Spotify is paused; left-click controls the displayed player. Spotify without usable track metadata does not hide eligible playback. mpv needs the distro mpv-mpris plugin (Ubuntu package of the same name); reopen existing mpv windows after installing it. The plugin can also be loaded from ~/.config/mpv/scripts/mpris.so for a user-local installation. It polls every five seconds using Python 3 and systemd's busctl with JSON support. The helper resolves each browser's D-Bus owner to its process and checks the exact dedicated data directory. Ordinary Chrome media, including YouTube, is ignored even when playing while FlaviBot is paused. Spotify takes priority over the dedicated FlaviBot browser only when their playback states tie. No artist/title regex is required, so title-only songs remain eligible. With no eligible player, the block clears. Songs display as Title - Artist, or just the title when no artist is available. Long media filenames shorten from the beginning, keeping their ending and extension visible. Playing tracks use a compact, optically raised color ▶️ button; paused tracks use the matching ⏸️ button. This isolates the browser process, not websites within it: keep YouTube out of the dedicated FlaviBot window. No Discord bot or token is needed. Left/middle/right clicks control the displayed player when supported; stale or changed-track clicks do nothing. Global media keys remain Spotify-specific. The helper has no CLI options; run ~/.config/i3blocks/scripts/now_playing_mpris to inspect its three-line output. NOW_PLAYING_COLORS_FILE overrides the pywal palette path for diagnostics; click state is private under ${XDG_CACHE_HOME:-~/.cache}/i3blocks/. Apply tracked changes with refresh-config and restart i3 in place to reload the bar command. See the desktop smoke checks.
  • dot_config/i3/config.tmpl is the main desktop control plane for workspace movement, app assignments, launcher bindings, display and audio shortcuts, and layout control. Workspace labels use native color emoji inspired by their terminal, browser, tools, video, chat, upload, journal, editing, music, server and gaming symbols. Compact labels omit separator/trailing spaces (for example, 2💻); native minimum button widths leave about 15px side padding at the current font/DPI. Workspace numbers and all select, move-window and launch shortcuts are unchanged. Super+M (left Super is X11 keycode 133) toggles speaker mute/unmute and refreshes the volume block. Both it and the mute media key use ~/scripts/audio-mute to show 🔇 Audio — Muted or 🔊 Audio — Unmuted in one two-second Dunst popup that updates in place. Notification failure does not fail the audio toggle. Hold Alt+Super (Windows key) and press 1–9, then 0 for Redshift temperatures of 1800K, 2300K, 2850K, 3350K, 3900K, 4400K, 4950K, 5450K, 6000K, and 6500K. Even kelvin steps span 1800–6500 K, rounded to the nearest 50 K. Super+0 selects 6500 K. Super+grave or Alt+Super+grave removes the filter. Alt+number still switches workspaces; Right Alt (X11 keycode 108, Alt_R in Mod1) uses the same 1–9, 0 shortcuts for workspaces 1–10. Super+1 or Super+F11 selects workspace 11; Alt+Super+1 sets 1800 K. Super+2–0 also selects the corresponding Redshift presets. Ctrl+Alt+Up/Down increases/decreases temperature by 250 K (cooler/warmer), bounded at 1000–6500 K. Presets, rds, rx and login share the saved temperature. The first adjustment defaults to 6500 K if no value has been saved; direct external Redshift commands are not tracked. Redshift appears as 🌡️ 4500 K in the leftmost status position on every monitor. Scroll up for +150 K (cooler), down for −150 K (warmer). Other clicks do nothing. Wheel changes update the bar silently; keyboard and direct helper operations keep their notifications. The controller’s --no-notify flag suppresses a popup for an individual helper invocation. It refreshes the saved manual target each second, including keyboard presets and reset; it is not a hardware-temperature reading. Backend or state errors show 🌡️ ERR. ~/scripts/redshift-control status reads the target without changing state, applying Redshift or notifying. Successful helper operations show 🌡️ Redshift — 2100 K (using the applied temperature) in Dunst. Rapid adjustments edit the same two-second popup in place; missing or failed notifications never fail the temperature change.
  • dot_config/i3blocks/ plus dot_config/dunst/dunstrc and dot_config/picom/picom.conf cover the status-bar, notification, and compositing layer. The volume block left-click unmutes and right-click mutes; middle-click sets 15% volume, and scrolling adjusts volume by 3%. Active blocks use native color emoji (speaker/headphones/display, thermometer, music notes, calendar and notification bells), with matching laptop battery, signal and brightness icons. Values retain pywal color7; Redshift rereads that palette on each update and falls back to #cbe4ff if unavailable. Paused DND remains red. Compact color playback buttons remain beside the music icon; music shortens first, then the date shortens when needed to keep that icon visible, and compact time uses a clock icon. Icons have 20 px of space before their values, using Pango spacing rather than a monospace blank; the shared status wrapper adds about 25 physical pixels of transparent right padding beside 25 px separators, shifting room toward the trailing side. It accounts for DPI-scaled borders when fitting the 4K song. No additional assets or fonts are required. The secondary (left desktop monitor) bar includes a clickable Notis/DND indicator immediately left of volume; it refreshes notification pause state every two seconds. Notis uses the same wallpaper theme color as volume/date; paused DND stays red. Left-click enables notifications; right-click enables DND. DND also suppresses automatic Codex, Discord and Grok TTS/intro audio; explicit previews remain available and an already playing phrase may finish.

Productivity, File Management, And Scripts

  • scripts/hdd-init-wizard.sh provides an interactive, explicitly confirmed GPT/ext4 initialization path for a USB SATA disk. Run bash scripts/hdd-init-wizard.sh --dry-run first; then run bash scripts/hdd-init-wizard.sh as your normal user to select a disk. The wizard uses sudo for disk and fstab changes and never installs packages.
  • yt-dl downloads one YouTube video with audio at yt-dlp's best available quality, without a resolution cap or MP4 preference. Downloads default to /mnt/linux-files-3/yt-vids; override with -o DIR. Uses lowercase kebab-case title-only filenames without IDs or JSON sidecars. Shows live download percentage, speed, and ETA, then immediately checks the saved resolution/frame rate against fresh formats and reports whether 4K was verified; see usage, dependencies, and offline/live checks.
  • dot_taskrc and dot_taskopenrc set up Taskwarrior and Taskopen with contexts, urgency tuning, sync targets, and note workflows.
  • dot_config/ranger/ contains the file-manager workflow, including custom commands, preview logic, plugins, and the shared key-mapping layer generated from the aliases templates.
  • scripts/ holds the automation layer behind the desktop: wallpaper shuffling, dmenu helpers, audio sink changes, pass integration, backups, package installation, and small terminal utilities.
  • dot_config/chezmoi/chezmoi-template.toml.tmpl is the host-data entrypoint for machine-specific toggles that feed template logic across the repo.

That broader dotfiles surface is still substantial, but the README stays centered on the AI-assisted engineering workflow because that is the most distinctive and actively evolving part of the repo right now.

Desktop notification text

Dunst uses Hack Nerd Font Mono 23.25 pt, 1.5 times the previous 15.5 pt. After refresh-config, run ~/scripts/codex-notification-activate to restart Dunst, then ~/scripts/notification-font-test for Codex and Discord sample popups with large text throughout. Notifications render about 669 px wide on the current 135-DPI desktop (467 logical pixels plus frame and automatic scaling). Height follows the text up to 600 logical pixels, preserving readability rather than forcing a 16:9 crop. Add --compare to include the smaller old-size reference. Use --app codex or --app discord for one sample and --plain for ASCII terminal output. Samples last 15 seconds and avoid the codex-kitty audio rule. Requires Python 3 and notify-send; no sudo.

Terminal/Codex popup titles and bodies render **bold** as bold text; literal HTML and Markdown inside code remain literal. Run ~/scripts/notification-markdown-test --activate-all to activate existing reachable Kitty instances and send a native bold sample. Use --case literal for escaping/code checks, --case plain for plain-text delivery, --plain for ASCII output and --details for activation diagnostics. New Kitty processes load the callback automatically. This covers strong emphasis rather than full Markdown or other apps' native notifications.

Migrate an existing private checkout

Use migrate-ai-cli-workflow to replace ~/linux-config with an independent HTTPS clone of this repository on main. The old checkout and its linked worktrees remain private recovery material; no old Git objects, branches, hooks, or configuration are imported. Review pending edits first, rehearse with disposable fixtures, preview, apply, then verify.

The default and --dry-run inspect without writes. --apply requires reviewed content hashes supplied through a private --review manifest; unreviewed edits stay in the archive. --state-dir defaults to ~/.local/state/ai-cli-workflow-migration (0700). --verify checks repository identity, accepted bytes, pending content, local settings, and archived worktree links. --rollback uses that recorded directory and refuses to overwrite later edits. After a failed attempt reports rollback, preserve its recovery directory and select a new --state-dir for retry; pass that same directory to all later verification/rollback commands. Use --details to identify rejected relative paths without printing their contents. --plain provides ASCII output; --details never prints rendered settings or raw diagnostics.

A review manifest has a files object keyed by relative destination path. Each entry contains sha256 for the reviewed source bytes and base_sha256 for the sanitized destination (null for a new file). An optional absolute source selects a privately prepared, sanitized overlay. Templates and sensitive paths cannot be imported. Hashes bind a human content review; scans do not establish that every possible secret is absent.

The migration extracts missing mail/calendar identity data privately from working local settings, then renders before cutover. Live Git/Codex, Claude integration and mail/calendar files remain local through migrationPreservedTargets in untracked chezmoi data. Neutral example configurations, including local project contracts, never replace working private values. Private migrationOffline data suppresses external-template network evaluation; installers, externals, and removals stay excluded. Review those hooks individually before any later deliberate use. Backups cover managed files, links and directory modes, not arbitrary installer effects.

No sudo is needed. Live cutover needs write access to the checkout parent, local configuration, and linked worktree Git metadata. It does not commit, push, revoke credentials, or delete the archive. Treat the recovery directory as sensitive. See migration smoke checks and the implementation record.

For portable home-storage offload, see the guide. The reviewed helper requires an explicit --destination mount path; machine-specific mount settings stay outside Git.

Migration concurrency checks compare file content and logical index/recovery entries, excluding harmless Git stat-cache refreshes. New private journals retain initial and changed fingerprints; --details reports only changed categories/counts. The read-only preview also rejects changes observed during inventory. A clean preview covers its sampled interval; finish or pause other sessions before the live rename. Never bypass a material-change refusal.

License

This repository is licensed under the MIT License.

You may use, modify, and redistribute it, including for commercial work, as long as the copyright and license notice stay with copies or substantial portions of the material.

Vesktop uses ClearVision alone with the existing wallpaper and a dark Quick CSS overlay. After syncing, reload with Ctrl+R; see the Vesktop smoke checks. ClearVision imports upstream styles over HTTPS, so offline or delayed loading may show default styling.

Wallpaper selection and history

The i3 wallpaper shortcuts now draw from all images recursively under ~/Pictures/Backgrounds, including root, 4k, calvin-hobbes, bright/dim and editing/non-editing folders. Alt+R, Ctrl+Alt+Q/W/Y (Ctrl+Shift+Q/W on x1-carbon) share this pool. The explicit black-background shortcut and startup selection stay separate. shuffler -i DIRECTORY filters image extensions, ignores .git, metadata and incomplete downloads, and removes stale cache entries; generic shuffler DIRECTORY behavior is unchanged. New images join when the current shuffle cycle regenerates.

Run ~/scripts/wallpaper-history to see successful theme applications in time order, with the newest at the bottom. The apply helper records automatically; consecutive restores of the same wallpaper do not add duplicates. Use --plain for ASCII output. History is private local state under ${XDG_STATE_HOME:-$HOME/.local/state}/wallpaper-history/; it starts now and cannot reconstruct earlier wallpaper use. Direct feh or upstream wal calls bypass tracking. XCF fallback applications can show their decoded cache PNG.

About

Six AI coding agents. One engineer in control. A reproducible Linux workspace for parallel delivery—with scoped commits, browser regressions, privacy-aware context and verification before shipping.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages