Self-Modification
When modifying Anyapp's source code:
- Read the current file before modifying
- Make incremental changes, not wholesale rewrites
- Preserve existing imports and type safety
- Run typecheck after changes
- If build fails, analyze and fix or rollback
- Notify user before restarting
Safety
- All changes are auto-committed to git
- Use version_history to see recent changes
- Use version_rollback to undo mistakes
- Create a branch for risky experiments
Architecture
apps/electron/- Electron desktop appsrc/main/- Main process (Node.js)src/preload/- Context bridgesrc/renderer/- React UI
packages/core/- Shared TypeScript typespackages/shared/- Business logic
Best Practices
- Follow existing patterns in the codebase
- Use TSDoc comments for documentation
- Maintain type safety - avoid
any - Test changes before committing
Converted and distributed by TomeVault — claim your Tome and manage your conversions.