Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By beyondworksv0.9.1MIT
Carries a Claude Code task from first observation to a verified result, keeping scope and state across interruptions. Hooks on every prompt and the Stop event can block once, and it needs Python 3.10+.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A development workflow and runtime support package for Claude Code. Castra helps a capable model carry an authorized request from observation to a verified result, retaining scoped state across interruptions. It does not copy private system prompts, change model weights, or establish equivalence to another model.
Use /castra run <request> after standalone installation, or /castra:castra run <request> in plugin mode. castra: run <request> also routes explicitly through UserPromptSubmit. Modes: run, review, verify, reframe, finish, resume, status; castra: plain skips workflow routing without disabling permissions or erasing evidence.
The contract starts with the user's affected surface and a discriminating check. It preserves current authorization and steering, uses independent work where useful, distinguishes source edits from installed/runtime outcomes, and stops after relevant work is verified. It requests decisions and evidence, not a private reasoning transcript. Fable and Opus use the same contract and selected model; no family-based capability or window-size guesses.
castra: reframe <symptom> restores the current contract and revisits the actual runtime and shared failure boundary. castra: finish <task> closes directly related omissions and relevant state/reload/failure transitions. Both preserve the original scope and authority. The ordinary run contract already uses these standards; the commands are recovery cues, not prerequisites for careful work.
| Mechanism | Actual behavior | Limit |
|---|---|---|
| SessionStart | Injects a compact contract, script path, session id, scoped state and checkpoint | Restored notes are prior evidence, not new authority |
| UserPromptSubmit | Resets recovery, refreshes changed contract once per session and routes anchored castra: requests | Unchanged ordinary turns add no pack; hash records emission, not compliance |
| PostToolUse | Tracks supported edits; direct-script exits are observations only | Arbitrary shell writes and semantic coverage cannot be inferred |
| Stop | Blocks once on the ordinary recovery path; reentry allows an honest unresolved report | Circuit breaker is not success; user cancellation remains authoritative |
| Budget | Reads a bounded tail of this transcript, checks explicit capacity on prompts/tools | Last-response usage is an estimate; unknown capacity stays unknown |
| Guardian | Known risky syntax yields denial, platform confirmation or an authority reminder | Heuristic floor, not a sandbox or permission oracle |
| Release gate | Resolves a simple publication target and checks available CI runs for that commit | Ambiguous/multiple targets or unavailable CI require review; not branch-protection completeness |
Hooks run automatically. The explicit verification runner connects a declared file set to a relevant check, including files changed through an unrecognized shell tool:
python3 ~/.castra/scripts/castra_runtime.py status --session SESSION_ID
python3 ~/.castra/scripts/castra_runtime.py verify --session SESSION_ID --file src/example.py -- python3 -m unittest tests.test_example
python3 ~/.castra/scripts/castra_notes.py checkpoint --session SESSION_ID --goal 'user outcome' --progress 'observed evidence' --next 'next step'
python3 ~/.castra/scripts/castra_notes.py read --session SESSION_ID
Use the actual session id/script directory from the runtime hint. Plugin scripts live under the plugin root. verify runs argv without a shell, caps runtime, stores hashes/exit/time and returns a bounded diagnostic tail. Recognizable secrets are redacted best-effort; do not run credential-dumping checks. Commands/output are not retained in the evidence ledger. A green result establishes execution over the declared bytes, not semantic test adequacy. defer and block retain an explicit unresolved state with a reason code.
State lives under $CASTRA_HOME/sessions/ (default ~/.castra), separated by a hash of the session id, so a session keeps one ledger when it changes directory and leaves no files in the repositories it visits. State and checkpoints that earlier releases wrote to <cwd>/.castra/sessions/ are still read, never modified. Legacy .castra/openloops, .astra/openloops and unscoped checkpoints are preserved. For cross-session handoff, explicitly select the old session id; neighboring sessions are never automatically adopted.
Set CASTRA_CONTEXT_WINDOW only when the actual capacity is known. Castra cannot increase that capacity, create a new context window, send a message during a blocked call, or supply an absent tool. The installed Claude CLI may expose --brief/SendUserMessage; use it only when actually available, not as an assumed harness feature.
Python 3.10+ is required. Choose one mode:
Standalone (existing-user upgrade):
python3 install.py --dry-run
python3 install.py
python3 install.py --check
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (beyondworks/castra) — no native marketplace selected
npx claudepluginhub p/beyondworks-castraPlugins from other owners that cover similar ground