f/hold docs

Native harness configuration

fhold supplies prebuilt AKM/OpenCode tools and minimal setup/maintenance. Native platforms own agents, tools, permissions, memory, hooks, skills and MCP. fhold adds no local agent-name allowlist, recall prompt filter, restricted scheduled agent or duplicate memory extractor.

Assistant editions

Assistant editions share OpenCode, AKM/web, scheduling, keep-alive and recovery. Slim omits Claude Code and Codex. AIO keeps both; Claude-only and Codex-only images are available as manual build targets. Only included native harnesses seed plugins or start optional supervisors. The image manifest reports inclusion independently of the saved remote switches. Omitted tools report not-included; account files and native approvals remain untouched so switching back can reuse them.

Deployment inputs

Release-owned defaults are image-baked and selected by the managed asset allowlist. Install/update refreshes those bytes; operator preferences remain writable and are not converted or overwritten.

Host file Container file Owner
system/assistant/opencode.json /etc/opencode/opencode.json Product schema declaration, no extra task restrictions
config/assistant/opencode.json[c] /home/fhold/.config/opencode/opencode.json[c] Native operator preferences
system/codex/config.toml /etc/codex/config.toml Native built-in plugin registration
system/codex/requirements.toml /etc/codex/requirements.toml Empty product requirements, no hook/task restriction
system/claude/managed-settings.json /etc/claude-code/managed-settings.json Empty product settings
data/assistant/.codex/config.toml /home/fhold/.codex/config.toml Native operator settings and exact-hash hook approvals
data/assistant/.claude/settings.json /home/fhold/.claude/settings.json Native operator settings
config/akm/config.json /etc/akm/config.json Native operator AKM catalog, harnesses and task activation

Normal user/project settings and hooks need no custom policy mount. Plugin redaction is configured in native config/akm/config.json under plugins.redact.pii and plugins.redact.highEntropy. New homes are seeded with both set to true, and 0.4.1107-beta through 0.4.1110-beta filled them into older homes at startup. fhold no longer changes these keys: AKM's plugins treat a missing key as off, so a home that skipped those releases should set both explicitly. Image/Compose defaults no longer use the retired AKM_REDACT_* variables.

For an explicit system-level policy, operators can supply native files through their existing Compose overlay. That optional policy is their choice and maintenance responsibility, not an extra fhold requirement. Keep credentials private, and mount individual system files rather than hiding the installed native plugin directories.

Existing unused config/opencode, config/codex and config/claude policy copies are not mounted by the default stack. They remain untouched; fhold does not interpret or convert their historical beta syntax.

Task permissions

OpenCode, Codex and Claude enforce their own native/operator permissions and approval/consent. fhold does not force approval bypasses, impose shell command denials or disable project, Claude-compatibility or external-skill discovery.

OpenCode's supported configuration includes native permissions and optional system resource policies. Use the native documentation for policy precedence; fhold adds no policy interpreter or format converter. Native user preferences are editable under config/assistant; OpenCode's watcher applies ordinary changes without a reload service.

Recurring tasks forward the operator's prompt unchanged and use native AKM harness selection. fhold-task create ... --harness <name> selects an existing harness; omitting it leaves selection to AKM. AKM owns scheduling and durable task history. Portable imported task definitions remain paused until reviewed; that preservation rule does not impose a tool ceiling on an approved native run.

Guardian is a separate authenticated ingress boundary. Its chat/read credential ceilings, moderation, ownership and path containment remain enforced. Automatic AKM context executes server-side, outside model tool checks, so limited credentials do not receive private bundle/workflow/proposal context or write learning implicitly. Guardian reapplies the current credential's authority before every turn/interaction; full credentials inherit native AKM behavior. Local custom agent names and mixed histories never determine eligibility.

Hooks and MCP servers

AKM and fhold use one native plugin registration path per harness:

There are no duplicate system-managed handler copies and no managed-only exclusion. User/project hooks and third-party native plugins remain available. MCP configuration uses each platform's normal native settings; fhold does not maintain a parallel MCP registry.

