How-to Enabling Prototyper on Existing Project + Prototyper Full Context Clear

Hi @Martin_Cafiero , I made a personal process (unfortunately manual) I run every morning:

  1. At Prototyper: Ask to update all context files, keeping then optimized and concise
  2. At Code:
  • Backup files using the Terminal
timestamp=$(date +%Y%m%d%H%M%S); mkdir -p "/home/user/studio/context/context_backup/" && cp "/home/user/.idx/ai/capra-context-state.json" "/home/user/studio/context/context_backup/capra-context-state-${timestamp}.json" && cp "/home/user/.idx/ai/capra-thread.json" "/home/user/studio/context/context_backup/capra-thread-${timestamp}.json"
  • Open the capra-context file using the Terminal
code /home/user/.idx/ai/capra-context-state.json
  • Replace the capra-context-state content to:
{
  "currentProposalObject": {
    "appName": "APP_NAME",
    "coreFeatures": [
      {
        "name": "Existing Project Core",
        "description": "Details to be determined by codebase scan.",
        "categories": ["ui"]
      }
    ],
    "uiStyleGuidelines": [
      {
        "category": "layout",
        "description": "Awaiting codebase scan for details."
      }
    ]
  },
  "agentHistories": {
    "app-prototyping-agent:proposal-agent": [],
    "app-prototyping-agent:edit-app-agent": [
      {
        "role": "model",
        "content": [
          {
            "text": "I'm ready to work on your project. Please let me know what you'd like to do."
          }
        ]
      }
    ]
  },
  "currentState": "edit-app"
}
  1. At Prototyper:, clear the capra-tread:
/clear
  1. Reset the workspace
2 Likes