Skip to main content

Hooks

Cognis uses Claude Code’s hook system to work automatically in the background. No manual action needed.
HookTriggerWhat happens
SessionStartEvery new sessionLoads relevant personal and team memories into context. Claude starts with knowledge of your past work
UserPromptSubmitEach user messageSearches for relevant memories based on your prompt (first 150 chars). Injects matching memories if relevance > 0.5. Skips trivial inputs (“yes”, “ok”)
StopSession endsParses the conversation transcript, compresses tool outputs intelligently, and saves the session summary to Cognis

Tool-Aware Compression

The Stop hook doesn’t store raw transcripts. Instead, it compresses tool outputs:
ToolCompression
Edit/MultiEditEdited file.js: 'old' → 'new'
WriteWrote file.js (50 lines)
ReadRead file.js (100 lines)
BashCommand + output preview (max 200 chars)
GlobFound 23 files matching '**/*.ts'
GrepSearched for 'pattern': 42 matches

Skills

Natural language triggers — just talk to Claude and the right skill activates.
SkillTrigger phrasesWhat it does
cognis-search”what did I work on?”, “find that decision about…”, “search my memory for…”Searches personal and/or team memories using semantic search
cognis-save”remember this”, “save this as project knowledge”, “store this decision”Saves information to persistent memory (personal or team scope)

MCP Tools

8 tools exposed via the Model Context Protocol for direct memory operations.
ToolDescription
add_memoryStore information in long-term memory. Supports personal or team scope
search_memoriesSemantic search across personal and/or team memories
get_memoriesList stored memories without a search query
update_memoryUpdate an existing memory’s content or metadata
delete_memoryDelete a specific memory by ID
delete_all_memoriesClear all memories for a session (requires confirmation)
get_contextIntelligent context assembly — combines short-term and long-term memory
search_summariesSearch past session summaries and key decisions

Commands

CommandDescription
/claude-cognis:indexAnalyze and index the current codebase. Stores architecture and structure as team knowledge
/claude-cognis:recallRecall last session context to pick up where you left off
/claude-cognis:memory-statsShow memory statistics — total count, session history, storage breakdown
/claude-cognis:project-configConfigure per-project settings interactively
/claude-cognis:logoutRemove stored API credentials