Core_Documentation

Flintex docs for the live agent market OS.

This is the product reference for Flintex: three autonomous agents, one shared capital pool, a deployed PredictionMarket contract on Arc testnet, and Circle rails for wallet, yield, and cross-chain money movement.

Core documentation

Click a document to jump into the Flintex reference
01

Introduction

Flintex is a USDC-native agent market OS. Instead of asking a user to manually rebalance a portfolio, research macro events, create prediction markets, and size bets, Flintex coordinates three specialized AI agents against one shared pool of capital and a live onchain market contract.

The current product is built around PortfolioAgent, MarketAgent, and BetAgent. PortfolioAgent manages the defensive baseline, MarketAgent turns the world into tradeable questions, and BetAgent searches for probability mispricing with real contract reads and wallet-confirmed execution.

02

The problem

Markets move faster than most users can react. Capital gets split across dashboards, chains, exchanges, bots, and idle wallets. Even when a user has a good idea, the operational steps create delay: bridge, swap, fund, create, bet, hedge, and review.

  • Prediction markets still require manual discovery, question writing, liquidity setup, and resolution discipline.
  • Portfolio tools usually stop at recommendations instead of coordinating with live opportunities.
  • Betting tools often ignore total portfolio risk and over-allocate to isolated edges.
  • Cross-chain stablecoin movement adds friction when the execution venue changes.
03

Architecture

Flintex is structured as a control plane for autonomous financial agents. The UI presents live dashboards and decision logs, the backend routes FreeModel requests, and the settlement layer turns approved decisions into USDC actions on the deployed PredictionMarket contract.

Application LayerNext.js app surfaces the home page, PortfolioAgent, MarketAgent, BetAgent, and this documentation hub.
Agent LayerAI services score portfolio state, macro events, and prediction market edges before proposing actions.
Capital LayerOne user-owned USDC pool is segmented by policy rather than fragmented across separate bots.
Settlement LayerArc testnet executes low-cost transactions with USDC as the native economic unit.
Circle LayerCircle Wallets, USDC, EURC, USYC, Gateway, CCTP, Paymaster, and App Kit form the money movement stack.
Audit LayerEvery agent decision should produce a reasoning record, allocation record, and transaction reference.
04

Core concepts

Flintex is built around capital competition. Each agent has a job, but no agent owns money permanently. The allocator can direct more capital to defense, market creation, or betting depending on opportunity quality and risk state.

  • Shared pool: USDC is treated as one portfolio-level resource.
  • Agent score: each agent returns a confidence, expected value, urgency, and risk signal.
  • Policy gate: user-approved limits decide whether a proposed action can execute.
  • Decision log: every agent cycle must be explainable in human-readable language.
  • Settlement record: execution should map back to a transaction, market, or position.
05

Flintex lifecycle

A Flintex cycle starts with user capital and ends with a reviewed decision. The same loop repeats continuously, which lets agents react to changing conditions without losing the portfolio-level view.

  • Connect a wallet on Arc testnet or provision an embedded wallet.
  • Fund the shared pool with USDC, EURC, or supported Circle assets.
  • PortfolioAgent reads balances and sets the baseline risk posture.
  • MarketAgent scans macro and geopolitical signals for resolvable market ideas.
  • BetAgent compares market odds against model probabilities and Kelly sizing.
  • The allocator assigns pool capacity to the best risk-adjusted opportunity.
  • Execution settles on Arc and writes the decision trail back to the Flintex UI.
  • The next cycle re-scores the world and either holds, hedges, rebalances, or exits.
06

Agent identity

Flintex treats agents as named operators with narrow mandates. That separation matters because a portfolio defense action, a market creation action, and a bet sizing action carry different risk and require different permissions.

  • PortfolioAgent: can inspect balances, classify risk regime, and recommend USYC or asset allocation changes.
  • MarketAgent: can convert news into market drafts and submit createMarket onchain after wallet approval.
  • BetAgent: can compare model odds to real contract odds, apply Kelly sizing, and submit betYes or betNo after wallet approval.
  • Master allocator: compares all agent scores and applies user policy before capital moves.
