Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

HOME Framework

Your context belongs to you.

Switching AI shouldn't mean starting from zero.

Before HOME

ChatGPT  → new chat   → explain the context again
Claude   → new thread → repeat the context
Codex    → new task   → rebuild project state

After HOME

Your reviewed context
          ↓
       Compile
          ↓
   Context Handoff
          ↓
Compatible AI tools

Works with AI tools that can accept text or files.

HOME Framework is a local-first Python toolkit that validates reviewed authority files and compiles deterministic, purpose-scoped context handoffs. It gives an AI the information needed for one task, while keeping unreviewed, expired, or out-of-scope material out of that handoff.

Clear boundaries

  • HOME does not automatically read your chat history.
  • Suggestions and candidates are not treated as approved facts.
  • Context continuity does not imply continuous identity or consciousness.

AI can suggest what matters. Only you decide what represents you.

English | 简体中文

HOME Framework is not an automatic memory system. It does not infer consent or send workspace content to third-party services.

Alpha development. Current development version: 0.1.0a5. Latest published PyPI release: 0.1.0a4 (PyPI). File formats and command output may change before the first stable release.

PyPI Python License CI

Installation

HOME Framework requires Python 3.11 or newer.

pip install home-framework

To work on the framework itself:

git clone https://github.com/yukilain007/home-framework
cd home-framework
python -m venv .venv
. .venv/bin/activate
python -m pip install -e ".[dev]"

Quickstart

After installation, create and run a fully fictional example workspace:

home init example-home --name example-home
home validate example-home
home build example-home \
  --handoff project.execution \
  --as-of 2026-07-20
home doctor example-home --as-of 2026-07-20

The generated handoff is written to example-home/exports/project.execution.md. Start with the concepts below, or read the Chinese zero-technical-background guide for an AI-assisted local setup with explicit user approvals.

Developer Documentation

What HOME produces

HOME compiles reviewed local authority files into a readable, purpose-scoped Context Handoff.

Reviewed local context
        ↓
Deterministic compile
        ↓
Purpose-scoped Markdown
        ↓
User-approved handoff

The Markdown export is a derived artifact: it can be deleted and rebuilt from its authority files. Its canonical metadata records the selected handoff, context date, and fingerprint.

First-run details

home init creates two public fictional authority documents and one handoff, so the example can validate and build immediately. Review and replace that example content before using the workspace for real work. Re-running home init on a valid workspace is safe and does not overwrite files; an unknown non-empty directory is refused.

For the same authority files, handoff, and context date, repeated builds produce the same fingerprint. Without --as-of, home build and home doctor use the local date, so tests and reproducible automation should always provide it.

home doctor exits with 1 when it finds an error. Warnings normally leave the exit status at 0; use home doctor example-home --as-of 2026-07-20 --strict when warnings should also return 1. Informational diagnostics never change the exit status.

How approval works

HOME does not decide what becomes long-lived context. A human operator makes core and current documents authoritative by placing them in their reviewed directories. Candidate documents remain proposals—even when their review metadata records approval—and never become compiler inputs. Promotion is an external human action, not an automated framework action.

Each handoff then explicitly selects document IDs, scopes, and permitted sensitivities for one purpose. This makes the resulting Context Handoff inspectable and limits it to the context chosen for that task.

Core concepts

  • Authority files are human-controlled YAML documents. They are the only inputs to builds.
  • Core documents contain reviewed, stable guidance.
  • Current documents contain reviewed context with an explicit validity window.
  • Candidates are untrusted proposals. They are validated but never compiled.
  • Handoffs explicitly select IDs, scopes, and allowed sensitivities for one purpose.
  • Exports are disposable Markdown projections that can be rebuilt from authority files.
  • Workspace manifests identify a compatible workspace and its default export directory.

The build pipeline is:

workspace manifest and authority YAML files
→ Pydantic validation
→ repository loading and cross-file diagnostics
→ fail-closed handoff selection
→ deterministic compilation and SHA-256 fingerprint
→ machine-readable metadata and Markdown export

Privacy boundary

  • The CLI reads only the workspace path supplied by the operator.
  • Missing selectors choose no context.
  • Handoffs allow only public content unless private is explicitly listed.
  • secret content cannot be exported, even if validation is bypassed.
  • Candidates never enter a compiled context.
  • The project contains only fictional example data.
  • Generated exports are ignored by Git and should not be edited directly.
  • Doctor and the secret scanner stay inside the supplied workspace and never print matched secret values.

See the privacy model and the security policy.

Workspace layout

home.yaml           versioned workspace manifest
sources/core/       reviewed stable authority documents
sources/current/    reviewed time-bounded authority documents
candidates/         proposals that never compile
handoffs/           reviewed selection declarations
exports/            disposable generated Markdown

