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/AGENT_ENTRY.md — One-screen chain for agents: manifest → CHEATSHEET → HANDOFF_FLOW →
state/ - docs/SESSION_BOOTSTRAP.md — What to load first in a new session (aligns with CHEATSHEET memory load order)
- 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). Canonical script list: docs/CHEATSHEET.md (Agent invocation index); do not duplicate long script tables here.
- .cursor/rules/ — Starter rules (role-routing, capability-summary, critic-loop-gate, intent-alignment-gate, model-selection)
- .cursor/skills/ — Domain-agnostic skills; index with one-line summaries: .cursor/skills/README.md
- .cursor/commands/ — Slash commands (
architect,agent-native-audit) - docs/contracts/ — Public MCP contracts (e.g. SCP v1) for verify-not-trust
- docs/CHEATSHEET.md — One-page harness compression; includes Agent invocation index (scripts) for agent–human action parity (see AGENT_NATIVE_CHECKLIST.md)
- capabilities.harness.yaml — Structured manifest:
scripts[],scripts_globs,skills_globs, checklist section links; CHEATSHEET remains the canonical script table (see file header) - docs/HARNESS_AUDIT_ALIGNMENT.md — Part B (OpenHarness bundle) dimensions ↔ paths; aligns with OpenAtlas audit backlog without an API
| 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.
When portfolio-harness is cloned as a sibling of this repo (same parent directory), relative links such as ../../portfolio-harness/... from docs/**/*.md should resolve. Run:
python scripts/check_docs_portfolio_links.pyExit code 0 means every markdown file link that references portfolio-harness points at an existing file. Schedule or run after edits that touch cross-repo doc links.
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. Trust / env: optional semantic judge andOLLAMA_BASE_URL— see docs/SCP_ENV_AND_TRUST.md. - PyYAML (
pip install -r requirements.txt): used byverify_script_index.pyandverify_skills_readme.pyfor manifest and skill front matter.
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 PyYAML
pre-commit installHooks (see .pre-commit-config.yaml):
| Hook | Purpose |
|---|---|
| sanitize-input | Sanitize state/*.md before commit |
| handoff-scp | Validate state/handoff_latest.md against SCP rules |
| verify-script-index | verify_script_index.py — disk script basenames ↔ capabilities.harness.yaml scripts[] ↔ CHEATSHEET backticks |
| verify-skills-readme | verify_skills_readme.py — .cursor/skills/README.md vs each SKILL.md description: |
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.
- AGENT_ENTRY.md — Agent start: capabilities.harness.yaml → CHEATSHEET.md → HANDOFF_FLOW.md → state/
- SESSION_BOOTSTRAP.md
- 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, SCP_ENV_AND_TRUST.md
- AUTHORITY_MODEL.md
- state/README.md
MIT