loading…
Search for a command to run...
loading…
Knowledge infrastructure SDK for AI agents - universal references, multi-tier caching, storage abstraction, and sync
Knowledge infrastructure SDK for AI agents - universal references, multi-tier caching, storage abstraction, and sync
Knowledge infrastructure for AI agents.
Fractary Codex provides infrastructure for managing organizational knowledge across AI agents and projects. It implements a universal reference system (codex:// URIs), multi-provider storage, intelligent caching, and file synchronization.
| Package | Description | Install |
|---|---|---|
| @fractary/codex | JavaScript/TypeScript SDK | npm install @fractary/codex |
| @fractary/codex-cli | Command-line interface | npm install -g @fractary/codex-cli |
| @fractary/codex-mcp | MCP server for AI agents | npx @fractary/codex-mcp |
| Claude Code Plugin | Claude Code integration | Install via plugin system |
New here? See the Getting Started Guide for a full walkthrough: creating a codex repository, setting up a GitHub token, and running your first sync.
npm install -g @fractary/codex # SDK (required by CLI and MCP server)
npm install -g @fractary/codex-cli # CLI
Codex configuration lives in the codex: section of .fractary/config.yaml, alongside other Fractary plugin settings. This file is created by @fractary/core — initialize that first.
Recommended: Use the Claude Code plugin. The /fractary-codex-config init skill auto-detects your organization, project, and codex repository before writing anything.
Alternative: Use the CLI directly:
fractary-codex config-init --org myorg --codex-repo codex.myorg.com
fractary-codex document-fetch codex://myorg/project/docs/api.md
fractary-codex sync --dry-run
fractary-codex sync
fractary-codex cache-list --verbose
fractary-codex cache-stats
fractary-codex cache-clear --all
fractary-codex cache-health
import { CodexClient } from '@fractary/codex'
// organizationSlug is optional — auto-detected from git remote if omitted
const client = await CodexClient.create({ organizationSlug: 'myorg' })
const result = await client.fetch('codex://myorg/project/docs/api.md')
console.log(result.content.toString())
Add to .mcp.json for AI agent integration:
{
"mcpServers": {
"fractary-codex": {
"command": "npx",
"args": ["-y", "@fractary/codex-mcp", "--config", ".fractary/config.yaml"]
}
}
}
The plugin provides skills for Claude Code, invocable as slash commands:
| Skill | Description |
|---|---|
/fractary-codex-config init |
Initialize codex configuration |
/fractary-codex-config update |
Update configuration fields |
/fractary-codex-config validate |
Validate configuration (read-only) |
/fractary-codex-sync |
Sync project with codex repository |
codex://org/project/path/to/file.md
└─┬─┘└──┬──┘└──────┬───────┘
│ │ └─ File path within project
│ └─ Project/repository name
└─ Organization name
codex/
├── sdk/js/ # @fractary/codex - TypeScript SDK
├── cli/ # @fractary/codex-cli - CLI tool
├── mcp/server/ # @fractary/codex-mcp - MCP server
├── plugins/codex/ # Claude Code plugin
│ └── skills/ # Plugin skills (config, sync, memory, etc.)
├── docs/ # Documentation
└── specs/ # Technical specifications
# Install dependencies
npm install
# Build all packages
npm run build
# Run all tests
npm test
# Type check
npm run typecheck
Apache-2.0
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"codex": {
"command": "npx",
"args": [
"-y",
"@fractary/codex"
]
}
}
}pro-tip
Поставил Codex? Скажи Claude: «запомни почему я установил Codex и что хочу попробовать» — попадёт в твой Vault.
как это работает →