Initial release: aircontext

This commit is contained in:
admin
2026-05-18 11:45:08 +08:00
commit 5914cfb9cd
32 changed files with 1981 additions and 0 deletions

View 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"
```

View 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}"
```

View 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
```

View 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"
```