Skip to content

ariobarin/compass

Repository files navigation

Compass

Reviewed source for my human-owned Codex setup.

Its central theme is reduction: preserve capability while reducing the context, duplication, state, and maintenance overhead required to use it well.

This repo is intentionally an allowlist, not a backup of the whole Codex home, user skill home, or Claude home. The live Codex directory contains auth, logs, sessions, caches, databases, generated plugin state, browser state, and machine-specific runtime paths. Those are not portable and should not be committed.

Hosted Codex web settings, cloud task history, repository connections, and workspace connector installs such as Slack or Linear are also out of scope for this repo. They are service-side state, not portable files.

For the philosophy behind this repo's shape, see philosophy.md.

For public use, treat this repository as a worked example of a reviewed portable Codex setup. Read CONTRIBUTING.md, SECURITY.md, and SUPPORT.md before copying its files or proposing changes.

Layout

  • codex/AGENTS.md: portable source for the live global AGENTS.md in the active Codex home, usually ~/.codex/AGENTS.md. Keep only session-wide defaults there. Keep AGENTS.override.md local, and keep project AGENTS.md files in the target repo.
  • AGENTS.md: repo-local maintenance guidance for this portable config repo. Use this for Compass process and review rules.
  • codex/keybindings.json: portable keyboard bindings.
  • codex/hooks.json and codex/hooks/: reviewed Codex hooks installed into the live Codex home. Hooks require /hooks trust review after install.
  • codex/agents/: reusable global custom agents installed into the live Codex home. Project-specific custom agents belong in the target repo.
  • codex/skills/: reviewed source for reusable user skills installed into $HOME/.agents/skills, excluding system and plugin cache skills. Project-specific .agents/skills belong in the target repo. Broader sharing should usually happen through a plugin.
  • Claude Code skills and agents are installed into $HOME/.claude from the reviewed codex/ source at install time (listed in [claude].derived_skills and [claude].derived_agents). There are no hand-maintained claude/ source files in the repo. See workflows/claude-config.md.
  • codex/config.review.toml: reviewed scalar config contract overlaid into the live config.toml during install and update. Keys absent from the fragment, including generated and machine-local state, are preserved.
  • workflows/: repo-side operating notes for recurring maintenance work. These are not installed into a live Codex home, user skill home, or Claude home. Start with workflows/README.md to select the matching workflow. Use workflows/addition-intake.md before promoting new portable artifacts. Use workflows/compass-review-program.md when auditing installed skills, agents, hooks, and maintainer guidance for pruning or rerouting. Use workflows/codex-restart-recovery.md for restart-only recovery of unfinished local Codex sessions. Use workflows/which-llm-plugin.md for the durable which-llm plugin install and update route.
  • local-docs/: repo-local maintenance learnings that are not installed into a live Codex home, user skill home, or Claude home.
  • manifests/portable-files.toml: the install allowlist, repo-only list, and local-only denylist.
  • manifests/plugins.json: external plugin marketplaces and plugins that the reviewed install keeps present without tracking generated plugin state.
  • manifests/tool-surfaces.md: repo-side review notes for tools that can touch local or external state.
  • scripts/: repo-side snapshot, diff, install, and health check helpers.

Common commands

Preview the difference between this repo and the live install targets:

.\scripts\diff-live.ps1

Check the repo for obvious portability mistakes:

.\scripts\doctor.ps1

Preview local Codex sessions that would be resumed after a restart:

.\scripts\codex-restart-recovery.ps1 -DryRun

Check whether live Codex, user skill, and Claude files match the portable allowlist and ask Codex to report active instruction sources:

.\scripts\verify-live.ps1

Install reviewed portable files and overlay reviewed Codex config into the live Codex home, user skill home, and Claude home:

.\scripts\install.ps1 -Apply

Fetch latest main, fast-forward the checkout, install reviewed portable files and config, and verify the live allowlist:

.\scripts\update-live.ps1

Refresh the repo from the current live allowlist:

.\scripts\snapshot.ps1 -Apply

Without -Apply, snapshot.ps1 and install.ps1 run in review mode and explain what they would change, including exact reviewed config key paths.

Scripts use -CodexHome for Codex-home files, otherwise $env:CODEX_HOME, otherwise %USERPROFILE%\.codex. They use -AgentsHome for user skills, otherwise $HOME\.agents. They use -ClaudeHome for Claude-home files, otherwise $HOME\.claude.

Rules

  • Keep this repo small and boring.
  • Every durable addition should delete, merge, move, derive, or mechanize something, or explicitly justify its recurring cost.
  • Copy ordinary files into normal Codex locations. Avoid symlink-based setup.
  • Treat every key in codex/config.review.toml as authoritative during install while preserving every live key absent from the fragment.
  • Keep AGENTS.override.md and rules/ local unless you deliberately decide they are reviewed portable policy.
  • Do not commit secrets, auth files, SQLite state, logs, session history, caches, browser profiles, generated plugin caches, or machine runtime paths.
  • If an automation should become portable, capture it as a skill, workflow, or reviewed config change, not by tracking live automations/ state.
  • If you intentionally author a plugin, keep the plugin source and marketplace metadata in a normal repo path or dedicated plugin repo, not in live cache directories.
  • Keep plugin install routes in workflows. Keep installed plugin cache and generated marketplace state local.
  • Keep machine-specific values in ignored local files or in live config only.
  • Keep skill descriptions concise. Put detailed instructions in SKILL.md and references.
  • Promote additions through a PR after checking nearby docs, manifests, and install maps for stale guidance.

About

my codex setup

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors