Skip to content

Configuration ​

Iris is configured through config/iris.php. All settings have sensible defaults, but understanding what they control helps you tune the system for your needs.

How Configuration Works ​

The base configuration lives in config/iris.php. To customize without modifying core files, create config/iris-custom.php and override specific values. See Customization for the full details on merge strategies.

php
// config/iris-custom.php
return [
    'temporal' => [
        'timezone' => 'America/Chicago', // Default for all users
    ],
];

TIP

Individual users can override the default timezone in Settings > Profile.

Access Settings ​

These are set in .env.

VariableDefaultDescription
IRIS_ADMIN_EMAILSemptyComma-separated emails of administrators: they can open the Horizon dashboard and use the shell and filesystem tools
IRIS_REQUIRE_EMAIL_VERIFICATIONtrueRequire users to verify their email address before using Iris
TRUSTED_PROXIESemptyComma-separated IPs or CIDR ranges of the proxies in front of Iris, or *
bash
# .env
IRIS_ADMIN_EMAILS=[email protected],[email protected]
IRIS_REQUIRE_EMAIL_VERIFICATION=true

Horizon access: Horizon job payloads include chat messages and attached images, so the dashboard at /horizon is limited to the users listed in IRIS_ADMIN_EMAILS (matched case-insensitively). When APP_ENV=local, any logged-in user can open it. In every other environment an empty list locks everyone out.

Shell and filesystem tools: These tools act on the server itself, so they're for administrators only. When IRIS_SHELL_ENABLED or IRIS_FILESYSTEM_ENABLED is on, only the users in IRIS_ADMIN_EMAILS can use those tools. That holds in every environment, including local development (APP_ENV=local doesn't open them up the way it opens Horizon), so add your own email to use them. Everyone else's Iris isn't offered them, and their delegated tasks run without them. If you enable either tool and leave IRIS_ADMIN_EMAILS empty, nobody can use it. Administrators share one workspace (IRIS_WORKSPACE_ROOT), and their commands all run as the server's one operating system user. See Shell Commands and Filesystem Tools.

