deliberate-engineering-host-context
/deliberate-engineering-host-context
Use when a Deliberate Engineering workflow needs host-local personal data, state, voice files, overrides, or the current session transcript in Claude Code or Codex.
- Author
- lucasfugisawa ↗
- Repository
- deliberate-engineering ↗
- Licence
- MIT
- Last repository change
- 14.09.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 3
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 14.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 3 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/extract-operator-messages.py, scripts/resolve-host-context.py, scripts/select-codex-rollouts.py
What it does and when to use it
Use when a Deliberate Engineering workflow needs host-local personal data, state, voice files, overrides, or the current session transcript in Claude Code or Codex.
Original author description
Use when a Deliberate Engineering workflow needs host-local personal data, state, voice files, overrides, or the current session transcript in Claude Code or Codex.
How it works
- Contract
- Private file modes
- Failure behavior
SKILL.md preview
---
name: deliberate-engineering-host-context
description: Use when a Deliberate Engineering workflow needs host-local personal data, state, voice files, overrides, or the current session transcript in Claude Code or Codex.
---
# Deliberate Engineering Host Context
Resolve the host before reading or writing host-local data. Run `python3 scripts/resolve-host-context.py --host auto` when the runtime identity is unambiguous, or pass `claude` or `codex` explicitly when the host is already known. Parse its single JSON object as data; never turn output into shell code.
## Contract
| Host | Personal data root | Transcript roots | Session identity | Active thread store |
|---|---|---|---|---|
| Claude Code | `$HOME/.claude/deliberate-engineering` | `$HOME/.claude/projects` | `CLAUDE_CODE_SESSION_ID` | none |
| Codex | `${CODEX_HOME:-$HOME/.codex}/deliberate-engineering` | `${CODEX_HOME:-$HOME/.codex}/sessions` and `archived_sessions` | `CODEX_THREAD_ID` | highest numbered `state_*.sqlite` below the same Codex home, when present |
The resolver returns `host`, `data_root`, `transcript_root`, `archive_root` (Codex only), `session_id`, and `thread_store`. Roots are canonical absolute paths, environment values with control characters are rejected, and automatic detection fails rather than guessing when identity is absent or ambiguous. An explicit host may resolve personal data without a session identity; capture additionally requires one.
Never fall back from one host's personal root to the other. A missing Codex file means absent in Codex, not "look under `~/.claude`". Copying personal data between hosts is an explicit operator migration, never runtime discovery.
Project-local `.deliberate/state/` is host-independent and remains preferred when the state workflow can prove it is ignored by version control.
For Codex session capture, use `scripts/select-codex-rollouts.py` with the returned active root, archive root, and thread store, writing its JSON lineage manifest to a private scratch file. It follows the active rollout pointer, recursively reconstructs `history_base` after revert without restoring reverted turns, validates both ordinal and byte-offset boundaries, resolves plain or `.jsonl.zst` representations across active and archived storage, and accepts only operator-owned root threads. Reading compressed history requires the `zstd` executable; its absence is an explicit capture degradation, never a silent omission. Then run `scripts/extract-operator-messages.py --host codex --transcript-root <root> --archive-root <archive-root> --lineage-manifest <manifest>`. The extractor independently validates the complete bounded lineage before emitting anything, rejects off-root and symlink paths, and emits NUL-delimited operator messages. Codex messages pass only when structural provenance marks them as `user.text`. Older rollouts that predate this provenance are structurally unable to distinguish operator text from generated continuations, so the entire extraction fails closed and capture declares Degradation instead of contaminating personal overrides.
## Private file modes
Before creating host-local personal data, set a restrictive creation mask (`umask 077`), create directories as `0700`, and create files as `0600`. Check existing target permissions before writing; correct group/world access only for the exact Deliberate Engineering directory or file being used, and report a correction. Refuse a host-local write if the resolved target is inside a repository. These rules apply to overrides, fallback state, the voice profile, and the voice-build corpus.
## Failure behavior
Unreadable and absent are distinct. Report an unreadable host resource. For an absent opt-in file, remain silent as that file's owning workflow specifies. When a session identity or transcript cannot be resolved, the capture workflow degrades to the live context and says so.
Files in this package (4)
- SKILL.md 4 KB
- scripts/extract-operator-messages.py 16 KB
- scripts/resolve-host-context.py 4 KB
- scripts/select-codex-rollouts.py 11 KB
Versions
The database has no other skills named deliberate-engineering-host-context.
Database snapshot: 13.11.2026 · package version b3d9533d31f6 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100deliberate-engineering-state
Use when work spans phases or sessions and process state must survive: the current phase and phase sequence, the chosen ceremony band and lenses, open pendings, and the decisions made and why. Reads and rehydrates a per-work-unit working-note at the start of a session or phase,… - 100deliberate-engineering-overrides
Use at the start of an engineering session to pick up the operator's standing-rule overrides, and again whenever any deliberate-engineering lens is about to be applied. Reads the current host's Deliberate Engineering override file, honors disable/modify/add overrides on lenses,… - 100claude-md-improver
Audit and improve existing CLAUDE.md files across a repository. Use for a deliberate, repo-wide quality review—not to record learnings from the current session. - 98claude-context-improver
Audit and improve the Claude Code context layer — CLAUDE.md guidance files, .claude/rules/ path-scoped rules, and companion code_map.md navigation maps — against Claude 5 context-engineering rules (judgement over rules, progressive disclosure, no cross-layer conflicts). Asks… - 100context-engineering
Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project. - 100message-codex
Queue a message from Claude Code, another agent, or a script to an existing Codex session. Use when Claude needs to report back to Codex or the user asks to "send this to Codex", "tell another Codex session", "notify the Codex session", or "queue a message for Codex". Not for…