07

Smart contracts

The deployed PredictionMarket contract now powers market creation, YES/NO bets, resolution, claims, and position reads on Arc testnet.

  • PredictionMarket: creates markets, tracks YES and NO positions, resolves outcomes, and pays winners.
  • Read surface: marketCount, markets(marketId), getPosition, quotePayout, and quoteBetPayout drive the Markets and Bets pages.
  • Wallet flow: users approve USDC first, then call createMarket, betYes, betNo, or claimPayout from the connected wallet.
  • Audit trail: every market, bet, and payout emits onchain events that can be surfaced in the UI or docs later.
08

REST API

Flintex currently exposes backend routes for live agent analysis. These routes are intentionally small and readable so each agent can evolve without hiding product behavior behind a black box.

POST /api/portfolio-agent body: { "address": "0x...", "portfolio": [{ "asset": "USDC", "amount": "100.0000", "value": "$100.00" }] } returns: { "regime": "RISK-ON", "usycAllocation": 15, "reasoning": ["..."] } POST /api/market-agent body: {} returns: [{ "title": "...", "description": "...", "resolutionCriteria": "...", "deadline": "YYYY-MM-DD", "initialLiquidity": "5 USDC", "aiProbability": 58, "category": "Macro", "triggeredByNews": "..." }] POST /api/bet-agent body: { "openMarkets": [{ "marketId": "1", "title": "...", "crowdOdds": 42.1 }] } returns: { "opportunities": [{ "marketId": "1", "title": "...", "aiProbability": 58.2, "crowdOdds": 42.1, "disagreementScore": 16.1, "kellySize": 0.08, "expectedValue": 0.12, "isHighAlpha": true, "recommendation": "HIGH_ALPHA_BET_YES" }] }

The live agent services use FreeModel at https://cc.freemodel.dev with model claude-haiku-4-5-20251001.

09

SDK guide

The Flintex SDK will let developers add new agents without rewriting wallet, policy, accounting, or settlement logic. A valid agent should declare its role, inputs, scoring method, permissions, and execution adapter.

  • Implement score(context) to return expected value, confidence, urgency, and risk.
  • Implement explain(decision) so users can review the model reasoning.
  • Declare supported assets, market types, max position size, and required data feeds.
  • Use the allocator client to request capital instead of pulling directly from the wallet.
  • Return transaction intents that can be checked by policy gates before execution.
10

Arc OSS rationale

Flintex should be chosen for Arc OSS because it turns Arc from infrastructure examples into a reusable agentic finance application pattern. Arc already gives builders the core primitives for stablecoin-native finance: USDC gas, predictable fees, deterministic sub-second settlement, EVM compatibility, Circle-stack integration, CCTP, Gateway, wallets, and smart contract tooling. Flintex builds on those primitives with an end-to-end product loop where AI agents reason about markets, recommend portfolio allocation, create prediction market drafts, size positions, and trigger wallet-approved USDC actions on Arc testnet.

The reusable primitives exposed by Flintex are useful beyond this project:

  • A USDC-native PredictionMarket contract on Arc testnet with market creation, YES/NO positions, payout quoting, claims, open-position withdrawal, and an authorized AI resolver role.
  • Agent JSON interfaces other builders can reuse: PortfolioAgent returns market regime, USYC allocation, and reasoning; MarketAgent returns binary market drafts with resolution criteria, deadline, liquidity, category, and AI probability; BetAgent returns true probability, crowd odds, Kelly sizing, expected value, high-alpha flags, and a recommendation.
  • A resolver flow where the market creator cannot unilaterally choose the result. Closed markets are resolved by an authorized AI resolver wallet, separating market creation from settlement.
  • A wallet-approved execution model where agents generate recommendations or transaction intents, but users retain final approval through their wallet before capital moves.
  • A correction and override layer for real-world market mistakes such as typos, clarified criteria, corrected deadlines, or updated resolution context without redeploying the contract.
  • Deployment and seeding scripts that make it easy for another Arc builder to deploy the contract and create their first test market.

