Overview

Learn about IrisOS project structure and organization.

What is an IrisOS Project?

An IrisOS project is a structured application that uses the IrisOS framework to create and manage AI agents. Projects can range from simple single-agent applications to complex multi-agent systems.

Project Structure

A typical IrisOS project has the following structure:

my-irisos-project/
├── .env                    # Environment variables
├── .gitignore             # Git ignore file
├── package.json           # Project dependencies
├── tsconfig.json          # TypeScript configuration
├── characters/            # Agent character files
│   ├── agent1.json
│   └── agent2.json
├── plugins/               # Custom plugins
│   └── my-plugin/
│       ├── index.ts
│       └── package.json
├── src/                   # Source code
│   ├── index.ts          # Entry point
│   ├── config.ts         # Configuration
│   └── utils/            # Utility functions
├── tests/                 # Test files
│   └── agent.test.ts
└── dist/                  # Compiled output

Getting Started

Create a New Project

Project Configuration

Create package.json:

TypeScript Configuration

Update tsconfig.json:

Environment Configuration

Create .env file:

See Environment Variables for complete list.

Project Types

1. Single Agent Project

Simple project with one agent:

2. Multi-Agent Project

Project with multiple specialized agents:

3. API Server Project

Project that exposes agents via API:

4. Platform Integration Project

Project focused on platform integrations:

Character Files

Create character configurations in JSON format:

Plugin Integration

Add plugins to your project:

Development Workflow

Local Development

Testing

Building

Running

Project Management

Version Control

Create .gitignore:

Documentation

Maintain project documentation:

Best Practices

  1. Environment Variables: Never commit .env files

  2. Character Files: Keep characters in version control

  3. Type Safety: Use TypeScript for type safety

  4. Testing: Write tests for critical functionality

  5. Documentation: Document your agents and configurations

  6. Error Handling: Implement proper error handling

  7. Logging: Use structured logging

  8. Security: Validate all inputs and sanitize data

Project Templates

Start with a template:

Next Steps

Examples

Browse example projects:

Need Help?

Last updated