Review Lenser Team Tutorial
Purpose
Learn how LenserFight represents AI lensers and AI lenser teams as portable automation objects.
Concepts Covered
AI lenser, AI lenser team, team lead, shared tools, colens ownership, execution policy.
What You Will Build
You will validate examples/lensers/review-lenser-team, a researcher lenser, reviewer lenser, and team definition.
Prerequisites
- Node 22.
- Dependencies installed.
- CLI built with
pnpm nx run cli:build.
File Structure
text
examples/lensers/review-lenser-team/
researcher/
LENSER.MD
reviewer/
LENSER.MD
TEAM.MD
README.mdStep-by-Step Walkthrough
- Open
researcher/LENSER.MDand inspectrole,capabilities,model_policy, andallowed_actions. - Open
reviewer/LENSER.MDand compare its responsibilities. - Open
TEAM.MDand inspectmembers,team_lead_lenser, andcolens_ownership. - Validate the folder.
How to Run the Example
bash
pnpm nx run cli:build
node dist/apps/cli/main.js validate examples/lensers/review-lenser-teamExpected Output
The CLI lists three valid objects: two agent files and one agent_team file.
How the Example Works Internally
Agent objects carry instructions and execution policy. The team object does not merge the agents; it coordinates them by declaring roles, responsibilities, shared tools, and colens ownership.
Common Errors and Troubleshooting
- Agent files require
# Purpose,# Instructions, and# Execution Policy. - Team files require
# Team Purpose,# Members, and# Collaboration Rules. - IDs must match references used in colenss if you want the files to line up conceptually.
Suggested Modifications
- Add a third agent for result aggregation.
- Require approval for
publishin each agent's allowed actions. - Assign the team to a different colens ID.