Skip to content

AI Agents

Agents are the core of Sciorex. Each agent is a specialized AI assistant with its own configuration, tools, permissions, and personality. Agents can operate independently or as part of automated Flows.

Overview

Agents panel

An agent in Sciorex is a pre-configured AI persona that:

  • Has a specific purpose defined by its system prompt
  • Uses specific tools based on its allowed tool list
  • Connects to MCP servers for extended capabilities
  • Follows permission rules for tool execution
  • Can be used in Flows as processing nodes

Agents are powered by multiple AI providers including Claude Code, Gemini, OpenAI Codex, OpenCode, LM Studio, and Ollama.

Agent Definition

Each agent has the following configuration properties:

FieldTypeDescription
idstringUnique identifier (auto-generated from name)
namestringDisplay name for the agent
descriptionstringWhat this agent does
iconIdstringIcon identifier (from built-in icon set)
systemPromptstringInstructions that define agent behavior
modelstringAI model to use
adapterstringAI provider adapter (claude-code, google-gemini, openai-codex, opencode, lmstudio, ollama)
temperaturenumberCreativity (0-1, default 0.7)
maxTokensnumberMax response tokens (default 4096)
inputSchemaJSONSchemaExpected input structure
outputSchemaJSONSchemaExpected output structure
allowedToolsToolPermission[]Tools the agent can use
mcpServersstring[]MCP servers to connect
thinkingLevelstringThinking depth (off, think, think-hard, think-harder, ultrathink)
effortLevelstringEffort level for Opus 4.6 (low, medium, high, max)
autoApprovebooleanAuto-approve all tool calls
autoApproveToolsstring[]Specific tools to auto-approve
requiresHumanApprovalstring[]Tools requiring manual approval
labelIdsstring[]Labels for organization

Available Models

Sciorex supports models from multiple providers. See Models Reference for the complete list.

Claude (claude-code)

Model IDDisplay Name
claude-opus-4-6Opus 4.6 (Latest)
claude-sonnet-5-0Sonnet 5.0 (Default)
claude-sonnet-4-20250514Sonnet 4
claude-haiku-4-5-20251001Haiku 3.5

Gemini (google-gemini)

Model IDDisplay Name
gemini-3-pro-previewGemini 3 Pro
gemini-3-flash-previewGemini 3 Flash
gemini-2.5-proGemini 2.5 Pro
gemini-2.5-flashGemini 2.5 Flash

OpenAI Codex (openai-codex)

Model IDDisplay Name
gpt-5.3-codexGPT-5.3 Codex (Latest)
gpt-5.2-codexGPT-5.2 Codex
gpt-4.1GPT-4.1
o4-minio4-mini

OpenCode (opencode)

OpenCode is a multi-provider CLI that supports Anthropic, OpenAI, Google, and custom endpoints.

Model IDDisplay Name
Configured dynamicallyDepends on selected backend

OpenCode connects to any provider configured in its settings. See Installation for setup.

Local Models (lmstudio / ollama)

Local models are fetched dynamically from your LM Studio or Ollama server. Popular options include:

  • qwen2.5-coder - Code generation
  • deepseek-coder-v2 - Advanced coding
  • llama3.2 - General tasks

Model Selection

  • Claude Opus / GPT-5.3: Best for complex reasoning and critical tasks
  • Claude Sonnet / Gemini 3 Pro / GPT Codex: Balanced performance (recommended)
  • Claude Haiku / Gemini Flash / Local: Fast responses for simple tasks

Change the default model in Settings AI Providers.

Creating an Agent

Via the UI

  1. Navigate to Agents in the sidebar
  2. Click New Agent
  3. Complete the creation wizard:
    • Identity: Name, description, icon
    • Instructions: System prompt (can be AI-generated)
    • Tools: Select allowed tools and permissions
    • Parameters: Define input parameters
    • Settings: Model, temperature, response length

Agent File Structure

Agents are stored as YAML files in .sciorex/agents/:

