0xAF RE
v0.1.21 · re-agent trust standard · go 1.26+ · wails desktop & cli

Models guess fast.
Reverse engineering only trusts proof.

A verifiable reverse-engineering agent & 3D forensic workbench.

0xAF-Re pairs a governed multi-model agent loop with a 3D GLSL Forensic Command Deck and 34 built-in pure-Go reverse-engineering tools. Every claim is pinned to an append-only evidence ledger, every dynamic action runs inside a task-scoped capability sandbox, every reconstruction must pass multi-case execution verification, and every writeup must survive an isolated adversarial audit before delivery. One static binary. Zero JS runtime for the CLI.

go install github.com/overkazaf/re-agent/cmd/0xaf@v0.1.20
0xAF·RE — 3D Forensic Theater · Geek Command Deck (9-Phase Spine + Live Provenance DAG)
Interactive Demo Available
0xAF-Re 3D Forensic Theater showing the GLSL radar floor, 9-phase glowing spatial spine, Fresnel station sculptures, and live hypothesis-to-evidence provenance DAG
Real Wails v2 desktop capture on the exact same core.AgentLoop engine as the terminal CLI. Click any 3D node pill to inspect forensic lineage, switch 1–4 camera views, or open the live zero-config browser sandbox →

standardized re-agent trust architecture

Five defenses between a plausible story and a verified finding.

Once an LLM touches a shell, decompiler, Frida, ADB, or Unicorn emulator, it becomes a high-privilege action system. 0xAF-Re implements the canonical re-agent governance standard 1:1 across Go core state, Wire DTOs, and GUI inspection surfaces so confidence never substitutes for replayable evidence.

Defense 01 Action State

Capability Sandbox

Failure mode: Blanket permissions read out-of-scope files, host credentials, or hit the network silently.

Task-scoped least-privilege grants (network / device deny-by-default) that expire immediately on task completion or rollback. Every intercepted call lands in Action State with tool, capability, command SHA-256, decision, origin, and bound hypothesisId.

Defense 02 UNTRUSTED DATA

Evidence Ledger + Untrusted Isolation

Failure mode: Model summaries masquerade as facts; adversarial symbol names poison the prompt layer.

Host-managed append-only evidence-ledger.jsonl assigns immutable ev_NNN IDs with tool source, static/dynamic view, artifact path, and SHA-256. Raw binary strings are tagged untrustedInput: true — citable as data, never executable as instructions.

Defense 03 Cascade Rollback

Hypothesis Manager

Failure mode: A wrong early assumption (“this constant is the AES key”) steers dozens of wasted turns.

Structured H-NNN records pin claim, scope, confidence, falsifiers, nextTest, and dependsOn. Contradictory evidence deterministically halves confidence and cascades weakened / frozen / reevaluate across derived nodes.

Defense 04 candidate → verified

Execution Verifier

Failure mode: Hardcoded solve scripts or single-sample coincidences claimed as recovered algorithms.

Strictly separates candidate from verified via verify_artifact: runs build, fixed-input replay, boundary/failure cases, and differential checks, recording boundaryPassed, differentialCases, and uncoveredPaths. Single-sample hits (total < 2) cannot promote.

Defense 05 Isolated · Tools=[]

Adversarial Auditor

Failure mode: The explorer grades its own homework, or spins indefinitely without a stop condition.

Runs in a fresh, tool-free context (Isolated=true, FreshSession=true, Tools=[]) reading only the scope declaration, ledger, and verification records. Evaluates 5 mandatory checks (direct_evidence, failure_edge_coverage, simpler_alternative, scope_overreach, artifact_lineage) and issues a tri-state verdict: accepted / rejected / needs_more_evidence.

7-State Investigation State Archive — Single source of truth across turns, models, and tools. Models read summaries; the host owns the full durable archive.
Invariant: Target State ≠ Objective State
01 · Target State

Which exact artifact?

Host-sniffed via goal.Sniff with SHA-256 lock; read-only anchor decoupled from Objective to prevent drift.

file · sha256 · arch · format · version · scope
02 · Objective State

What proves completion?

Drafted by model, activated only on operator /goal accept; evaluated live before writeup unlocks.

primary · intent · deliverables · constraints · stopConditions
03 · Evidence State

What did tools observe?

Append-only ev_NNN records; models cite IDs and can never edit or fabricate prior observations.

