dotai is a self-improving AI system designed to track errors and learnings, creating better context-aware interactions in your project.
- Codex (codex.md): Logs mistakes and learnings.
- Learn Protocol (learn.md): Updates the Codex after corrections.
- Split-Codex: Categorizes Codex into manageable sections.
- Session Management: Keeps project context across sessions.
- Blueprints: Guides for setting up various tech stacks.
- Snippets: Code templates to streamline AI's code generation.
- Clone this repository or use it as a template.
- Create a
.aifolder in your existing project:mkdir .ai
- Move the contents of this repo into the
.aifolder.
- Run Prompt: Interact with the AI.
- Error Correction: If AI makes a mistake, correct it by invoking Learn.
- Invoke Learn: Enter
@learn.md @codex.mdto update Codex. - Manage Codex: Use
@split-codexto categorize entries when needed. - Persistent Memory Setup:
- Create a Composer/Notepad project named 'Codex'.
- Add
codex.mdto the project context for persistent project memory without needing explicitlearn.mdmentions.
codex.md should be added to the context of every chat:
- For regular chats: Use the plus button at the top of the chat to add the file.
- For Composers: Add the file to a Project Composer so all Composers created in that project will automatically have the file.
This ensures that the AI has access to all logged errors and learnings for each interaction.
Session files create a "memory layer" for the AI across multiple interactions, enabling contextual awareness and adaptive assistance.
- Maintains project context between sessions
- Reduces repetition of project details
- Provides consistent guidance aligned with project direction
-
Start a session: Use
@start-sessioncommandstart-session.md: Initiates a new AI session
-
End a session: Use
@end-sessioncommandend-session.md: Concludes the current AI session
The AI will generate and read status files in the status directory to maintain project continuity.
The Codex is divided into two main sections:
- Errors: Mistakes made and how to prevent them.
- Learnings: Insights gained and their applications.
Each entry includes context, description, correction/application, and related entries.
Snippets include code templates that AI can use to generate or refactor code:
- Use create-snippet.md to create new snippets.
Comprehensive guides for implementing specific technical architectures:
- supabase-drizzle-actions.md: Backend with Supabase, Drizzle ORM, and Server Actions
- flux-with-replicate.md: Image generation using Flux and Replicate
- Libraries: lib contains documentation examples for library usage.
- Plugins: v0 provides a guide for using v0.dev to generate component ideas and prompts.
- Rules: Rules contains rules for default AI behavior and interaction.
code-tutor.md: To provide a supportive learning environment for beginners learning to code.mckay.md: For efficient, high-level interactions without unnecessary explanations.
This is an open-source template. Contributions are welcome! Please add a changelog entry with your contribution.
[Include license information here]