agent-harnessv2.4.0

Agents and skills

The line between how to work (agents) and what to know (skills).

agent-harness draws a hard line between two concepts.

Agents: universal behaviors

Agents define how to work. They are universal personas, with the same behavior across projects and stacks.

build                  primary. Implements. Full write access. The default.
plan                   primary. Same body as build, but cannot edit files.
fullstack-engineer     subagent. The body build and plan share, and the fallback worker.
*-engineer             subagent. User-created specialists, spawned for parallel implementation.
*-engineer.<tier>      subagent. The same specialist pinned to a plan/build/fast model.

build and plan are the only agents a human selects, and they are overrides of opencode's own two primaries rather than new names. The pc-subagent-tiers plugin regenerates both from fullstack-engineer.md on every startup, so they always carry the current abilities, each on its own tier model. plan differs from build in one frontmatter line: edit: deny. It can still read the tree, shell out to git and openspec, and spawn engineers, so planning works and cannot write.

Everything else is mode: subagent and reached through task(), never picked from the agent list. Project-specific specialization comes from user-created engineers via /make-engineer. During /plan-apply the lead inspects the engineers that actually exist in .opencode/agents/ and spawns matching specialists. Prefer a specialist over fullstack-engineer; if none matches, create one.

Skills: platform knowledge

Skills define what to know. They provide project rules, platform behavior and task-specific execution guidance. Agents auto-detect and load relevant skills: you do not manually choose skills per prompt.

  • pc-guardrails-generic is the mandatory baseline for every agent (git, secrets, quality rules, plus the engineer workflow)
  • Baseline context rules and token-optimization guidance live in AGENTS.md (always in context), not in a skill

Default fullstack-engineer abilities:

## Abilities
- Guardrails: @pc-guardrails-generic, @pc-guardrails-project

Users are expected to create additional skills and map them into abilities over time. Skills live in .agents/skills/, and any SKILL.md file in a subdirectory is automatically discoverable.

Built-in skills

SkillPurpose
pc-guardrails-genericFoundation for user guardrails skills
pc-guardrails-projectProject-specific guardrails, populated by /make-guardrails
pc-userstory-ghParse a GitHub Issue URL into a structured work item
pc-userstory-azParse an Azure DevOps work item URL
pc-userstory-jiraParse a Jira issue URL via the acli CLI
pc-userstory-browserParse a work item from any URL via browser automation
browser-automationBrowser control via agent-browser
pc-plan-exploreRead-only exploration procedure behind /plan-explore
pc-plan-proposeProposal and task-enrichment procedure behind /plan-propose
pc-plan-applyWave-implementation procedure behind /plan-apply
pc-plan-archiveArchive procedure behind /plan-archive
pc-plan-goalAutonomous full-lifecycle pipeline behind /plan-goal
pc-plan-quickQuick task checklist behind /plan-quick
pc-ops-shipPR-creation procedure behind /ops-ship
pc-ops-evidenceEvidence of a change, plus an idempotent verified issue/PR comment
pc-make-architectureARCHITECTURE.md generation behind /make-architecture
pc-make-designDESIGN.md generation behind /make-design
pc-make-guardrailsGuardrails generation behind /make-guardrails
pc-make-engineerCustom engineer creation behind /make-engineer
pc-make-evidence-scaffoldVisual-evidence harness scaffold behind /make-evidence-scaffold
pc-make-user-modelTier model configuration behind /make-user-model
pc-repo-auditRead-only health audit across configured source roots
pc-repo-verifyCurrent-branch verification and repair gate
pc-repo-initializeProject initialization behind /repo-initialize
pc-repo-onboardGuided project tour behind /repo-onboard
pc-repo-helpThe command reference displayed by /repo-help

Platform operations are injected during onboarding: pull request creation into pc-ops-ship, the archive PR flow into pc-plan-archive, issue and work-item evidence comments into pc-ops-evidence, and pull request review plus issue creation directly into the /ops-review and /ops-backlog command files.

Platform skills ship as suffixed variants (pc-userstory-gh, pc-userstory-az, pc-userstory-jira, pc-userstory-browser) and the installer copies only the matching one, renamed to its generic name.