# cave-talk Ultra-compressed communication mode. Cuts output tokens while keeping full technical accuracy. Uses [**Caveman**](https://github.com/JuliusBrussee/caveman), with no affiliation or endorsement from its author. ## Hooks | Event | Script | Output | | ------------------ | ----------------------------- | ---------------------------------------------------- | | `SessionStart` | `scripts/caveman-activate.js` | the session level body, inlined into the script | | `UserPromptSubmit` | `scripts/caveman-mode.js` | nothing, it saves the mode change the prompt carries | | `UserPromptSubmit` | `scripts/caveman-activate.js` | a hint line naming the mode the session runs at | **Caveman** supports the following levels: `caveman`, `ultracave`, `megacave`, or `off` to disable. Within a session, `/caveman ` switches the level and `stop caveman` (or `normal mode`) turns it off. By default the level for all session is `caveman` (`manual` to start inactive), but it can be changed with the following order precedence: - the `CAVEMAN_DEFAULT_MODE` environment variable - a `.caveman/config.json` or `.caveman.json` within a repository with `defaultMode` property - a `~/.config/caveman/config.json` (or under `$XDG_CONFIG_HOME/caveman/config.json`) with `defaultMode` property ## Skills A subset of upstream skills is vendored as-is. The `caveman`, `ultracave` and `megacave` skills need no manual invocation, the `SessionStart` hook already inlines the session level body. | Skill | Upstream | | ----------------- | ------------------------------------------------------------------------------------ | | `caveman` | | | `caveman-commit` | | | `caveman-explore` | | | `megacave` | | | `ultracave` | | ## Installation > [!warning] > Nodejs is needed in `PATH` environment variable to work. **Native plugin (recommended)**: ```sh my-agent plugin install cave-talk@one-for-all ``` **APM package**: ```sh apm install kilianpaquier/ai-integration/plugins/cave-talk -g ``` **APM plugin**: ```sh apm marketplace add kilianpaquier/ai-integration apm install cave-talk@one-for-all -g ``` ## Compatibility table | Agent Runtime | Manifest | Hook configuration | | --------------- | ---------------------------- | ------------------------------------- | | **APM** | `apm.yml` | `.apm/hooks/hooks.json` | | **Antigravity** | `plugin.json` | - | | **Claude Code** | `.claude-plugin/plugin.json` | `hooks/claude.json` | | **Codex** | `.claude-plugin/plugin.json` | `hooks/claude.json` | | **Copilot** | `plugin.json` | `com.github.copilot/hooks/hooks.json` | | **Cursor** | `.cursor-plugin/plugin.json` | `hooks/cursor.json` | | **Devin** | `.claude-plugin/plugin.json` | - | > [!note] > **APM** merges `.apm/hooks/hooks.json` into the target agent runtime settings (e.g. `~/.claude/settings.json`) > and rewrites `${PLUGIN_ROOT}` to the path it deployed the scripts to. ## Limitations On **Copilot** and **Cursor**, the active mode is announced once at session start, not again on each prompt.