Compared with the existing Arc and Circle builder repos, Flintex is less of a single-purpose sample and more of a composable operating layer for autonomous financial agents. It shows how Arc's stablecoin-native settlement can support agentic economic activity: agents do the reasoning, users keep wallet-level control, and Arc provides fast, predictable USDC settlement.

Other builders could fork Flintex to build agent-run prediction markets, treasury agents, betting agents, portfolio allocation agents, resolution agents, or any application where AI produces financial decisions that must pass user or policy gates before settling onchain. That makes Flintex a strong Arc OSS candidate because it demonstrates a complete, reusable pattern for agentic finance on Arc, not just one isolated integration.

References: Arc, Arc docs, circlefin/arc-node, and circlefin/skills.

11

FAQ

Is Flintex a wallet, an exchange, or a bot?Flintex is an agent coordination layer. The user keeps a wallet, the agents produce decisions, and Arc settles the resulting USDC actions.
Why one capital pool?A single pool lets Flintex compare portfolio rebalancing, market creation, and betting opportunities using the same risk budget instead of trapping money inside separate tools.
Why Arc and Circle?Flintex needs fast settlement, stable fees, USDC-native accounting, and wallet infrastructure that agents can use without forcing users into gas-token complexity.
Are the agents fully autonomous today?The current app demonstrates wallet-gated agent analysis and live contract workflows. Users still approve wallet actions before createMarket, betYes, betNo, or claimPayout execute.
12

Glossary

Capital PoolThe user-owned pool of USDC and supported Circle assets that all Flintex agents compete to use.
PortfolioAgentThe agent that reads balances, detects market regime, and recommends rebalancing or USYC allocation.
MarketAgentThe agent that turns macro and geopolitical events into specific prediction market drafts.
BetAgentThe agent that finds mispriced markets, estimates true probability, and sizes positions using Kelly discipline.
My BetsThe compact tracker on the Bets page that shows connected-wallet positions and their Open, Closed, Won, Lost, or Claimed status.
Risk GateA policy rule that limits exposure, drawdown, market type, or execution authority before an agent can spend capital.
Resolution CriteriaThe exact rule that determines whether a Flintex prediction market settles YES or NO.
Decision LogA human-readable record of why an agent recommended or executed an action.
13

Roadmap

Flintex should grow from a focused hackathon product into a production-grade agent market OS. The roadmap is staged around the hardest problems first: user trust, contract safety, controlled autonomy, and capital routing.

Phase 1Q2 2026
Arc testnet command center
  • Keep wallet-gated dashboards for PortfolioAgent, MarketAgent, and BetAgent aligned with the deployed contract.
  • Expand durable decision logs so each agent run and transaction can be reviewed after refresh.
  • Keep the documentation system current as the canonical Flintex reference.
Phase 2Q3 2026
Onchain allocation and contract hardening
  • Deploy capital pool accounting contracts with per-agent budget limits.
  • Harden the deployed PredictionMarket flow with stronger testing, indexing, and admin safety controls.
  • Introduce policy controls for max drawdown, per-market exposure, and emergency pause.
Phase 3Q4 2026
Autonomous execution and agent reputation
  • Move from advisory actions to signed agent execution behind user-approved policies.
  • Score agents by realized PnL, calibration accuracy, drawdown control, and resolution quality.
  • Open the first external agent integration path through a Flintex SDK.
Phase 4H1 2027
Cross-chain liquidity and institutional controls
  • Use CCTP and Gateway for cross-chain USDC routing into Arc opportunities.
  • Add account roles, treasury reporting, exportable audit trails, and compliance review queues.
  • Support strategy vaults where users can opt into agent baskets with different risk profiles.
Phase 5H2 2027
Flintex agent market OS
  • Launch a marketplace where vetted agents compete for capital from the shared pool.
  • Enable composable agent teams for macro, sports, crypto, FX, and event-driven markets.
  • Make Flintex the operating layer for autonomous USDC-native market strategies.
Launch the Flintex appMove from the docs into the three live agent dashboards.
Open PortfolioAgent