Email verification: New users get a verification email after registering, and again whenever they change their address. Until they verify, they can reach their profile settings but not chat, the API, or integration settings (Google Calendar, Telegram, heartbeat, weather). If your install has no working mailer, set IRIS_REQUIRE_EMAIL_VERIFICATION=false and every user is treated as verified. The default .env.example sends mail to the Mailpit container from docker-compose.yml (inbox at http://localhost:8025). With MAIL_MAILER=log, the verification link is written to storage/logs/laravel.log instead.

Behind a proxy or tunnel: If Iris sits behind a load balancer, Cloudflare Tunnel, or ngrok that handles HTTPS, set TRUSTED_PROXIES to the proxy's address. A tunnel running on the same machine connects from 127.0.0.1. Without it, Laravel sees those requests as plain HTTP and rejects verification links with a 403, because they were signed for the https:// URL. It also treats every request as coming from the proxy's IP, so rate limits keyed by IP are shared by all users. Only use * when nothing can reach Iris except through the proxy, since a trusted proxy's X-Forwarded-For header decides the client IP.

Providers ​

Every Iris subsystem that calls an LLM has a configurable provider setting. By default, Iris uses Anthropic for chat and background tasks, OpenAI for embeddings, and ElevenLabs for text-to-speech. You can override any of these to use a different Prism provider — including local providers like Ollama.

php
// config/iris-custom.php
return [
    'agent' => [
        'provider' => 'ollama',
        'model' => 'llama3.1:8b',
    ],
];

Provider values are strings matching Prism's registered provider names (e.g., anthropic, openai, ollama, gemini, mistral, groq, xai, deepseek). See the Local Setup Guide for running Iris entirely with local models.

Agent Settings ​

These control the core chat behavior.

SettingDefaultDescription
agent.provideranthropicPrism provider for chat
agent.modelclaude-sonnet-5-5The model used for chat
agent.max_steps60Maximum tool iterations per request
agent.request_timeout120HTTP timeout for each API request, in seconds

What max_steps controls: When Iris uses tools, it can iterate multiple times before responding. A request like "schedule a meeting and remind me later" might use 2-3 tools. The default of 60 allows for complex multi-step tasks while preventing runaway loops.

Context Settings ​

These control what information Iris has access to when responding.

SettingDefaultDescription
context.recent_summaries3Number of conversation summaries included

How context builds: Each request includes recent messages from the active thread, recent summaries from that thread, pinned skill content, recalled memories, calendar events, weather, the current time, and briefs from your other threads. History is loaded token-budget-first — Iris pulls turns newest-first until the available token budget is exhausted.

Context Management ​

Iris uses a token-budget system to keep conversation history within model limits. History loads from the latest summary boundary forward and fills the remaining budget with the most recent turns; older turns are represented by summaries rather than resent. See Context Management for the full lifecycle.

Token Budget Settings ​

SettingDefaultDescription
context.window200000The context window size (in tokens) of the configured model
context.token_budget_ratio0.70Fraction of the context window allocated to conversation history
context.compaction_threshold0.75Fraction of the context window the unsummarized history may fill before older messages are summarized
context.prune_protect_turns2Number of recent turns whose tool results and arguments keep the larger protected_result_max cap
context.protected_result_max10000Characters kept from each tool result or argument in the protected turns. Smaller items pass through untouched
context.old_result_preview200Characters kept from each tool result in older turns, followed by [truncated]
context.old_argument_preview1000Characters kept from each string tool argument in older turns. Higher than the result preview because arguments record what Iris did
context.conversation_load_limit500Most messages loaded from the database per request. The token budget normally stops loading well before this

window: Set this to match your configured model's context window. The default model, Claude Sonnet 5.5, has a 1M token context window, so set this to 1000000 to use all of it. On Anthropic's 1M models that size is the default: no beta header or extra setting is needed. The default of 200000 is deliberately conservative: it keeps per-request token usage down and stays safe if you switch to a 200K model like Haiku 4.5. Anthropic's context window reference lists the window for every model.

token_budget_ratio: Controls how much of the context window is reserved for history. At the default of 0.70, a 200K window allocates 140K tokens for conversation messages. Raise this if you want more history; lower it if system prompts and tool definitions are large.

compaction_threshold: After each reply, a background job checks the estimated size of the unsummarized history. When it is more than this fraction of the context window, older messages are summarized to free space. At 0.75, that happens above 75%. Lower this to summarize sooner; raise it to let the history grow further first.

prune_protect_turns: Tool results and arguments from the most recent N turns are kept up to protected_result_max characters (10,000). In older turns, results are cut to old_result_preview (200) and arguments to old_argument_preview (1,000). Increase this if Iris seems to lose track of recent tool results.

You can override token_budget_ratio via environment variable:

bash
# .env
IRIS_CONTEXT_TOKEN_BUDGET_RATIO=0.80

History Cache ​

Iris caches the stable portion of the conversation history with Anthropic's prompt cache, so a warm thread re-reads most of its context instead of re-billing it on every message.

SettingDefaultDescription
history_cache.enabledtrueMaster switch for the history cache breakpoint
history_cache.ttl'1h'TTL for the history breakpoint (keep at or below the system groups' TTL)
history_cache.min_tokens20000Skip the breakpoint until the history is at least this large

Toggle it via environment variable:

bash
# .env
IRIS_HISTORY_CACHE_ENABLED=false

See Cache Breakpoints for how this interacts with the system-prompt breakpoints and the 4-breakpoint budget.

Filesystem Tool Limits ​

Filesystem tools are disabled by default. See Filesystem Tools for setup. The limits below cap how much output the tools return per call, which keeps individual responses from consuming a disproportionate share of the context window.

SettingDefaultDescription
filesystem.enabledfalseEnable the filesystem tools (IRIS_FILESYSTEM_ENABLED)
filesystem.rootstorage/app/iris/workspaceWorkspace directory the tools are confined to (IRIS_WORKSPACE_ROOT)
filesystem.blocked_paths[]Paths inside the workspace the tools refuse to touch
filesystem.max_read_bytes1048576Largest file read_file returns whole, without offset or limit
filesystem.max_read_lines500Maximum lines returned per file read
filesystem.max_read_chars30000Maximum characters returned per file read
filesystem.max_grep_matches100Maximum matches returned per grep search

When read_file output exceeds a limit, Iris truncates the response and the agent pages through the file with offset and limit. When grep exceeds its cap, Iris truncates the response and saves the full result to disk. The truncation message gives the agent the saved file's path, which read_file and grep accept.

Tool Output Storage ​

Truncated grep results are saved to disk so agents can read the full result on demand. Each user's files go in their own subdirectory (<storage_path>/<user id>/), and an agent can only read the current user's files. Keep this directory outside filesystem.root. When filesystem.enabled is false, or the user may not use the filesystem tools, nothing is saved.

SettingDefaultDescription
tool_output.storage_pathstorage/app/private/tool-output/Directory that holds each user's saved outputs
tool_output.ttl86400Seconds before saved output files are eligible for cleanup (24 hours)

Saved files are cleaned up automatically on a daily schedule, and deleting an account removes that user's files. You can also run cleanup manually:

bash
php artisan iris:prune-tool-outputs

Truths Settings ​

Truths are stable, core facts about you that persist across conversations. Unlike memories that are retrieved contextually, Truths represent distilled knowledge earned through behavioral evidence.

SettingDefaultDescription
truths.max_dynamic7Maximum non-pinned Truths included per conversation
truths.percentile_threshold5Top N% of memories by access count are distillation candidates
truths.min_total_memories20Minimum memories required before distillation runs
truths.similarity_threshold0.40Minimum relevance score for a Truth to be included
truths.duplicate_threshold0.80Similarity threshold to detect duplicate Truths
truths.stale_days90Days without access before a Truth is considered stale
truths.crystallization_provideranthropicPrism provider for crystallization
truths.crystallization_modelclaude-sonnet-5-5Model for refining Truths with new evidence
truths.promotion_provideranthropicPrism provider for promotion evaluation
truths.promotion_modelclaude-sonnet-5-5Model for analyzing promotion candidates
truths.jobs_per_minute10Rate limit for distillation API calls
truths.review_limit_per_run20Flagged Truths reviewed per user each nightly run (uses the crystallization model)
truths.min_absolute_access_count10A memory needs at least this many accesses to be a candidate, whatever the percentile works out to
truths.max_generation5Truths at this generation are not refined or consolidated further
truths.auto_resolve_strength_threshold15Evidence strength at or above which contradicting evidence updates an unprotected Truth automatically. Below it, or for a pinned, user-created, or agent-created Truth, the contradiction goes to the Conflicts page
truths.evidence_strength.max_access_count20Cap on the access count of the memory behind the new evidence when scoring its strength
truths.evidence_strength.recency_bonus5Points added when the memory was accessed within recency_days
truths.evidence_strength.recency_days7Window for the recency bonus
truths.evidence_strength.generation_multiplier2Points added per consolidation generation of the memory
truths.crystallization_timeout60API timeout for crystallization and Truth review, in seconds
truths.promotion_timeout30API timeout for promotion evaluation, in seconds

Pinned vs Dynamic Truths: You can pin any Truth to ensure it's always included, regardless of relevance scoring. The max_dynamic setting only limits non-pinned Truths - pinned Truths are unlimited.

Run distillation manually:

bash
php artisan iris:distill-truths --queue           # Process all users
php artisan iris:distill-truths --user=1 --queue  # Process specific user
php artisan iris:distill-truths --dry-run         # Preview without changes

Report Truths whose source memories are gone or that describe one-off dated events, and optionally queue them for the nightly review:

bash
php artisan iris:audit-truths          # Report only
php artisan iris:audit-truths --flag   # Flag them for review

Memory Settings ​

Memory settings control how Iris recalls memories during conversations, and how the store_memory tool checks for duplicates.

SettingDefaultDescription
memory.store_duplicate_threshold0.85store_memory holds back a write when an existing memory is at least this similar, and shows the agent the matches
memory.store_related_threshold0.75After a write, store_memory lists up to 3 existing memories at least this similar so the agent can fix outdated ones
memory.max_results7Maximum memories recalled per turn
memory.similarity_threshold0.38Minimum similarity for a memory to be recalled
memory.context_turns20Conversation turns used to plan recall queries
memory.max_queries4Maximum recall topics per turn, one query each
memory.max_key_terms5Maximum literal key terms kept from the query plan
memory.recall_provideranthropicPrism provider for recall query planning
memory.recall_modelclaude-sonnet-5-5Model for planning recall queries
memory.recall_timeout20Timeout for query planning, in seconds. On timeout, recall searches with the raw message instead
memory.candidates_per_query10Nearest memories fetched per topic before scoring
memory.trace_enabledtrueSave a recall trace for each user turn to the recall_traces table
memory.trace_retention_days90Age at which the daily model:prune run deletes recall traces
memory.carry_forward.turns3Earlier user messages in the thread whose recalled memories and truths stay in context; 0 turns it off (IRIS_RECALL_CARRY_FORWARD_TURNS)
memory.carry_forward.max_memories10Most memories carried forward per message, newest messages first
memory.carry_forward.max_truths5Most truths carried forward per message

How memory retrieval works: For each message, Iris plans one search query per distinct topic, then fetches the closest memories for each. Each topic first gets its best-scoring memory among those at least selection.topic_floor similar to it. The remaining slots go to the highest-scoring memories above similarity_threshold, and recall returns fewer than max_results when nothing else qualifies. See Memory System for the full recall pipeline.

Recall runs before every reply, which is why recall_timeout is short.

Selection ​

These settings live under memory.selection and decide which candidates fill the max_results slots:

SettingDefaultWhat it means
topic_floor0.45Minimum similarity to a topic for that topic's guaranteed slot, so an off-target query doesn't claim a weak match
redundancy_threshold0.85A candidate this similar to an already chosen memory is skipped

Scoring Weights ​

Memories are ranked by similarity plus recency:

(semantic × 0.60) + (recency × 0.25)

All scoring settings live under memory.scoring:

SettingDefaultWhat it means
semantic0.60Best cosine similarity across the recall queries
recency0.25How recently the memory was created, decaying linearly to zero over recency_window_days
recency_window_days90Age at which the recency score reaches zero

Only the ratio between the two weights affects ordering.

TIP

If memories seem stale, increase the recency weight. If relevant memories aren't surfacing, check the recall_traces row for that turn before lowering similarity_threshold. The trace shows the planned topics, every candidate, and which ones were selected and why.

Extraction Settings ​

Extraction controls how memories are automatically created from conversations.

SettingDefaultDescription
extraction.threshold10New messages needed before an extraction run
extraction.max_memories6Maximum memories per run
extraction.batch_size60Most unprocessed messages one run extracts from. Larger backlogs are handled by follow-up runs, oldest first
extraction.context_messages20Already-processed messages shown before the new ones, for context only
extraction.in_flight_minutes15A reply still pending or streaming within this window holds the batch boundary just before it
extraction.neighbor_limit5Existing memories compared against each new candidate
extraction.neighbor_similarity0.70Minimum similarity for those neighbors. A candidate with none is added without a reconciliation call
extraction.timeout120API timeout per LLM call, in seconds
extraction.provideranthropicPrism provider for extraction and reconciliation
extraction.modelclaude-sonnet-5-5Model for extraction and reconciliation

The quality vs quantity tradeoff: A lower max_memories forces the extraction model to be selective, producing higher-quality memories. Increasing it may capture more information but risks storing trivial details.

See Memory Extraction for how batches and reconciliation work.

Summarization Settings ​

Summarization compresses older messages to preserve context without consuming too many tokens.

SettingDefaultDescription
summarization.threshold40Unsummarized message count that triggers summarization (secondary guard)
summarization.trim_target_ratio0.75Trim the oldest turns until the remaining history reaches this fraction of the budget
summarization.protect_recent10Most-recent messages never pulled into a summary
summarization.timeout120API timeout in seconds
summarization.provideranthropicPrism provider for summary generation
summarization.modelclaude-sonnet-5-5Model for generating summaries

How summarization triggers: The primary trigger is history size — when the estimated unsummarized history reaches context.compaction_threshold of the window, Iris summarizes older turns to free space. The threshold setting is a secondary message-count guard: if unsummarized messages exceed it, summarization also runs. Each trim takes the oldest turns down to trim_target_ratio of the budget while leaving the most recent protect_recent messages intact.

WARNING

Very aggressive compaction (low compaction_threshold) may lose conversational nuance. The defaults balance context preservation with token efficiency.

Consolidation Settings ​

Consolidation merges memories that state the same fact into one.

SettingDefaultDescription
consolidation.similarity_threshold0.80Minimum cosine similarity to cluster
consolidation.days_lookback3Days to look back for daily runs
consolidation.max_memories_per_run100Cap on recent memories per daily run, and separately on older neighbors pulled in
consolidation.neighbors_per_memory5Older memories pulled in per recent memory on daily runs, so new duplicates of old memories are caught
consolidation.max_content_chars900Absolute cap on merged memory length. Longer merges are discarded
consolidation.max_content_growth1.5Merged memory may be at most this multiple of the longest source
consolidation.min_content_chars200Floor for the growth cap, so very short memories can still merge
consolidation.max_cluster_size5Max memories per cluster
consolidation.min_cluster_size2Min memories to form a cluster
consolidation.max_generation5Max consolidation generations
consolidation.timeout120API timeout in seconds
consolidation.provideranthropicPrism provider for consolidation decisions
consolidation.modelclaude-sonnet-5-5Model for merge decisions
consolidation.jobs_per_minute10Rate limit for API calls

Understanding generations: Original memories are Generation 0. When merged, the result is Generation 1. A merged memory can absorb later duplicates of the same fact up to Generation 5. Merges only combine memories that state the same fact, and each merge is capped in length. See Memory Consolidation for details.

Run consolidation manually:

bash
php artisan iris:consolidate-memories
php artisan iris:consolidate-memories --dry-run  # Preview without changes

Truth Consolidation Settings ​

Truth consolidation merges semantically similar Truths to reduce redundancy. Unlike memory consolidation which runs daily, truth consolidation runs weekly since Truths accumulate more slowly.

SettingDefaultDescription
truth_consolidation.similarity_threshold0.75Minimum cosine similarity to cluster
truth_consolidation.max_cluster_size5Max Truths per cluster
truth_consolidation.min_cluster_size2Min Truths to form a cluster
truth_consolidation.timeout120API timeout in seconds
truth_consolidation.provideranthropicPrism provider for truth consolidation
truth_consolidation.modelclaude-sonnet-5-5Model for merge decisions
truth_consolidation.jobs_per_minute10Rate limit for API calls

Protection model: Only Promoted Truths are eligible for consolidation. User-created, agent-created, and pinned Truths are protected. Truths at the maximum generation are also excluded.

The threshold (0.75) is lower than memory consolidation (0.80) because Truths are already distilled facts - semantic overlap is more likely to be true redundancy.

Run consolidation manually:

bash
php artisan iris:consolidate-truths
php artisan iris:consolidate-truths --dry-run  # Preview without changes

See Truth Consolidation for details on how it works.

Calendar Settings ​

SettingDefaultDescription
calendar.cache_ttl15Cache duration in minutes
calendar.stale_ttl60Minutes a cached copy can still be served while a refresh runs in the background
calendar.event_horizon7Days ahead to include in context
calendar.event_lookback3Past days of events to include in context; 0 leaves them out

Why caching matters: Calendar data is fetched from Google's API and cached to avoid repeated requests. Within cache_ttl the cached copy is served as is. Between cache_ttl and stale_ttl it is still served while a background refresh runs, and after stale_ttl the next request waits for a fresh fetch. The event_horizon controls how far ahead Iris looks: a larger value gives more scheduling context but increases the data in each request.

Weather Settings ​

NOTE

Weather is disabled by default. Enable it by setting IRIS_WEATHER_ENABLED=true and TOMORROW_IO_API_KEY in your .env.

SettingDefaultDescription
weather.enabledfalseEnable the weather integration (IRIS_WEATHER_ENABLED)
weather.cache_ttl30Minutes the forecast in context is served from cache
weather.stale_ttl60Minutes a cached forecast in context can be served while a refresh runs
weather.tool_cache_ttl5Same as cache_ttl, for forecasts the weather tool fetches on request
weather.tool_stale_ttl15Same as stale_ttl, for those forecasts
weather.http_timeout10Seconds to wait for the tomorrow.io response
weather.http_connect_timeout5Seconds to wait for the connection

The API key is read from config/services.php. See Weather for setup and per-user settings.

Embeddings Settings ​

SettingDefaultDescription
embeddings.provideropenaiPrism provider for embeddings
embeddings.modeltext-embedding-3-smallEmbedding model
embeddings.provider_options[]Provider-specific options passed to Prism

Embeddings power semantic search. The default text-embedding-3-small model offers a good balance of quality and cost. Changing the model or provider affects how memories are stored and retrieved.

The provider_options array lets you pass provider-specific configuration. For example, when using Ollama for embeddings you'll want to set dimensions to match the default vector size:

php
'embeddings' => [
    'provider' => 'ollama',
    'model' => 'your-embedding-model',
    'provider_options' => [
        'dimensions' => 1536,
    ],
],

Text-to-Speech Settings ​

NOTE

Text-to-speech is disabled by default. Enable it by setting IRIS_TTS_ENABLED=true and ELEVENLABS_API_KEY in your .env.

SettingDefaultDescription
tts.enabledfalseEnable audio playback (also requires an API key)
tts.providerelevenlabsPrism provider for text-to-speech
tts.modeleleven_v4_turboTTS model, set via IRIS_TTS_MODEL
tts.voice(configured)Voice ID, set via IRIS_TTS_VOICE
tts.voice_settingsall nullOptional stability, similarity, style, and speaker boost overrides
tts.disklocalWhere generated audio is saved, set via IRIS_TTS_DISK
tts.queueaudioQueue for generation jobs, set via IRIS_TTS_QUEUE. If you change it, add the queue to a supervisor in config/horizon.php
tts.request_timeout45Seconds to wait for one ElevenLabs request
tts.segment_character_limits[250, 1000, 2500]Maximum characters per audio part, by position

When enabled, assistant messages show a speaker icon. Audio is generated once, saved, and replayed for free. Changing the model, voice, or voice settings regenerates saved audio the next time each message is played. See Text-to-Speech for setup and model choice.

Telegram Notification Settings ​

NOTE

Telegram notifications are disabled by default. Enable them by setting TELEGRAM_ENABLED=true in your .env and configuring a bot token.

SettingEnvironment VariableDescription
connectors.telegram.enabledTELEGRAM_ENABLEDEnable Telegram integration
connectors.telegram.tokenTELEGRAM_BOT_TOKENBot token from BotFather
connectors.telegram.bot_usernameTELEGRAM_BOT_USERNAMEBot username for generating connect links
telegraph.webhook.domainTELEGRAM_WEBHOOK_DOMAINDomain Telegram sends webhook calls to. Defaults to APP_URL when empty
telegraph.webhook.secretTELEGRAPH_WEBHOOK_SECRETSecret Telegram sends in the X-Telegram-Bot-Api-Secret-Token header so Iris can verify a webhook call is genuine

The first three settings live in config/connectors.php and the webhook settings in config/telegraph.php. When enabled, proactive messages are pushed to users who've linked their Telegram account and toggled notifications on. See Telegram Notifications for the full setup guide.

Push Notification Settings ​

NOTE

Push notifications are off until you generate VAPID keys with php artisan webpush:vapid. They also need Iris served over HTTPS.

SettingEnvironment VariableDescription
webpush.vapid.public_keyVAPID_PUBLIC_KEYPublic key browsers subscribe with
webpush.vapid.private_keyVAPID_PRIVATE_KEYPrivate key that signs each push
webpush.vapid.subjectVAPID_SUBJECTContact for push services. Defaults to APP_URL

These live in config/webpush.php. Each user turns push on per device in Settings > Notifications. See Push Notifications for the full setup guide.

Thread Briefs Settings ​

Thread Briefs give Iris cross-thread awareness by generating lightweight digests of each thread's current state.

SettingDefaultDescription
briefs.enabledtrueMaster toggle for all brief-related behavior. With it off, no briefs are generated and no stored brief is shown in chat, the heartbeat or memory extraction
briefs.threshold2Minimum assistant responses before first brief
briefs.max_threads5Maximum threads shown in cross-thread context
briefs.max_age_days7Threads quiet for longer than this no longer appear in cross-thread context (IRIS_BRIEFS_MAX_AGE_DAYS)
briefs.idle_minutes10How long a thread must be quiet after a reply before its brief is generated (IRIS_BRIEFS_IDLE_MINUTES)
briefs.recent_messages4Newest messages written after a thread's brief that are shown under it in cross-thread context; 0 turns the tail off (IRIS_BRIEFS_RECENT_MESSAGES)
briefs.recent_message_chars300Characters kept from each of those messages (IRIS_BRIEFS_RECENT_MESSAGE_CHARS)
briefs.provideranthropicPrism provider for brief generation
briefs.modelclaude-haiku-4-5Model for generating briefs
briefs.timeout15Timeout in seconds for generation

How it works: When a thread has been quiet for idle_minutes after a reply, a background job generates a 3-6 sentence digest covering the thread's topic, key decisions, current status, and emotional context. A burst of replies produces one brief. Messages written after a brief are shown under it in other threads (up to recent_messages), so a brief that is a few messages behind is never stale to the reader. If you reply in another thread and a thread's backlog has grown past what that tail can show, Iris refreshes its brief straight away. Briefs are injected into other threads' per-turn context (only threads active within max_age_days) and used by the heartbeat for context. The master enabled toggle controls everything — generation, cross-thread injection, and heartbeat usage.

Disable via environment variable:

bash
# .env
IRIS_BRIEFS_ENABLED=false

Customizing Briefs ​

php
// config/iris-custom.php
return [
    'briefs' => [
        'idle_minutes' => 20,  // Wait for a longer pause before generating
        'max_age_days' => 3,   // Only show threads from the last three days
        'max_threads' => 3,    // Fewer threads in cross-thread context
        'recent_messages' => 2, // Show fewer newer-than-brief messages
    ],
];

Images Settings ​

Images you attach stay visible to the model on later turns while their message is in the raw history. Each request re-sends the replayed images, so the images.replay caps keep that bounded. See Image Support.

SettingDefaultDescription
images.replay.max_count4Images re-sent on each request, counting the newest message's images first and filling any remaining slots with older ones. The newest message always sends all of its images, even past this cap
images.replay.max_bytes10000000Total stored size of those images (base64 adds about a third on the wire)
images.replay.max_image_bytes3750000Larger images from earlier messages are never replayed, which keeps each one inside the provider's per-image limit once encoded
images.replay.tokens_per_image4800Token estimate per replayed image when budgeting history
images.descriptions.enabledtrueWrite a one-line description of each uploaded image (IRIS_IMAGE_DESCRIPTIONS_ENABLED)
images.descriptions.provideranthropicPrism provider for descriptions
images.descriptions.modelclaude-haiku-4-5Vision model for descriptions
images.descriptions.timeout30Timeout in seconds
images.descriptions.max_tokens200Output cap for the description

An image over the caps, or whose file can't be read, is sent as [Image: <description>], or [Image] when it has no description yet.

Cache behavior: the replayed set only changes when a new image arrives or an old one leaves the raw history, so the cached history prefix stays stable between those events. When a new image pushes an older one over max_count, the prefix is rewritten once from the older message on. Once you're past the cap, sending an image on nearly every turn means a rewrite on nearly every turn.

Each description is one small vision call per uploaded image. To describe images that were uploaded before descriptions existed:

bash
php artisan iris:backfill-image-descriptions --dry-run   # count only
php artisan iris:backfill-image-descriptions             # queue the jobs
php artisan iris:backfill-image-descriptions --user=42   # one user

The command queues one job per image file. Forked threads share files with the thread they came from, so a forked copy doesn't cost a second call.

Proactive Messages Settings ​

SettingDefaultDescription
heartbeat.provideranthropicPrism provider for heartbeat decisions
heartbeat.modelclaude-sonnet-5-5Model for heartbeat decisions
heartbeat.max_steps30Maximum tool iterations when crafting messages
heartbeat.request_timeout120HTTP timeout for each API request, in seconds
heartbeat.context_max_threads3Most recently active threads to include in heartbeat context
heartbeat.interval_minutes30Minutes between heartbeats. The scheduler turns it into */N * * * *, so it must divide 60. No environment variable; set it in config/iris-custom.php
heartbeat.cache_ttl'1h'TTL for the decision request's cache breakpoints, written only when heartbeats are at most half of it apart
heartbeat.followup_max_lateness_minutes1440A scheduled follow-up more than this many minutes overdue expires instead of firing late (IRIS_FOLLOWUP_MAX_LATENESS_MINUTES)
heartbeat.max_runs_per_interval8Heartbeat runs one user can start in each interval_minutes window, counting scheduled ticks, follow-up deliveries, manual runs and retries. Runs over the limit wait for the next window
heartbeat.log_retention_days90Age at which the daily model:prune run deletes heartbeat logs, along with the prompt tail each check stored
heartbeat.prompts(see below)Prompt stack for heartbeat system messages. Each cached group's label names it on the Logs page

How it works: Iris runs a heartbeat every interval_minutes (30 by default), gathering context (thread briefs and latest summaries from active threads, thread metadata, calendar, weather, memories) and deciding whether to proactively reach out. The heartbeat uses a dedicated prompt stack that's lighter than the full conversation prompt stack. Users configure guidance (soft preferences) and boundaries (hard constraints like quiet hours) through the UI.

See Proactive Messages for detailed usage and configuration.

Temporal Settings ​

SettingDefaultDescription
temporal.timezoneAmerica/New_YorkDefault timezone for date/time context
temporal.reference_days_before3Past days listed in the current time prompt's date reference
temporal.reference_days_after14Upcoming days listed in the current time prompt's date reference

Iris adds the current date and time, in this timezone, to the per-turn context. It also adds a short date reference that lists each day's weekday and its position relative to today ("yesterday", "in 3 days"), so the model looks up weekdays and doesn't have to count them. The timezone is the system-wide default for all users.

Per-User Timezone ​

Each user can override the default timezone in Settings > Profile. When a user sets their timezone, it's used everywhere: system prompts, heartbeat scheduling, quiet hours, follow-up validation, and the frontend.

The fallback chain is:

  1. User's timezone (if set in their profile)
  2. Config default (temporal.timezone)

If a user leaves timezone blank, the config default applies automatically. This makes the config value a sensible default for new users while letting individuals customize.

Shell Settings ​

WARNING

Shell command execution is disabled by default. Enable only on trusted deployments. Only administrators can use it, in every environment (see Access Settings).

SettingDefaultDescription
shell.enabledfalseEnable shell command execution
shell.default_timeout30Default timeout in seconds
shell.max_timeout300Maximum allowed timeout (5 minutes)
shell.max_output_length50000Maximum output size in bytes
shell.default_working_directorynullDefault directory for commands (IRIS_WORKSPACE_ROOT). Falls back to the home directory of the user running Iris
shell.blocked_executables['sudo', 'su', 'doas', 'pkexec']Blocked command names
shell.blocked_patterns[...]Regex patterns to block
shell.inherit_env_vars['PATH', 'HOME', 'USER', 'SHELL', 'TERM', 'LANG', 'LC_ALL']The only environment variables a command receives

Enable via environment variable:

bash
# .env
IRIS_SHELL_ENABLED=true

Security layers: Privilege escalation commands are blocked (sudo, su, doas, pkexec). Dangerous patterns like rm -rf / and direct disk writes are detected and blocked. A command receives only the variables in inherit_env_vars; every other variable in Iris's own environment, including API keys and database credentials, is removed. This is not a sandbox. Commands run as the same operating system user as Iris, so they can still read that user's files, including .env.

See Shell Commands for detailed usage and security information.

Broadcasting Settings ​

Iris uses Laravel Reverb for real-time streaming. Configure via environment variables:

The Default column shows the value .env.example sets. Without it, Laravel falls back to its own defaults, such as a null broadcast driver and port 443.

SettingDefaultDescription
BROADCAST_CONNECTIONreverbBroadcasting driver
REVERB_APP_IDiris-localApplication identifier
REVERB_APP_KEYiris-local-keyClient authentication key
REVERB_APP_SECRETiris-local-secretServer-side secret
REVERB_HOSTlocalhostHostname browsers connect to
REVERB_PORT8080Port browsers connect to
REVERB_SCHEMEhttpProtocol (http or https for production)
REVERB_SERVER_HOST0.0.0.0Address the reverb:start process listens on
REVERB_SERVER_PORT8080Port the reverb:start process listens on

The VITE_REVERB_* variables in .env.example copy the host, port, scheme, and key into the frontend build, so rebuild the frontend after you change them.

Event Storage ​

Stream events are temporarily stored in Redis for connection recovery. Events remain available for replay, so clients can catch up after brief disconnections.

Sub-Agent Settings ​

WARNING

Task delegation is disabled by default. The sub-agent gets shell commands only when they're enabled and the user who delegated the task may use them (see Access Settings).

SettingDefaultDescription
subagent.enabledfalseEnable task delegation
subagent.provideranthropicPrism provider for the sub-agent
subagent.modelclaude-sonnet-5-5Model for the sub-agent
subagent.max_steps60Maximum tool iterations per task
subagent.default_working_directorynullDefault directory for tasks
subagent.request_timeout120HTTP timeout per API request, capped at the time the task has left
subagent.default_timeout300Task timeout when Iris doesn't ask for one (5 minutes)
subagent.min_timeout60Shortest timeout Iris can ask for; shorter requests are raised to this
subagent.max_timeout600Longest timeout Iris can ask for (10 minutes); longer requests are lowered to this
subagent.abandoned_grace_seconds300How far past its timeout a running task can go before the sweep assumes the daemon died and times it out

Enable via environment variables:

bash
# .env
IRIS_SUBAGENT_ENABLED=true
IRIS_SHELL_ENABLED=true
IRIS_SUBAGENT_WORKING_DIR=/home/user/projects  # Optional default directory

How it works: Task delegation spawns an autonomous sub-agent using Prism's agent loop. The sub-agent has the delegating user's tools (shell and filesystem only for administrators) and the web tools, and works through multi-step tasks on its own before returning results. Tasks are processed by the iris:agent daemon — see Task Delegation for setup.

Constraints: One active task per user to prevent resource exhaustion. Inherits all shell security settings. The daemon stops a task when its timeout runs out and posts a timeout message to the thread.

See Task Delegation for detailed usage information.

Token Usage Tracking ​

Iris tracks API token consumption across all operations. You can monitor usage by source type:

SourceWhat it tracks
chatMain conversation tokens
summarizationSummary generation tokens
extractionMemory extraction tokens
recallRecall query planning tokens
consolidationMemory and Truth consolidation tokens
promotionTruth promotion analysis tokens
crystallizationTruth crystallization tokens
truth_reviewReview of Truths flagged after their source memories changed
heartbeatProactive message decisions, including prompt cache reads and writes
brief_generationThread brief generation tokens
embeddingEmbedding API calls
image_descriptionOne-line image descriptions

Token data is stored in the token_usages table and can be queried for cost analysis or monitoring dashboards.

Common Configuration Scenarios ​

Lower API Costs ​

php
// config/iris-custom.php
return [
    'extraction' => [
        'threshold' => 20,  // Extract less frequently
    ],
    'summarization' => [
        'threshold' => 60,  // Summarize less often
    ],
    'truths' => [
        'max_dynamic' => 3,  // Fewer dynamic Truths per conversation
    ],
    'memory' => [
        'max_results' => 5,  // Fewer search results
    ],
];

More Responsive Memory ​

php
// config/iris-custom.php
return [
    'extraction' => [
        'threshold' => 5,    // Extract more frequently
    ],
    'memory' => [
        'max_results' => 10,  // Recall up to 10 memories per turn instead of 7
    ],
];

CAUTION

Avoid lowering similarity_threshold far below its default. Slots left after each topic gets its guaranteed memory are filled from anything above that threshold, so a low value fills them with weak matches instead of leaving them empty.

Conservative Memory Consolidation ​

php
// config/iris-custom.php
return [
    'consolidation' => [
        'similarity_threshold' => 0.90,  // Only very similar memories
        'max_generation' => 3,           // Limit consolidation depth
    ],
];

Conservative Truth Consolidation ​

php
// config/iris-custom.php
return [
    'truth_consolidation' => [
        'similarity_threshold' => 0.85,  // Only very similar truths
    ],
];

Aggressive Truth Promotion ​

php
// config/iris-custom.php
return [
    'truths' => [
        'percentile_threshold' => 20,    // Wider candidate pool
        'min_total_memories' => 10,      // Start promoting sooner
    ],
];

Enable Shell Commands ​

php
// config/iris-custom.php
return [
    'shell' => [
        'default_timeout' => 60,
        'default_working_directory' => '/home/user/projects',
    ],
];

Then set IRIS_SHELL_ENABLED=true in your .env.

Enable Task Delegation ​

php
// config/iris-custom.php
return [
    'subagent' => [
        'max_steps' => 50,
        'default_timeout' => 600,  // 10 minutes for complex tasks
        'default_working_directory' => '/home/user/projects',
    ],
];

Then set both IRIS_SUBAGENT_ENABLED=true and IRIS_SHELL_ENABLED=true in your .env.

Optimize for 200K Models ​

For models with 200K context windows (Claude Haiku 4.5, and older models such as Claude Opus 4.5 and Sonnet 4.5), keep context lean to avoid hitting limits during long conversations.

php
// config/iris-custom.php
return [
    'context' => [
        'window' => 200_000,
        'token_budget_ratio' => 0.65,   // Leave more headroom for system prompts
        'compaction_threshold' => 0.70, // Compact earlier to avoid hitting limits
        'prune_protect_turns' => 2,
    ],
    'filesystem' => [
        'max_read_lines' => 300,        // Smaller reads to conserve context
        'max_read_chars' => 15000,
        'max_grep_matches' => 50,
    ],
];

Maximize Context on 1M Models ​

For models with 1M context windows (Claude Sonnet 5.5, Opus 5.5, and Haiku 5.5), you can afford much larger history and tool outputs.

php
// config/iris-custom.php
return [
    'context' => [
        'window' => 1_000_000,
        'token_budget_ratio' => 0.80,   // Use more of the window for history
        'compaction_threshold' => 0.85, // Allow context to fill further before compacting
        'prune_protect_turns' => 5,     // Protect more recent tool outputs
    ],
    'filesystem' => [
        'max_read_lines' => 2000,       // Read much larger files in one shot
        'max_read_chars' => 100000,
        'max_grep_matches' => 500,
    ],
];

Thread Settings ​

Threads organize conversations into isolated contexts with independent history and summaries.

SettingDefaultDescription
threads.naming_threshold4Messages before auto-naming triggers
threads.naming_provideranthropicPrism provider for naming
threads.naming_modelclaude-haiku-4-5Model for generating thread names
threads.naming_timeout15Timeout in seconds for the naming job

How auto-naming works: After a new thread accumulates enough messages (default: 4), a background job generates a short, descriptive name. A fast, inexpensive model is used to keep costs minimal. If a user manually renames a thread, auto-naming won't overwrite their choice.

Customizing Thread Naming ​

php
// config/iris-custom.php
return [
    'threads' => [
        'naming_threshold' => 6,  // Wait for more conversation context
    ],
];

Skills Settings ​

SettingDefaultDescription
skills.enabledtrueEnable agent skills (IRIS_SKILLS_ENABLED)
skills.directory.agents/skillsDirectory to load skills from. Defaults to .agents/skills in the application root (IRIS_SKILLS_DIR)

Skills extend Iris with specialized knowledge and workflows. You can pin skills to threads to inject their full content into the system prompt for every message in that thread. Pinned skills are configured per-thread through the thread settings modal. See Agent Skills for details.