yaml
# .sciorex/agents/researcher.yaml
id: research-assistant
name: Research Assistant
description: Specialized in academic papers and research
systemPrompt: |
  You are a research assistant specialized in academic papers.
  Always cite your sources with proper academic formatting.
  Be thorough but concise in your summaries.

adapter: claude-code
model: claude-sonnet-5-0
temperature: 0.7
maxTokens: 4096

inputSchema:
  type: object
  properties:
    query:
      type: string
      description: Research query or topic
  required:
    - query

outputSchema:
  type: object
  properties:
    summary:
      type: string
    sources:
      type: array
      items:
        type: string

allowedTools:
  - tool: Read
    allowed: true
  - tool: WebSearch
    allowed: true
  - tool: Write
    allowed: true

mcpServers:
  - sciorex-tickets
  - arxiv-mcp

autoApprove: false
requiresHumanApproval:
  - Write
  - Bash

version: "1.0"

Advanced Settings

The Advanced tab in the agent creation wizard provides fine-tuning options. Most users can skip these - the defaults work well for typical use cases.

Adapter

The Adapter determines which AI backend powers the agent:

AdapterDescription
claude-codeClaude models via Claude Code CLI
google-geminiGemini models via Gemini CLI
openai-codexOpenAI/Codex models via Codex CLI
opencodeMulti-provider models via OpenCode CLI
lmstudioLocal models via LM Studio server
ollamaLocal models via Ollama server

Each adapter has different capabilities and features. See Models Reference for details.

Model Selection

Choose which model powers your agent. Available models depend on the selected provider. See Available Models for the full list.

Quick Guide

  • High-capability models (Opus, GPT-5.2, Gemini Pro): Complex reasoning, code review
  • Balanced models (Sonnet, Codex, Gemini Flash): Most tasks (recommended)
  • Fast models (Haiku, Flash Lite, local): Simple, routine tasks

MCP Servers

MCP (Model Context Protocol) servers extend agent capabilities. When you enable an MCP server, its tools become available to your agent.

Built-in MCP Servers:

ServerDescription
sciorex-ticketsTicket and epic management tools (23 tools)
sciorex-researchLaTeX, PDF, reference library, and discovery tools (16 tools)
sciorex-resourcesAgent, flow, and resource management tools (11 tools)
sciorex-interactionsUser interaction tools (ask, notify, approve) (4 tools)
sciorex-secretsEncrypted secrets vault tools (4 tools)
sciorex-permissionsPermission management (1 tool)

Automatic Sync

Enabling an MCP server in Advanced settings automatically enables its tools in Permissions, and vice versa. All 6 built-in MCP servers are available for seamless tool integration.

Creativity Level (Temperature)

Controls how creative vs. deterministic the agent's responses are:

  • 0.0 - 0.3: Very precise, deterministic (good for code, data analysis)
  • 0.4 - 0.6: Balanced (good for most tasks)
  • 0.7 - 1.0: More creative, varied (good for brainstorming, writing)

Default: 0.7

Response Length

Sets the maximum tokens for agent responses:

SettingTokensUse Case
Short1,024Quick answers, simple tasks
Medium4,096Most tasks (default)
Long8,192Detailed analysis, documentation
Very Long16,384Extensive code generation

Tool Constraints (Developer Feature)

For developers who need fine-grained control, you can add JSON constraints to individual tools. Enable "Show constraints" in the Permissions sidebar to access this feature.

Example constraints:

json
// For Read/Write/Edit tools
{"respectGitignore": true, "disallowedPaths": ["node_modules/**", ".git/**"]}

// For Bash tool
{"allowedCommands": ["git", "npm", "npx"], "disallowedCommands": ["rm -rf", "sudo"]}

// For WebFetch/WebSearch
{"allowedDomains": ["github.com", "docs.anthropic.com"]}

See Tool Constraints for more details.

Tool Permissions

Each tool permission has:

