Back to .md Directory

Replit Agent Command Templates - Enhanced Control System

Provides a structured command system for controlling Replit Agent actions with safety, module targeting, and priority levels.

May 2, 2026
0 downloads
1 views
ai agent eval safety
View source

What this file does

Provides a structured command system for controlling Replit Agent actions with safety, module targeting, and priority levels.

When to use it

  • Working with Replit Agent on a multi-module project
  • Need to enforce read-only analysis before modifications
  • Require approval workflows for code changes
  • Target commands to specific modules like CER or 510k

Assumes this stack

Replit Agent

Replit Agent Command Templates - Enhanced Control System

Use these exact phrases when interacting with the Replit Agent for maximum control and safety:

šŸ” Analysis Commands (Read-Only):

  • "ANALYZE ONLY - do not modify: [describe what to analyze]"
  • "EXPLAIN EXISTING CODE in [file path] - no changes"
  • "LIST FILES that contain [specific pattern] - read-only"
  • "SHOW ME the structure of [component/function] - inspection only"
  • "REVIEW ARCHITECTURE for [module/component] - documentation only"
  • "IDENTIFY DEPENDENCIES in [file/module] - mapping only"
  • "TRACE DATA FLOW in [component] - visualization only"

āš ļø Controlled Modification Commands:

  • "AWAIT APPROVAL - propose changes to [specific file] for [exact purpose]"
  • "SINGLE FILE ONLY - modify [exact file path] to [specific change]"
  • "CONFIRM BEFORE EXECUTING - [specific task]"
  • "ENHANCE EXISTING FUNCTION: [function name] in [file] to [specific improvement]"
  • "ADD NEW FEATURE to [specific component] - [detailed requirements]"
  • "REFACTOR COMPONENT: [component name] for [specific optimization]"

šŸ›”ļø Safety Commands:

  • "READ-ONLY MODE - inspect [target] without changes"
  • "BACKUP BEFORE CHANGES: [file/component]"
  • "VALIDATE SYNTAX ONLY: [file path]"
  • "STOP ALL ACTIONS - revert to read-only mode"
  • "CANCEL CURRENT OPERATION - await new instructions"
  • "EMERGENCY ROLLBACK: [component/file]"

šŸ„ TrialSage Module-Specific Commands:

CER (Clinical Evaluation Report) Module:

  • "CER MODULE ONLY - work on [specific task] in client/src/components/cer/"
  • "CER GENERATION ONLY - modify [specific generator] for [purpose]"
  • "CER VALIDATION ONLY - enhance [validation component]"
  • "CER COMPLIANCE ONLY - update [compliance checker]"

CoAuthor Document System:

  • "COAUTHOR MODULE ONLY - work on [task] in client/src/components/coauthor/"
  • "DOCUMENT EDITOR ONLY - enhance [editor feature]"
  • "DOCUMENT TEMPLATE ONLY - modify [template type]"
  • "COLLABORATION ONLY - update [collaboration feature]"

510k FDA Submission:

  • "510K MODULE ONLY - work on [task] in client/src/components/510k/"
  • "FDA COMPLIANCE ONLY - update [compliance component]"
  • "PREDICATE ANALYSIS ONLY - enhance [analysis feature]"
  • "SUBMISSION BUILDER ONLY - modify [builder component]"

Server-Side Operations:

  • "SERVER ROUTE ONLY - modify [specific route] for [exact purpose]"
  • "API ENDPOINT ONLY - enhance [endpoint] in server/routes/"
  • "DATABASE SCHEMA ONLY - adjust [table/field] in shared/schema.ts"
  • "MIDDLEWARE ONLY - update [middleware] in server/middleware/"

Client-Side Components:

  • "CLIENT COMPONENT ONLY - update [component] in client/src/components/"
  • "UI LIBRARY ONLY - enhance [ui component] in client/src/components/ui/"
  • "SERVICE LAYER ONLY - modify [service] in client/src/services/"
  • "HOOK ONLY - update [hook] in client/src/hooks/"

🚨 Priority Levels:

  • "LOW PRIORITY: [task description]"
  • "MEDIUM PRIORITY: [task description]"
  • "HIGH PRIORITY: [task description]"
  • "CRITICAL PRIORITY: [task description]"

šŸ“‹ Context Templates:

  • "CONTEXT: Working on regulatory compliance feature for [specific regulation]"
  • "CONTEXT: Enhancing user experience for [specific user type]"
  • "CONTEXT: Fixing bug related to [specific functionality]"
  • "CONTEXT: Optimizing performance for [specific operation]"
  • "CONTEXT: Adding security enhancement for [specific area]"

šŸ” Approval Workflow:

  1. "PROPOSE CHANGES FIRST - do not implement immediately"
  2. "SHOW DIFF PREVIEW - before making changes"
  3. "AWAIT EXPLICIT APPROVAL - for each file modification"
  4. "CONFIRM COMPLETION - after successful implementation"

šŸŽÆ Complete Command Structure:

šŸ”’ REPLIT AGENT - STRICT CONTROL MODE

šŸ“‹ COMMAND: [Primary action using templates above]
šŸŽÆ MODULE: [Specific TrialSage module]
🚨 PRIORITY: [Low/Medium/High/Critical]
āš ļø CONSTRAINTS: [Specific limitations and requirements]
šŸ“Š CONTEXT: [Background information and goals]
āœ… APPROVAL: [Required/Granted/Pending]

šŸ› ļø Example Complete Commands:

Safe Analysis:

šŸ”’ REPLIT AGENT - STRICT CONTROL MODE
šŸ“‹ COMMAND: ANALYZE ONLY - review CER generation workflow
šŸŽÆ MODULE: CER
🚨 PRIORITY: Medium
āš ļø CONSTRAINTS: Read-only analysis, no code changes
šŸ“Š CONTEXT: Understanding current CER generation process for optimization planning
āœ… APPROVAL: Not required for read-only analysis

Controlled Modification:

šŸ”’ REPLIT AGENT - STRICT CONTROL MODE
šŸ“‹ COMMAND: AWAIT APPROVAL - enhance CER validation component
šŸŽÆ MODULE: CER
🚨 PRIORITY: High
āš ļø CONSTRAINTS: Only modify client/src/components/cer/CerValidationPanel.jsx
šŸ“Š CONTEXT: Adding EU MDR compliance checks to existing validation
āœ… APPROVAL: REQUIRED - awaiting explicit approval

What's inside

8 command categories, 4 module-specific sections, 2 complete command examples, and a structured command template

Change this for your project

  • Replace module paths like client/src/components/cer/ with your own project structure
  • Replace module names like CER, CoAuthor, 510k with your own module names
  • Replace example file paths like CerValidationPanel.jsx with your actual files

Where it goes

Keep it in your repository where the agent or team that needs it will read it.

Worth borrowing

  • Prefixing commands with read-only or approval flags to prevent unintended changes
  • Structuring commands with module, priority, constraints, and context for clarity

Related Documents