arif-init-wrapper
Universal session auto-anchor for ALL agent vendors on arifOS VPS — Codex, Claude, Gemini, Kimi, OpenCode, Aider, Copilot, and future agents
Skill by ariffazil
Chalk Labs
Need help deploying arif-init-wrapper?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ariffazil-arif-init-wrapper
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/arif-init-wrapper
What's inside
- Skill 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
- License
- AGPL-3.0
- Instructions
- 158 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# arif-init-wrapper
**P0 — Universal Anchor for All Agent Vendors**
**Seal:** DITEMPA BUKAN DIBERI · 2026-03-27
---
## Purpose
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:
1. Establishes a governed session via arifOS MCP
2. Verifies the agent's identity context
3. Checks constitutional floor health before any tool is touched
4. Reads carry-forward context from memory before starting work
5. Reports its status to the operator in plain language
**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`).
---
## Trigger Patterns
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 |
---
## Protocol
### Step 1 — Anchor Session
```bash
# 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."
}
```
### Step 2 — Constitutional Integrity Check (LAW 2)
Before any work, verify the foundation:
```bash
# 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."
}
```
### Step 3 — Check Floors (F1–F13 baseline)
```bash
# 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)
"
```
### Step 4 — Memory Carry-Forward
```bash
# Query recent scars and unresolved issues
arifosmcp_call tool=memory_query payload='{"query":"recent scars unresolved actions","limit":5}'
```
### Step 5 — Agent Identity Declaration
State clearly:
- Which agent vendor is running
- Whether constitutional grounding is active or unavailable
- Any constitutional warnings for this session
### Step 6 — Operator Report
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
```From ariffazil/arifOS, AGPL-3.0.
More from ariffazil/arifOS
- 0.669score
memory-archivist
ariffazil
Cross-reference and synthesise daily memory files into patterns, insights, and carry-forward items.
SkillAFreshness: A★ 54Claude Code +9 - 0.669score
arifos-deploy
ariffazil
arifOS sovereign deployment: static hub, docs, runtime, and machine files.
SkillAFreshness: A★ 54Claude Code +9 - 0.664score
arif-a2a-call
ariffazil
A2A v1.0.0 client + 888 JUDGMENT integration for OPENCLAW.
SkillAFreshness: A★ 54Claude Code +9 - 0.664score
openclaw-ops
ariffazil
Complete OpenClaw operations skill: configure models/providers/channels/tools/agents/cron, manage sessions and sub-agents, control paired nodes…
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
postcheck-verifier
ariffazil
Proves actions worked in reality — not just exit code 0, not just logs — by validating actual observable outcomes in the system
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
AAA Agentic Governance (AAA-Cockpit, canonical)
ariffazil
Governed intelligence skill for AAA as the abstraction, attestation, and abduction control plane across arifOS, APEX, A-FORGE, GEOX, WEALTH, WELL, and the…
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
architect-explainer
ariffazil
Translates code, system state, and technical decisions into plain-language decisions, risks, and next actions for Muhammad Arif bin Fazil (non-coder sovereign…
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
skill-composer
ariffazil
Chains multi-step workflows constitutionally — research → plan → judge → execute → verify → log → vault — without human step-by-step prompting
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
arifOS-Langfuse
ariffazil
Instrument arifOS constitutional AI kernel with Langfuse LLM tracing.
SkillAFreshness: A★ 54Claude Code +9 - 0.658score
agentic-governance
ariffazil
Hardened constitutional governance — F1-F13 floor enforcement with Quad-Witness consensus for all actions
SkillAFreshness: A★ 54Claude Code +9 - 0.658score
arifos-mcp-call
ariffazil
Invoke arifOS constitutional MCP tools (000-999 pipeline, F1-F13 enforced)
SkillAFreshness: A★ 54Claude Code +9 - 0.658score
agent-foundation
ariffazil
Universal baseline skill for all agents on the arifOS VPS, regardless of vendor or model provider
SkillAFreshness: A★ 54Claude Code +9
Signals
- Stars
- 54
- Forks
- 9
- Open issues
- 3
- Contributors
- 98
- Last commit (this folder)
- May 11, 2026 (5 months ago)
- Last release
- Oct 17, 2026 (14 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/ariffazil/arifOS
- Website
- arifos.arif-fazil.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ariffazil
- 0.669score
arifos-deploy
ariffazil
arifOS sovereign deployment: static hub, docs, runtime, and machine files.
SkillAFreshness: A★ 54Claude Code +9 - 0.669score
memory-archivist
ariffazil
Cross-reference and synthesise daily memory files into patterns, insights, and carry-forward items.
SkillAFreshness: A★ 54Claude Code +9 - 0.664score
arif-a2a-call
ariffazil
A2A v1.0.0 client + 888 JUDGMENT integration for OPENCLAW.
SkillAFreshness: A★ 54Claude Code +9 - 0.664score
openclaw-ops
ariffazil
Complete OpenClaw operations skill: configure models/providers/channels/tools/agents/cron, manage sessions and sub-agents, control paired nodes…
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
AAA Agentic Governance (AAA-Cockpit, canonical)
ariffazil
Governed intelligence skill for AAA as the abstraction, attestation, and abduction control plane across arifOS, APEX, A-FORGE, GEOX, WEALTH, WELL, and the…
SkillAFreshness: A★ 54Claude Code +9 - 0.661score
skill-composer
ariffazil
Chains multi-step workflows constitutionally — research → plan → judge → execute → verify → log → vault — without human step-by-step prompting
SkillAFreshness: A★ 54Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get arif-init-wrapper running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
arif-init-wrapper skill. Agent Mart. https://agentmart.dev/skills/ariffazil-arif-init-wrapper (last updated 2026-10-24)