Use /hooks inside native Codex, or fhold's existing review UI/helper, to review the exact native plugin commands. Only explicit operator consent writes their native trusted hashes. Changed definitions need a fresh review; fhold neither manufactures approvals nor approves unrelated hooks. Claude likewise retains native plugin/workspace trust and consent.

AKM owns automatic recall, prompt learning and reviewable transcript proposals. Use native akm setup --learning off / --learning on and akm doctor info to control and inspect learning. The plugins no longer read AKM_AUTO_MEMORY or AKM_AUTO_LEARNING. Fresh instances select the native opencode harness (run --standalone), which reuses OpenCode's provider/model/auth. AKM owns its bounded utility agent and recursion prevention; fhold adds no extraction subprocess wrapper or model pipeline. The pinned Codex plugin has prompt learning but no SessionEnd extractor; fhold does not invent unsupported parity.

fhold does not set learning at startup. A learning-off choice saved with akm setup --learning off stays in AKM's configuration across restarts. Homes with fhold's retired assistant.automaticMemory=false that started on 0.4.1106-beta or later already have that native choice saved; others should run akm setup --learning off once.

Startup, recovery and verification

Native plugin caches/default settings are seeded only when missing. Native plugin commands refresh selected built-in plugins from the pinned image's local marketplaces without replacing whole settings files. Operator-selected marketplaces, account state, custom plugins, user settings and hook decisions remain operator-owned. Codex's add command enables a plugin, so explicitly disabled Codex plugins are left alone until an enabled boot. No packages or marketplaces are downloaded at startup. After recovery and filesystem seeding, before native agents and task writers, startup invokes akm migrate apply. AKM owns conversion, eligibility, backups and idempotency. A blocked external asset reports degraded migration status without stopping an otherwise usable Assistant. The combined native result and stderr remain private in the runtime directory. akm migrate status reports the current state after any manual repairs; the administration skill also reports native selected plugin versions. AKM reads never build the search index, so after migration startup runs one akm index beside the agent (AKM automatically skips a concurrent build). Searches serve what is indexed so far while it runs; a failed build is reported as degraded and the agent stays available. Optional AKM/worker failures report native diagnostics and do not stop the main Assistant. Authentication, restore integrity and actual recovery ownership remain essential boundaries.

Recovery preserves native account/settings state; it does not grant consent or turn disabled native features on. Current image-baked plugin bytes still own the built-in integration. Local image capability checks protect actual recovery semantics, not a second task-policy compatibility layer.

Review native recall explicitly:

fhold-codex-recall.mjs review
fhold-codex-recall.mjs review --plugin=fhold@fhold-plugins

The result reports approval-needed, ready or installed, along with the exact native definitions. Native hook approval, account sign-in, worker startup and an actual remote request are separate observations.

Existing beta installations

Host file updates preserve operator-owned config/akm/config.json. On startup, AKM migrates its format with native backups, preserving supported operator settings. fhold does not translate an old engine or replace an explicit off setting. An existing catalog may still select the removed product scheduled engine and fhold-opencode-run launcher. Inspect the catalog inside Assistant with akm config list. Inspect remaining native migration blockers, then select the installed OpenCode harness when appropriate:

akm migrate status
akm migrate apply

OpenCode 2.2.6 executes the migrated native OpenCode invocation without the older service.json permission failure. No harness-argument repair is required for that case. Fresh installations explicitly select native standalone execution; existing supported operator invocations remain unchanged.

Review the resulting catalog and task sources that explicitly name scheduled; remove the obsolete harness and select the intended native harness before running them. Native akm migrate owns format conversion and backups; it cannot choose replacements for custom executable paths. Custom harness choices remain yours. Without a usable harness/provider, native AKM reports an actionable error; optional learning/tasks do not block the primary Assistant.

Ordinary updates archive removed, unchanged product agents/helpers under private state/retired-managed/<sha256>/ and remove those paths from native autoload. Operator-modified or unknown files and archives are preserved with an update warning/receipt entry for explicit review. There is no recursive directory cleanup, historical agent emulation or configuration migration framework.

References: Codex hooks, Codex configuration, Claude hooks, OpenCode configuration.