FieldTypeDescription
toolstringTool name or pattern (e.g., Read, Bash:*)
allowedbooleanWhether the tool is allowed
constraintsobjectTool-specific constraints

Available Tools

Tools are organized by category:

File Operations:

  • Read - View file contents
  • Write - Create and modify files
  • Edit - Make targeted edits to files
  • MultiEdit - Edit multiple files

System Commands:

  • Bash - Execute shell commands
  • Glob - Search file patterns
  • Grep - Search file contents

Web Access:

  • WebFetch - Fetch web page content
  • WebSearch - Search the web

Integration:

  • Task - Create and manage sub-tasks
  • TodoWrite - Track work items

Tool Constraints

You can add constraints to limit tool behavior:

yaml
allowedTools:
  - tool: Bash
    allowed: true
    constraints:
      allowedCommands:
        - git
        - npm
        - eslint
      blockedCommands:
        - rm -rf
        - sudo

Community Agents

Sciorex provides access to a community marketplace with pre-configured agents you can install:

AgentPurpose
orchestratorCoordinates complex multi-step tasks
plannerCreates implementation plans
executorImplements code changes
testerWrites and runs tests
documenterCreates documentation
reviewerReviews code for issues
ticket-managerManages tickets and epics

INFO

Community agents cannot be modified directly. Duplicate them to create customized versions.

Agent Sessions

When you start a conversation with an agent, a session is created:

typescript
interface AgentSession {
  id: string;           // Unique session ID
  agentId?: string;     // Agent ID (undefined for plain chat)
  status: AgentSessionStatus;
  input: any;           // Input provided to agent
  output: any;          // Structured output
  messages: AgentMessage[];
  cliSessionId?: string;         // For branching/continuation
  previousSessionId?: string;    // Parent session (for forks)
  permissionMode?: string;       // Tool approval mode
  chatMode?: string;             // 'normal' | 'agentic' | 'preview' | 'editor'
  worktreeId?: string;           // Associated worktree
  worktreePath?: string;         // Worktree filesystem path
  worktreeBranch?: string;       // Worktree git branch
  labelIds?: string[];           // Labels for organization
  startedAt: string;
  completedAt: string | null;
}

Session Statuses

StatusDescription
initializingSession is starting
runningAgent is actively working
pausedExecution paused
waiting_inputWaiting for user input
waiting_permissionWaiting for tool approval
completedFinished successfully
completed_with_pendingCompleted but background tasks still running
idleReady for new input
failedEnded with error
errorEncountered an unrecoverable error
cancelledUser cancelled
stoppedForcefully stopped

Session Operations

Start New Session:

typescript
const { sessionId } = await ipc.invoke('agent:start', {
  agentId: 'my-agent',
  prompt: 'Analyze this codebase',
  context: { /* additional context */ }
});

Continue Session (Same Session):

typescript
await ipc.invoke('agent:resume-session', {
  sessionId: existingSessionId,
  message: 'Now focus on the tests'
});

Fork Session (New Branch):

typescript
const { sessionId } = await ipc.invoke('agent:branch-from-message', {
  sessionId: existingSessionId,
  messageId: targetMessageId,
  message: 'Try a different approach'
});

Extended Thinking

Agents support Claude's extended thinking capabilities:

LevelToken BudgetDescription
off0No extended thinking
think1,024Light reasoning
think-hard10,000Deep analysis
think-harder16,000Intensive reasoning
ultrathink32,000Maximum depth

Configure in agent definition:

yaml
thinkingLevel: think-hard

TIP

Customize the default thinking level and token budgets in Settings AI Providers.

Effort Levels

Claude Opus 4.6 supports effort levels that control how much compute the model uses:

LevelDescription
lowFast responses, minimal reasoning
mediumBalanced speed and quality
highThorough analysis (default)
maxMaximum compute for complex tasks

Configure in agent definition:

yaml
effortLevel: high

TIP

Effort levels are only available for Claude Opus 4.6. Other models ignore this setting.

Council Mode

