Skip to content

ManintheCrowds/OpenHarness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harness — Context and Intent Engineering

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.

Contents

  • 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

Key Concepts

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

Integration

  1. Copy or symlink docs/, state/, .cursor/rules/, and .cursor/skills/ into your project (e.g. .cursor/docs/, .cursor/state/, .cursor/rules/, .cursor/skills/).
  2. Configure .cursorrules or agent instructions to reference harness docs and rules.
  3. Use scripts/ as templates; adapt paths for your layout (e.g. .cursor/state/).
  4. Run pre-commit install if using the included pre-commit config for handoff/state validation.

Canonical bundle (verify-not-trust)

Pin this repo by commit SHA and run:

.\scripts\verify_canonical_bundle.ps1

See 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.

Dependencies

  • SCP (optional): Configure an SCP MCP server in mcp.json per 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. Run validate_handoff_scp.py and sanitize_input.py as pre-commit hooks when handoff/state files are staged.

Private wellbeing / survival corpora

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).

Pre-commit

pip install pre-commit scp-mcp
pre-commit install

Hooks 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.

Delineation

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.

Public vs private

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.

OpenAtlas (related app, not in this repo)

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.

References

License

MIT

About

Handoffs, Context & Intent Engineering. Compliant to Autonomous Cognitive Entities Framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors