{"id":40537601,"url":"https://github.com/hatappo/agent-command-sync","last_synced_at":"2026-01-20T22:47:10.381Z","repository":{"id":308452083,"uuid":"1032848486","full_name":"hatappo/agent-command-sync","owner":"hatappo","description":"A CLI tool to convert and sync custom commands between Anthropic Claude Code, Google Gemini, and. OpenAI Codex CLI","archived":false,"fork":false,"pushed_at":"2025-10-08T03:53:25.000Z","size":750,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-22T07:52:22.179Z","etag":null,"topics":["claude-code","cli","codex-cli","coding-agent","gemini-cli"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/agent-command-sync","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatappo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-05T23:38:37.000Z","updated_at":"2025-10-14T04:00:09.000Z","dependencies_parsed_at":"2025-08-06T02:40:34.891Z","dependency_job_id":"33aba2f0-2698-4b7e-a75d-9a63d89ad54d","html_url":"https://github.com/hatappo/agent-command-sync","commit_stats":null,"previous_names":["hatappo/agent-slash-sync","hatappo/agent-command-sync"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hatappo/agent-command-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-command-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-command-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-command-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-command-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatappo","download_url":"https://codeload.github.com/hatappo/agent-command-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fagent-command-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28617348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T22:24:05.405Z","status":"ssl_error","status_checked_at":"2026-01-20T22:20:31.342Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","cli","codex-cli","coding-agent","gemini-cli"],"created_at":"2026-01-20T22:47:09.755Z","updated_at":"2026-01-20T22:47:10.376Z","avatar_url":"https://github.com/hatappo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e en | \u003ca href=\"README_ja.md\"\u003eja\u003c/a\u003e \u003c/div\u003e\n\n--------------------------------------------------------------------------------\n\n# agent-command-sync\n\n[![npm version](https://badge.fury.io/js/agent-command-sync.svg)](https://www.npmjs.com/package/agent-command-sync)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nBidirectionally convert and sync Custom Slash Commands between Claude Code, Gemini CLI, and Codex CLI with intuitive visual feedback.\n\n## CHANGELOG\n\n[CHANGELOG.txt](CHANGELOG.txt)\n\n## Installation\n\n```bash\nnpm install -g agent-command-sync\n```\n\n## Quick Start\n\n```bash\n# Convert Claude Code → Gemini CLI\nacsync -s claude -d gemini\n\n# Convert Gemini CLI → Claude Code\nacsync -s gemini -d claude\n\n# Preview changes without applying\nacsync -n -s claude -d gemini\n```\n\n## Screenshots\n\n### Usage Example\n![agent-command-sync usage](docs/acsync-usage.png)\n\n### Conversion Example\n![agent-command-sync example](docs/acsync-example.png)\n\n## Features\n\n- **Colorful Output** - Clear visual feedback with color-coded status indicators\n- **Fast Conversion** - Efficiently sync commands between Claude Code and Gemini CLI\n- **Bidirectional** - Convert in both directions (Claude ↔ Gemini)\n- **Safe by Default** - Preview changes with dry-run mode before applying\n- **Short Command** - Use `acsync` instead of `agent-command-sync`\n- **Selective Sync** - Convert specific files or all commands at once\n\n## Options\n\n| Option                      | Description                                                           |\n| --------------------------- | --------------------------------------------------------------------- |\n| `-s, --src \u003cproduct\u003e`       | **Required.** Source product: `claude`, `gemini`, or `codex`         |\n| `-d, --dest \u003cproduct\u003e`      | **Required.** Destination product: `claude`, `gemini`, or `codex`    |\n| `-f, --file \u003cfilename\u003e`     | Convert specific file only (supports `.md`, `.toml` extensions)      |\n| `-n, --noop`                | Preview changes without applying them                                 |\n| `-v, --verbose`             | Show detailed debug information                                       |\n| `--claude-dir \u003cpath\u003e`       | Claude base directory (default: ~/.claude)                            |\n| `--gemini-dir \u003cpath\u003e`       | Gemini base directory (default: ~/.gemini)                            |\n| `--codex-dir \u003cpath\u003e`        | Codex base directory (default: ~/.codex)                              |\n| `--no-overwrite`            | Skip existing files in target directory                               |\n| `--sync-delete`             | Delete orphaned files in target directory                             |\n| `--remove-unsupported`      | Remove fields not supported by target format                          |\n\n## Examples\n\n```bash\n# Convert all commands with preview\nacsync -n -s claude -d gemini\n\n# Convert specific file\nacsync -s gemini -d claude -f analyze-code\n\n# Full sync with cleanup\nacsync -s claude -d gemini --sync-delete --remove-unsupported\n\n# Use custom directories (base directories, /commands will be added automatically)\nacsync -s claude -d gemini --claude-dir ~/my-claude --gemini-dir ~/my-gemini\n\n# Show verbose output for debugging\nacsync -s claude -d gemini -v\n```\n\n## Default File Locations\n\n- **Claude Code**: `~/.claude/commands/*.md`\n- **Gemini CLI**: `~/.gemini/commands/*.toml`\n- **Codex CLI**: `~/.codex/prompts/*.md`\n\n## Format Comparison and Conversion Specification\n\n### File Structure and Metadata\n\n| Feature                                   | Claude Code   | Gemini CLI    | Codex CLI     | Conversion Notes                             |\n| ----------------------------------------- | ------------- | ------------- | ------------- | -------------------------------------------- |\n| File format                               | Markdown      | TOML          | Markdown      | Automatically converted                      |\n| Content field                             | Body content  | `prompt`      | Body content  | Main command content                         |\n| Description metadata                      | `description` | `description` | `description` | Preserved across formats                     |\n| `allowed-tools`, `argument-hint`, `model` | Supported     | -             | -             | Claude-specific (use `--remove-unsupported`) |\n\n### Content Placeholders and Syntax\n\n| Feature               | Claude Code    | Gemini CLI     | Codex CLI      | Conversion Behavior                    |\n| --------------------- | -------------- | -------------- | -------------- | -------------------------------------- |\n| All arguments         | `$ARGUMENTS`   | `{{args}}`     | `$ARGUMENTS`   | Converted between formats              |\n| Individual arguments  | `$1` ... `$9`  | -              | `$1` ... `$9`  | Preserved (not supported in Gemini)    |\n| Shell command         | `!command`     | `!{command}`   | -              | Converted between Claude/Gemini        |\n| File reference        | `@path/to/file`| `@{path/to/file}` | -           | Converted between Claude/Gemini        |\n\n#### Individual Arguments\nThe placeholders `$1` through `$9` allow referencing individual command arguments. For example, `$1` refers to the first argument, `$2` to the second, and so on. This feature is supported in Claude Code and Codex CLI, but not in Gemini CLI. During conversion, these placeholders are preserved as-is.\n\n#### File References\nFile references allow embedding file contents inline within the command. The syntax differs between tools:\n- Claude Code uses `@path/to/file.txt`\n- Gemini CLI uses `@{path/to/file.txt}`\n- Codex CLI does not support this feature\n\nDuring conversion between Claude and Gemini, the syntax is automatically converted. When converting to/from Codex, the file reference syntax is preserved unchanged.\n\n### Official Documents\n\n- [Slash commands - Claude Docs](https://docs.claude.com/en/docs/claude-code/slash-commands)\n- [gemini-cli/docs/cli/custom-commands.md at main · google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/custom-commands.md)\n- [codex/docs/prompts.md at main · openai/codex](https://github.com/openai/codex/blob/main/docs/prompts.md)\n\n## Status Indicators\n\n- `[A]` Created (Green) - New files created in target directory\n- `[M]` Modified (Yellow) - Existing files updated\n- `[D]` Deleted (Red) - Files removed with `--sync-delete`\n- `[-]` Skipped (Gray) - Files skipped with `--no-overwrite`\n\n## Requirements\n\n- Node.js \u003e= 18.0.0\n- npm or compatible package manager\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n\n# Run tests\nnpm test\n\n# Run tests with coverage\nnpm run test:coverage\n\n# Lint and format code\nnpm run lint\nnpm run format\n\n# Type check\nnpm run lint:tsc\n\n# Development mode (watch)\nnpm run dev\n```\n\n### Publishing\n\n```bash\n# Check package contents\nnpm pack --dry-run\n\n# Update patch version (1.0.0 → 1.0.1)\nnpm version patch\n\n# Update minor version (1.0.0 → 1.1.0)\nnpm version minor\n\n# Update major version (1.0.0 → 2.0.0)\nnpm version major\n\n# Publish a package\nnpm publish\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatappo%2Fagent-command-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatappo%2Fagent-command-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatappo%2Fagent-command-sync/lists"}