Council Mode enables structured multi-model debate for complex decisions:

  1. Select 2-5 AI models to participate
  2. Define a topic or question
  3. Models debate in structured rounds
  4. Review the synthesized conclusion

This is powerful for research methodology decisions, architectural choices, and complex problem-solving. See Council Mode for full documentation.

Agent Teams

Agent Teams allow multiple agents to collaborate on large tasks:

  • Team Lead: Coordinates the team and delegates tasks
  • Specialists: Agents with specific roles (researcher, coder, reviewer, etc.)
  • Communication: Agents can send messages to each other
  • Shared Context: Teams share a common workspace

Create a team by selecting multiple agents in the Agent Teams panel and defining roles. Teams are especially useful for complex projects that benefit from specialized expertise.

MCP Server Integration

Agents can connect to MCP servers for extended capabilities:

yaml
mcpServers:
  - sciorex-tickets        # Built-in ticket management (23 tools)
  - sciorex-research       # Built-in research tools (16 tools)
  - sciorex-resources      # Built-in resource management (11 tools)
  - sciorex-interactions   # Built-in user interactions (4 tools)
  - sciorex-secrets        # Built-in secrets vault (4 tools)
  - sciorex-permissions    # Built-in permissions (1 tool)
  - arxiv-mcp              # Custom: Academic paper search
  - github-mcp             # Custom: GitHub integration

All 6 built-in MCP servers are enabled by default, giving agents access to 59 tools.

Example Agents

Paper Researcher

yaml
name: Paper Researcher
adapter: claude-code
model: claude-sonnet-5-0
description: Finds and analyzes academic papers

systemPrompt: |
  You find and analyze academic papers. For each paper:
  1. Summarize the key contributions
  2. Identify methodology
  3. Note limitations
  4. Suggest related work

allowedTools:
  - tool: WebSearch
    allowed: true
  - tool: Read
    allowed: true
  - tool: Write
    allowed: true

mcpServers:
  - arxiv-mcp
  - semantic-scholar-mcp

Code Reviewer

yaml
name: Code Reviewer
adapter: claude-code
model: claude-opus-4-6
description: Reviews code for quality, security, and best practices

systemPrompt: |
  You review code for quality, security, and best practices.
  Focus on:
  - Security vulnerabilities
  - Performance issues
  - Code maintainability
  - Test coverage

  Provide actionable feedback with specific line references.

allowedTools:
  - tool: Read
    allowed: true
  - tool: Grep
    allowed: true
  - tool: Bash
    allowed: true
    constraints:
      allowedCommands:
        - git
        - npm
        - eslint
        - tsc

thinkingLevel: think-hard

Data Analyst

yaml
name: Data Analyst
adapter: google-gemini
model: gemini-2.5-flash
description: Analyzes datasets and produces insights

systemPrompt: |
  You analyze datasets and produce insights.
  Always visualize findings when possible.
  Use statistical methods appropriately.
  Explain your methodology clearly.

mcpServers:
  - pandas-mcp
  - matplotlib-mcp

allowedTools:
  - tool: Read
    allowed: true
  - tool: Write
    allowed: true
  - tool: Bash
    allowed: true
    constraints:
      allowedCommands:
        - python
        - pip

Best Practices

Keep prompts focused

Each agent should have a clear, specific purpose. Create multiple specialized agents rather than one generalist.

Use input/output schemas

Define schemas to ensure consistent data flow, especially when using agents in Flows.

Tool permissions

Be careful with auto-approve settings. Only enable for safe, read-only tools. Always require approval for:

  • Write - File modifications
  • Bash - Shell commands
  • Edit / MultiEdit - Code changes

Organize with labels

Use labels to categorize agents by purpose (research, coding, review) or project.

Using Agents in Flows

Agents can be used as nodes in Flows for automated pipelines:

Trigger (Daily)

Paper Researcher Agent

Summarizer Agent

Create Ticket (sciorex_create_ticket)

See Flow Nodes for details on configuring agent nodes.

Next Steps

Sciorex is proprietary software.