Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FactCmd = &cobra.Command{ Use: "fact <fact-text>", Short: "Store a fact in memory", Long: "\nStore a user-defined fact in the knowledge graph.\n\n" + "Facts are injected into agent contexts via hooks, providing persistent context " + "across sessions. Use facts to store preferences, project-specific information, " + "or any context you want the agent to remember.\n\n" + "Constraints:\n" + "- Minimum content length: 10 characters\n" + "- Maximum content length: 500 characters\n" + "- Maximum total facts: 50\n" + "- Duplicate content is rejected", Example: ` # Create a new fact memorizer remember fact "I prefer Go for backend services" # Update an existing fact by ID memorizer remember fact "I prefer Go and Rust for backend services" --id abc123 # Store project-specific context memorizer remember fact "This project uses PostgreSQL 15 with pgvector extension"`, Args: cobra.ExactArgs(1), PreRunE: validateFact, RunE: runFact, }
View Source
var FileCmd = &cobra.Command{ Use: "file <path>...", Short: "Copy files into memory directory", Long: "\nCopy files or directories into the memory directory.\n\n" + "Files are copied (not moved) to preserve the original. If a file with the " + "same name already exists in the destination, it is automatically renamed " + "with a -N suffix (e.g., file.md → file-1.md).\n\n" + "The daemon will automatically detect and index new files.", Example: ` # Remember a single file memorizer remember file ~/notes/project-ideas.md # Remember multiple files memorizer remember file doc1.md doc2.md doc3.md # Remember a directory recursively memorizer remember file ~/project/docs/ # Remember into a subdirectory memorizer remember file --dir work/notes report.md # Force overwrite existing files memorizer remember file --force existing-file.md # Preview what would happen memorizer remember file --dry-run largedir/`, Args: cobra.MinimumNArgs(1), PreRunE: validateFile, RunE: runFile, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.