ev_NNN · source · view · sha256 · untrustedInput
04 · Hypothesis State

Which competing claims?

Parallel explanations with falsifiers, next test, and deterministic dependency cascade on contradiction.

H-NNN · claim · scope · confidence · falsifiers · derived
05 · Action State

What ran in the sandbox?

Intercepted pre-execution by security.Sandbox; dynamic actions bind to target hypothesisId.

tool · capability · sha256 · decision · origin · hypothesisId
06 · Verification State

Is behavior equivalent?

Host verify_artifact proof matrix; locked at candidate until multi-case & edge checks pass.

build · passed/total · status · boundaryPassed · uncoveredPaths
07 · Audit State

Did an isolated reader pass it?

Deterministic 5-check gate plus independent third-model /audit seat; regressions roll back verdict.

verdict · checks[5] · auditorProvider · findings

4 Rotating Runtime Roles & 9-Phase Gated Control Loop

Rather than a brittle linear chain, the runtime control plane rotates across four specialized roles on every action cycle, mapped onto the 9-phase RE HUD.

Tool Router ⇄ Evidence Ledger ⇄ Execution Verifier ⇄ Adversarial Auditor
Role 01

Tool Router

Dispatches static/dynamic tools based on Target State and phase; enforces Capability Sandbox pre-flight.

Role 02

Evidence Ledger

Isolates untrustedInput payloads, persists immutable ev_NNN, and drives hypothesis state transitions.

Role 03

Execution Verifier

Runs build, fixed replay, boundary/failure inputs, and differential checks to arbitrate candidate vs verified.

Role 04

Adversarial Auditor

Evaluates 5 checks in a zero-history, zero-tool session and signs accepted / needs_more_evidence / rejected.

1 TRI · Triage→ 2 STA · Static→ 3 DYN · Dynamic→ 4 EVI · Evidence→ 5 IFC · Interface→ 6 HYP · Hypothesis→ 7 VER · Verify Gate→ 8 AUD · Audit Gate→ 9 WRI · Writeup

5 Trust & Cost Metrics (§7.5)

Separating smooth prose from verifiable engineering quality across every investigation.

evidence_coverage
Evidence Coverage

Share of active final conclusions directly traceable to valid non-error ev_NNN ledger entries.

replay_pass_rate
Replay Pass Rate

Pass ratio (passed / total) across fixed vectors, boundary cases, and failure inputs.

wrong_hypothesis_lifetime
Wrong-Hyp Lifetime

Turns, evidence steps, and tokens spent between proposing a wrong claim and weakening or pruning it.

overreach_count
Overreach Count

Out-of-scope file, network, device, or credential attempts (distinguishing blocked vs. unblocked).

cost_per_accepted_finding
Cost / Accepted Finding

Total token, tool, and lab spend (USD) amortized per auditor-accepted conclusion.

7 Completion Gates (WRI [9/9])

Every gate must pass before a session unlocks final writeup delivery.

  1. 1Reproducible Target & Scope: Target State (hash/arch/format) and Objective State separated and pinned.
  2. 2All Findings Ledger-Backed: Every key conclusion cites immutable ev_NNN observations.
  3. 3Hypotheses Resolved: Major hypotheses verified, falsified, or cascaded clean — zero dangling reevaluate.
  4. 4Multi-Dimensional Verification: Build, fixed replay, boundary/failure, and differential checks reach verified.
  5. 5High-Risk Actions Audited: Every dynamic/external action passed Capability Sandbox with an ActionRecord.
  6. 6Adversarial Audit Accepted: All 5 isolated audit checks pass with verdict = accepted.
  7. 7Explicit Known Unknowns: Report names uncoveredPaths, scope limits, and concrete nextTest steps.

3 Handover Questions

Every archived investigation must answer these immediately for teammates or resume runs:

01 · Which exact run produced this conclusion?

Pinned to Session ID, evidence-ledger.jsonl path, ev_NNN IDs, and artifact SHA-256.

02 · Can another model or tool reproduce it?

Ships standalone replay and differential test commands with deterministic fixed input vectors.

03 · Which layer caused any failure or drift?

Explicitly separates model reasoning, tool failure, runtime environment, and sample data / poisoning.

