internal/

directory
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0

Directories

Path Synopsis
Package assets provides embedded assets for ctx: .context/ templates stamped by "ctx init" and the Claude Code plugin (skills, hooks, manifest) served directly from claude/.
Package assets provides embedded assets for ctx: .context/ templates stamped by "ctx init" and the Claude Code plugin (skills, hooks, manifest) served directly from claude/.
hooks/messages
Package messages provides metadata for hook message templates.
Package messages provides metadata for hook message templates.
read/agent
Package agent provides access to agent integration files embedded in the assets filesystem.
Package agent provides access to agent integration files embedded in the assets filesystem.
read/catalog
Package catalog lists available context template files from the embedded assets.
Package catalog lists available context template files from the embedded assets.
read/claude
Package claude provides access to Claude Code integration files embedded in the assets filesystem.
Package claude provides access to Claude Code integration files embedded in the assets filesystem.
read/desc
Package desc provides command, flag, text, and example description lookups backed by embedded YAML.
Package desc provides command, flag, text, and example description lookups backed by embedded YAML.
read/entry
Package entry provides access to entry template files embedded in the assets filesystem.
Package entry provides access to entry template files embedded in the assets filesystem.
read/hook
Package hook provides access to hook message templates and the hook registry from embedded assets.
Package hook provides access to hook message templates and the hook registry from embedded assets.
read/journal
Package journal provides access to journal site assets such as extra CSS.
Package journal provides access to journal site assets such as extra CSS.
read/lookup
Package lookup owns the YAML description maps and eager initialization for all embedded text lookups.
Package lookup owns the YAML description maps and eager initialization for all embedded text lookups.
read/loop
Package loop provides access to Ralph autonomous loop templates from embedded assets.
Package loop provides access to Ralph autonomous loop templates from embedded assets.
read/makefile
Package makefile provides access to the embedded Makefile.ctx template.
Package makefile provides access to the embedded Makefile.ctx template.
read/philosophy
Package philosophy provides access to embedded why-documents (manifesto, about, design invariants).
Package philosophy provides access to embedded why-documents (manifesto, about, design invariants).
read/project
Package project provides access to project-root files and directory README templates from embedded assets.
Package project provides access to project-root files and directory README templates from embedded assets.
read/prompt
Package prompt provides access to embedded prompt templates for code review, refactoring, and explanation.
Package prompt provides access to embedded prompt templates for code review, refactoring, and explanation.
read/schema
Package schema provides access to the embedded JSON Schema for `.ctxrc` validation.
Package schema provides access to the embedded JSON Schema for `.ctxrc` validation.
read/skill
Package skill provides access to embedded skill directories, SKILL.md files, and reference documents.
Package skill provides access to embedded skill directories, SKILL.md files, and reference documents.
read/template
Package template provides access to context template files (TASKS.md, DECISIONS.md, etc.) from embedded assets.
Package template provides access to context template files (TASKS.md, DECISIONS.md, etc.) from embedded assets.
tpl
Package tpl holds Sprintf-based format string constants that cannot yet be expressed in the YAML text system.
Package tpl holds Sprintf-based format string constants that cannot yet be expressed in the YAML text system.
Package bootstrap initializes the ctx CLI application.
Package bootstrap initializes the ctx CLI application.
Package claude provides Claude Code integration types and utilities.
Package claude provides Claude Code integration types and utilities.
cli
Package cli contains integration tests that verify the assembled CLI binary behaves correctly end-to-end.
Package cli contains integration tests that verify the assembled CLI binary behaves correctly end-to-end.
add
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.
add/cmd
Package cmd provides coverage tests for the ctx add subcommand tree.
Package cmd provides coverage tests for the ctx add subcommand tree.
add/cmd/root
Package root implements the ctx add command.
Package root implements the ctx add command.
add/core
Package core provides helper functions for the add command.
Package core provides helper functions for the add command.
add/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.
add/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.
add/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.
add/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.
add/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.
add/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.
agent
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.
agent/cmd/root
Package root implements the ctx agent command.
Package root implements the ctx agent command.
agent/core
Package core provides helper functions for the agent command.
Package core provides helper functions for the agent command.
agent/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.
agent/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.
agent/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.
agent/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.
agent/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.
change
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.
change/cmd/root
Package root implements the ctx change command.
Package root implements the ctx change command.
change/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.
change/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.
change/core/render
Package render formats change summaries into human-readable Markdown output.
Package render formats change summaries into human-readable Markdown output.
change/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.
compact
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.
compact/cmd/root
Package root implements the ctx compact command.
Package root implements the ctx compact command.
compact/core
Package core provides the compact command's CLI-specific orchestration.
Package core provides the compact command's CLI-specific orchestration.
config
Package config provides the "ctx config" command for managing runtime configuration profiles.
Package config provides the "ctx config" command for managing runtime configuration profiles.
config/cmd/schema
Package schema implements the ctx config schema subcommand.
Package schema implements the ctx config schema subcommand.
config/cmd/status
Package status implements the ctx config status subcommand.
Package status implements the ctx config status subcommand.
config/cmd/switchcmd
Package switchcmd implements the ctx config switch subcommand.
Package switchcmd implements the ctx config switch subcommand.
config/core
Package core provides shared helpers for config subcommands.
Package core provides shared helpers for config subcommands.
decision
Package decision provides commands for managing DECISIONS.md.
Package decision provides commands for managing DECISIONS.md.
decision/cmd/reindex
Package reindex provides the "ctx decisions reindex" subcommand.
Package reindex provides the "ctx decisions reindex" subcommand.
dep
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.
dep/cmd/root
Package root implements the ctx dep command.
Package root implements the ctx dep command.
dep/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.
doctor
Package doctor performs structural health checks for context, hooks, and configuration.
Package doctor performs structural health checks for context, hooks, and configuration.
doctor/cmd/root
Package root implements the ctx doctor command.
Package root implements the ctx doctor command.
doctor/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.
drift
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.
drift/cmd/root
Package root implements the ctx drift command.
Package root implements the ctx drift command.
drift/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.
guide
Package guide provides the "ctx guide" command.
Package guide provides the "ctx guide" command.
guide/cmd/root
Package root implements the ctx guide command.
Package root implements the ctx guide command.
hook
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.
hook/cmd/root
Package root implements the ctx hook command.
Package root implements the ctx hook command.
initialize
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.
initialize/cmd/root
Package root implements the ctx init command.
Package root implements the ctx init command.
initialize/core
Package core provides helper functions for the initialize command.
Package core provides helper functions for the initialize command.
initialize/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.
initialize/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.
initialize/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.
initialize/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.
initialize/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.
initialize/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.
initialize/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/.
initialize/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.
initialize/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.
initialize/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.
journal
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.
journal/cmd/obsidian
Package obsidian implements the ctx journal obsidian subcommand.
Package obsidian implements the ctx journal obsidian subcommand.
journal/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.
journal/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.
journal/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.
journal/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.
journal/core/frontmatter
Package frontmatter transforms journal YAML frontmatter into Obsidian-compatible format.
Package frontmatter transforms journal YAML frontmatter into Obsidian-compatible format.
journal/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.
journal/core/group
Package group organizes journal entries by month for chronological display.
Package group organizes journal entries by month for chronological display.
journal/core/moc
Package moc generates Obsidian Maps of Content for journal vault navigation.
Package moc generates Obsidian Maps of Content for journal vault navigation.
journal/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.
journal/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.
journal/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.
journal/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.
journal/core/session
Package session counts unique sessions across topic data.
Package session counts unique sessions across topic data.
journal/core/turn
Package turn extracts and merges conversation turn bodies from journal entries.
Package turn extracts and merges conversation turn bodies from journal entries.
journal/core/wikilink
Package wikilink converts standard Markdown links to Obsidian wikilink format.
Package wikilink converts standard Markdown links to Obsidian wikilink format.
journal/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.
learning
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.
learning/cmd/reindex
Package reindex provides the "ctx learning reindex" subcommand.
Package reindex provides the "ctx learning reindex" subcommand.
load
Package load provides the command for outputting assembled context.
Package load provides the command for outputting assembled context.
load/cmd/root
Package root implements the ctx load command.
Package root implements the ctx load command.
load/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.
loop
Package loop provides the command for generating Ralph loop scripts.
Package loop provides the command for generating Ralph loop scripts.
loop/cmd/root
Package root implements the ctx loop command.
Package root implements the ctx loop command.
mcp
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.
mcp/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.
memory
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.
memory/cmd/diff
Package diff implements the ctx memory diff subcommand.
Package diff implements the ctx memory diff subcommand.
memory/cmd/importer
Package importer implements the ctx memory import subcommand.
Package importer implements the ctx memory import subcommand.
memory/cmd/publish
Package publish implements the ctx memory publish subcommand.
Package publish implements the ctx memory publish subcommand.
memory/cmd/status
Package status implements the "ctx memory status" subcommand.
Package status implements the "ctx memory status" subcommand.
memory/cmd/sync
Package sync implements the "ctx memory sync" subcommand.
Package sync implements the "ctx memory sync" subcommand.
memory/cmd/unpublish
Package unpublish implements the ctx memory unpublish subcommand.
Package unpublish implements the ctx memory unpublish subcommand.
memory/core
Package core provides shared helpers for memory subcommands.
Package core provides shared helpers for memory subcommands.
notify
Package notify implements the ctx notify command for sending webhook notifications.
Package notify implements the ctx notify command for sending webhook notifications.
notify/cmd/setup
Package setup implements the ctx notify setup subcommand.
Package setup implements the ctx notify setup subcommand.
notify/cmd/test
Package test implements the ctx notify test subcommand.
Package test implements the ctx notify test subcommand.
pad
Package pad implements the "ctx pad" command for managing an encrypted scratchpad.
Package pad implements the "ctx pad" command for managing an encrypted scratchpad.
pad/cmd/add
Package add implements the ctx pad add subcommand.
Package add implements the ctx pad add subcommand.
pad/cmd/edit
Package edit implements the ctx pad edit subcommand.
Package edit implements the ctx pad edit subcommand.
pad/cmd/export
Package export implements the ctx pad export subcommand.
Package export implements the ctx pad export subcommand.
pad/cmd/imp
Package imp implements the ctx pad import subcommand.
Package imp implements the ctx pad import subcommand.
pad/cmd/merge
Package merge implements the ctx pad merge subcommand.
Package merge implements the ctx pad merge subcommand.
pad/cmd/mv
Package mv implements the ctx pad mv subcommand.
Package mv implements the ctx pad mv subcommand.
pad/cmd/resolve
Package resolve implements the ctx pad resolve subcommand.
Package resolve implements the ctx pad resolve subcommand.
pad/cmd/rm
Package rm implements the ctx pad rm subcommand.
Package rm implements the ctx pad rm subcommand.
pad/cmd/show
Package show implements the ctx pad show subcommand.
Package show implements the ctx pad show subcommand.
pad/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.
pad/core/blob
Package blob handles binary blob encoding and decoding within scratchpad entries.
Package blob handles binary blob encoding and decoding within scratchpad entries.
pad/core/crypto
Package crypto reads and decrypts encrypted scratchpad files.
Package crypto reads and decrypts encrypted scratchpad files.
pad/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.
pad/core/parse
Package parse splits raw scratchpad content into individual entry lines.
Package parse splits raw scratchpad content into individual entry lines.
pad/core/store
Package store manages scratchpad file persistence including encryption and path resolution.
Package store manages scratchpad file persistence including encryption and path resolution.
pad/core/validate
Package validate checks that scratchpad entry indexes are within valid bounds.
Package validate checks that scratchpad entry indexes are within valid bounds.
pause
Package pause pauses all context hooks for the current session.
Package pause pauses all context hooks for the current session.
pause/cmd/root
Package root implements the ctx pause command.
Package root implements the ctx pause command.
permission
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.
permission/cmd/restore
Package restore implements the ctx permission restore subcommand.
Package restore implements the ctx permission restore subcommand.
permission/cmd/snapshot
Package snapshot implements the ctx permission snapshot subcommand.
Package snapshot implements the ctx permission snapshot subcommand.
permission/core
Package core provides shared helpers used by permissions subcommand packages.
Package core provides shared helpers used by permissions subcommand packages.
prompt
Package prompt implements the "ctx prompt" command for managing reusable prompt templates.
Package prompt implements the "ctx prompt" command for managing reusable prompt templates.
prompt/cmd/add
Package add implements the ctx prompt add subcommand.
Package add implements the ctx prompt add subcommand.
prompt/cmd/list
Package list implements the ctx prompt list subcommand.
Package list implements the ctx prompt list subcommand.
prompt/cmd/rm
Package rm implements the ctx prompt rm subcommand.
Package rm implements the ctx prompt rm subcommand.
prompt/cmd/show
Package show implements the ctx prompt show subcommand.
Package show implements the ctx prompt show subcommand.
prompt/core
Package core provides shared helpers used by all prompt subcommand packages.
Package core provides shared helpers used by all prompt subcommand packages.
recall
Package recall provides CLI commands for browsing and searching AI session history.
Package recall provides CLI commands for browsing and searching AI session history.
recall/cmd/export
Package export implements the ctx recall export subcommand.
Package export implements the ctx recall export subcommand.
recall/cmd/list
Package list implements the ctx recall list subcommand.
Package list implements the ctx recall list subcommand.
recall/cmd/lock
Package lock implements the ctx recall lock subcommand.
Package lock implements the ctx recall lock subcommand.
recall/cmd/show
Package show implements the ctx recall show subcommand.
Package show implements the ctx recall show subcommand.
recall/cmd/sync
Package sync implements the ctx recall sync subcommand.
Package sync implements the ctx recall sync subcommand.
recall/cmd/unlock
Package unlock implements the ctx recall unlock subcommand.
Package unlock implements the ctx recall unlock subcommand.
recall/core
Package core provides shared operations used by all recall subcommand packages.
Package core provides shared operations used by all recall subcommand packages.
recall/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.
recall/core/execute
Package execute writes journal files according to an export plan.
Package execute writes journal files according to an export plan.
recall/core/extract
Package extract extracts YAML frontmatter blocks from Markdown content.
Package extract extracts YAML frontmatter blocks from Markdown content.
recall/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.
recall/core/frontmatter
Package frontmatter resolves headings and builds YAML frontmatter for journal entries.
Package frontmatter resolves headings and builds YAML frontmatter for journal entries.
recall/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.
recall/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.
recall/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.
recall/core/query
Package query finds sessions for the current or all projects.
Package query finds sessions for the current or all projects.
recall/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.
recall/core/validate
Package validate checks messages and flag combinations for recall export validity.
Package validate checks messages and flag combinations for recall export validity.
reindex
Package reindex provides the ctx reindex convenience command.
Package reindex provides the ctx reindex convenience command.
reindex/cmd/root
Package root implements the ctx reindex command.
Package root implements the ctx reindex command.
remind
Package remind manages session-scoped reminders stored in .context/reminders.json.
Package remind manages session-scoped reminders stored in .context/reminders.json.
remind/cmd/add
Package add implements the ctx remind add subcommand.
Package add implements the ctx remind add subcommand.
remind/cmd/dismiss
Package dismiss implements the ctx remind dismiss subcommand.
Package dismiss implements the ctx remind dismiss subcommand.
remind/cmd/list
Package list implements the ctx remind list subcommand.
Package list implements the ctx remind list subcommand.
remind/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.
resume
Package resume resumes context hooks after a pause.
Package resume resumes context hooks after a pause.
resume/cmd/root
Package root implements the ctx resume command.
Package root implements the ctx resume command.
serve
Package serve implements the "ctx serve" command for serving static sites locally.
Package serve implements the "ctx serve" command for serving static sites locally.
serve/cmd/root
Package root implements the ctx serve command.
Package root implements the ctx serve command.
site
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.
site/cmd/feed
Package feed provides the "ctx site feed" subcommand.
Package feed provides the "ctx site feed" subcommand.
site/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.
site/core/rss
Package rss generates Atom XML feeds from blog post metadata.
Package rss generates Atom XML feeds from blog post metadata.
site/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.
status
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.
status/cmd/root
Package root implements the ctx status command.
Package root implements the ctx status command.
status/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.
status/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.
status/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.
status/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.
sync
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.
sync/cmd/root
Package root implements the ctx sync command.
Package root implements the ctx sync command.
sync/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.
sync/core/action
Package action detects discrepancies between the codebase and context documentation.
Package action detects discrepancies between the codebase and context documentation.
sync/core/validate
Package validate checks for undocumented package managers, config files, and directories.
Package validate checks for undocumented package managers, config files, and directories.
system
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/.
system/cmd/backup
Package backup implements the ctx system backup subcommand.
Package backup implements the ctx system backup subcommand.
system/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.
system/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.
system/cmd/bootstrap
Package bootstrap implements the ctx system bootstrap subcommand.
Package bootstrap implements the ctx system bootstrap subcommand.
system/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.
system/cmd/check_ceremony
Package check_ceremonies implements the ctx system check-ceremonies subcommand.
Package check_ceremonies implements the ctx system check-ceremonies subcommand.
system/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.
system/cmd/check_freshness
Package check_freshness implements the ctx system check-freshness subcommand.
Package check_freshness implements the ctx system check-freshness subcommand.
system/cmd/check_journal
Package check_journal implements the ctx system check-journal subcommand.
Package check_journal implements the ctx system check-journal subcommand.
system/cmd/check_knowledge
Package check_knowledge implements the ctx system check-knowledge subcommand.
Package check_knowledge implements the ctx system check-knowledge subcommand.
system/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.
system/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.
system/cmd/check_persistence
Package check_persistence implements the ctx system check-persistence subcommand.
Package check_persistence implements the ctx system check-persistence subcommand.
system/cmd/check_reminder
Package check_reminders implements the ctx system check-reminders subcommand.
Package check_reminders implements the ctx system check-reminders subcommand.
system/cmd/check_resources
Package check_resources implements the ctx system check-resources subcommand.
Package check_resources implements the ctx system check-resources subcommand.
system/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.
system/cmd/check_version
Package check_version implements the ctx system check-version subcommand.
Package check_version implements the ctx system check-version subcommand.
system/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.
system/cmd/events
Package events implements the ctx system events subcommand.
Package events implements the ctx system events subcommand.
system/cmd/heartbeat
Package heartbeat implements the ctx system heartbeat subcommand.
Package heartbeat implements the ctx system heartbeat subcommand.
system/cmd/mark_journal
Package mark_journal implements the ctx system mark-journal subcommand.
Package mark_journal implements the ctx system mark-journal subcommand.
system/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.
system/cmd/message
Package message provides the parent command for ctx system message.
Package message provides the parent command for ctx system message.
system/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.
system/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.
system/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.
system/cmd/message/cmd/root
Package root provides the parent command for ctx system message.
Package root provides the parent command for ctx system message.
system/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.
system/cmd/pause
Package pause implements the ctx system pause subcommand.
Package pause implements the ctx system pause subcommand.
system/cmd/post_commit
Package post_commit implements the ctx system post-commit subcommand.
Package post_commit implements the ctx system post-commit subcommand.
system/cmd/prune
Package prune implements the ctx system prune subcommand.
Package prune implements the ctx system prune subcommand.
system/cmd/qa_reminder
Package qa_reminder implements the ctx system qa-reminder subcommand.
Package qa_reminder implements the ctx system qa-reminder subcommand.
system/cmd/resources
Package resources implements the ctx system resources subcommand.
Package resources implements the ctx system resources subcommand.
system/cmd/resume
Package resume implements the ctx system resume subcommand.
Package resume implements the ctx system resume subcommand.
system/cmd/specs_nudge
Package specs_nudge implements the ctx system specs-nudge subcommand.
Package specs_nudge implements the ctx system specs-nudge subcommand.
system/cmd/stats
Package stats implements the ctx system stats subcommand.
Package stats implements the ctx system stats subcommand.
system/core
Package core provides shared helpers used by all system subcommand packages.
Package core provides shared helpers used by all system subcommand packages.
system/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.
system/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.
system/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.
system/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.
system/core/counter
Package counter reads and writes integer counters persisted in state files.
Package counter reads and writes integer counters persisted in state files.
system/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.
system/core/event
Package event formats and renders event log timestamps and entries.
Package event formats and renders event log timestamps and entries.
system/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.
system/core/heartbeat
Package heartbeat reads and writes mtime values for session heartbeat tracking.
Package heartbeat reads and writes mtime values for session heartbeat tracking.
system/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.
system/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.
system/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.
system/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.
system/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.
system/core/nudge
Package nudge emits checkpoint, pause, and oversize nudge notifications during sessions.
Package nudge emits checkpoint, pause, and oversize nudge notifications during sessions.
system/core/persistence
Package persistence tracks edit counter state for persistence nudge timing.
Package persistence tracks edit counter state for persistence nudge timing.
system/core/session
Package session builds hook JSON responses and manages session token tracking.
Package session builds hook JSON responses and manages session token tracking.
system/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.
system/core/stats
Package stats provides session token usage statistics reading and formatting.
Package stats provides session token usage statistics reading and formatting.
system/core/time
Package time returns the most recent modification time across context files.
Package time returns the most recent modification time across context files.
system/core/version
Package version parses semantic versions and checks for update availability.
Package version parses semantic versions and checks for update availability.
task
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.
task/cmd/archive
Package archive implements the ctx task archive subcommand.
Package archive implements the ctx task archive subcommand.
task/cmd/complete
Package complete implements the ctx task complete command.
Package complete implements the ctx task complete command.
task/cmd/snapshot
Package snapshot implements the ctx task snapshot subcommand.
Package snapshot implements the ctx task snapshot subcommand.
task/core
Package core provides shared helpers for task subcommands.
Package core provides shared helpers for task subcommands.
task/core/count
Package count counts pending top-level tasks in TASKS.md.
Package count counts pending top-level tasks in TASKS.md.
task/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.
watch
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.
watch/cmd/root
Package root implements the ctx watch command.
Package root implements the ctx watch command.
watch/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.
watch/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.
watch/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.
why
Package why provides the "ctx why" command.
Package why provides the "ctx why" command.
why/cmd/root
Package root implements the ctx why command.
Package root implements the ctx why command.
Package compliance contains cross-cutting tests that verify the entire codebase adheres to project standards.
Package compliance contains cross-cutting tests that verify the entire codebase adheres to project standards.
Package config provides configuration constants, regex patterns, and entry type definitions used across the ctx codebase.
Package config provides configuration constants, regex patterns, and entry type definitions used across the ctx codebase.
agent
Package agent defines budget, cooldown, and scoring constants for the ctx agent command.
Package agent defines budget, cooldown, and scoring constants for the ctx agent command.
architecture
Package architecture defines constants for architecture map files and staleness checks.
Package architecture defines constants for architecture map files and staleness checks.
archive
Package archive defines constants for task archival, backups, and snapshot formatting.
Package archive defines constants for task archival, backups, and snapshot formatting.
asset
Package asset defines path constants for embedded asset directories and files.
Package asset defines path constants for embedded asset directories and files.
bootstrap
Package bootstrap defines display and parsing constants for the ctx bootstrap command.
Package bootstrap defines display and parsing constants for the ctx bootstrap command.
box
Package box defines box-drawing characters and layout constants for nudge display.
Package box defines box-drawing characters and layout constants for nudge display.
ceremony
Package ceremony defines configuration constants for end-of-session ceremony hooks.
Package ceremony defines configuration constants for end-of-session ceremony hooks.
claude
Package claude defines constants for Claude API content types, roles, and integration files.
Package claude defines constants for Claude API content types, roles, and integration files.
cli
Package cli defines CLI annotation keys, XML attribute names, and confirmation input constants.
Package cli defines CLI annotation keys, XML attribute names, and confirmation input constants.
content
Package content defines constants for content detection and validation.
Package content defines constants for content detection and validation.
crypto
Package crypto defines constants for encryption key sizes, nonce lengths, and key file names.
Package crypto defines constants for encryption key sizes, nonce lengths, and key file names.
ctx
Package ctx defines the canonical context file read order and required file lists.
Package ctx defines the canonical context file read order and required file lists.
dep
Package dep defines the dependency detection map used by ctx sync.
Package dep defines the dependency detection map used by ctx sync.
dir
Package dir defines directory path constants used throughout the application.
Package dir defines directory path constants used throughout the application.
doctor
Package doctor defines check names and category constants for ctx doctor results.
Package doctor defines check names and category constants for ctx doctor results.
embed/cmd
Package cmd defines description key constants for CLI commands.
Package cmd defines description key constants for CLI commands.
embed/flag
Package flag defines description key constants for CLI flags.
Package flag defines description key constants for CLI flags.
embed/text
Package text defines description key constants for user-facing text.
Package text defines description key constants for user-facing text.
entry
Package entry defines entry type identifiers, field names, and file routing maps.
Package entry defines entry type identifiers, field names, and file routing maps.
env
Package env defines environment variable names and toggle values for ctx configuration.
Package env defines environment variable names and toggle values for ctx configuration.
event
Package event defines event log constants, display limits, and context-size event names.
Package event defines event log constants, display limits, and context-size event names.
file
Package file defines file extension, filename, and profile constants used across ctx.
Package file defines file extension, filename, and profile constants used across ctx.
flag
Package flag defines CLI flag name constants for registration and error display.
Package flag defines CLI flag name constants for registration and error display.
fmt
Package fmt defines output format identifiers for CLI commands.
Package fmt defines output format identifiers for CLI commands.
format
Package format provides shared constants for number and unit formatting.
Package format provides shared constants for number and unit formatting.
freshness
Package freshness defines constants for technology-dependent file staleness checks.
Package freshness defines constants for technology-dependent file staleness checks.
fs
Package fs defines file and directory permission constants.
Package fs defines file and directory permission constants.
git
Package git provides constants for git binary invocation.
Package git provides constants for git binary invocation.
heartbeat
Package heartbeat defines state file prefixes and filenames for the heartbeat subsystem.
Package heartbeat defines state file prefixes and filenames for the heartbeat subsystem.
hook
Package hook defines hook names, event lifecycle stages, decision values, and prefixes.
Package hook defines hook names, event lifecycle stages, decision values, and prefixes.
journal
Package journal defines constants for journal export, site generation, and display limits.
Package journal defines constants for journal export, site generation, and display limits.
knowledge
Package knowledge defines configuration constants for the knowledge hook.
Package knowledge defines configuration constants for the knowledge hook.
load_gate
Package load_gate defines constants for the context load gate and auto-prune subsystem.
Package load_gate defines constants for the context load gate and auto-prune subsystem.
loop
Package loop defines configuration constants for loop script generation.
Package loop defines configuration constants for loop script generation.
marker
Package marker defines HTML comment markers for parsing and generating embedded context blocks.
Package marker defines HTML comment markers for parsing and generating embedded context blocks.
mcp
Package mcp defines constants for the MCP server protocol integration.
Package mcp defines constants for the MCP server protocol integration.
mcp/cfg
Package cfg defines MCP server defaults and limits.
Package cfg defines MCP server defaults and limits.
mcp/event
Package event defines session lifecycle event type values ("start", "end") used by the ctx_session_event tool.
Package event defines session lifecycle event type values ("start", "end") used by the ctx_session_event tool.
mcp/field
Package field defines JSON property key names for MCP tool input schemas, matching the keys clients send in tool call arguments.
Package field defines JSON property key names for MCP tool input schemas, matching the keys clients send in tool call arguments.
mcp/method
Package method defines JSON-RPC 2.0 method strings from the MCP specification, used for request routing in the server dispatch loop.
Package method defines JSON-RPC 2.0 method strings from the MCP specification, used for request routing in the server dispatch loop.
mcp/mime
Package mime defines MIME types and content type identifiers for MCP responses.
Package mime defines MIME types and content type identifiers for MCP responses.
mcp/notify
Package notify defines MCP notification method strings sent to clients when subscribed resources change.
Package notify defines MCP notification method strings sent to clients when subscribed resources change.
mcp/prompt
Package prompt defines MCP prompt names that mirror ctx CLI skills as protocol-native equivalents for MCP clients.
Package prompt defines MCP prompt names that mirror ctx CLI skills as protocol-native equivalents for MCP clients.
mcp/resource
Package resource defines MCP resource name constants used as URI suffixes and display names in resource listings.
Package resource defines MCP resource name constants used as URI suffixes and display names in resource listings.
mcp/schema
Package schema defines JSON Schema type identifiers used in MCP tool input schema definitions.
Package schema defines JSON Schema type identifiers used in MCP tool input schema definitions.
mcp/server
Package server defines MCP server identity constants (name, URI prefix, JSON-RPC version) reported during the `initialize` handshake.
Package server defines MCP server identity constants (name, URI prefix, JSON-RPC version) reported during the `initialize` handshake.
mcp/tool
Package tool defines MCP tool names that map to ctx CLI subcommands exposed over the MCP protocol.
Package tool defines MCP tool names that map to ctx CLI subcommands exposed over the MCP protocol.
memory
Package memory defines constants for memory bridge files, publish budgets, and mirror paths.
Package memory defines constants for memory bridge files, publish budgets, and mirror paths.
msg
Package msg defines formatting constants for hook message table display.
Package msg defines formatting constants for hook message table display.
nudge
Package nudge defines configuration constants for persistence and task-completion nudge hooks.
Package nudge defines configuration constants for persistence and task-completion nudge hooks.
obsidian
Package obsidian defines directory, file, and MOC page constants for Obsidian vault generation.
Package obsidian defines directory, file, and MOC page constants for Obsidian vault generation.
pad
Package pad defines constants for encrypted scratchpad blob storage and file management.
Package pad defines constants for encrypted scratchpad blob storage and file management.
parser
Package parser defines buffer sizes and directory constants for session parsing.
Package parser defines buffer sizes and directory constants for session parsing.
project
Package project defines project-root file constants outside the .context/ directory.
Package project defines project-root file constants outside the .context/ directory.
regex
Package regex defines compiled regular expressions for parsing context files and CLI output.
Package regex defines compiled regular expressions for parsing context files and CLI output.
reminder
Package reminder defines file constants for the session reminder subsystem.
Package reminder defines file constants for the session reminder subsystem.
rss
Package rss defines defaults and formatting constants for site feed generation.
Package rss defines defaults and formatting constants for site feed generation.
runtime
Package runtime defines default values for runtime configuration options overridable via .ctxrc.
Package runtime defines default values for runtime configuration options overridable via .ctxrc.
session
Package session defines session metadata constants and tool identifiers for parsers.
Package session defines session metadata constants and tool identifiers for parsers.
stats
Package stats defines constants for context size monitoring, health checks, and display formatting.
Package stats defines constants for context size monitoring, health checks, and display formatting.
sync
Package sync defines constants for the ctx sync command, including config file detection patterns.
Package sync defines constants for the ctx sync command, including config file detection patterns.
time
Package time defines date and time format layouts and duration constants.
Package time defines date and time format layouts and duration constants.
token
Package token defines string tokens, delimiters, and content detection constants.
Package token defines string tokens, delimiters, and content detection constants.
version
Package version defines constants for version checking and the development build sentinel.
Package version defines constants for version checking and the development build sentinel.
watch
Package watch defines buffer size constants for the stream scanner.
Package watch defines buffer size constants for the stream scanner.
wrap
Package wrap defines marker constants for end-of-session wrap-up detection.
Package wrap defines marker constants for end-of-session wrap-up detection.
zensical
Package zensical defines site configuration constants for Zensical and MkDocs integration.
Package zensical defines site configuration constants for Zensical and MkDocs integration.
Package context loads and manages .context/ files with token counting and metadata.
Package context loads and manages .context/ files with token counting and metadata.
load
Package load reads the .context/ directory and assembles its files into an entity.Context with metadata, token estimates, and summaries.
Package load reads the .context/ directory and assembles its files into an entity.Context with metadata, token estimates, and summaries.
resolve
Package resolve provides helpers for locating the context directory and formatting its path for user-facing output.
Package resolve provides helpers for locating the context directory and formatting its path for user-facing output.
sanitize
Package sanitize provides content-level checks for context files, such as detecting effectively empty files that contain only headers or whitespace.
Package sanitize provides content-level checks for context files, such as detecting effectively empty files that contain only headers or whitespace.
summary
Package summary generates brief human-readable summaries from context file content, dispatching to file-specific summarizers for constitution, tasks, decisions, and glossary files.
Package summary generates brief human-readable summaries from context file content, dispatching to file-specific summarizers for constitution, tasks, decisions, and glossary files.
token
Package token estimates LLM token counts from byte content using a characters-per-token heuristic.
Package token estimates LLM token counts from byte content using a characters-per-token heuristic.
validate
Package verify checks whether the .context/ directory exists and contains the required set of context files.
Package verify checks whether the .context/ directory exists and contains the required set of context files.
Package crypto provides AES-256-GCM encryption for the scratchpad.
Package crypto provides AES-256-GCM encryption for the scratchpad.
Package drift provides functionality for detecting stale or invalid context.
Package drift provides functionality for detecting stale or invalid context.
Package entity defines the core domain types shared across ctx packages.
Package entity defines the core domain types shared across ctx packages.
Package entry provides the domain API for adding entries to context files.
Package entry provides the domain API for adding entries to context files.
err
Package err provides shared error constructors for CLI commands.
Package err provides shared error constructors for CLI commands.
backup
Package backup provides error constructors for backup operations.
Package backup provides error constructors for backup operations.
cli
Package cli provides error constructors for generic CLI input validation such as missing flags, arguments, and invalid selections.
Package cli provides error constructors for generic CLI input validation such as missing flags, arguments, and invalid selections.
config
Package config provides error constructors for configuration and settings.
Package config provides error constructors for configuration and settings.
context
Package context provides error constructors for context directory operations, including typed errors for errors.As matching.
Package context provides error constructors for context directory operations, including typed errors for errors.As matching.
crypto
Package crypto provides error constructors for encryption and key management.
Package crypto provides error constructors for encryption and key management.
date
Package date provides error constructors for date parsing and validation.
Package date provides error constructors for date parsing and validation.
dep
Package deps provides error constructors for dependency analysis.
Package deps provides error constructors for dependency analysis.
drift
Package drift provides error constructors for drift detection operations.
Package drift provides error constructors for drift detection operations.
fs
Package fs provides error constructors for filesystem operations.
Package fs provides error constructors for filesystem operations.
git
Package git provides error constructors for git repository operations.
Package git provides error constructors for git repository operations.
hook
Package hook provides error constructors for hook template operations.
Package hook provides error constructors for hook template operations.
http
Package http provides error constructors for HTTP client safety checks.
Package http provides error constructors for HTTP client safety checks.
initialize
Package initialize provides error constructors for context initialization.
Package initialize provides error constructors for context initialization.
journal
Package journal provides error constructors for journal pipeline operations.
Package journal provides error constructors for journal pipeline operations.
mcp
Package mcp provides error constructors for MCP server operations.
Package mcp provides error constructors for MCP server operations.
memory
Package memory provides error constructors for memory bridge operations.
Package memory provides error constructors for memory bridge operations.
notify
Package notify provides error constructors for webhook notifications.
Package notify provides error constructors for webhook notifications.
pad
Package pad provides error constructors for encrypted scratchpad operations.
Package pad provides error constructors for encrypted scratchpad operations.
parser
Package parser provides error constructors for session transcript parsing.
Package parser provides error constructors for session transcript parsing.
prompt
Package prompt provides error constructors for prompt template operations.
Package prompt provides error constructors for prompt template operations.
recall
Package recall provides error constructors for session recall and reindexing.
Package recall provides error constructors for session recall and reindexing.
reminder
Package reminder provides error constructors for session reminder operations.
Package reminder provides error constructors for session reminder operations.
session
Package session provides error constructors for session lookup and selection.
Package session provides error constructors for session lookup and selection.
site
Package site provides error constructors for static site generation.
Package site provides error constructors for static site generation.
skill
Package skill provides error constructors for skill listing and reading.
Package skill provides error constructors for skill listing and reading.
state
Package state provides error constructors for runtime state persistence.
Package state provides error constructors for runtime state persistence.
task
Package task provides error constructors for task file operations.
Package task provides error constructors for task file operations.
exec
zensical
Package zensical wraps the zensical static site generator binary, providing a Go interface for building and serving sites.
Package zensical wraps the zensical static site generator binary, providing a Go interface for building and serving sites.
Package flagbind provides helpers for cobra flag registration.
Package flagbind provides helpers for cobra flag registration.
Package format converts typed values into human-readable display strings (times, numbers, byte sizes).
Package format converts typed values into human-readable display strings (times, numbers, byte sizes).
Package index generates and parses indexes for context file entries.
Package index generates and parses indexes for context file entries.
Package inspect provides general-purpose string predicates and position scanners used across ctx packages.
Package inspect provides general-purpose string predicates and position scanners used across ctx packages.
Package io provides guarded file I/O wrappers for ctx.
Package io provides guarded file I/O wrappers for ctx.
journal
state
Package state manages journal processing state via an external JSON file.
Package state manages journal processing state via an external JSON file.
Package log provides append-only JSONL event logging for hook diagnostics.
Package log provides append-only JSONL event logging for hook diagnostics.
mcp
Package mcp implements a Model Context Protocol (MCP) server for ctx.
Package mcp implements a Model Context Protocol (MCP) server for ctx.
handler
Package handler contains domain logic for MCP tool operations.
Package handler contains domain logic for MCP tool operations.
handler/task
Package task iterates pending tasks from TASKS.md for MCP tool responses.
Package task iterates pending tasks from TASKS.md for MCP tool responses.
proto
Package proto defines JSON-RPC 2.0 message types and MCP protocol constants for the ctx MCP server.
Package proto defines JSON-RPC 2.0 message types and MCP protocol constants for the ctx MCP server.
server
Package server implements the MCP server that exposes ctx context files as resources, tools, and prompts over JSON-RPC 2.0 on stdin/stdout.
Package server implements the MCP server that exposes ctx context files as resources, tools, and prompts over JSON-RPC 2.0 on stdin/stdout.
server/catalog
Package catalog maps context files to MCP resource URIs and builds the immutable resource list returned by the server.
Package catalog maps context files to MCP resource URIs and builds the immutable resource list returned by the server.
server/def/prompt
Package prompt defines MCP prompt definitions and entry builders.
Package prompt defines MCP prompt definitions and entry builders.
server/def/tool
Package tool defines MCP tool definitions and shared property builders.
Package tool defines MCP tool definitions and shared property builders.
server/dispatch
Package dispatch routes MCP requests to domain-specific handlers based on method name.
Package dispatch routes MCP requests to domain-specific handlers based on method name.
server/extract
Package extract converts raw MCP tool arguments into typed Go values.
Package extract converts raw MCP tool arguments into typed Go values.
server/io
Package io writes serialized JSON-RPC messages to an io.Writer with mutex-guarded concurrency.
Package io writes serialized JSON-RPC messages to an io.Writer with mutex-guarded concurrency.
server/out
Package out builds JSON-RPC response structs for success, error, and tool result payloads.
Package out builds JSON-RPC response structs for success, error, and tool result payloads.
server/parse
Package parse unmarshals raw JSON bytes into MCP request structs, filtering out notifications.
Package parse unmarshals raw JSON bytes into MCP request structs, filtering out notifications.
server/ping
Package ping responds to MCP ping requests with an empty success result.
Package ping responds to MCP ping requests with an empty success result.
server/poll
Package poll watches subscribed resources for file changes and emits update notifications.
Package poll watches subscribed resources for file changes and emits update notifications.
server/resource
Package resource handles MCP resource requests including list, read, subscribe, and unsubscribe.
Package resource handles MCP resource requests including list, read, subscribe, and unsubscribe.
server/route/fallback
Package fallback returns method-not-found errors for unrecognized MCP methods.
Package fallback returns method-not-found errors for unrecognized MCP methods.
server/route/initialize
Package initialize handles the MCP initialize handshake and advertises server capabilities.
Package initialize handles the MCP initialize handshake and advertises server capabilities.
server/route/prompt
Package prompt dispatches MCP prompt list and get requests to the appropriate builders.
Package prompt dispatches MCP prompt list and get requests to the appropriate builders.
server/route/tool
Package tool dispatches MCP tool list and call requests to the appropriate handler functions.
Package tool dispatches MCP tool list and call requests to the appropriate handler functions.
server/stat
Package stat provides session statistics helpers for the MCP server.
Package stat provides session statistics helpers for the MCP server.
session
Package session tracks advisory state for an MCP server session, including tool call counts, entry adds, and pending updates.
Package session tracks advisory state for an MCP server session, including tool call counts, entry adds, and pending updates.
Package memory bridges Claude Code's auto memory (MEMORY.md) into the .context/ directory with discovery, mirroring, and drift detection.
Package memory bridges Claude Code's auto memory (MEMORY.md) into the .context/ directory with discovery, mirroring, and drift detection.
Package notify provides fire-and-forget webhook notifications with payload tracking.
Package notify provides fire-and-forget webhook notifications with payload tracking.
Package parse provides shared text-to-typed-value conversion functions.
Package parse provides shared text-to-typed-value conversion functions.
Package rc loads and manages runtime configuration from .ctxrc files.
Package rc loads and manages runtime configuration from .ctxrc files.
recall
parser
Package parser auto-detects and parses session files from multiple tools.
Package parser auto-detects and parses session files from multiple tools.
Package sysinfo gathers OS-level resource metrics (memory, swap, disk, load) and evaluates them against configurable thresholds to produce alerts at WARNING and DANGER severity levels.
Package sysinfo gathers OS-level resource metrics (memory, swap, disk, load) and evaluates them against configurable thresholds to produce alerts at WARNING and DANGER severity levels.
Package task provides task item parsing, matching, and domain logic.
Package task provides task item parsing, matching, and domain logic.
Package tidy provides shared helpers for context file maintenance: task block parsing, empty section removal, string truncation, and archive writing.
Package tidy provides shared helpers for context file maintenance: task block parsing, empty section removal, string truncation, and archive writing.
Package validation provides input sanitization and validation utilities.
Package validation provides input sanitization and validation utilities.
Package write centralizes user-facing output for CLI commands.
Package write centralizes user-facing output for CLI commands.
add
Package add provides formatted output helpers for the add command.
Package add provides formatted output helpers for the add command.
agent
Package agent provides terminal output functions for the agent command.
Package agent provides terminal output functions for the agent command.
archive
Package archive provides terminal output functions for the archive command.
Package archive provides terminal output functions for the archive command.
backup
Package backup provides formatted output helpers for the backup command.
Package backup provides formatted output helpers for the backup command.
bootstrap
Package bootstrap provides formatted output helpers for the bootstrap command.
Package bootstrap provides formatted output helpers for the bootstrap command.
change
Package change provides terminal output functions for the change command.
Package change provides terminal output functions for the change command.
compact
Package compact provides terminal output functions for the compact command.
Package compact provides terminal output functions for the compact command.
complete
Package complete provides terminal output functions for the complete command.
Package complete provides terminal output functions for the complete command.
config
Package config provides formatted output helpers for the config command.
Package config provides formatted output helpers for the config command.
ctximport
Package ctximport provides terminal output functions for memory import operations.
Package ctximport provides terminal output functions for memory import operations.
deps
Package deps provides terminal output functions for the deps command.
Package deps provides terminal output functions for the deps command.
doctor
Package doctor provides formatted output helpers for the doctor command.
Package doctor provides formatted output helpers for the doctor command.
drift
Package drift provides formatted output helpers for the drift command.
Package drift provides formatted output helpers for the drift command.
err
Package err provides error and warning output functions for terminal display.
Package err provides error and warning output functions for terminal display.
events
Package events provides formatted output helpers for the events command.
Package events provides formatted output helpers for the events command.
export
Package export provides terminal output functions for the export command.
Package export provides terminal output functions for the export command.
guide
Package guide provides terminal output functions for the guide command.
Package guide provides terminal output functions for the guide command.
hook
Package hook provides terminal output functions for the hook command.
Package hook provides terminal output functions for the hook command.
initialize
Package initialize provides terminal output functions for the initialize command.
Package initialize provides terminal output functions for the initialize command.
io
Package io provides low-level print primitives shared across write subpackages.
Package io provides low-level print primitives shared across write subpackages.
journal
Package journal provides terminal output functions for the journal command.
Package journal provides terminal output functions for the journal command.
load
Package load provides terminal output functions for the load and agent commands.
Package load provides terminal output functions for the load and agent commands.
loop
Package loop provides terminal output functions for the loop and serve commands.
Package loop provides terminal output functions for the loop and serve commands.
mark_journal
Package mark_journal provides formatted output helpers for the mark-journal command.
Package mark_journal provides formatted output helpers for the mark-journal command.
memory
Package memory provides terminal output functions for the memory command.
Package memory provides terminal output functions for the memory command.
message
Package message provides formatted output helpers for the message command.
Package message provides formatted output helpers for the message command.
notify
Package notify provides terminal output functions for the notify command.
Package notify provides terminal output functions for the notify command.
obsidian
Package obsidian provides terminal output functions for the obsidian command.
Package obsidian provides terminal output functions for the obsidian command.
pad
Package pad provides terminal output functions for the pad command.
Package pad provides terminal output functions for the pad command.
pause
Package pause provides formatted output helpers for the pause command.
Package pause provides formatted output helpers for the pause command.
prompt
Package prompt provides terminal output functions for the prompt command.
Package prompt provides terminal output functions for the prompt command.
prune
Package prune provides terminal output functions for the prune command.
Package prune provides terminal output functions for the prune command.
publish
Package publish provides terminal output functions for the publish command.
Package publish provides terminal output functions for the publish command.
rc
Package rc provides formatted output helpers for runtime config loading.
Package rc provides formatted output helpers for runtime config loading.
recall
Package recall provides terminal output functions for the recall command.
Package recall provides terminal output functions for the recall command.
remind
Package remind provides terminal output functions for the remind command.
Package remind provides terminal output functions for the remind command.
resource
Package resources provides formatted output helpers for the resources command.
Package resources provides formatted output helpers for the resources command.
restore
Package restore provides terminal output functions for the restore command.
Package restore provides terminal output functions for the restore command.
session
Package session provides terminal output functions for the session command.
Package session provides terminal output functions for the session command.
site
Package site provides output helpers for the site command.
Package site provides output helpers for the site command.
stat
Package stats provides formatted output helpers for the stats command.
Package stats provides formatted output helpers for the stats command.
status
Package status provides terminal output functions for the status command.
Package status provides terminal output functions for the status command.
sync
Package sync provides formatted output helpers for the sync command.
Package sync provides formatted output helpers for the sync command.
watch
Package watch provides terminal output functions for the watch command.
Package watch provides terminal output functions for the watch command.
why
Package why provides terminal output functions for the why command.
Package why provides terminal output functions for the why command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL