Overview
Command Center
Live view of all agents, markets, and alerts — Feb 25, 2026
Agent Runs Today↑18%
247
+38 from yesterday
Active Goals
3
1 paused · 2 completed
Alerts Triggered2 new
2
BTC + NVDA threshold hit
Tokens Used
84k
claude-opus-4-6 · $0.42
monitor_agent · watchlist
LIVE
| Symbol | Name | Price | 24h | 7d | Trend |
|---|---|---|---|---|---|
BTC | Bitcoin | 67,420.50 | +2.34% | +8.1% | |
ETH | Ethereum | 3,512.88 | -0.87% | +3.2% | |
NVDA | Nvidia | 134.67 | +4.12% | +12.4% | |
SPY | S&P 500 ETF | 542.31 | +0.63% | +1.8% | |
SOL | Solana | 182.40 | +5.61% | +18.3% |
agent_log · stdout
RUNNING
Recent Agent Runs
| Agent | Triggered By | Status | Tokens | Duration | Time |
|---|---|---|---|---|---|
| monitor_agent | BTC Alert #001 | ● DONE | — | 142ms | 14:32:09 |
| notify_agent | BTC Alert #001 | ● DONE | — | 381ms | 14:32:10 |
| research_agent | Goal: BTC Q1 Outlook | ● DONE | 1,842 | 4.2s | 14:30:55 |
| memory_agent | conv_8b2c extract | ● DONE | 412 | 1.1s | 14:28:33 |
| monitor_agent | NVDA Spike Alert | ⚡ TRIGGERED | — | 98ms | 14:15:04 |
Portfolio Tracker
My Holdings
Simulated portfolio · updated in real-time by Monitor Agent
Total Value
$124,840
↑ +$3,241 today (+2.67%)
Day P&L
+$3,241
Best: NVDA +$892
Unrealized Gain
+$18,420
+17.3% all time
Portfolio Beta
1.24
High correlation to BTC
Allocation
| Asset | Qty | Avg Cost | Price | Value | P&L | % |
|---|
BTC Price Chart (7d)
Autonomous Agents
Eight agents. One mission.
Each agent is an Inngest function powered by Claude claude-opus-4-6. They trigger on events, chain steps, and coordinate via typed events.
Research Agent
Manual / Scheduled
Searches the web, reads URLs, returns a structured markdown report with cited sources.
IDLE
Runs 18
Tokens 32k
Analysis Agent
Post data collection
Queries DB, compares datasets, generates insights with confidence scores.
IDLE
Runs 7
Tokens 14k
Monitor Agent
Cron every 5 min
Watches price thresholds, volume spikes, metric deviations — 24/7 without LLM calls.
● LIVE
Runs 186
Avg 98ms
Notify Agent
Event: alert triggered
Formats and delivers HTML email notifications. Throttled to 10/hr per user.
IDLE
Sent 12
Avg 380ms
Chat Agent
User message in UI
Answers with full context: watchlist, goals, memory, reports. Not generic AI.
IDLE
Msgs 47
Tokens 28k
Summary Agent
Cron: daily / weekly
Aggregates all agent activity and sends a personalized executive briefing.
SCHED
Reports 4
Next Mon 8am
Memory Agent
After each interaction
Extracts persistent facts from conversations. Debounced 30s. Injects into all agents.
IDLE
Facts 23
Runs 31
Goal Agent
New goal created
Breaks down user goals into executable sub-tasks and assigns specialized agents.
IDLE
Goals 5
Steps 18
Event-Driven Communication Flow
👤
User
Sets a goal
──▶
🎯
Goal Agent
Plans steps
──▶
🔍
Research
Gathers data
──▶
📊
Analysis
Finds insights
──▶
🧠
Memory
Learns facts
──▶
✉️
Notify
Emails result
Goal Tracking
Active Goals
Goals are broken into sub-steps by the Goal Agent and assigned to specialized agents.
Monitor BTC breakout above $70k
Created Feb 20 · monitor_agent · runs every 5 min · last run 2 min ago
Ongoing
Research AI chip sector Q1 2026 outlook
Created Feb 22 · 3 agents · Research 65% complete
65%
Weekly portfolio summary every Monday 8am
Created Feb 18 · summary_agent · next run Mon Feb 27
Scheduled
Track ETH/BTC ratio daily
Created Feb 10 · Paused manually by user
Paused
Research Solana DeFi ecosystem Jan 2026
Completed Feb 12 · Report saved · 3,240 tokens used
Done ✓
Monitor Agent
Alert Conditions
The Monitor Agent checks these every 5 minutes via Inngest cron. Triggered alerts fire the Notify Agent which sends an email.
BTC Breakout Alert
BTC/USD price > $65,000 · Triggered Feb 25 at 14:32:02 · Email sent ✓
NVDA Daily Spike
NVDA 24h change > +4% · Triggered Feb 25 at 14:15:04 · Email sent ✓
ETH Dip Alert
ETH/USD price < $3,000 · Checking every 5 min · Last checked 2 min ago
SPY Volume Surge
SPY 1h volume > 2× average · Checking every 5 min
SOL Moonshot
SOL/USD price > $250 · Paused manually
Chat Agent
Ask anything.
Full context: watchlist, goals, alerts, 23 memory facts, and 3 research reports.
Conversations
BTC Q1 outlook analysis
Today 14:30
Solana DeFi ecosystem
Feb 22
Portfolio rebalancing
Feb 20
AI chip sector deep dive
Feb 18
Chat Agent
claude-opus-4-6
🧠 23 memories
3 goals · 5 alerts
🔍 Research
📊 Analyze
🚨 Set Alert
📝 Summarize
Research Agent Output
Reports
Saved outputs from Research Agent and Summary Agent runs.
BTC Q1 2026 Price Outlook & Resistance Analysis
ResearchBitcoin is approaching the critical $70,000 resistance level that has historically acted as a major psychological barrier. Current on-chain metrics show accumulation patterns consistent with previous pre-breakout phases. Realized price for short-term holders is at $58,420, suggesting significant unrealized profit that could trigger selling pressure near resistance...
Solana DeFi Ecosystem — January 2026 Deep Dive
ResearchSolana's DeFi ecosystem has surged to $8.2B TVL in Q1 2026, up 34% QoQ. Jupiter Exchange dominates swap volume at 67% market share. Jito's liquid staking and restaking protocol has accumulated $2.1B in assets. Key risk: concentrated validator set and potential MEV centralization concerns...
Weekly Portfolio Summary — Feb 18, 2026
SummaryThis week your portfolio gained +6.2% ($7,280). BTC led gains at +8.1%, NVDA contributed the highest absolute gain at +$2,840. 3 alerts were triggered (2 BTC, 1 NVDA). Memory Agent extracted 4 new user preferences. Research Agent completed 2 reports. No alerts were paused or failed...
Configuration
Settings
API keys, agent behavior, notification preferences, and profile.
API Keys
Notifications
Agent Config
Profile
Usage & Billing
API Keys
Anthropic API Key
Used by all agents for Claude LLM calls
● Connected
Inngest Event Key
Required for agent orchestration and cron jobs
● Connected
Resend API Key
Used by Notify Agent for email delivery
● Connected
Database URL
PostgreSQL via Neon — agent state, memory, history
● Connected
Notifications
Email Notifications
Receive emails from the Notify Agent
Alert Triggered Emails
Instant email when Monitor Agent fires an alert
Weekly Summary Email
Summary Agent report every Monday at 8am
Research Report Emails
Email when a Research Agent run completes
In-App Notifications
Show notification bell for all agent events
Notification Email
Address for all Notify Agent emails
Agent Configuration
Monitor Interval
How often Monitor Agent checks alerts
Default LLM Model
Claude model for all agent runs
Max Tokens per Run
Per-agent run token limit
Memory Agent
Extract facts after each chat conversation
Research Tool: Web Search
Allow Research Agent to search the web
Max Email / Hour
Notify Agent throttle limit
Profile
Display Name
Email
Timezone
Risk Profile
Influences agent recommendations
Usage & Billing
Tokens This Month
84,320
Estimated Cost
Based on claude-opus-4-6 pricing
$0.42
Agent Runs This Month
247
Emails Sent
12
Memory Facts Stored
23
Documentation
How it works
Architecture, agent patterns, and implementation guide.
Getting Started
Overview
Quick Start
Agents
Research Agent
Monitor Agent
Memory Agent
Architecture
Inngest & Events
Database Schema
Market Matrix Overview
Market Matrix is a full-stack platform where AI agents are the core architecture. Every module is designed so an agent feeds it, processes it, or automates it.
Core principle: "The user defines goals. The agents do the work."
Tech Stack
| Layer | Technology | Purpose |
|---|---|---|
| Framework | Next.js 15 | App Router, Server Actions, API Routes |
| AI / LLM | Anthropic Claude | Powers all 8 agents via tool use |
| Orchestration | Inngest | Background jobs, crons, event fan-out |
| Database | PostgreSQL + Drizzle | Agent state, memory, history |
| Auth | Better Auth | Sessions, OAuth, middleware |
| Resend | Notify Agent email delivery |
Quick Start
git clone https://github.com/yourusername/market-matrix.git
cd market-matrix && npm install
cp .env.example .env.local
ANTHROPIC_API_KEY=sk-ant-...
INNGEST_EVENT_KEY=...
DATABASE_URL=postgresql://...
RESEND_API_KEY=re_...
BETTER_AUTH_SECRET=...
# Terminal 1
npm run dev
# Terminal 2 — Inngest dev server
npx inngest-cli@latest dev
Note: App at localhost:3000 · Inngest dashboard at localhost:8288
Research Agent
Triggered by agent/research.requested. Searches the web, reads URLs, returns a structured markdown report.
export const researchAgent = inngest.createFunction(
{ id: 'research-agent', retries: 3 },
{ event: 'agent/research.requested' },
async ({ event, step }) => {
const runId = await step.run('create-run', ...);
const result = await step.run('run-agent', async () => {
// Agentic loop: web_search + read_url tools
});
await step.run('save-report', ...);
await step.sendEvent('notify', { name: 'agent/notify', data: {...} });
}
);
Monitor Agent
Runs every 5 minutes via Inngest cron. Evaluates alert conditions without LLM — pure logic, extremely fast.
inngest.createFunction(
{ id: 'monitor-agent' },
[{ event: 'agent/monitor.check' }, { cron: '*/5 * * * *' }],
async ({ step }) => {
const alerts = await step.run('fetch-alerts', ...);
for (const alert of alerts) {
const hit = await step.run(`check-${alert.id}`,
() => evaluateCondition(alert)
);
if (hit) await step.sendEvent('notify', {...});
}
}
);
Memory Agent
Extracts persistent user facts after each conversation. Debounced 30s. Injected into all other agents' system prompts.
// In any agent:
const memories = await getUserMemoryContext(userId);
// → "User prefers bullet summaries.
// Focused on crypto + AI stocks.
// Risk profile: moderate."
Inngest & Events
| Event | Fired by | Consumed by |
|---|---|---|
| agent/research.requested | UI / Goal Agent | Research Agent |
| agent/monitor.check | Cron | Monitor Agent |
| agent/notify | Monitor, Research | Notify Agent |
| agent/memory.extract | Chat Agent | Memory Agent |
| agent/goal.created | UI | Goal Agent |
Database Schema
goals: { id, userId, title, status, config }
agentRuns: { id, agentId, goalId, status,
input, output, tokensUsed, durationMs }
agentMemory:{ id, userId, fact, confidence }
alerts: { id, userId, name, condition,
status, triggered, triggeredAt }
messages: { id, conversationId, role, content }