harness-sdk AGENTS.md

harness-sdk AGENTS.md is an instructions file for Codex, OpenCode from strands-agents/harness-sdk. It costs 2,780 tokens per session, scanned A, original, Apache-2.0.

Development instructions for Strands Agents, a monorepo containing Python and TypeScript software development kits, documentation, tests, and shared team guidance. A monorepo is one repository that contains several related projects.

In plain words
What is it for?
Use them when working on the Strands Python or TypeScript SDKs, documentation, integration-test infrastructure, governance files, or cross-project design decisions.
Why use it?
They help an agent find the correct sub-project and follow its local conventions before changing code or APIs.

Instructions file for CodexOpenCode

About the project

Strands Agents is an open-source SDK for building and running AI agents in Python and TypeScript. Developers use it to create agents with model providers, tools, lifecycle controls, memory, sessions, streaming, tracing, and evaluations, and the catalogue includes add-ons for its agent-building workflow.

strands-agents/harness-sdk · 7,141 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/strands-agents/harness-sdk/agents-md
Clone the repo
git clone --depth 1 https://github.com/strands-agents/harness-sdk

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harness-sdk AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/strands-agents/harness-sdk/agents-md.svg)](https://agentmods.dev/instructions/strands-agents/harness-sdk/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/strands-agents/harness-sdk/agents-md"><img src="https://agentmods.dev/badge/instructions/strands-agents/harness-sdk/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,780 This file is loaded in full into every session.
When invoked 2,780 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.02780 $0.02780
Opus 5 $0.01390 $0.01390
Sonnet 5 $0.00556 $0.00556
Haiku 4.5 $0.00278 $0.00278

Measured 5d ago against content hash 86a118214015, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

harness-sdk AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Development Guide - Strands Agents Monorepo

This document provides guidance for AI agents working in the Strands Agents monorepo. For human contributor guidelines, see CONTRIBUTING.md.

This file is shared by agents with different goals — writing code, opening PRs, helping contributors — and is organized by task.

Context

Monorepo Layout

strands-agents/
├── strands-py/         # Python SDK (hatch) — see strands-py/AGENTS.md
├── strands-ts/         # TypeScript SDK (npm workspace) — see strands-ts/AGENTS.md
├── site/               # Documentation site (Astro) — see site/AGENTS.md
├── team/               # Governance + cross-SDK process (tenets, decisions, API bar-raising, PR & compatibility guidelines, designs/ proposals)
├── test-infra/         # CDK stack for integ tests that require provisioned AWS infra
├── .agents/            # Agent skills and references
├── package.json        # npm workspace root
└── .github/workflows/  # CI (ci.yml is the merge gate)

Determine which sub-project you're in and follow its conventions — each has its own AGENTS.md.

Where the "why" lives: team/

Before designing a feature or changing an API, read the relevant context in team/. It captures the reasoning the code itself doesn't:

  • team/designs/ — RFC-style proposals for significant features (numbered NNNN-*.md). The richest source of architectural context: problem framing, the chosen approach, alternatives considered, and consequences. If you're touching a major subsystem, find its design doc first.
  • team/DECISIONS.md — lightweight architecture decision records for smaller calls.
  • team/TENETS.md — the principles a contribution should align with.
  • team/API_BAR_RAISING.md and team/FEATURE_LIFECYCLE.md — the bar and process for API changes and feature deprecation.

Writing Code

  • Code conventions: Follow the conventions in the sub-project's own AGENTS.md (strands-py/AGENTS.md, strands-ts/AGENTS.md, site/AGENTS.md) — they define the style, patterns, and directory layout for that toolchain.
  • Write for low complexity: every PR is labeled with the cognitive complexity of the most complex function it touches, and nesting drives the score. Write flat control flow (guard clauses, extracted helpers, lookup tables over branch ladders) and keep refactors in their own PR. Why we measure and how the score works: team/COMPLEXITY.md. Check before pushing with npm run complexity (or hatch run complexity from strands-py/).
  • Branching: git checkout -b agent-tasks/{ISSUE_NUMBER}
  • Commits: Use conventional commitsfeat:, fix:, refactor:, docs:, etc.
  • CI: The ci.yml merge gate detects which paths changed and runs only relevant checks.
  • Skills: Reusable, repo-specific workflows live under .agents/skills/ — for PRs (pr-create, pr-writer, pr-feedback), docs (docs-writer, docs-reviewer, docs-audit, docs-planner), and code review (strands-review). See .agents/skills/README.md for what each does and when to use it.
  • Doc sourceLinks track source files: Doc pages under site/ point at their backing implementation via sourceLinks frontmatter — repo-relative paths into strands-py/ and strands-ts/. When you rename or move a source file, update any sourceLinks that reference its old path in the same change. The site build only fails on a malformed path or an unmapped file extension, not on a path that still resolves to the wrong (or now-nonexistent) file, so a stale reference rots silently. Find affected pages with grep -rn "<old/path>" site/src/content/docs.

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 103 lines · 2,780 tokens per session scan A 86a118214015

Subscribe to this mod's changes

harness-sdk AGENTS.md is an instructions file published in the GitHub repository strands-agents/harness-sdk (7,141 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,780 tokens to every session, about $0.0139 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.