Skip to content
项目

关于

One source to rule them all: write agents, skills, rules, and hooks once, then sync them to your AI tools.

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

agnostic-ai logo

agnostic-ai

Write project instructions once in Markdown and YAML. Run agnostic-ai sync to generate the files Claude Code, Codex, and your other tools read. Sync runs locally and needs no account.

CI npm Homebrew Downloads OpenSSF Scorecard OpenSSF Best Practices

Why share your coding tool setup?

Quickstart

From your project root, with Node 18 or newer:

npm install -g agnostic-ai
agnostic-ai init

Select your tools. Accept the import offer to keep instructions from existing files such as CLAUDE.md and AGENTS.md. If the project already has agnostic-ai.yaml, run agnostic-ai sync directly.

init creates .agnostic-ai/AGNOSTIC_AI.md. Replace the placeholder comment with a project note, or add one below the imported instructions.

Run the project tests before finishing a change.

Preview, write, and check the generated files.

agnostic-ai sync --plan
agnostic-ai sync
agnostic-ai sync --check

On Unix, sync --check reports a changed output blocked by a hard link or another user's ownership. See failed writes and hard links.

If you selected Claude Code and Codex, AGENTS.md contains your note and CLAUDE.md points to it. Edit .agnostic-ai/AGNOSTIC_AI.md and sync again to update both. Sync saves hand edits in .bak files. If sync --backup fails to save a backup, rollback leaves an untouched original alone. Use agnostic-ai revert to restore backups, or agnostic-ai sync --keep-edits to leave edited outputs in place.

Interactive commands check project-dependent flags before offering an upgrade. Run agnostic-ai upgrade to update a global npm install in the prefix where it lives. For a standalone binary, upgrade keeps an installed version ahead of the latest stable release. See the installation guide for Homebrew, the install script, Windows, and Go.

Set up with a coding agent

Paste this into your coding agent.

Set up agnostic-ai in this repository. Follow https://agnostic-ai.org/agent-setup.txt exactly. Preserve existing AI tool behavior. Before any sync, check for existing CLAUDE.md, AGENTS.md, and similar files, and ask me what to do with their content. Finish with agnostic-ai sync --check. Summarize the targets selected and every file changed.

Next steps

  • Set up your project and see what to commit and which commands to run after editing.
  • Import an existing setup before the first sync. Afterward, import can suggest tools with new or edited files. An equivalent import keeps the existing spec's formatting. Zed settings, Zed tasks, and CodeBuddy settings can include comments and trailing commas.
  • Choose what to share. Share rules, skills, agents, hooks, MCP servers, settings, and memory.
  • Share an MCP server across install layouts. Sync picks its command from the files present in each project.
  • Apply a pack to an existing setup. Add its MCP servers and skills to local tool files without starting a project config.
  • Test a hook with agnostic-ai hook run. For Codex compaction hooks, set the payload’s trigger to manual or auto.
  • Preview a spec in VS Code or JetBrains with the render targets from your project and local override. Editor extensions
  • See what each tool reads.
  • Share dependency setup for cloud agents from one environment spec.
  • Check cloud environment setup with agnostic-ai doctor environment.
  • Install Agnostic Companion from a Mac disk image that includes the CLI and dashboard, or run agnostic-ai companion install with an existing CLI. Browse coding sessions, Claude chats, Cowork tasks, and ChatGPT chats. Press Tab to focus a session and Enter to open it or switch to its running tab in a supported terminal. Open Keyboard shortcuts from the list’s ⋯ menu to see the keys and why a global shortcut is inactive. On macOS, renaming a single-pane tab in Ghostty 1.4 or later also renames the running conversation. A successful switch to the only possible Codex tab marks a new reply as read. Reopen the list to see the tab notice. An idle Claude Code chat created by /clear starts under Active. Use an archived chat’s menu to hide it while keeping the transcript. You can also stop a forgotten Claude Code shell. The panel footer shows the installed Companion version. In either menu, open App → Updates to check now or change automatic checks. The update options depend on how you installed the Companion and its CLI. Updates keep saved read and archive marks. If the updater restores the earlier app, the list shows the failure and log path after restart. On Windows, the Companion can save settings while the web interface reads them. On macOS, updates signed by the same signer keep Accessibility access, and automatic checks can show the last verified update offer offline.
  • Open the web interface with agnostic-ai ui to see context size and edit hooks, MCP servers, and settings. In Conversations, browse All, Local or Cloud. Linux session discovery uses /proc when available. Working chats and subagents show how long the current turn has run when its start time is known. Use a chat's menu to rename, mark, hide or delete it. Pin to top keeps it above the chats that need you and shares the pin with the Companion.
  • Save a session handoff to switch tools mid-task. The note captures delegate progress before the session stops its background work. Claude hooks can also save Git snapshots.
  • List saved OpenCode chats in Conversations with agnostic-ai serve --opencode-catalog, or print their metadata with agnostic-ai conversations catalog --opencode.
  • Start a side conversation with agnostic-ai conversations start. It opens a terminal tab linked to the original session.
  • See CPU use for working local chats, including the processes they start.
  • Message another session to ask a question, request a review, or hand off work between local Claude Code and Codex sessions. The mailbox built-in delivers messages with the next prompt after any required approval. In the Companion, drag one session onto another to fill in a handoff. Waiting threads say who the message is for. Paste it into a running chat or copy it to paste after resuming the chat. agnostic-ai mailbox stats reports counts without showing message text.
  • Follow terminal tab names in running conversations, including WezTerm and kitty on macOS and Linux.
  • Answer routine permission prompts with approvals.mode: yolo in your user setup. A hook handles safe calls one at a time for Claude Code, Codex, Kiro, Qwen Code, and Qoder. Riskier calls still ask. The web settings use the companion menu's section and setting names.
  • Hand off to the cloud by saying "send this to a remote agent" in Claude Code or Codex. The skill pushes the branch and starts a cloud session. For Claude Code, it launches from a clean clone of the pushed commit. Copy the Claude Code resume command from the companion or web interface.
  • Trace a generated file with agnostic-ai why CLAUDE.md.
  • Keep personal settings in ~/.agnostic-ai and apply them with agnostic-ai sync --scope user.
  • Find a missing file or a failed check with agnostic-ai doctor.

Contribute

See CONTRIBUTING.md to build the CLI and choose checks for your change.

Documentation · Playground · Editor extensions · Claude Code plugin · CLI reference · Changelog

探索相关项目

加载中…