Portable AI harness: context engineering, intent engineering, handoff flow, and state schema. Guide in the Guard–Guide–Build taxonomy.
Use with Cursor, Codex, or any agent platform that supports structured state and handoff.
- docs/ — Architecture, context, intent, handoff flow; docs/research/ — paper digests and gap analyses (provenance; raw extractions gitignored)
- state/ — State schema (handoff, decision-log, preferences, etc.)
- scripts/ — Reference scripts (copy prompt, validate handoff)
- .cursor/rules/ — Starter rules (role-routing, capability-summary, critic-loop-gate, intent-alignment-gate, model-selection)
- .cursor/skills/ — Domain-agnostic skills (planning, product-scope, docs, tech-lead, refactor-reuse, qa-verifier, secure-contain-protect, agent-native-architecture, research-open-access)
- .cursor/commands/ — Slash commands (
architect,agent-native-audit) - docs/contracts/ — Public MCP contracts (e.g. SCP v1) for verify-not-trust
| Concept | Description |
|---|---|
| Context engineering | Economical use of LLM context: retrieval routing, compaction, memory |
| Intent engineering | Human intent as primary signal; scope, constraints, human gates |
| Handoff | Document-then-continue: write handoff, new chat, paste continue prompt |
| State schema | handoff_latest, decision-log, known-issues, preferences, rejection_log |
| Authority model | Cryptographic vs social; risk-tier mapping; pseudoanonymous proof |
- Copy or symlink
docs/,state/,.cursor/rules/, and.cursor/skills/into your project (e.g..cursor/docs/,.cursor/state/,.cursor/rules/,.cursor/skills/). - Configure
.cursorrulesor agent instructions to reference harness docs and rules. - Use
scripts/as templates; adapt paths for your layout (e.g..cursor/state/). - Run
pre-commit installif using the included pre-commit config for handoff/state validation.
Pin this repo by commit SHA and run:
.\scripts\verify_canonical_bundle.ps1See docs/CANONICAL_AGENT_BUNDLE.md and docs/VERIFY_NOT_TRUST.md. After changing bundled files: .\scripts\update_canonical_bundle_hashes.ps1, then commit docs/canonical-bundle.sha256.
- SCP (optional): Configure an SCP MCP server in
mcp.jsonper docs/MCP_PRIVATE_HOST.md. Public contract: docs/contracts/scp_mcp_v1.md. A reference public package may exist (scp-mcp); org-private installs are supported. Runvalidate_handoff_scp.pyandsanitize_input.pyas pre-commit hooks when handoff/state files are staged.
Do not commit purchased PDFs or full extracted text to this harness. Use a private path; run SCP on extracted text before any RAG or handoff. Canonical playbook: local-proto repo docs/HUMAN_WELLBEING_CORPUS.md and docs/SURVIVAL_MEDICAL_RAG_DISCLAIMER.md (sibling layout under the same workspace root). Decision: .cursor/state/decision-log.md (2026-03-20).
pip install pre-commit scp-mcp
pre-commit installHooks run on state/*.md (sanitize) and state/handoff_latest.md (handoff SCP validation). When copying harness into a project with .cursor/state/, set HARNESS_STATE_DIR=.cursor/state and update .pre-commit-config.yaml paths.
Windows: Write handoff/state files as UTF-8 without BOM. PowerShell Out-File adds BOM by default; use [System.IO.File]::WriteAllText(path, content) to avoid SCP false positives.
When extending harness or adding components, use docs/DELINEATION.md to decide what belongs in core (harness) vs your project. Primary prompt: "Would any developer be able to use this without context from other projects?" Yes → core; No → your project.
This repo is a public reference: use synthetic handoff examples (docs/examples/HANDOFF_EXAMPLE_SYNTHETIC.md), not real session state. Keep real handoffs and experimental work in a private workspace; see docs/PUBLIC_AND_PRIVATE_HARNESS.md.
OpenHarness stays portable (docs, rules, skills, state/). OpenAtlas is a separate Next.js app under portfolio-harness (OpenAtlas/) that visualizes a brain-map graph built from .cursor/state session text (handoffs, daily notes, decision-log)—see OpenAtlas/docs/OPENATLAS_SYSTEMS_INVENTORY.md in that workspace. Paths are relative to wherever you clone portfolio-harness. It is not meant to live inside this repository. If the graph does not show files from your OpenHarness checkout, either point CURSOR_STATE_DIR at openharness/.cursor/state when running build_brain_map.py, or use CURSOR_STATE_DIRS to merge portfolio-harness and openharness state in one JSON (see portfolio-harness docs/BRAIN_MAP_HUB.md). Handoffs must still reference .md paths for nodes to appear.
- HARNESS_ARCHITECTURE.md
- CHEATSHEET.md
- HANDOFF_CHAIN_PATTERNS.md
- CONTEXT_ENGINEERING.md
- INTENT_ENGINEERING.md
- HANDOFF_FLOW.md (includes Definition of done for P1 verification + dual gates)
- PUBLIC_AND_PRIVATE_HARNESS.md
- CANONICAL_AGENT_BUNDLE.md, VERIFY_NOT_TRUST.md, MCP_TRANSPARENCY.md
- contracts/scp_mcp_v1.md
- AUTHORITY_MODEL.md
- state/README.md
MIT