Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cxt
command
Package main is the entry point for the cxt client binary.
|
Package main is the entry point for the cxt client binary. |
|
internal
|
|
|
adapters/agenttokens
Package agenttokens counts CXTHub-owned plain text locally.
|
Package agenttokens counts CXTHub-owned plain text locally. |
|
adapters/authcfg
Package authcfg stores CLI login tokens — compatible with git credential store.
|
Package authcfg stores CLI login tokens — compatible with git credential store. |
|
adapters/backendclient
Package backendclient implements the REST client for the RemoteSync outbound port.
|
Package backendclient implements the REST client for the RemoteSync outbound port. |
|
adapters/boundary
Package boundary handles context transition boundaries (.cxt/boundary.json) recording, isolation, and execution.
|
Package boundary handles context transition boundaries (.cxt/boundary.json) recording, isolation, and execution. |
|
adapters/branchjournal
Package branchjournal records Git operations outside the disposable .cxt replica.
|
Package branchjournal records Git operations outside the disposable .cxt replica. |
|
adapters/capture
Package capture contains the concrete implementation of the CaptureSource outbound port.
|
Package capture contains the concrete implementation of the CaptureSource outbound port. |
|
adapters/capturejournal
Package capturejournal stores capture recovery decisions independently of the original attempts.
|
Package capturejournal stores capture recovery decisions independently of the original attempts. |
|
adapters/chunkcas
Package chunkcas is the single source of truth for session doc chunk CAS decomposition/reassembly rules.
|
Package chunkcas is the single source of truth for session doc chunk CAS decomposition/reassembly rules. |
|
adapters/codec
Package codec — cir.go: CIR-related internal utilities (shared logic for two codecs).
|
Package codec — cir.go: CIR-related internal utilities (shared logic for two codecs). |
|
adapters/delivery
Package delivery contains the driving adapters for the cxt client.
|
Package delivery contains the driving adapters for the cxt client. |
|
adapters/delivery/cli
agent_wrapper.go — Agent CLI Wrapper (default execution path): cxt claude / cxt codex.
|
agent_wrapper.go — Agent CLI Wrapper (default execution path): cxt claude / cxt codex. |
|
adapters/delivery/hook
Package hook contains the hook event handlers for the cxt hook subcommand (domain model, capture path).
|
Package hook contains the hook event handlers for the cxt hook subcommand (domain model, capture path). |
|
adapters/delivery/mcp
Package mcp contains the stdio MCP server driver (domain model — read-only redefinition as of 2026-07-09).
|
Package mcp contains the stdio MCP server driver (domain model — read-only redefinition as of 2026-07-09). |
|
adapters/gitctx
Package gitctx contains the concrete implementation of the GitContext outbound port.
|
Package gitctx contains the concrete implementation of the GitContext outbound port. |
|
adapters/githooks
Package githooks connects cxt to git hooks — "using git means cxt follows along".
|
Package githooks connects cxt to git hooks — "using git means cxt follows along". |
|
adapters/memory
Package memory contains adapters for native-memory ingestion, injection, and deterministic self-distillation (compatibility rules).
|
Package memory contains adapters for native-memory ingestion, injection, and deterministic self-distillation (compatibility rules). |
|
adapters/nativeclaude
Package nativeclaude owns a versioned, local Claude stream-JSON process.
|
Package nativeclaude owns a versioned, local Claude stream-JSON process. |
|
adapters/nativecodex
Package nativecodex implements the local app-server protocol boundary.
|
Package nativecodex implements the local app-server protocol boundary. |
|
adapters/providerfs
ledger.go — Session ledger (.cxt/session-ledger.json): Adjusting the assumption that "active session = latest mtime".
|
ledger.go — Session ledger (.cxt/session-ledger.json): Adjusting the assumption that "active session = latest mtime". |
|
adapters/remotecfg
Package remotecfg implements git's remote concept.
|
Package remotecfg implements git's remote concept. |
|
adapters/secretscrypto
Package secretscrypto — .cxtsecrets end-to-end encryption (WebCrypto and byte-compatible).
|
Package secretscrypto — .cxtsecrets end-to-end encryption (WebCrypto and byte-compatible). |
|
adapters/session
Package session materializes encoded CIR output as native target-provider session files (compatibility rules).
|
Package session materializes encoded CIR output as native target-provider session files (compatibility rules). |
|
adapters/sessionnotice
Package sessionnotice reads a worktree selection for identifier-only hook delivery.
|
Package sessionnotice reads a worktree selection for identifier-only hook delivery. |
|
adapters/storage
Package storage contains the implementation of a content-addressed local file store for the SessionStore outbound port.
|
Package storage contains the implementation of a content-addressed local file store for the SessionStore outbound port. |
|
app
Package app contains the implementation of use-case services.
|
Package app contains the implementation of use-case services. |
|
domain
Package domain contains the core domain entities, value objects, and invariants of cxt.
|
Package domain contains the core domain entities, value objects, and invariants of cxt. |
|
ports/inbound
Package inbound declares the cxt entry (inbound) port interfaces and DTOs.
|
Package inbound declares the cxt entry (inbound) port interfaces and DTOs. |
|
ports/outbound
Package outbound declares the driven(outbound) port interface of cxt.
|
Package outbound declares the driven(outbound) port interface of cxt. |
Click to show internal directories.
Click to hide internal directories.