Governance Graph · Capability Gate & 7-State Control Loop
Gate 1–7 Live
0xAF-Re Governance Graph panel showing capability sandbox gate, hypothesis arbitration, and audit verdict state
Live governance topology inspecting sandbox gates, Target ≠ Objective contract bindings, and adversarial audit checks.
Evidence Provenance DAG · ev_NNN → H-NNN Lineage
Zero Uncited Claims
0xAF-Re Provenance DAG connecting evidence ledger records to hypotheses and verification verdicts
Every hypothesis links directly to supporting and contradicting ev_NNN records so cascades are inspectable at a glance.

3d forensic theater · geek command deck

Spatial reverse-engineering command room, engineered to stay cool.

Built with Three.js + React Three Fiber on top of Wails v2 and the exact same Go backend, the 3D Forensic Theater turns multi-turn reverse engineering into a navigable tactical deck — and toggles to the classic 2D cockpit in one click.

GLSL Radar Floor & Fresnel Sculptures

Custom GLSL radar sweep shader across the ops floor, Fresnel-rimmed 3D station sculptures for each forensic zone, and curved Bezier causal proof arcs animated with directional signal photons linking evidence to hypotheses.

Clickable 3D Pills & Node Inspector

Click any 3D hypothesis or evidence pill in space to open the rich 3D Forensic Node Inspector (lineage, confidence, falsifiers, raw excerpt), or press I to toggle the collapsible Node Explorer drawer.

Instant Camera Choreography

Jump smoothly between 1–4 tactical camera presets (Overview, Phase Spine, Provenance Tower, Audit Deck), press Space to toggle gentle orbit, or click any station to fly straight in.

Adaptive HD (1.5x) / ECO (1x) Guard

Visibility-aware rendering pauses the GPU loop to 0% in background tabs and steps smoothly between sharp HD (1.5x DPR) and ECO (1x DPR) instead of kicking you out of 3D on transient frame drops.

Amber P3 Phosphor · 3D Deck
3D Forensic Theater rendered in the Amber P3 phosphor theme
Every one of the 10 themes drives 2D chrome and 3D GLSL/wireframe emissive palettes together.
Guided Experiment Wizard + Scope
Guided hypothesis experiment wizard showing sandbox scope chips and prefilled verification command
Sandbox-scope guidance chips (writable paths, network state, out-of-scope alerts) right inside the experiment flow.
90ms Zones Dashboard · 2D Cockpit
0xAF-Re 2D forensic zones dashboard with live FLOW, TOOLS, PLAN, THINK, and TELE panels
One-click toggle to the classic 90ms live 2D deck with FLOW / TOOLS / PLAN / THINK / TELE & 9-phase RE HUD.

commercial desktop workbench

Forensic depth with IDE ergonomics.

Designed for multi-hour native, mobile, and protocol investigations: crisp surface hierarchy, zero-glare daylight mode, instant keyboard navigation, and reproducible writeup exports — all backed by the same Wails v2 Go engine and sessions/ directory as the CLI.

Pillar 01 · Static & Dynamic Alignment

Binary Forensic Radar

At-a-glance binary posture bar surfacing mitigations and dangerous memory flags, one-click copyable VA / File Offset / RVA coordinates, section entropy terrain, and side-by-side Static-vs-Dynamic alignment across ev_NNN observations.

PIE ON NX ON FULL RELRO CANARY CHECK RWX DETECT
Pillar 02 · Reproducible Deliverables

Deductive Proof Narrative & Writeup Studio

Synthesizes every audited session into a 6-chapter chronological reasoning story paired with 5-beat per-hypothesis proof arcs (Observation → Claim → Experiment → Replay Verification → Audit Verdict), with one-click Markdown & JSON forensic bundle export.

Pillar 03 · Instrument-Grade UI Chrome

10 WCAG AA+ Themes + ProSelect & HintOverlay

Four-step surface depth ladder across CRT Phosphor, Forensic IDE, and zero-glare Daylight Lab (paper) palettes — paired with searchable keyboard-driven ProSelect menus, portal-mounted HintOverlay tooltips, and 3 CRT atmosphere presets (refined / calm / vivid).

Pillar 04 · Zero-Friction Operator Loop

⌘K Command Palette, Instant Feedback & Smart Resume

Trigger any workflow, theme, phase, or tool from ⌘K. Every slash command delivers immediate visible feedback across transcript, toast, and notice log — even in 3D mode. Persistent local cache hydrates sessions instantly, and a Proactive LLM Startup Greeting inspects workspace artifacts to propose your sharpest first move.

