# Mythik AI documentation

This directory is bundled with the npm package `mythik` so AI agents can read the framework contract after installation.

Start here:
- consumer/ai-context.md
- consumer/ai-context-primitives.md
- consumer/ai-context-runtime-semantics.md
- consumer/reference-doc.md
- wiki/compiled/README.md
- wiki/compiled/_index.md

Project-local agent protocol:
1. mythik agent init codex|claude|all
2. mythik agent context --app <app-id> --include-screens --out .mythik/agent/context.md

Required edit loop for existing persisted specs:
1. mythik manifest <spec-id>
2. mythik elements <spec-id> <element-ids>
3. mythik patch <spec-id> --from-file <patch.json> --author <agent-name>
4. mythik validate <spec-id>
5. mythik manifest <spec-id> or mythik elements <spec-id> <element-ids> to verify
