@jingoz/ring1
v0.3.2
Published
CLI for syncing markdown guidance files to multiple agent user-scope locations
Maintainers
Readme
@jingoz/ring1
ring1 is a TypeScript CLI for syncing markdown guidance files to agent user-scope locations.
Install
npm install
npm run build
npm linkRun Without Installing
You can use npx to run the CLI directly from npm without global install:
npx @jingoz/ring1 sync ./my-guide.md --agents codexPin to a specific version when needed:
npx @jingoz/[email protected] sync ./my-guide.md --agents codexUsage
ring1 sync <targetFile> [--agents <agent...>] [--mode link|copy]Arguments
<targetFile>: markdown file to sync (.md)--agents: target agents, supportsclaude,codex,opencode,gemini- when provided, values are used directly (space/comma separated)
- when omitted:
- in TTY, an interactive multi-select prompt is shown
- nothing is preselected by default; empty submit returns an error
- in non-TTY, the command errors and requires explicit
--agents
--mode: sync mode, defaults tolinklink: create symbolic linkscopy: copy files directly
Target Paths
codex->~/.codex/AGENTS.mdclaude->~/.claude/CLAUDE.mdopencode->~/.config/opencode/AGENTS.mdgemini->~/.gemini/GEMINI.md
Windows equivalents:
%USERPROFILE%\\.codex\\AGENTS.md%USERPROFILE%\\.claude\\CLAUDE.md%USERPROFILE%\\.config\\opencode\\AGENTS.md%USERPROFILE%\\.gemini\\GEMINI.md
Backup Rule
If a destination file already exists, it is renamed first:
AGENTS.bak.<timestamp>.mdCLAUDE.bak.<timestamp>.mdAGENTS.bak.<timestamp>.md(opencode)GEMINI.bak.<timestamp>.md
Windows Fallback
- When
--mode linkfails due to permission limits on Windows, it automatically falls back tocopy - The sync output will include a fallback message
Examples
ring1 sync ./my-guide.md --agents codex claude
ring1 sync ./my-guide.md --agents opencode --mode copy
ring1 sync ./my-guide.md --agents gemini --mode copy
ring1 sync ./my-guide.md