Deductive Proof Narrative & Writeup Studio
Markdown + JSON Export
0xAF-Re Writeup Studio showing 6-chapter deductive proof narrative, known unknowns, and export actions
6-chapter chronological proof narrative with 5-beat hypothesis arcs, known unknowns, and reproducible bundle export.
Hypothesis Workbench · Replay & Audit Arbitration
candidate → verified
0xAF-Re Hypothesis Workbench dialog displaying confidence score, falsifiers, verification replay status, and audit findings
Inspect competing H-NNN claims, falsifiers, replay boundary metrics, and isolated auditor checks in one cockpit.

10 Curated WCAG AA+ Palettes

Click any swatch to inspect its exact token ID, group, and palette — including daylight paper light mode.
/theme deck — Cyberdeck (CRT Phosphor · Dark) Cyan obsidian · default forensic deck

Build native desktop or test-drive in your browser now

Zero API keys and zero disk writes in the static browser sandbox — explore 5 guided RE cases, approval branching, 3D Theater, and all 10 themes live.

make gui                         build native Wails v2 bundle -> gui/build/bin/0xAF-Re GUI.app
make gui-dev                     live-reload desktop development mode
make gui-demo                    browser-only interactive demo sandbox (5 guided RE cases, zero config)
go test ./gui/ -run TestE2E -v   headless Go + WebView E2E smoke test

why it is built this way

Built after ordinary coding agents got less useful for RE.

The project started from daily authorized RE/CTF work where CLI risk controls tightened and general models became overly cautious around reverse-engineering language. 0xAF-Re does not hide intent. It keeps work local, authorized, and auditable, then composes models so each seat handles the job it excels at.

Four-Seat Model Composition

A planner reasons about the target, an executor drives local tools, a researcher gathers prior art, and an isolated auditor challenges conclusions. Switch live with /planner, /executor, /researcher, and /model.

Specialist When Available

If you have GPT Cyber, Claude Code CVP, Grok, or a similar route tuned for security research, /workflow auto takes the specialist path and keeps planning plus tool work in one smooth loop.

Caveman for Ordinary Models

Without a specialist route, caveman mode splits the task into a full planner view and a narrow executor packet. The executor sees local evidence requests, not the whole objective, and uses a read-only toolset for file facts.

One Static Binary

Prompts and 30 RE skills are embedded via embed.go. make cross builds linux/darwin × amd64/arm64 (~9 MB, 36 ms start). Lab boxes rarely have a JS runtime, and you should not need one to triage a binary.

Cancellation That Lands

^C cancels the HTTP request, kills the tmux session, and signals tool subprocesses in their own process group. No orphaned objdump chewing a core after you walked away.

Contained by Default

Reads stay inside the workspace. Writes stay off until --write. Network and credential-shaped commands stop and ask. Destructive shell forms are refused.

use cases

Ten good first prompts.

Replace the paths with your own artifacts. Slash commands run local pure-Go tools directly with zero token cost; -p launches a governed agent turn.

#goalstart with
1Unknown CTF file/scan ./chall
2Native binary protections/mitigations ./chall
3Packed or encrypted region/entropy ./chall
4Embedded payloads/carve ./blob
5Encoded flag or token/decode auto ZmxhZ3s...
6Android APK first pass/apk ./app.apk
7Java or native hook scaffold/hook java com.example.Crypto sign
8radare2/JADX/Ghidra/Burp/mitmproxy/angr inventory/retool inventory
9Web/WASM crypto challenge/skill wasm-reverser inspect ./dist/module.wasm
10Background research with sources0xaf --role researcher -p "Research this packer name and list safe local checks"

terminal ops deck · the turn, drawn

Two live terminal layers: one animates, one stays.

In the terminal REPL, the diagram animates above the HUD while a turn runs — packets travel along wires, nodes illuminate as they engage, and the task list hangs off [you]. Meanwhile the trace lands permanently in scrollback, stamped from turn start with normalized duration bars so every finished run reads like a packet capture.

