The roadmap for
governed, local AI
engineering.

Autonomous coding shouldn't mean surrendering your proprietary code or secrets to remote clouds. Here is our comprehensive architectural plan for building the most secure, privacy-governed terminal agent.

Defensive guardrails at every layer.

Before any prompt leaves your terminal, and before any generated code touches your filesystem, YourCode enforces deep client-side inspection and isolation.

Data Loss Prevention

Shannon Entropy Secret Scrubbing

Mathematical entropy scanning intercepts and redacts candidate secrets (including AWS/GCP tokens, private keys, database connection strings, and JWTs) before prompts leave your machine.

  • Shannon entropy threshold scanning (>4.5 bits/char)
  • High-value credential regex and heuristic filters
  • Fail-closed prompt quarantine dispatch
Privacy & Compliance

Reversible Local NER PII Redaction

On-device Named Entity Recognition (NER) identifies names, emails, IP addresses, and physical locations. Sensitive tokens are pseudonymized before transit and restored locally in the terminal.

  • Zero plain-text PII transmitted to LLM providers
  • Reversible local token substitution maps
  • Zero remote storage of unmasked identity data
Adversarial Defense

Indirect Prompt Injection Quarantine

Untrusted repository content, external dependencies, and documentation are quarantined inside strict XML boundaries with explicit model directives to ignore embedded instructions.

  • Structured XML boundary containment (<user_code>)
  • Instruction quarantine against poisoned repos
  • Model system prompt invariant enforcement
Safety Heuristics

Toxicity & Destructive Command Filters

Heuristic safety evaluation inspects generated commands to intercept unauthorized system mutations, privilege escalation attempts, or destructive filesystem wipes.

  • Interception of dangerous commands (rm -rf, mkfs, dd)
  • Privilege escalation denial (sudo, su, chmod 777)
  • Safe execution policy validation
Execution Isolation

Sandboxed Subprocess Jailing

Local tool execution runs inside OS-level confinement utilizing Linux namespaces (unshare) and macOS sandbox-exec, restricting filesystem mutations strictly to process.cwd().

  • Filesystem jailing to workspace directory
  • Read-only root mounting and network sandboxing
  • Subprocess 30-second watchdog execution timers
Operator Control

Human-In-The-Loop (HITL) Authorization

Interactive confirmation prompts give developers final authority over high-risk actions, including file deletions, remote git pushes, and package installations.

  • Visual surgical diff review before apply
  • Interactive keyboard prompt gates (<Y/N>)
  • Configurable workspace permission policies
Compliance & Auditing

Cryptographic Tamper-Evident Audit Logs

Every tool call, code mutation, and billable model interaction is signed and stored in a local, append-only HMAC-SHA256 audit ledger for compliance and transparency.

  • HMAC-SHA256 chained cryptographic signatures
  • Immutable local disk ledger format
  • Audit trail export for compliance reporting
Data Security

Zero-Knowledge Session Envelope Encryption

Local session contexts and configuration data are encrypted at rest using AES-256-GCM with keys derived via Argon2id, stored in OS-native credential keyrings.

  • AES-256-GCM authenticated encryption
  • Argon2id key derivation function
  • Integration with macOS Keychain & Linux libsecret

Phased delivery timeline.

Clear engineering progression from the terminal-native autonomous core to enterprise-grade governance and cryptographic enclaves.

Phase 1Completed

Autonomous Core & Local Runtimes

Establishing the fast terminal-native foundation, decoupled client tool runtime, and multi-model streaming engine.

  • Bun monorepo workspace scaffolding and sub-100ms startup
  • OpenTUI & React 19 terminal viewport with 30+ themes
  • Client-side tool execution (readFile, editFile, bash) confined to CWD
  • Dual operational postures: PLAN (read-only analysis) & BUILD (write)
  • Vercel AI SDK streaming across Gemini 3.1 Flash Lite, Claude 4.6, and GPT-5.4
  • RFC 7636 PKCE browser loopback authentication with Clerk
Phase 2In Progress

AI Governance, DLP & Threat Defense

Hardening the agent with comprehensive client-side data loss prevention, adversarial defense, and process jailing.

  • Client-side Shannon entropy secret scrubbing for cloud keys & credentials
  • Reversible local NER PII pseudonymization prior to prompt transit
  • Structured XML boundary containment against indirect prompt injection
  • Semantic toxicity and destructive command heuristic checks
  • OS-level process jailing via Linux namespaces and macOS sandbox-exec
  • Mandatory Human-In-The-Loop (HITL) authorization gates
  • Append-only HMAC-SHA256 cryptographic audit logs
Phase 3Planned

Cryptographic Enclaves & Code Intelligence

Expanding local intelligence with embedded semantic indexing, compiler bridge diagnostics, and multi-agent coordination.

  • Zero-knowledge session envelope encryption (AES-256-GCM / Argon2id)
  • OS Native Keyring Enclave integration (Keychain, libsecret, DPAPI)
  • Local embedded vector search engine (SQLite-VSS / LanceDB)
  • Language Server Protocol (LSP) compiler diagnostics bridge
  • Anthropic Model Context Protocol (MCP) tool client integration
  • Autonomous multi-agent swarms (Architect, Implementer, and Reviewer)

Always transparent.
Always verifiable.

Every defensive check runs locally in your terminal before any network packets leave your workstation. You retain full visibility and final authority over every operation.

✓ Zero telemetry of source code or repository contents
✓ Local cryptographic signatures on every tool operation
✓ Configurable pre-flight audit thresholds per project
~ ❯ yourcode --verify-governance
[DLP Engine] Shannon entropy scanner initialized (threshold: 4.5)
[NER Engine] Local PII pseudonymization model ready
[Isolation] Process jailing active (macOS sandbox-exec / Linux unshare)
[HITL Gate] Interactive confirmation prompts active
[Audit Log] HMAC-SHA256 ledger verified (integrity: OK)
✓ Status: All governance guardrails active
~ ❯ _

Help shape the future
of governed AI coding.

YourCode is open source and community-driven. Check out the repo, propose governance RFCs, or join the discussion.