一键导入
arif-init-wrapper
Universal session auto-anchor for ALL agent vendors on arifOS VPS — Codex, Claude, Gemini, Kimi, OpenCode, Aider, Copilot, and future agents
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Universal session auto-anchor for ALL agent vendors on arifOS VPS — Codex, Claude, Gemini, Kimi, OpenCode, Aider, Copilot, and future agents
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
The mandatory operational guide and metabolic flow for agents interacting with arifOS. Ditempa Bukan Diberi.
Governed intelligence skill for AAA as the abstraction, attestation, and abduction control plane across arifOS, APEX, A-FORGE, GEOX, WEALTH, WELL, and the ariffazil profile repository. Use when the user asks to explain or design AAA, route agentic work, reduce chaos/entropy in an arifOS federation task, create AREP/task declarations, classify risk, plan multi-repo changes, review governance boundaries, or translate human intent into evidence-backed, authority-safe, recursively agentic workflows. Provides deterministic F1-F13 floor checking, bounded abduction, and FederationReceipt composition.
Instrument arifOS constitutional AI kernel with Langfuse LLM tracing. Use when (1) adding Langfuse tracing to arifOS tool calls, (2) wiring arifOS telemetry to Langfuse cloud or self-hosted, (3) querying arifOS trace data from Langfuse, (4) migrating arifOS mind_reason/heart_critique calls to Langfuse spans. DITEMPA BUKAN DIBERI — Forged, Not Given.
GitHub operations — issues, PRs, commits, code search, CI/CD via gh CLI
AGI-level autonomous controller — self-healing, self-optimizing, constitutionally governed by arifOS F1-F13
Invoke arifOS constitutional MCP tools (000-999 pipeline, F1-F13 enforced)
| name | arif-init-wrapper |
| description | Universal session auto-anchor for ALL agent vendors on arifOS VPS — Codex, Claude, Gemini, Kimi, OpenCode, Aider, Copilot, and future agents |
| user-invocable | true |
| type | flow |
| triggers | ["session_start","new_agent_session","agent_boot","reconnect"] |
P0 — Universal Anchor for All Agent Vendors Seal: DITEMPA BUKAN DIBERI · 2026-03-27
Every agent on this VPS starts from the same broken state: no anchor, no session context, no constitutional grounding. The arif-init-wrapper closes this gap for every vendor by providing a universal bootstrap that:
Why this is P0: Without this, agents operate unanchored — the exact condition that produced the opencode catastrophe (session with no constitutional grounding, leading to blind git reset --hard origin/main).
Every time any of these agents start a session, run arif-init-wrapper:
| Agent | Invocation |
|---|---|
| Claude Code | On every claude session start |
| Codex | On every codex session start |
| Gemini CLI | On every gemini session start |
| Kimi | On every kimi session start |
| OpenCode | On every opencode session start |
| Aider | On every aider session start |
| Copilot CLI | On every github-copilot-cli session start |
| Any new agent | On first boot, before any tool use |
# Probe arifOS MCP availability
curl -sf http://localhost:8080/health 2>/dev/null && {
# Session anchor via MCP
arifosmcp_call tool=init_anchor payload='{"actor_id":"AGENT","session_purpose":"WORK"}'
} || {
echo "[UNANCHORED] arifOS MCP unavailable. Operating WITHOUT constitutional grounding."
echo "[WARNING] This is high-risk. Proceed with extreme caution."
}
Before any work, verify the foundation:
# Check core directory integrity
core_modules=$(ls /root/arifosmcp/core/*.py 2>/dev/null | wc -l)
if [ "$core_modules" -lt 10 ]; then
echo "[P0 CONSTITUTIONAL CRISIS] /root/arifosmcp/core/ appears broken ($core_modules modules, expected 20+)"
echo "[ACTION] HALT. Report to Arif. Do not proceed."
echo "[RECOVERY] Check feature branches: git branch -a | grep feature/"
return 1 2>/dev/null || exit 1
fi
# Check pytest can collect tests (structural sanity)
cd /root/arifosmcp && pytest --collect-only -q 2>/dev/null | tail -1 && {
echo "[OK] Constitutional structure verified."
} || {
echo "[WARNING] pytest collection failed. Foundation may be unstable."
}
# Verify critical floors are loadable
python3 -c "
import sys
sys.path.insert(0, '/root/arifosmcp')
try:
from core.shared.floors import THRESHOLDS
floors_ok = len(THRESHOLDS) >= 13
print(f'[FLOORS] {len(THRESHOLDS)}/13 loaded')
except Exception as e:
print(f'[FATAL] Floor check failed: {e}')
sys.exit(1)
"
# Query recent scars and unresolved issues
arifosmcp_call tool=memory_query payload='{"query":"recent scars unresolved actions","limit":5}'
State clearly:
Report to Arif in plain language:
[ANCHOR] Agent: {vendor}
[STATUS] arifOS MCP: {available/unavailable}
[FLOORS] Constitutional check: {pass/wail}
[CORE] Core modules: {count}/expected
[MEMORY] Recent context: {carry_forward_summary}
[RISK] Session risk level: {LOW/MEDIUM/HIGH/CRITICAL}
[ACTION] Ready to proceed: YES/NO
| arifOS MCP | Core OK | pytest OK | Floors OK | Action |
|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | Proceed normally |
| ✅ | ✅ | ✅ | ⚠️ | Proceed with floor warnings |
| ✅ | ⚠️ | ✅/⚠️ | ✅ | HALT — P0 Foundational Crisis |
| ✅ | ❌ | ❌ | ❌ | HALT — full corruption |
| ❌ | ✅ | ✅ | ✅ | HIGH RISK — proceed with extreme caution, log everything |
| ❌ | ⚠️/❌ | ⚠️/❌ | ⚠️/❌ | CRITICAL — HALT, report to Arif immediately |
codex runs without session context, blunders into git reset --hardgemini assumes origin/main is good without checkinggit pull before verifying the repo is structurally sound| Floor | How Enforced |
|---|---|
| F1 Amanah | Reversibility checked before any destructive git op |
| F2 Truth ≥0.99 | Uncertainty bands declared in operator report |
| F7 Humility [0.03–0.05] | Explicit confidence level in session status |
| F11 CommandAuth | Protected identities require cryptographic proof |
| F13 Sovereign | All HALT states require Arif's explicit decision to proceed |
arif-init-wrapper — Forged 2026-03-27 · DITEMPA BUKAN DIBERI · Universal Agent Anchor 🔐