Understand the CAT Data Layer architecture
mainEverything in npcsh is defined via plain files organized into three layers. This allows for easy versioning in git and portability across projects.
1. Context Layer
Files: .ctx, team.ctx, or npc_team/*.ctx
Purpose: Defines shared team context, including default models/providers, environment variables, and MCP servers.
2. Agents Layer
Files: .npc, agents.md, or an agents/ directory
Purpose: Defines agent identities, including their name, persona, directive, model/provider, and available jinxes. You can use any of these file formats as alternatives.
3. Tools Layer
Files: .jinx or skills/
Purpose: Contains reusable tools and workflows (called jinxes) that agents can invoke by name.