DenisSergeevitch/agents-best-practices

Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.

What it solves

This project provides a structured framework and set of best practices for building "agentic harnesses"—the runtime environment that surrounds an AI model to make it safe, reliable, and production-ready. It addresses the tension between giving an agent autonomy to perform useful work and preventing the model from becoming an unaudited, unsafe operator in real-world systems.

How it works

Instead of relying on prompt-based safety, the project defines a rigorous control plane where the model only proposes actions, while the application code (the harness) handles validation, authorization, and execution. It provides a comprehensive library of reference documents covering:

  • The Agentic Loop: Managing retries, budgets (time, cost, tokens), and termination rules.
  • Tool Governance: Using narrow, typed tools and risk-based permission levels (e.g., separating reads, drafts, and destructive writes).
  • Context Management: Strategies for retrieval, memory, and auto-compaction that preserve active state.
  • Advanced Architectures: Blueprints for MVP agents, recursive harnesses, and speculative tool execution.
  • Environment Adaptation: Methods for agents to safely discover and bind to tools in unfamiliar environments.

Who it’s for

Developers and architects building AI agents for various domains—including coding, research, support, operations, sales, finance, and healthcare—who need to move beyond simple prototypes to production-safe systems.

Highlights

  • Provider-Neutral: Works across different LLM providers (OpenAI, Anthropic, etc.).
  • Risk-Based Permissions: Enforces a clear distinction between autonomous reads and approval-gated writes.
  • Harness-Centric Philosophy: Shifts the burden of safety and reliability from the prompt to the runtime code.
  • Comprehensive Blueprints: Includes specific guides for MVP design, auditing existing harnesses, and implementing long-running goals.
  • Agent Skill Integration: Packaged as a portable "Agent Skill" compatible with Codex and Claude Code.

Related

  • Project
  • Project
  • Project
  • Project
  • Project