real mid-turn frame · 100×40 pty while run_command is active
Real mid-turn terminal frame showing animated dataflow diagram, active plan HUD, and live tool telemetry
Captured directly from a live session while run_command was running — not a hand-drawn mock.
auto/auto ❯ triage artifact.txt and decode whatever payload it carries
Five-turn terminal trace with POST/200 timings, token counts, duration bars, and tool calls
Every request prints model, input/output/thinking/cache tokens, tool calls, and a scaled duration bar.
turn archived · plan box, markdown reply, and token cost footer
End of a turn showing archived plan box, markdown reply gutter, and cost footer
The task list archives cleanly into scrollback alongside the markdown answer and exact turn cost.
# pick your terminal visualization layers; choice persists across sessions
/flow full     diagram + trace (default)
/flow flow     diagram only
/flow trace    trace lines only
/flow off      plain tool tree

# queue your next prompt while the current turn is still executing
/queue list · /queue edit 2 triage ./fixed.apk · /queue cancel 2 · /tasks collapse

Boot screen: every line is a real probe

Runtime, tmux, shallow magic-byte triage of the workspace, provider auth, 34-tool inventory, and active policy — answering “is everything wired up right now?” on launch.

$ 0xaf --workspace ./demos/reverse-lab
0xAF-Re boot probe showing runtime, tmux, workspace contents, planner/executor routes, tool tiers, and active policy
Missing tmux is reported and non-fatal — CLI providers fall back to running directly.

multi-model routing

Planner thinks. Executor does. Researcher gathers. Auditor challenges.

Under --role auto, prompts route by shape while cost stays disciplined: high-reasoning synthesis stays on your strongest planner, high-frequency extraction drops to a fast executor, and /audit prefers an independent third model seat with zero shared history.

controleffect
--role plannertarget decomposition, cross-function semantics, hypothesis & falsifier design
--role executorstatic extraction, dynamic hooks, batch log triage, verification harness drafts
--role researcherpacker/obfuscation prior art (CFF/BCF/MBA), source-cited background research
/audit (auditProvider)zero-history, zero-tool adversarial review across all 5 audit checks
/planner · /executor · /researcherswap role providers mid-session without restarting
/model <provider> <model> · /effortpin concrete model IDs or reasoning effort (minimal…max)
/prompt list · /prompt edit <role>customize system/planner/executor/researcher prompts with live reload
CLI · auto/auto ❯ /providers
Configured providers table showing claude, codex, deepseek, glm, grok, and offline mock
Eight providers ship: local CLIs over tmux, Anthropic Messages, OpenAI Responses, OpenAI-compatible chat, and offline mock.
Desktop GUI · Multi-Role Provider Config
0xAF-Re Desktop GUI role configuration panel for planner, executor, researcher, and auditor providers
Configure Planner, Executor, Researcher, and Auditor seats visually in the Desktop GUI using the exact same config store.

workflow modes

Specialist when you have it. Caveman when you do not. Reverse when proof matters.

Workflow mode is explicit (off by default). Turn on auto, specialist, caveman, or one of the 5 structured domain workflows depending on your provider route and rigor target.

modewhen to use itwhat it does
offdefaultsends prompts as-is with no workflow wrapper
automixed machinesdetects GPT Cyber / Claude Code CVP markers for specialist, otherwise picks caveman
specialistcyber or CVP route configuredplans first, then runs skills and local tools while preserving ledger evidence
cavemanordinary providersplanner writes EXECUTOR_PACKET → fresh isolated executor gathers read-only local evidence
reversestructured REsample-type picker (APK/SO/dylib/ELF/PE/firmware/PCAP) → 9 gated phases → RE HUD → ledger, verify & audit gates
ctfsingle challengetriage, plan, solve, and exact flag verification
engineeringprotocol / API recoveryrecovers schemas, data models, client stubs, and test suites
researchbackground intelligencesurveys public Web / GitHub / arXiv sources into a cited briefing
writeupevidence-only reportingcompiles audited ledger entries into a reproducible writeup
/workflow auto                 use specialist if a cyber/CVP route is configured
/workflow caveman              planner writes packet, isolated executor collects local evidence
/workflow reverse              interactive: pick sample type, enter 9-phase governed loop
0xaf --workflow specialist -p "triage ./app.apk"

Caveman mode is never ciphering or prompt laundering: the planner holds the full authorized objective, the isolated executor receives strictly workspace-local read-only evidence steps, and both phases are logged verbatim in the same session transcript.

Xiaohongshu Discussion Group

Scan in Xiaohongshu to join the 0xAF-Re community for reverse-engineering workflows, provider routing notes, benchmark cases, and desktop workbench feedback.

0xAF-Re Xiaohongshu group QR code

