Topic

Harness Architecture

All digests tagged Harness Architecture

The Dark Arts of Skill Engineering — Paul Bakaus, Renaissance Geek thumbnail

· 1:04:53

The Dark Arts of Skill Engineering — Paul Bakaus, Renaissance Geek

The talk, 'The Dark Arts of Skill Engineering,' argues that effective AI skill development moves beyond simple prompt engineering and into 'harness engineering.' The speaker details advanced techniques—such as using blind sub-agents, implementing anti-attractors, and utilizing mixture-of-experts architectures—to build robust, deterministic, and highly controllable skills. These techniques focus on exploiting the underlying capabilities of the AI model's execution environment (the 'harness') rather than just the input prompt, resulting in skills that are less susceptible to model drift and more reliable across different deployment environments.

Key takeaways

  1. Harness Engineering vs. Prompting 0:06

    Skills should be treated as extensions of the entire coding/AI harness, not just packaged prompts. This involves leveraging system capabilities like hooks, scripts, and standard output to enforce behavior, which is more reliable than prose instructions. (6:25)

  2. Adversarial Sub-Agents 0:08

    To achieve balanced critique or review, use two or more sub-agents that are blind to each other's output. This prevents a single model thread from anchoring on its own work or failing to detect obvious flaws. (7:55, 10:11)

  3. Anti-Attractors for Divergence 0:17

    To prevent model convergence on common or predictable outputs (the 'median'), implement anti-attractors. Techniques include shaving the next predicted token, generating random seeds (e.g., using celebrities for shaders), or running scripts that introduce unexpected input. (16:59)

  4. Passive Guardrails via Hooks 0:20

    Use hooks (e.g., pre-tool use hooks) to enforce design or code standards (like design linting) by actively preventing the model from writing non-compliant code, rather than relying on post-hoc corrections. (20:38)

  5. Compounding Context and Memory 0:30

    Skills can be made aware of prior sessions by saving intermediate results (e.g., critique files) in a dedicated folder. This allows subsequent runs to build context and track progress over time, enabling multi-session refactoring. (30:00)

Watch on YouTube Full article

GLM 5.3 in Claude Code Is A Game Changer! thumbnail

· 20:49

GLM 5.3 in Claude Code Is A Game Changer!

This guide details how to integrate the GLM-5.3 model into existing AI coding harnesses like Claude Code and Codex, enabling significant cost savings by using a cheaper model without rebuilding the entire workflow. The speaker emphasizes that successful model switching depends less on the model itself and more on maintaining 'Project Context Hygiene'—ensuring critical project rules, standards, and definitions of done are stored in portable files rather than residing only within ephemeral conversation history.

Key takeaways

  1. Model Switching vs. Harness Integrity

    The primary goal is to use a cheaper model (e.g., GLM-5.3, starting at $18/month) without abandoning the established workflow or 'harness' of tools like Claude Code or Codex. The savings must be calculated against the fully loaded cost, including retries and review time.

  2. The Four Components of AI Coding Work

    A coding job involves four distinct elements: the Model (reasoning engine), the Harness/Tool (e.g., Claude Code, Codex; which provides file reading and command execution), Project Context (portable files like `Claude.markdown` containing rules/standards), and Conversation (temporary session history). Changing the model does not automatically transfer all four components.

  3. Best Practice for Model Handoff 20:09

    To minimize loss of context when switching models, always treat the transition as a new or carefully handed-off job. Instead of relying on old conversation history, create an explicit 'handoff file' that documents the goal, current state, relevant files, constraints, and definition of done for the receiving model.

Watch on YouTube Full article