Agent Session Control Stack — assemble the reference stack in two commands. Upstream plugins install directly from their original authors' repositories: nothing here is bundled, forked, or rebranded. Credits and reasoning: ATTRIBUTION.md in this repository.
Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub house-lovers7/agent-session-control-stackDetects token-wasting Claude Code sessions (context re-read bloat) and closes the loop: nudges the model to compact & delegate, and surfaces 'time to cut' in your statusline and notifications.
Preserve Claude Code and Codex session state around context compaction.
Read-only doctor for the Agent Session Control Stack (pxpipe + session-health + compact-plus composition). Injects no context, registers no hooks, writes nothing.
agent/docs-agent-session-control-stack-20260716, which conflicts with the doctor 0.2.0 change on main and was left unresolved. The only later work is two small unmerged fix PRs from 2026-09.Everything below describes the repository as it was when archived and is no longer updated.
A reference architecture and lightweight tooling layer for controlling long-running AI coding agent sessions.
ASCS helps you compose:
Core rule:
Summary and state are untrusted hypotheses. Current source and fresh evidence are truth.
日本語版: README.ja.md
ASCS is not only a design document. You can use it today in four practical ways.
New here? The User Guide walks through what each layer does, setup, day-to-day use, and troubleshooting in one document.
Install the read-only ASCS doctor:
claude plugin marketplace add House-lovers7/agent-session-control-stack
claude plugin install ascs@ascs
Then run this inside Claude Code:
/ascs:doctor
It reports which layers are active:
pxpipeclaude-code-session-healthcompact-plusThe doctor is read-only. It does not install hooks, start proxies, call APIs, or modify configuration.
claude plugin marketplace add House-lovers7/agent-session-control-stack
claude plugin install session-health@ascs
claude plugin install compact-plus@ascs
claude plugin install ascs@ascs
This gives you the reference Claude Code composition:
session-health decides when the session is getting hot.compact-plus preserves and restores state around compaction.ascs checks whether the stack is composed safely.pxpipe is optional and separate because it is a request-path proxy:
npx -y [email protected]
alias claude-px='ANTHROPIC_BASE_URL=http://127.0.0.1:47821 claude'
Read the safety notes before enabling pxpipe. It is lossy by design and should not be used for byte-exact values such as commit SHAs, IDs, secrets, exact paths, migration names, or deploy targets.
Codex does not have Claude Code-style compaction hooks, so ASCS uses a protocol instead:
examples/codex/AGENTS.md.agent-session/ directoryStart here:
examples/codex/AGENTS.md
templates/state-file.md
Keep /.agent-session/ ignored and treat it as untrusted recovery context,
never as authorization. Before reading live state, run the read-only check:
python3 scripts/check_state.py --repo /path/to/consumer-repo
Trust rules, metadata, expiry, cleanup, and rollback are defined in docs/state-trust-contract.md.
ASCS also includes a lightweight measurement helper:
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.