home.yaml is intentionally small:

kind: workspace
schema_version: "1.0"
name: example-home
framework:
  minimum_version: 0.1.0a5
defaults:
  export_directory: exports

The export directory is a safe relative path. Absolute paths, .., symbolic-link escapes, and custom --output paths outside the workspace are refused.

Documents use schema_version: "1.0" and a strict kind discriminator. Unknown fields are errors. JSON Schema files under schemas/ are generated from the Pydantic models. Pydantic runtime validation is authoritative and also enforces cross-field invariants that standalone JSON Schema cannot fully express:

python scripts/export_schemas.py
python scripts/check_schema_drift.py

Export metadata and stale detection

Exports begin with a canonical machine-readable metadata comment containing the handoff ID, context date, and fingerprint. Doctor uses only that fixed first-line protocol; it does not infer state by parsing arbitrary Markdown. For each handoff it reports missing_export, stale_export, invalid_export_metadata, or current_export. A different display-only generation timestamp is not stale.

Doctor checks

Doctor reports, but never repairs:

  • manifest, required-directory, repository, reference, and symbolic-link problems;
  • pending or approved candidates, future/expired/expiring current documents, and inactive or archived authority counts;
  • missing, stale, invalid, unknown, or Git-tracked exports;
  • high-confidence credential assignments, PEM private-key headers, and common token shapes;
  • configured Git remote names and modified tracked authority files.

The expiry warning window is seven days, inclusive. Secret findings contain only a relative path, rule name, and redacted message. Exact fictional fixtures may be allowlisted as relative/path:rule in .home-secret-scan-allowlist; directory-wide exclusions are not used. The bounded scanner rejects non-regular inputs and regular files larger than 1 MiB instead of reading them. Doctor checks Git only when the supplied workspace is itself a normal Git root and disables optional Git locks, repository filesystem monitors, and hooks for every command. Export diagnosis reads only a no-follow, 4 KiB-bounded metadata first line, never the Markdown body.

Run the scanner independently with:

python scripts/scan_secrets.py .

This is a defense-in-depth aid, not a guarantee that a workspace contains no sensitive data.

Version-control policy

  • Commit home.yaml, authority files, handoffs, and deliberate candidate records.
  • Ignore generated exports/*.md by default; they can be deleted and rebuilt.
  • Doctor reports tracked generated Markdown but never runs git rm or changes the index.
  • home init never runs git init, adds a remote, or generates personal profiles.

Development

After installing from a checkout, run the local quality checks:

python scripts/check.py
pre-commit run --all-files

The pre-commit configuration uses local system-language hooks for schema drift, Ruff, mypy, pytest, and the redacted secret scanner. scripts/check.py also validates the fictional example, builds it twice inside its workspace, and rejects fingerprint differences. GitHub Actions runs the same gate on Python 3.11 with contents: read permission; it does not publish, upload authority data, or modify schemas.

Current limitations

  • Local files only; there is no database or cloud sync.
  • One build selects one handoff and one context date.
  • No automatic candidate approval or authority-file mutation.
  • Markdown is the only renderer.
  • Schema version 1.0 is the only accepted protocol version.

Roadmap

Possible later increments include schema migration tooling, richer renderer plugins, explicit export garbage collection, and compatibility testing on additional Python versions. They are outside the 0.1.0a5 scope.

License

Licensed under the Apache License, Version 2.0. See LICENSE.

Release files for home-framework 0.1.0a5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for home-framework 0.1.0a5
File Size Uploaded
home_framework-0.1.0a5.tar.gz 80.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for home-framework 0.1.0a5
File Interpreter ABI Platform
home_framework-0.1.0a5-py3-none-any.whl Python 3 none any Details

Total release size: 114.3 kB

Release files / home_framework-0.1.0a5.tar.gz

Download URL home_framework-0.1.0a5.tar.gz
Size 80.9 kB
Tags Source
SHA-256 checksum
How to use checksums
70c357383b6865547638356261d21aafc7b6d84bb09eaeb602db4fc4b50582c1
BLAKE2b-256 checksum
How to use checksums
97b8f65b0667a7db2fa9b6a56e4eb624166fc4eb49828c7a1de2b0748e381d92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

Release files / home_framework-0.1.0a5-py3-none-any.whl

Download URL home_framework-0.1.0a5-py3-none-any.whl
Size 33.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a8d65c36c58140c7d26849d291d39e000df916c0f5c1519c8f653c9d21661e1
BLAKE2b-256 checksum
How to use checksums
80bf08378ade219d76e773dfba165c843988f01b1a8cf02dd95094b74cbaebd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0a5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page