Initial release: aircontext
This commit is contained in:
12
commands/aircontext-init.md
Normal file
12
commands/aircontext-init.md
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description: Install AirContext templates into the current project
|
||||
allowed-tools: Bash
|
||||
---
|
||||
|
||||
Run the initialiser to create or repair `AirContext/` in the current project root.
|
||||
After it completes, tell the user to edit `AirContext/config.yaml` (specifically
|
||||
`backend.api_key` and `backend.endpoint`) before relying on automatic compaction.
|
||||
|
||||
```!
|
||||
python "${CLAUDE_PLUGIN_ROOT}/scripts/cmd_init.py"
|
||||
```
|
||||
14
commands/aircontext-now.md
Normal file
14
commands/aircontext-now.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
description: Force an immediate compaction (ignores cooldown and threshold)
|
||||
allowed-tools: Bash
|
||||
---
|
||||
|
||||
Spawn the compactor in the foreground for the current session and report the
|
||||
outcome. After it succeeds, the wrapper will detect `compaction_ready` within
|
||||
a few seconds and restart claude with `--resume`. If you launched claude
|
||||
directly without the `aircontext` wrapper, you must exit and run
|
||||
`claude --resume <session-id>` yourself for the new chain to take effect.
|
||||
|
||||
```!
|
||||
python "${CLAUDE_PLUGIN_ROOT}/scripts/cmd_now.py" --session-id "${CLAUDE_SESSION_ID}"
|
||||
```
|
||||
13
commands/aircontext-pause.md
Normal file
13
commands/aircontext-pause.md
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
description: Pause or resume AirContext automatic compaction (toggle)
|
||||
argument-hint: "[on|off]"
|
||||
allowed-tools: Bash
|
||||
---
|
||||
|
||||
Toggle (or explicitly set) the automatic-compaction switch. While paused, the
|
||||
PostToolUse ticker still runs but skips firing the compactor. Manual
|
||||
`/aircontext-now` is unaffected.
|
||||
|
||||
```!
|
||||
python "${CLAUDE_PLUGIN_ROOT}/scripts/cmd_pause.py" $ARGUMENTS
|
||||
```
|
||||
8
commands/aircontext-status.md
Normal file
8
commands/aircontext-status.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: Show current AirContext state, last compaction, and pending actions
|
||||
allowed-tools: Bash
|
||||
---
|
||||
|
||||
```!
|
||||
python "${CLAUDE_PLUGIN_ROOT}/scripts/cmd_status.py"
|
||||
```
|
||||
Reference in New Issue
Block a user