Expand description
Kiro (IDE chat and CLI) integration.
Kiro’s PreToolUse hooks are allow/block only — there is no
updatedInput-style rewrite mechanism, so the command-rewriting hook
sqz used to install never worked (and its when/then JSON wasn’t a
valid Kiro hook file either). The integration that actually works in
Kiro chat is:
- A steering file at
.kiro/steering/sqz.md(always included) that teaches the agent to pipe long command output throughsqz compress. - The
sqz-mcpserver registered in.kiro/settings/mcp.json.
Enums§
- Kiro
McpInstall - Kiro
McpRemove - Steering
State - State of a steering file sqz may manage.
Functions§
- install_
kiro_ mcp_ config - install_
kiro_ steering - Write the steering file. Refreshes sqz-managed files in place, leaves
a user-authored
.kiro/steering/sqz.mdalone. - install_
kiro_ user_ mcp_ config - Register sqz-mcp in the user-level
~/.kiro/settings/mcp.json, which Kiro merges into every workspace. - install_
kiro_ user_ steering - Write the user-level steering file (
~/.kiro/steering/sqz.md), which Kiro applies to every workspace. - kiro_
legacy_ hook_ path - The legacy hook file older sqz versions wrote. It used a schema Kiro never recognized, so it can be deleted safely when we detect it.
- kiro_
mcp_ path - kiro_
steering_ content - kiro_
steering_ path - kiro_
steering_ state - Compare a steering file against what this version would write for the
same sqz path.
globalselects the user-level template. - kiro_
user_ mcp_ path - kiro_
user_ root - Kiro’s user-level config root:
$KIRO_HOMEif set, else~/.kiro. Steering and MCP config placed here apply to every workspace. - kiro_
user_ steering_ content - kiro_
user_ steering_ path - refresh_
kiro_ steering - Rewrite a stale sqz-managed steering file with this version’s template,
keeping the sqz binary path it already points at when that binary still
exists (else
fallback_sqz_path). ReturnsOk(false)for missing, current, or user-authored files. - remove_
kiro_ legacy_ hook - Delete the legacy broken hook file if present and sqz-authored.
- remove_
kiro_ mcp_ config - remove_
kiro_ steering - remove_
kiro_ user_ mcp_ config - remove_
kiro_ user_ steering - user_
steering_ installed - Whether sqz’s user-level steering is installed. Kiro applies
~/.kiro/steeringto every workspace, so a project copy next to it is the same guidance sent twice on every request.