Fetch a document from codex knowledge base by reference
Retrieves documents from the codex knowledge base using @codex/ reference syntax.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-codex@fractaryclaude-haiku-4-5Fetch a document from the codex knowledge base using @codex/ reference syntax.
/fractary-codex:fetch <reference> [OPTIONS]
Required:
<reference>: Document reference in format @codex/{project}/{path}
@codex/auth-service/docs/oauth.md@codex/faber-cloud/specs/SPEC-00020.mdOptional:
--force-refresh: Bypass cache and fetch fresh from source--ttl <days>: Override default TTL for this document (default: 7 days)Fetch document (cache-first):
/fractary-codex:fetch @codex/auth-service/docs/oauth.md
Force fresh fetch:
/fractary-codex:fetch @codex/auth-service/docs/oauth.md --force-refresh
Fetch with custom TTL:
/fractary-codex:fetch @codex/shared/standards/api-design.md --ttl 14
codex/ directory)Important: The fetch command always retrieves documents from the production branch of the codex repository. This is by design:
This separation ensures:
To sync with a specific environment, use:
/fractary-codex:sync-project --env test # Sync with test environment
/fractary-codex:sync-project --env prod # Sync with production environment
Success:
✅ Document retrieved: @codex/auth-service/docs/oauth.md
Source: fractary-codex (cached)
Size: 12.3 KB
Expires: 2025-01-22T10:00:00Z
[Document content displayed]
Error:
❌ Document not found: @codex/auth-service/docs/invalid.md
Repository: fractary/codex.fractary.com
Suggestions:
- Verify project name is correct
- Check that document exists in codex repository
- Ensure you have access to the repository
/fractary-codex:cache-list - View cached documents/fractary-codex:cache-clear - Clear cache entries/fractary-codex:init - Configure codex pluginUSE AGENT: @agent-fractary-codex:codex-manager Operation: fetch Parameters: { reference: <from-arg>, force_refresh: <from-flag>, ttl_override: <from-flag> }