mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
3.5 KiB
3.5 KiB
Agent Instructions
This project uses bd (beads) for issue tracking. Run bd onboard to get started.
Session Start (Zero-Context Agent)
If you spawn into this repo without context, do this first:
- Open
docs/README.mdthendocs/INDEX.mdto get the current doc map. - Identify your task domain:
- CLI behavior:
cli/cmd/ao/,cli/internal/,cli/docs/COMMANDS.md - Skill behavior:
skills/<name>/SKILL.md - Hook/gate behavior:
hooks/hooks.json+hooks/*.sh - Validation/release/security flows:
scripts/*.sh+tests/
- CLI behavior:
- Use source-of-truth precedence when docs disagree:
- Executable code and generated artifacts (
cli/**,hooks/**,scripts/**,cli/docs/COMMANDS.md) - Skill contracts and manifests (
skills/**/SKILL.md,hooks/hooks.json,schemas/**) - Explanatory docs (
docs/**,README.md)
- Executable code and generated artifacts (
- If you find conflicts, follow the higher-precedence source and call out the mismatch explicitly in your report/PR.
Installing/Updating Skills
Use the skills.sh npm package to install AgentOps skills for any agent:
# Install for all supported agents
npx skills@latest add boshu2/agentops --all -g
# Install for specific agents
npx skills@latest add boshu2/agentops -g -a codex -s '*' -y
npx skills@latest add boshu2/agentops -g -a opencode -s '*' -y
npx skills@latest add boshu2/agentops -g -a cursor -s '*' -y
# Update all installed skills
npx skills@latest update
Quick Reference
# Issue tracking
bd ready # Find available work
bd show <id> # View issue details
bd update <id> --status in_progress # Claim work
bd close <id> # Complete work
bd sync # Sync with git
# CLI development
cd cli && make build # Build ao binary
cd cli && make test # Run tests
cd cli && make lint # Run linter
# Validation
scripts/ci-local-release.sh # Full local release gate
scripts/validate-go-fast.sh # Quick Go validation
scripts/security-gate.sh # Security scanning
Releasing
Standard release flow:
- Run
scripts/ci-local-release.shto validate - Tag and push:
git tag v2.X.0 && git push origin v2.X.0 - GitHub Actions runs GoReleaser — builds binaries, creates release, updates Homebrew tap
- Upgrade locally:
brew update && brew upgrade agentops
For retagging (rolling post-tag commits into an existing release):
scripts/retag-release.sh v2.13.0
This moves the tag to HEAD, pushes, rebuilds the GitHub release, updates the Homebrew tap, and upgrades locally. One command, no manual steps.
Landing the Plane (Session Completion)
When ending a work session, you MUST complete ALL steps below. Work is NOT complete until git push succeeds.
MANDATORY WORKFLOW:
- File issues for remaining work - Create issues for anything that needs follow-up
- Run quality gates (if code changed) - Tests, linters, builds
- Update issue status - Close finished work, update in-progress items
- PUSH TO REMOTE - This is MANDATORY:
git pull --rebase bd sync git push git status # MUST show "up to date with origin" - Clean up - Clear stashes, prune remote branches
- Verify - All changes committed AND pushed
- Hand off - Provide context for next session
CRITICAL RULES:
- Work is NOT complete until
git pushsucceeds - NEVER stop before pushing - that leaves work stranded locally
- NEVER say "ready to push when you are" - YOU must push
- If push fails, resolve and retry until it succeeds