remote lab execution

Plan locally. Execute on your SSH lab box.

--remote <name> or /remote use <name> routes run_command and !shell over a persistent background SSH session (30s keepalives + ssh -tt PTY allocation), while remote_exec targets any saved machine explicitly. Credentials live in ~/.0xaf-re-agent/remote.json, encrypted at rest with machine-bound AES-256-GCM.

/remote add lab dev@10.0.0.5
/remote add srv root@srv.local --key ~/.ssh/id_ed25519
/remote use lab
!uname -a                                 shell escape -> ssh lab
0xaf --remote lab -p "inventory /opt"     launch straight into remote mode
/remote list
/remote saved SSH hosts list
Every remote command passes the capability sandbox and exec-tier approval gate with ssh <host> <command> shown explicitly.

the arsenal

34 built-in pure-Go tools — zero token cost on direct triage.

groupbuilt-in tools
Fileslist_files · read_file · write_file · grep
Shellrun_command
Pure-Go Binariesfile_info · strings · hexdump · hash_file · extract_symbols · binary_inspect · anti_analysis · binary_diff · binary_mitigations
CTF & Carvingctf_triage · ctf_decode · entropy_scan · find_bytes · carve_artifacts
External RE Wrappersreverse_toolkit
Mobile / Dynamicapk_inspect · frida_hook_template
Knowledge & Skillslist_skills · read_skill · knowledge_search · knowledge_read
Evidence & Governanceverify_artifact · evidence_review · hypothesis_create · hypothesis_update · hypothesis_list · update_re_state
Remote Executionremote_exec
Task Planupdate_plan

Fast-path slash commands (no model in the loop)

