Documentation
¶
Overview ¶
Package cli contains integration tests that verify the assembled CLI binary behaves correctly end-to-end.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package add provides the "ctx add" command for appending entries to context files.
|
Package add provides the "ctx add" command for appending entries to context files. |
|
cmd
Package cmd provides coverage tests for the ctx add subcommand tree.
|
Package cmd provides coverage tests for the ctx add subcommand tree. |
|
cmd/root
Package root implements the ctx add command.
|
Package root implements the ctx add command. |
|
core
Package core provides helper functions for the add command.
|
Package core provides helper functions for the add command. |
|
core/entry
Package entry provides file-type predicates for routing add entries to the correct context file.
|
Package entry provides file-type predicates for routing add entries to the correct context file. |
|
core/example
Package example provides usage examples shown when the add command receives no content for a given entry type.
|
Package example provides usage examples shown when the add command receives no content for a given entry type. |
|
core/extract
Package extract retrieves entry content from command arguments, files, or stdin for the add command.
|
Package extract retrieves entry content from command arguments, files, or stdin for the add command. |
|
core/format
Package format builds timestamped Markdown entries for decisions, learnings, tasks, and conventions.
|
Package format builds timestamped Markdown entries for decisions, learnings, tasks, and conventions. |
|
core/insert
Package insert places formatted entries into context file content at the correct position based on entry type and section headers.
|
Package insert places formatted entries into context file content at the correct position based on entry type and section headers. |
|
core/normalize
Package normalize ensures section headings and other user input have the correct Markdown format before insertion.
|
Package normalize ensures section headings and other user input have the correct Markdown format before insertion. |
|
Package agent implements the "ctx agent" command for generating AI-ready context packets with budget-aware content selection.
|
Package agent implements the "ctx agent" command for generating AI-ready context packets with budget-aware content selection. |
|
cmd/root
Package root implements the ctx agent command.
|
Package root implements the ctx agent command. |
|
core
Package core provides helper functions for the agent command.
|
Package core provides helper functions for the agent command. |
|
core/budget
Package budget assembles token-budgeted context packets from loaded context files, fitting entries by score within the configured limit.
|
Package budget assembles token-budgeted context packets from loaded context files, fitting entries by score within the configured limit. |
|
core/cooldown
Package cooldown manages per-session tombstone files to suppress repeated agent output within a configurable duration.
|
Package cooldown manages per-session tombstone files to suppress repeated agent output within a configurable duration. |
|
core/extract
Package extract pulls structured sections from loaded context files for inclusion in agent context packets.
|
Package extract pulls structured sections from loaded context files for inclusion in agent context packets. |
|
core/score
Package score computes relevance scores for decision and learning entries based on recency and keyword overlap with active tasks.
|
Package score computes relevance scores for decision and learning entries based on recency and keyword overlap with active tasks. |
|
core/sort
Package sort orders context files by the configured read priority for agent context assembly.
|
Package sort orders context files by the configured read priority for agent context assembly. |
|
Package change provides the "ctx change" command for showing what changed in context files and code since the last AI session.
|
Package change provides the "ctx change" command for showing what changed in context files and code since the last AI session. |
|
cmd/root
Package root implements the ctx change command.
|
Package root implements the ctx change command. |
|
core
Package core provides reference time detection, context/code change scanning, and rendering for the changes command.
|
Package core provides reference time detection, context/code change scanning, and rendering for the changes command. |
|
core/detect
Package detect determines the reference time for change detection using markers, events, or flags.
|
Package detect determines the reference time for change detection using markers, events, or flags. |
|
core/render
Package render formats change summaries into human-readable Markdown output.
|
Package render formats change summaries into human-readable Markdown output. |
|
core/scan
Package scan finds context and code files modified after a reference time.
|
Package scan finds context and code files modified after a reference time. |
|
Package compact implements the "ctx compact" command for cleaning up and consolidating context files.
|
Package compact implements the "ctx compact" command for cleaning up and consolidating context files. |
|
cmd/root
Package root implements the ctx compact command.
|
Package root implements the ctx compact command. |
|
core
Package core provides the compact command's CLI-specific orchestration.
|
Package core provides the compact command's CLI-specific orchestration. |
|
Package config provides the "ctx config" command for managing runtime configuration profiles.
|
Package config provides the "ctx config" command for managing runtime configuration profiles. |
|
cmd/schema
Package schema implements the ctx config schema subcommand.
|
Package schema implements the ctx config schema subcommand. |
|
cmd/status
Package status implements the ctx config status subcommand.
|
Package status implements the ctx config status subcommand. |
|
cmd/switchcmd
Package switchcmd implements the ctx config switch subcommand.
|
Package switchcmd implements the ctx config switch subcommand. |
|
core
Package core provides shared helpers for config subcommands.
|
Package core provides shared helpers for config subcommands. |
|
Package decision provides commands for managing DECISIONS.md.
|
Package decision provides commands for managing DECISIONS.md. |
|
cmd/reindex
Package reindex provides the "ctx decisions reindex" subcommand.
|
Package reindex provides the "ctx decisions reindex" subcommand. |
|
Package dep provides the "ctx dep" command for generating dependency graphs from source code.
|
Package dep provides the "ctx dep" command for generating dependency graphs from source code. |
|
cmd/root
Package root implements the ctx dep command.
|
Package root implements the ctx dep command. |
|
core
Package core provides graph building, ecosystem detection, and output formatting for the deps command.
|
Package core provides graph building, ecosystem detection, and output formatting for the deps command. |
|
Package doctor performs structural health checks for context, hooks, and configuration.
|
Package doctor performs structural health checks for context, hooks, and configuration. |
|
cmd/root
Package root implements the ctx doctor command.
|
Package root implements the ctx doctor command. |
|
core
Package core provides types, check functions, and output formatting for the doctor command.
|
Package core provides types, check functions, and output formatting for the doctor command. |
|
Package drift implements the "ctx drift" command for detecting stale or invalid context.
|
Package drift implements the "ctx drift" command for detecting stale or invalid context. |
|
cmd/root
Package root implements the ctx drift command.
|
Package root implements the ctx drift command. |
|
core
Package core provides error constructors, output formatters, sanitizers, fix logic, and types for the drift command.
|
Package core provides error constructors, output formatters, sanitizers, fix logic, and types for the drift command. |
|
Package guide provides the "ctx guide" command.
|
Package guide provides the "ctx guide" command. |
|
cmd/root
Package root implements the ctx guide command.
|
Package root implements the ctx guide command. |
|
Package hook implements the "ctx hook" command for generating AI tool integration configurations.
|
Package hook implements the "ctx hook" command for generating AI tool integration configurations. |
|
cmd/root
Package root implements the ctx hook command.
|
Package root implements the ctx hook command. |
|
Package initialize implements the "ctx init" command for initializing a .context/ directory with template files.
|
Package initialize implements the "ctx init" command for initializing a .context/ directory with template files. |
|
cmd/root
Package root implements the ctx init command.
|
Package root implements the ctx init command. |
|
core
Package core provides helper functions for the initialize command.
|
Package core provides helper functions for the initialize command. |
|
core/backup
Package backup creates timestamped backups of files before overwriting them during initialization.
|
Package backup creates timestamped backups of files before overwriting them during initialization. |
|
core/claude
Package claude creates or merges CLAUDE.md with ctx project instructions and content markers.
|
Package claude creates or merges CLAUDE.md with ctx project instructions and content markers. |
|
core/entry
Package entry finds insertion points in existing Markdown files for ctx content during initialization.
|
Package entry finds insertion points in existing Markdown files for ctx content during initialization. |
|
core/merge
Package merge orchestrates create-or-merge operations with interactive confirmation and marker-based content updates.
|
Package merge orchestrates create-or-merge operations with interactive confirmation and marker-based content updates. |
|
core/plan
Package plan creates or merges IMPLEMENTATION_PLAN.md with project planning templates during initialization.
|
Package plan creates or merges IMPLEMENTATION_PLAN.md with project planning templates during initialization. |
|
core/plugin
Package plugin enables and checks the ctx plugin in Claude Code settings and installed plugins configuration.
|
Package plugin enables and checks the ctx plugin in Claude Code settings and installed plugins configuration. |
|
core/project
Package project defines project-root directories created during initialization, such as specs/ and ideas/.
|
Package project defines project-root directories created during initialization, such as specs/ and ideas/. |
|
core/prompt
Package prompt creates or merges PROMPT.md with ctx system prompt templates during initialization.
|
Package prompt creates or merges PROMPT.md with ctx system prompt templates during initialization. |
|
core/tpl
Package tpl deploys embedded templates to subdirectories during initialization, handling skip-or-overwrite logic for each file.
|
Package tpl deploys embedded templates to subdirectories during initialization, handling skip-or-overwrite logic for each file. |
|
core/validate
Package validate checks that the ctx binary is available in PATH before initialization proceeds.
|
Package validate checks that the ctx binary is available in PATH before initialization proceeds. |
|
Package journal implements the "ctx journal" command for analyzing and publishing exported AI session files.
|
Package journal implements the "ctx journal" command for analyzing and publishing exported AI session files. |
|
cmd/obsidian
Package obsidian implements the ctx journal obsidian subcommand.
|
Package obsidian implements the ctx journal obsidian subcommand. |
|
cmd/site
Package site provides the journal site subcommand for generating a static site from journal entries.
|
Package site provides the journal site subcommand for generating a static site from journal entries. |
|
core/collapse
Package collapse wraps long tool output turns in collapsible HTML details blocks.
|
Package collapse wraps long tool output turns in collapsible HTML details blocks. |
|
core/consolidate
Package consolidate collapses consecutive identical tool turns into a single turn with a count.
|
Package consolidate collapses consecutive identical tool turns into a single turn with a count. |
|
core/format
Package format renders file sizes and other journal metadata in human-readable form.
|
Package format renders file sizes and other journal metadata in human-readable form. |
|
core/frontmatter
Package frontmatter transforms journal YAML frontmatter into Obsidian-compatible format.
|
Package frontmatter transforms journal YAML frontmatter into Obsidian-compatible format. |
|
core/generate
Package generate builds site index pages, READMEs, and navigation for journal static sites.
|
Package generate builds site index pages, READMEs, and navigation for journal static sites. |
|
core/group
Package group organizes journal entries by month for chronological display.
|
Package group organizes journal entries by month for chronological display. |
|
core/moc
Package moc generates Obsidian Maps of Content for journal vault navigation.
|
Package moc generates Obsidian Maps of Content for journal vault navigation. |
|
core/normalize
Package normalize sanitizes journal Markdown for static site rendering by fixing fences, headings, and list formatting.
|
Package normalize sanitizes journal Markdown for static site rendering by fixing fences, headings, and list formatting. |
|
core/parse
Package parse scans journal directories and extracts entry metadata from Markdown files.
|
Package parse scans journal directories and extracts entry metadata from Markdown files. |
|
core/reduce
Package reduce strips code fence markers from journal content to eliminate nesting conflicts.
|
Package reduce strips code fence markers from journal content to eliminate nesting conflicts. |
|
core/section
Package section builds topic indexes and section pages for journal site navigation.
|
Package section builds topic indexes and section pages for journal site navigation. |
|
core/session
Package session counts unique sessions across topic data.
|
Package session counts unique sessions across topic data. |
|
core/turn
Package turn extracts and merges conversation turn bodies from journal entries.
|
Package turn extracts and merges conversation turn bodies from journal entries. |
|
core/wikilink
Package wikilink converts standard Markdown links to Obsidian wikilink format.
|
Package wikilink converts standard Markdown links to Obsidian wikilink format. |
|
core/wrap
Package wrap soft-wraps long lines in journal files to approximately 80 characters.
|
Package wrap soft-wraps long lines in journal files to approximately 80 characters. |
|
Package learning implements the "ctx learning" command for managing LEARNINGS.md and its quick-reference index.
|
Package learning implements the "ctx learning" command for managing LEARNINGS.md and its quick-reference index. |
|
cmd/reindex
Package reindex provides the "ctx learning reindex" subcommand.
|
Package reindex provides the "ctx learning reindex" subcommand. |
|
Package load provides the command for outputting assembled context.
|
Package load provides the command for outputting assembled context. |
|
cmd/root
Package root implements the ctx load command.
|
Package root implements the ctx load command. |
|
core
Package core provides shared helpers for the load command: file sorting, title conversion, and output formatting.
|
Package core provides shared helpers for the load command: file sorting, title conversion, and output formatting. |
|
Package loop provides the command for generating Ralph loop scripts.
|
Package loop provides the command for generating Ralph loop scripts. |
|
cmd/root
Package root implements the ctx loop command.
|
Package root implements the ctx loop command. |
|
Package mcp provides the "ctx mcp" CLI command for starting the Model Context Protocol server.
|
Package mcp provides the "ctx mcp" CLI command for starting the Model Context Protocol server. |
|
cmd/root
Package root provides the run function for the ctx MCP server command.
|
Package root provides the run function for the ctx MCP server command. |
|
Package memory implements the "ctx memory" command for bridging Claude Code's auto memory into the .context/ directory.
|
Package memory implements the "ctx memory" command for bridging Claude Code's auto memory into the .context/ directory. |
|
cmd/diff
Package diff implements the ctx memory diff subcommand.
|
Package diff implements the ctx memory diff subcommand. |
|
cmd/importer
Package importer implements the ctx memory import subcommand.
|
Package importer implements the ctx memory import subcommand. |
|
cmd/publish
Package publish implements the ctx memory publish subcommand.
|
Package publish implements the ctx memory publish subcommand. |
|
cmd/status
Package status implements the "ctx memory status" subcommand.
|
Package status implements the "ctx memory status" subcommand. |
|
cmd/sync
Package sync implements the "ctx memory sync" subcommand.
|
Package sync implements the "ctx memory sync" subcommand. |
|
cmd/unpublish
Package unpublish implements the ctx memory unpublish subcommand.
|
Package unpublish implements the ctx memory unpublish subcommand. |
|
core
Package core provides shared helpers for memory subcommands.
|
Package core provides shared helpers for memory subcommands. |
|
Package notify implements the ctx notify command for sending webhook notifications.
|
Package notify implements the ctx notify command for sending webhook notifications. |
|
cmd/setup
Package setup implements the ctx notify setup subcommand.
|
Package setup implements the ctx notify setup subcommand. |
|
cmd/test
Package test implements the ctx notify test subcommand.
|
Package test implements the ctx notify test subcommand. |
|
Package pad implements the "ctx pad" command for managing an encrypted scratchpad.
|
Package pad implements the "ctx pad" command for managing an encrypted scratchpad. |
|
cmd/add
Package add implements the ctx pad add subcommand.
|
Package add implements the ctx pad add subcommand. |
|
cmd/edit
Package edit implements the ctx pad edit subcommand.
|
Package edit implements the ctx pad edit subcommand. |
|
cmd/export
Package export implements the ctx pad export subcommand.
|
Package export implements the ctx pad export subcommand. |
|
cmd/imp
Package imp implements the ctx pad import subcommand.
|
Package imp implements the ctx pad import subcommand. |
|
cmd/merge
Package merge implements the ctx pad merge subcommand.
|
Package merge implements the ctx pad merge subcommand. |
|
cmd/mv
Package mv implements the ctx pad mv subcommand.
|
Package mv implements the ctx pad mv subcommand. |
|
cmd/resolve
Package resolve implements the ctx pad resolve subcommand.
|
Package resolve implements the ctx pad resolve subcommand. |
|
cmd/rm
Package rm implements the ctx pad rm subcommand.
|
Package rm implements the ctx pad rm subcommand. |
|
cmd/show
Package show implements the ctx pad show subcommand.
|
Package show implements the ctx pad show subcommand. |
|
core
Package core provides shared scratchpad operations used by all pad subcommand packages.
|
Package core provides shared scratchpad operations used by all pad subcommand packages. |
|
core/blob
Package blob handles binary blob encoding and decoding within scratchpad entries.
|
Package blob handles binary blob encoding and decoding within scratchpad entries. |
|
core/crypto
Package crypto reads and decrypts encrypted scratchpad files.
|
Package crypto reads and decrypts encrypted scratchpad files. |
|
core/merge
Package merge reads scratchpad files with automatic decryption fallback and merges entries.
|
Package merge reads scratchpad files with automatic decryption fallback and merges entries. |
|
core/parse
Package parse splits raw scratchpad content into individual entry lines.
|
Package parse splits raw scratchpad content into individual entry lines. |
|
core/store
Package store manages scratchpad file persistence including encryption and path resolution.
|
Package store manages scratchpad file persistence including encryption and path resolution. |
|
core/validate
Package validate checks that scratchpad entry indexes are within valid bounds.
|
Package validate checks that scratchpad entry indexes are within valid bounds. |
|
Package pause pauses all context hooks for the current session.
|
Package pause pauses all context hooks for the current session. |
|
cmd/root
Package root implements the ctx pause command.
|
Package root implements the ctx pause command. |
|
Package permission implements the "ctx permission" command for managing Claude Code permission snapshots.
|
Package permission implements the "ctx permission" command for managing Claude Code permission snapshots. |
|
cmd/restore
Package restore implements the ctx permission restore subcommand.
|
Package restore implements the ctx permission restore subcommand. |
|
cmd/snapshot
Package snapshot implements the ctx permission snapshot subcommand.
|
Package snapshot implements the ctx permission snapshot subcommand. |
|
core
Package core provides shared helpers used by permissions subcommand packages.
|
Package core provides shared helpers used by permissions subcommand packages. |
|
Package prompt implements the "ctx prompt" command for managing reusable prompt templates.
|
Package prompt implements the "ctx prompt" command for managing reusable prompt templates. |
|
cmd/add
Package add implements the ctx prompt add subcommand.
|
Package add implements the ctx prompt add subcommand. |
|
cmd/list
Package list implements the ctx prompt list subcommand.
|
Package list implements the ctx prompt list subcommand. |
|
cmd/rm
Package rm implements the ctx prompt rm subcommand.
|
Package rm implements the ctx prompt rm subcommand. |
|
cmd/show
Package show implements the ctx prompt show subcommand.
|
Package show implements the ctx prompt show subcommand. |
|
core
Package core provides shared helpers used by all prompt subcommand packages.
|
Package core provides shared helpers used by all prompt subcommand packages. |
|
Package recall provides CLI commands for browsing and searching AI session history.
|
Package recall provides CLI commands for browsing and searching AI session history. |
|
cmd/export
Package export implements the ctx recall export subcommand.
|
Package export implements the ctx recall export subcommand. |
|
cmd/list
Package list implements the ctx recall list subcommand.
|
Package list implements the ctx recall list subcommand. |
|
cmd/lock
Package lock implements the ctx recall lock subcommand.
|
Package lock implements the ctx recall lock subcommand. |
|
cmd/show
Package show implements the ctx recall show subcommand.
|
Package show implements the ctx recall show subcommand. |
|
cmd/sync
Package sync implements the ctx recall sync subcommand.
|
Package sync implements the ctx recall sync subcommand. |
|
cmd/unlock
Package unlock implements the ctx recall unlock subcommand.
|
Package unlock implements the ctx recall unlock subcommand. |
|
core
Package core provides shared operations used by all recall subcommand packages.
|
Package core provides shared operations used by all recall subcommand packages. |
|
core/confirm
Package confirm prompts the user to confirm an export plan before execution.
|
Package confirm prompts the user to confirm an export plan before execution. |
|
core/execute
Package execute writes journal files according to an export plan.
|
Package execute writes journal files according to an export plan. |
|
core/extract
Package extract extracts YAML frontmatter blocks from Markdown content.
|
Package extract extracts YAML frontmatter blocks from Markdown content. |
|
core/format
Package format transforms session data into formatted journal Markdown with frontmatter and turn headers.
|
Package format transforms session data into formatted journal Markdown with frontmatter and turn headers. |
|
core/frontmatter
Package frontmatter resolves headings and builds YAML frontmatter for journal entries.
|
Package frontmatter resolves headings and builds YAML frontmatter for journal entries. |
|
core/index
Package index builds a session-ID-to-filename index from existing journal files.
|
Package index builds a session-ID-to-filename index from existing journal files. |
|
core/lock
Package lock marks journal entries as locked to prevent re-export and manages multipart files.
|
Package lock marks journal entries as locked to prevent re-export and manages multipart files. |
|
core/plan
Package plan builds an export plan that maps sessions to journal output files.
|
Package plan builds an export plan that maps sessions to journal output files. |
|
core/query
Package query finds sessions for the current or all projects.
|
Package query finds sessions for the current or all projects. |
|
core/slug
Package slug converts human-readable titles into URL-friendly slugs for journal filenames.
|
Package slug converts human-readable titles into URL-friendly slugs for journal filenames. |
|
core/validate
Package validate checks messages and flag combinations for recall export validity.
|
Package validate checks messages and flag combinations for recall export validity. |
|
Package reindex provides the ctx reindex convenience command.
|
Package reindex provides the ctx reindex convenience command. |
|
cmd/root
Package root implements the ctx reindex command.
|
Package root implements the ctx reindex command. |
|
Package remind manages session-scoped reminders stored in .context/reminders.json.
|
Package remind manages session-scoped reminders stored in .context/reminders.json. |
|
cmd/add
Package add implements the ctx remind add subcommand.
|
Package add implements the ctx remind add subcommand. |
|
cmd/dismiss
Package dismiss implements the ctx remind dismiss subcommand.
|
Package dismiss implements the ctx remind dismiss subcommand. |
|
cmd/list
Package list implements the ctx remind list subcommand.
|
Package list implements the ctx remind list subcommand. |
|
core
Package core provides shared reminder types and storage operations used by all remind subcommand packages.
|
Package core provides shared reminder types and storage operations used by all remind subcommand packages. |
|
Package resume resumes context hooks after a pause.
|
Package resume resumes context hooks after a pause. |
|
cmd/root
Package root implements the ctx resume command.
|
Package root implements the ctx resume command. |
|
Package serve implements the "ctx serve" command for serving static sites locally.
|
Package serve implements the "ctx serve" command for serving static sites locally. |
|
cmd/root
Package root implements the ctx serve command.
|
Package root implements the ctx serve command. |
|
Package site provides the "ctx site" command for managing the ctx.ist static site.
|
Package site provides the "ctx site" command for managing the ctx.ist static site. |
|
cmd/feed
Package feed provides the "ctx site feed" subcommand.
|
Package feed provides the "ctx site feed" subcommand. |
|
core
Package core provides shared types for the site command: Atom XML feed structures used by the feed subcommand.
|
Package core provides shared types for the site command: Atom XML feed structures used by the feed subcommand. |
|
core/rss
Package rss generates Atom XML feeds from blog post metadata.
|
Package rss generates Atom XML feeds from blog post metadata. |
|
core/scan
Package scan reads blog post directories, parses frontmatter, and returns sorted post metadata.
|
Package scan reads blog post directories, parses frontmatter, and returns sorted post metadata. |
|
Package status implements the "ctx status" command for displaying context health and summary information.
|
Package status implements the "ctx status" command for displaying context health and summary information. |
|
cmd/root
Package root implements the ctx status command.
|
Package root implements the ctx status command. |
|
core
Package core provides formatting, sorting, preview, and type definitions for the status command.
|
Package core provides formatting, sorting, preview, and type definitions for the status command. |
|
core/out
Package out writes context status as JSON or formatted text to command output.
|
Package out writes context status as JSON or formatted text to command output. |
|
core/preview
Package preview extracts short content previews from context files for status display.
|
Package preview extracts short content previews from context files for status display. |
|
core/sort
Package sort orders context files by priority and recency for status output.
|
Package sort orders context files by priority and recency for status output. |
|
Package sync implements the "ctx sync" command for reconciling context files with codebase changes.
|
Package sync implements the "ctx sync" command for reconciling context files with codebase changes. |
|
cmd/root
Package root implements the ctx sync command.
|
Package root implements the ctx sync command. |
|
core
Package core provides shared helpers for the sync command: action types, codebase detection, and validation logic.
|
Package core provides shared helpers for the sync command: action types, codebase detection, and validation logic. |
|
core/action
Package action detects discrepancies between the codebase and context documentation.
|
Package action detects discrepancies between the codebase and context documentation. |
|
core/validate
Package validate checks for undocumented package managers, config files, and directories.
|
Package validate checks for undocumented package managers, config files, and directories. |
|
Package system provides the "ctx system" command for resource monitoring and hidden subcommands that implement Claude Code hook logic as native Go binaries, replacing the shell scripts previously deployed to .claude/hooks/.
|
Package system provides the "ctx system" command for resource monitoring and hidden subcommands that implement Claude Code hook logic as native Go binaries, replacing the shell scripts previously deployed to .claude/hooks/. |
|
cmd/backup
Package backup implements the ctx system backup subcommand.
|
Package backup implements the ctx system backup subcommand. |
|
cmd/block_dangerous_command
Package block_dangerous_commands implements the ctx system block-dangerous-commands subcommand.
|
Package block_dangerous_commands implements the ctx system block-dangerous-commands subcommand. |
|
cmd/block_non_path_ctx
Package block_non_path_ctx implements the ctx system block-non-path-ctx subcommand.
|
Package block_non_path_ctx implements the ctx system block-non-path-ctx subcommand. |
|
cmd/bootstrap
Package bootstrap implements the ctx system bootstrap subcommand.
|
Package bootstrap implements the ctx system bootstrap subcommand. |
|
cmd/check_backup_age
Package check_backup_age implements the ctx system check-backup-age subcommand.
|
Package check_backup_age implements the ctx system check-backup-age subcommand. |
|
cmd/check_ceremony
Package check_ceremonies implements the ctx system check-ceremonies subcommand.
|
Package check_ceremonies implements the ctx system check-ceremonies subcommand. |
|
cmd/check_context_size
Package check_context_size implements the ctx system check-context-size subcommand.
|
Package check_context_size implements the ctx system check-context-size subcommand. |
|
cmd/check_freshness
Package check_freshness implements the ctx system check-freshness subcommand.
|
Package check_freshness implements the ctx system check-freshness subcommand. |
|
cmd/check_journal
Package check_journal implements the ctx system check-journal subcommand.
|
Package check_journal implements the ctx system check-journal subcommand. |
|
cmd/check_knowledge
Package check_knowledge implements the ctx system check-knowledge subcommand.
|
Package check_knowledge implements the ctx system check-knowledge subcommand. |
|
cmd/check_map_staleness
Package check_map_staleness implements the ctx system check-map-staleness subcommand.
|
Package check_map_staleness implements the ctx system check-map-staleness subcommand. |
|
cmd/check_memory_drift
Package check_memory_drift implements the ctx system check-memory-drift subcommand.
|
Package check_memory_drift implements the ctx system check-memory-drift subcommand. |
|
cmd/check_persistence
Package check_persistence implements the ctx system check-persistence subcommand.
|
Package check_persistence implements the ctx system check-persistence subcommand. |
|
cmd/check_reminder
Package check_reminders implements the ctx system check-reminders subcommand.
|
Package check_reminders implements the ctx system check-reminders subcommand. |
|
cmd/check_resources
Package check_resources implements the ctx system check-resources subcommand.
|
Package check_resources implements the ctx system check-resources subcommand. |
|
cmd/check_task_completion
Package check_task_completion implements the ctx system check-task-completion subcommand.
|
Package check_task_completion implements the ctx system check-task-completion subcommand. |
|
cmd/check_version
Package check_version implements the ctx system check-version subcommand.
|
Package check_version implements the ctx system check-version subcommand. |
|
cmd/context_load_gate
Package context_load_gate implements the ctx system context-load-gate subcommand.
|
Package context_load_gate implements the ctx system context-load-gate subcommand. |
|
cmd/events
Package events implements the ctx system events subcommand.
|
Package events implements the ctx system events subcommand. |
|
cmd/heartbeat
Package heartbeat implements the ctx system heartbeat subcommand.
|
Package heartbeat implements the ctx system heartbeat subcommand. |
|
cmd/mark_journal
Package mark_journal implements the ctx system mark-journal subcommand.
|
Package mark_journal implements the ctx system mark-journal subcommand. |
|
cmd/mark_wrapped_up
Package mark_wrapped_up implements the ctx system mark-wrapped-up subcommand.
|
Package mark_wrapped_up implements the ctx system mark-wrapped-up subcommand. |
|
cmd/message
Package message provides the parent command for ctx system message.
|
Package message provides the parent command for ctx system message. |
|
cmd/message/cmd/edit
Package edit provides the ctx system message edit subcommand for customizing hook templates.
|
Package edit provides the ctx system message edit subcommand for customizing hook templates. |
|
cmd/message/cmd/list
Package list provides the ctx system message list subcommand for displaying available hook messages.
|
Package list provides the ctx system message list subcommand for displaying available hook messages. |
|
cmd/message/cmd/reset
Package reset provides the ctx system message reset subcommand for restoring default hook templates.
|
Package reset provides the ctx system message reset subcommand for restoring default hook templates. |
|
cmd/message/cmd/root
Package root provides the parent command for ctx system message.
|
Package root provides the parent command for ctx system message. |
|
cmd/message/cmd/show
Package show provides the ctx system message show subcommand for viewing hook template content.
|
Package show provides the ctx system message show subcommand for viewing hook template content. |
|
cmd/pause
Package pause implements the ctx system pause subcommand.
|
Package pause implements the ctx system pause subcommand. |
|
cmd/post_commit
Package post_commit implements the ctx system post-commit subcommand.
|
Package post_commit implements the ctx system post-commit subcommand. |
|
cmd/prune
Package prune implements the ctx system prune subcommand.
|
Package prune implements the ctx system prune subcommand. |
|
cmd/qa_reminder
Package qa_reminder implements the ctx system qa-reminder subcommand.
|
Package qa_reminder implements the ctx system qa-reminder subcommand. |
|
cmd/resources
Package resources implements the ctx system resources subcommand.
|
Package resources implements the ctx system resources subcommand. |
|
cmd/resume
Package resume implements the ctx system resume subcommand.
|
Package resume implements the ctx system resume subcommand. |
|
cmd/specs_nudge
Package specs_nudge implements the ctx system specs-nudge subcommand.
|
Package specs_nudge implements the ctx system specs-nudge subcommand. |
|
cmd/stats
Package stats implements the ctx system stats subcommand.
|
Package stats implements the ctx system stats subcommand. |
|
core
Package core provides shared helpers used by all system subcommand packages.
|
Package core provides shared helpers used by all system subcommand packages. |
|
core/archive
Package archive creates compressed tar archives of context data with optional SMB backup.
|
Package archive creates compressed tar archives of context data with optional SMB backup. |
|
core/bootstrap
Package bootstrap checks plugin installation status and emits warnings during context bootstrap.
|
Package bootstrap checks plugin installation status and emits warnings during context bootstrap. |
|
core/ceremony
Package ceremony assembles hook ceremony output from recent journal files and message templates.
|
Package ceremony assembles hook ceremony output from recent journal files and message templates. |
|
core/check
Package check provides shared preamble logic and throttling for hook input processing.
|
Package check provides shared preamble logic and throttling for hook input processing. |
|
core/counter
Package counter reads and writes integer counters persisted in state files.
|
Package counter reads and writes integer counters persisted in state files. |
|
core/drift
Package drift detects version drift across VERSION, plugin, and marketplace files and reports stale context entries.
|
Package drift detects version drift across VERSION, plugin, and marketplace files and reports stale context entries. |
|
core/event
Package event formats and renders event log timestamps and entries.
|
Package event formats and renders event log timestamps and entries. |
|
core/health
Package health monitors context health by detecting stale architecture maps and pruning expired state files.
|
Package health monitors context health by detecting stale architecture maps and pruning expired state files. |
|
core/heartbeat
Package heartbeat reads and writes mtime values for session heartbeat tracking.
|
Package heartbeat reads and writes mtime values for session heartbeat tracking. |
|
core/journal
Package journal scans journal directories for the newest file modification time and manages journal state.
|
Package journal scans journal directories for the newest file modification time and manages journal state. |
|
core/knowledge
Package knowledge scans knowledge files against configured thresholds and emits warnings when limits are exceeded.
|
Package knowledge scans knowledge files against configured thresholds and emits warnings when limits are exceeded. |
|
core/load
Package load extracts index content from context files and handles load-gate logic during session startup.
|
Package load extracts index content from context files and handles load-gate logic during session startup. |
|
core/log
Package log appends timestamped messages to hook log files with automatic rotation.
|
Package log appends timestamped messages to hook log files with automatic rotation. |
|
core/message
Package message loads and renders hook message templates with priority resolution between user overrides and defaults.
|
Package message loads and renders hook message templates with priority resolution between user overrides and defaults. |
|
core/nudge
Package nudge emits checkpoint, pause, and oversize nudge notifications during sessions.
|
Package nudge emits checkpoint, pause, and oversize nudge notifications during sessions. |
|
core/persistence
Package persistence tracks edit counter state for persistence nudge timing.
|
Package persistence tracks edit counter state for persistence nudge timing. |
|
core/session
Package session builds hook JSON responses and manages session token tracking.
|
Package session builds hook JSON responses and manages session token tracking. |
|
core/state
Package state provides the project-scoped runtime state directory and initialization checks.
|
Package state provides the project-scoped runtime state directory and initialization checks. |
|
core/stats
Package stats provides session token usage statistics reading and formatting.
|
Package stats provides session token usage statistics reading and formatting. |
|
core/time
Package time returns the most recent modification time across context files.
|
Package time returns the most recent modification time across context files. |
|
core/version
Package version parses semantic versions and checks for update availability.
|
Package version parses semantic versions and checks for update availability. |
|
Package task implements the ctx task command for managing task archival and snapshots.
|
Package task implements the ctx task command for managing task archival and snapshots. |
|
cmd/archive
Package archive implements the ctx task archive subcommand.
|
Package archive implements the ctx task archive subcommand. |
|
cmd/complete
Package complete implements the ctx task complete command.
|
Package complete implements the ctx task complete command. |
|
cmd/snapshot
Package snapshot implements the ctx task snapshot subcommand.
|
Package snapshot implements the ctx task snapshot subcommand. |
|
core
Package core provides shared helpers for task subcommands.
|
Package core provides shared helpers for task subcommands. |
|
core/count
Package count counts pending top-level tasks in TASKS.md.
|
Package count counts pending top-level tasks in TASKS.md. |
|
core/path
Package path resolves file paths for TASKS.md and the task archive directory.
|
Package path resolves file paths for TASKS.md and the task archive directory. |
|
Package watch implements the "ctx watch" command for processing structured context-update commands from AI output.
|
Package watch implements the "ctx watch" command for processing structured context-update commands from AI output. |
|
cmd/root
Package root implements the ctx watch command.
|
Package root implements the ctx watch command. |
|
core
Package core provides shared helpers for the watch command: stream processing, update application, and context-update types.
|
Package core provides shared helpers for the watch command: stream processing, update application, and context-update types. |
|
core/apply
Package apply routes context updates to the appropriate handler for writing entries or completing tasks.
|
Package apply routes context updates to the appropriate handler for writing entries or completing tasks. |
|
core/stream
Package stream parses stdin for XML context-update tags and dispatches them for processing.
|
Package stream parses stdin for XML context-update tags and dispatches them for processing. |
|
Package why provides the "ctx why" command.
|
Package why provides the "ctx why" command. |
|
cmd/root
Package root implements the ctx why command.
|
Package root implements the ctx why command. |
Click to show internal directories.
Click to hide internal directories.