Compatibility
Compatibility behavior across agent runtimes and files.
Compatibility
This document explains the main compatibility behaviors Knowns preserves when platform integrations or generated artifact layouts change.
Why this exists
Knowns manages generated files such as:
- skills directories
- MCP configuration files
- instruction files
- runtime hooks
As integrations evolve, older projects may still contain previously generated layouts. Knowns tries to preserve safe compatibility instead of breaking those projects immediately.
Skills directory compatibility
Current primary mapping:
.claude/skills-> Claude Code.agents/skills-> OpenCode, Codex, Antigravity, Generic Agents.kiro/skills-> Kiro
Legacy behavior
The .agent/skills legacy path has been removed. All agent-compatible platforms now use .agents/skills.
Platform-specific MCP compatibility
Knowns now manages project-local MCP config for several platforms, for example:
- Claude Code ->
.mcp.json - Kiro ->
.kiro/settings/mcp.json - Cursor ->
.cursor/mcp.json - Codex ->
.codex/config.toml - OpenCode ->
opencode.json
For Antigravity, the MCP config is global:
~/.gemini/antigravity/mcp_config.json
Init, sync, and update
knowns init
Creates the project structure, git tracking, semantic search setup, and selected lightweight project instruction shims such as CLAUDE.md and AGENTS.md.
knowns setup
Generates AI platform artifacts such as skills, MCP configs, platform-specific configs, runtime hooks, and any additional instruction files for the selected target. Use knowns setup <target> --global for normal personal assistant setup. Use non-global setup only when you intentionally want repo-local integration files. Use knowns setup agents when you only need lightweight repo-local agent shims.
knowns sync
Re-applies .knowns/config.json to the current machine.
Use it after:
- cloning a repository
- wanting generated files to match the current config again
knowns update
Updates the CLI, then refreshes generated artifacts that depend on the binary or config policy.
Recommendation
- For new projects, follow the current primary layout.
- For older projects, let
knowns syncandknowns updatepreserve compatibility first, then migrate deliberately when needed.
Tương thích
Giải thích các compatibility behaviors mà Knowns giữ lại khi platform integrations hoặc generated artifact layouts thay đổi.
Tại sao cần
Knowns quản lý nhiều loại generated files:
- skills directories
- MCP config files
- instruction files
- runtime hooks
Khi integrations thay đổi, project cũ có thể còn layout trước đây. Knowns giữ safe compatibility thay vì break ngay.
Skills directory
Mapping chính:
.claude/skills→ Claude Code.agents/skills→ OpenCode, Codex, Antigravity, Generic Agents.kiro/skills→ Kiro
Legacy
Path .agent/skills đã bị xóa. Tất cả agent-compatible platforms giờ dùng .agents/skills.
MCP config
Knowns quản lý project-local MCP config:
- Claude Code →
.mcp.json - Kiro →
.kiro/settings/mcp.json - Cursor →
.cursor/mcp.json - Codex →
.codex/config.toml - OpenCode →
opencode.json
Antigravity dùng global config:
~/.gemini/antigravity/mcp_config.json
Init, setup, sync, update
knowns init
Tạo project structure, git tracking, semantic search setup, và selected lightweight project instruction shims như CLAUDE.md và AGENTS.md.
knowns setup
Tạo AI platform artifacts như skills, MCP configs, platform-specific configs, runtime hooks, và instruction files bổ sung cho target được chọn. Dùng knowns setup <target> --global cho personal assistant setup thông thường. Chỉ dùng setup không có --global khi bạn chủ ý muốn repo-local integration files. Dùng knowns setup agents khi chỉ cần lightweight repo-local agent shims.
knowns sync
Re-apply .knowns/config.json lên máy hiện tại.
Dùng sau khi:
- clone repo
- muốn generated files khớp lại với config
knowns update
Update CLI, rồi refresh generated artifacts phụ thuộc vào binary hoặc config policy.
Khuyến nghị
- Project mới → follow layout chính hiện tại
- Project cũ → để
knowns syncvàknowns updategiữ tương thích trước, migrate có chủ đích sau