# Using tamag0 with Claude Code CLI

> Your companion isn't locked in the desktop app: a global install brings its memory, skills, and behavior into Claude Code CLI sessions in any terminal.

## Global install

From the desktop settings, one action installs the tamag0 layer for Claude Code CLI:

- **Skills** become available as slash commands in any CLI session.
- **Session hooks** connect the CLI to the companion's memory: context is primed at session start, relevant memories and practices are injected per prompt, risky commands are checked before execution, and learnings are captured at session end.
- The **tamag0 tool server** (MCP) exposes the companion's capabilities in the CLI: memory search and writing, domain context switching, golden rules, best practices, reminders, inter-agent dialog, Slack, tasks, and session persistence.

The result: the same companion, whether you talk to it in the app or work with it in a terminal — same memory, same standards, same team.

## What the hooks do for a session

- **Session start**: the companion arrives primed — identity, golden rules, recent memories, pending items.
- **Every prompt**: memories and best practices relevant to what you asked are injected automatically.
- **Before a command runs**: blocked command patterns are denied or flagged with the safe alternative.
- **After tools run**: contextual reminders fire when they match the command that just ran.
- **When context compacts**: key learnings are saved and restored, so long sessions don't lose their findings.
- **Session end**: the session is synthesized into memory — the next session knows what this one did.

## Related

- [Skills](https://tamag0.ai/docs/skills.md)
- [Memory](https://tamag0.ai/docs/memory.md)
- [Desktop app](https://tamag0.ai/docs/desktop-app.md)
