Documentation

May 29, 2026 · View on GitHub

AgentSys is a modular runtime and orchestration system for AI agents. These docs cover the architecture, commands, and workflows — how agents compose into pipelines, how phases gate execution, and how state persists across sessions.

New here? Start with USAGE.md to see commands in action.


I want to...Go to
Install and start usingINSTALLATION.md
See examples and workflowsUSAGE.md
Understand how /next-task worksworkflows/NEXT-TASK.md
Understand how /ship worksworkflows/SHIP.md
Run /perf investigationsperf-requirements.md
Use with OpenCode or CodexCROSS_PLATFORM.md
See all slop patternsreference/SLOP-PATTERNS.md
See all agentsreference/AGENTS.md
Understand the architectureARCHITECTURE.md

Document Categories

Getting Started

DocumentDescription
INSTALLATION.mdInstall via marketplace or npm. Prerequisites. Verification.
USAGE.mdCommand examples, common workflows, tips.

Workflow Deep-Dives

DocumentDescription
workflows/NEXT-TASK.mdComplete /next-task flow: phases, agents, state management, resume.
workflows/SHIP.mdComplete /ship flow: CI monitoring, review handling, merge, deploy.
perf-requirements.md/perf rules and required phases.
perf-research-methodology.md/perf process details, benchmarking method.

Reference

DocumentDescription
reference/AGENTS.mdAll 49 agents: purpose, model, tools, restrictions.
reference/SLOP-PATTERNS.mdAll detection patterns by language, severity, auto-fix.

Platform & Architecture

DocumentDescription
CROSS_PLATFORM.mdClaude Code, OpenCode, Codex CLI setup. Migration.
ARCHITECTURE.mdDirectory structure, libraries, state management.

Key Concepts

Commands

CommandPurpose
/next-taskTask discovery → implementation → review → ship
/shipPush → PR → CI → reviews → merge → deploy
/deslop3-phase slop detection and cleanup
/audit-projectMulti-agent code review
/drift-detectCompare docs to actual code
/repo-intelUnified static analysis - git history, AST symbols, project metadata
/perfPerformance investigation workflow
/enhanceAnalyze prompts, plugins, agents, docs, hooks, skills
/sync-docsSync docs with code changes
/banthisDurable negative behavior memory
/learnResearch topics online, create learning guides
/consultCross-tool AI consultation
/debateStructured multi-round debate between AI tools
/skillersWorkflow pattern learning and automation suggestions
/skill-curatorCreate and improve reliable SKILL.md files
/system-prompt-curatorCreate and improve autonomous agent system prompts
/onboardCodebase onboarding - project orientation
/can-i-helpContributor guidance - match skills to project needs
/releaseVersioned release with automatic ecosystem detection
/agnixLinter for AI agent configs
/prepare-deliveryPre-ship validation checks
/gate-and-shipGated shipping workflow

Internal Skills

  • orchestrate-review — Defines review passes and signal thresholds for the Phase 9 review loop

State Files

FileLocationPurpose
tasks.json{state-dir}/Which task is active
flow.json{state-dir}/ (worktree)Which phase you're in
preference.json{state-dir}/sources/Cached task source preference
repo-intel.json{state-dir}/Cached symbol map

State directories by platform:

  • Claude Code: .claude/
  • OpenCode: .opencode/
  • Codex CLI: .codex/
  • Cursor: .cursor/
  • Kiro: .kiro/

Agent Models

ModelUsed For
opusComplex reasoning (exploration, planning, implementation, review)
sonnetPattern matching (slop detection, validation, discovery)
haikuMechanical execution (worktree, simple-fixer, ci-monitor)

Certainty Levels

LevelMeaningAuto-Fix?
CRITICALSecurity issueYes (with warning)
HIGHDefinite problemYes
MEDIUMProbable problemNo
LOWPossible problemNo

Diagnostics Scripts

When working in the repo directly, you can sanity-check detection and tooling:

npm run detect   # Platform detection (CI, deploy, project type)
npm run verify   # Tool availability + versions

Getting Help