/scan ./chall                  type, magic, hash, entropy, string signals, next steps
/inspect ./chall               ELF/PE/Mach-O headers, constructors, sections, imports/exports
/anti ./chall                  packer markers, anti-debug, anti-Frida, inline syscalls
/diff ./orig ./patched         byte-region diff + x86/ARM64 instruction patch recognition
/mitigations ./chall           PIE / NX / canary / RELRO / stripped / dangerous imports
/entropy ./chall               sliding-window entropy map for packed/encrypted regions
/carve ./blob                  embedded ELF/PE/ZIP/DEX/PNG/PDF/SQLite/Mach-O carving
/findbytes ./chall flag{       text or hex needle offsets with hexdump context
/decode base64 ZmxhZ3s...      base64/hex/url/rot13/xor, or auto to try all
/apk ./app.apk                 pure-Go AXML manifest + DEX/SO + packer/framework fingerprints
/retool inventory              probe radare2, JADX, Ghidra, Burp, mitmproxy, angr, Unicorn, unidbg
/hook java com.a.Crypto sign   Frida Java/native/ObjC hook scaffold
auto/auto ❯ /scan artifact.txt
Local /scan triage output with SHA-256, entropy, crypto/pwn signals, and suggested next steps
Oversized outputs are head/tail bounded in context while the full text lands on disk as a readable artifact file.

Stdio MCP Bridge (IDA Pro & Friends)

Any stdio MCP server joins the same tool registry, capability sandbox, approval gate, and output budget. Drop ida-pro-mcp into agent.config.json to bring decompilation, xrefs, and renaming straight into the loop:

{ "mcpServers": { "ida": {
    "command": "python3",
    "args": ["-m", "ida_pro_mcp.server"],
    "timeoutMs": 120000
} } }

Exposed as mcp__ida__<tool>; failed servers are reported at boot and skipped non-fatally. Check state anytime with /mcp.

safety & approval matrix

Capability sandbox first. Tier × mode second. Safety patterns outrank both.

An accepted /goal arms the task-scoped capability sandbox (/cap) with network and device access denied by default and every gated call logged. Calls that clear the sandbox then meet Tier × Mode approval — and commands matching destructive, credential, or network patterns always ask.

modeauto-approvesasks
yoloeverythingnothing
safe defaultevery tiercommands tripping a safety pattern
writeread, writeexec tools, and safety patterns
always-askreadeverything else
safe mode stopping for a network command
Approval prompt intercepting a curl network command with y/a/n/d choices and recording operator denial
Denials never crash a run: they return as structured tool results so the agent adapts cleanly; non-interactive pipes refuse with explicit reasons.

context budget, snapcompact & resume

Full transcript on disk. Precision budget upstream.

One raw objdump -d can sink an ordinary coding agent. 0xAF-Re trims upstream context in two mechanical passes (eliding old tool bodies first, then dropping oldest exchanges while keeping tool_use/toolResult pairs intact). Enable "compactionStrategy": "snapcompact" in agent.config.json to render dropped exchanges into deterministic local PNG snapshot frames so vision-capable models retain hex offsets and addresses.

/context   ≈12400 tokens of 48000 budget (25%) · 42 messages
/compact   fold session into a high-density briefing and free context
/sessions · /resume [id] · /new
0xaf --continue
0xaf --context "know:android packer"   seed local knowledge or file:… notes up front

Append-only JSONL sessions repair truncated final lines and orphan tool calls automatically on resume.

30 embedded skills & local knowledge

Battle-tested RE playbooks and source-cited private notes.

30 orthogonal RE skills ship embedded inside the binary (with automatic project-local override via skills/<name>/SKILL.md): CTF triage, native Pwn/RE, binary patching, Capstone/Keystone, radare2, Ghidra, GDB, OLLVM & VMProtect deobfuscation, SO string decryption, crypto identification, white-box DFA (whitebox-dfa), DRM & protocol reversing (drm-protocol-analysis), Android APK/SO/Frida/JADX, Unicorn/unidbg/Qiling/QEMU emulation, WASM & JSVMP reversing, browser hooks, and Burp/mitmproxy capture.

/skills
/skill android-apk-frida inspect this APK and propose hooks
/skill whitebox-dfa recover the AES key from ./wb_cipher
go run ./cmd/import-knowledge ~/notes/re
/know frida ssl pinning   answers strictly from retrieved entries with verified citation IDs

install & quickstart

Four commands to a working deck.

# 1 — install the static CLI binary
go install github.com/overkazaf/re-agent/cmd/0xaf@v0.1.20
#     or build CLI + Desktop GUI from source:
#     git clone https://github.com/overkazaf/re-agent && cd re-agent && make build && make gui

# 2 — offline wiring self-check: zero API keys, zero network
0xaf --smoke

# 3 — inspect detected local logins & API credentials
0xaf auth status

# 4 — launch inside your authorized workspace
0xaf --workspace ./ctf

Reuses local codex and claude CLI logins through tmux by default, or point any seat straight at an API key:

export DEEPSEEK_API_KEY=...
0xaf --planner deepseek --executor deepseek --workspace ./ctf
0xaf auth login claude-api   stores credentials locally in ~/.0xaf-re-agent/secrets.json
Shell escape · !ls -la · /read nope.txt
REPL shell escape !ls -la and direct /read error output
Lines starting with ! run under the exact same policy and land in transcript; ^C kills only the child.
Command deck · /help
0xAF-Re /help command deck grouped by session, routing, auth, direct tools, and skills
TAB completes commands and paths; ↑↓ walks persistent history across sessions.

engineering verification

19 Go test packages, 14 Vitest suites (129 unit tests), and Playwright E2E.

Every trust invariant is pinned by automated tests: Target ≠ Objective contract locking, Capability Sandbox action logs, UNTRUSTED DATA ledger isolation, deterministic hypothesis confidence halving & cascade rollback, verify_artifact candidate-to-verified gating, 5-check adversarial audit evaluation, 3D adaptive HD/ECO guard, local cache & proactive greeting logic, and terminal HUD geometry invariants.

verification layercoveragecommand
Go Core & GUI Backend19 Go test packages across internal/* & guigo vet ./... && go test -count=1 ./...
Frontend Unit Suites14 Vitest suites · 129 unit tests (state, cache, greeting, 3D guard, ProSelect, command feedback)cd gui/frontend && npm run test:unit
Browser & Desktop E2EPlaywright E2E + Wails headless E2E smoke across 3D Theater, 2D cockpit & 5 demo casesmake gui-e2e · go test ./gui/ -run TestE2E
go vet · go test · static binary build · 50× cold startup timing
go vet, go test, static binary size, and 50x startup benchmark output
Measured on darwin-arm64: 50 starts of --version ≈ 27 ms each, --welcome ≈ 36 ms each with all prompts and 30 skills embedded. Stripped release binaries are ~9 MB.

Workflow Standard (re-agent) · Interactive Architecture Map · System Diagrams · Architecture Deep-Dive · 中文架构文档 · GitHub Source