Your Name c1f5f939ad Add Repository Intelligence Bootstrap: repo-bootstrap.sh, all 13 agents updated, docs, tests
- scripts/repo-bootstrap.sh: generic idempotent bootstrap tool (status/bootstrap/refresh)
  - creates .opencode/ with repo-context, architecture, build-and-test, conventions, deployment skills
  - relevance-based skill generation (only creates what the repo actually has)
  - staleness detection via .bootstrap-meta (key=value, SHA-256 fingerprints)
  - marker-based manual protection (never overwrites unmarked files)
  - accepts --root flag for explicit repo targeting

- scripts/test-repo-bootstrap.sh: 11 tests covering all 10 acceptance criteria
  - creation, idempotency, manual preservation, relevance detection
  - orchestrator/agent structural checks, staleness, genericness
  - install.sh workflow compatibility, malformed handling

- agents/orchestrator.md: first-class Repository Intelligence Bootstrap stage
  - 10-step workflow, ownership rules table, staleness signals
  - consumption rules, backward compatibility, fallback procedure

- All 12 subagent files: role-adapted Repository Intelligence section
  - architect: owns architecture skill
  - builder/tester: own build-and-test skill (shared)
  - explorer: owns repo-context skill
  - maintainer: owns conventions skill + audits .opencode/
  - reviewer: validates consistency (consumer/reporter)
  - designer/detective/philosopher/toolsmith/workflow-architect/writer: consume-only

- docs/REPOSITORY_INTELLIGENCE.md: full architecture documentation
- README.md: updated layout, bootstrap usage, requirements
- 13/13 agents installed, permission-engine verifier PASS
2026-09-07 12:10:25 -04:00

dev_agent_team

A distributable package of 13 opencode agent definitions plus a one-command installer, so the same agent team can be set up identically on any machine.

What this is

This repository packages a complete multi-agent team for opencode — 13 role-specialized agents that work as one system:

architect, builder, designer, detective, explorer, maintainer, orchestrator (primary), philosopher, reviewer, tester, toolsmith, workflow-architect, writer.

The agent definitions live in agents/ and are copied verbatim into your opencode config directory by scripts/install.sh. The installer is idempotent: re-running it is safe, and it backs up any pre-existing files it would overwrite into a timestamped folder under <target>/.backup/, keeping only the 5 most recent backup folders.

Repository Intelligence Bootstrap

The team includes a Repository Intelligence Bootstrap system: when the Orchestrator starts work on an unfamiliar repository, it automatically analyzes the repository and generates a local .opencode/ knowledge layer (context, architecture, build/test, conventions, deployment). Every agent then reads this pre-analyzed context instead of re-discovering repository fundamentals.

The bootstrap is idempotent, language-agnostic, and preserves manually enriched content. See docs/REPOSITORY_INTELLIGENCE.md for the full architecture.

Repository layout

dev_agent_team/
├── README.md                          # this file
├── .gitignore
├── agents/                            # the 13 agent definitions (*.md)
├── scripts/
│   ├── install.sh                     # one-command installer
│   ├── repo-bootstrap.sh              # repository intelligence bootstrap tool
│   └── test-repo-bootstrap.sh         # test suite for the bootstrap
└── docs/
    ├── PROMPT_INSTALL.md              # paste-ready prompt for installing from inside opencode
    └── REPOSITORY_INTELLIGENCE.md     # bootstrap architecture documentation

Quickstart

git clone git@gitea.skink-platy.ts.net:admin/dev_agent_team.git
cd dev_agent_team
./scripts/install.sh

To install somewhere other than the default location:

OPENCODE_AGENTS_DIR=/path/to/opencode/agents ./scripts/install.sh

Repository bootstrap

After installing the agents, the bootstrap tool is available at scripts/repo-bootstrap.sh. From inside any target repository:

# Check freshness (exit 0=fresh, 1=stale/missing)
repo-bootstrap.sh status

# Create/update .opencode/ knowledge layer
repo-bootstrap.sh bootstrap

# Force regenerate generated files
repo-bootstrap.sh refresh

Run bash scripts/test-repo-bootstrap.sh to verify bootstrap behavior (11 tests covering all 10 acceptance criteria).

Manual install alternative

Prefer to do it yourself? A plain copy achieves the same result:

mkdir -p ~/.config/opencode/agents
cp -p agents/*.md ~/.config/opencode/agents/

(You will not get the automatic backup of pre-existing files that scripts/install.sh provides.)

Prompt-based install

Already inside an opencode session? Copy a ready-made prompt that instructs the primary agent to clone this repo, run the installer, and verify the result: see docs/PROMPT_INSTALL.md.

Requirements

  • opencode installed (needed to actually use the agents)
  • bash and coreutils (cp, mkdir, date, sha256sum or cksum)
  • SSH access to the gitea host for cloning (or an HTTPS remote, if mirrored)

Verification

After installing:

  1. Restart any running opencode sessions so they pick up the new agents.

  2. Run:

    opencode agent list
    
  3. You should see exactly 13 agents: architect, builder, designer, detective, explorer, maintainer, orchestrator, philosopher, reviewer, tester, toolsmith, workflow-architect, writer.

S
Description
No description provided
Readme 967 KiB
Languages
Shell 100%