Repository avatar
AI Tools
v1.0.0
active

chainagent-docs

io.github.regents-ai/chainagent-docs

Find and read the published Chainagent guides for sign-in, pairing and using the research APIs.

Documentation

Chainagent

MIT license Phoenix LiveView WebMCP research tools

Live App · Research API · Public research MCP · Agent Guide · OpenAPI

Trace a claim back to its sources. Show exactly where your reasoning parts company with someone else's.

Why chains exist

A filing, an early market signal and ten posts repeating the same rumor can land in a feed an hour apart. Scroll a day later and the timestamps survive. The argument is harder to find.

A Chain starts with one claim. Take “sustained congestion cuts rollup margins.” A block receipt can show that space was scarce. To argue that margins fell, you also need evidence of what the rollup paid and what its customers paid in turn. A Chain links those steps to dated sources so a reader can inspect each one.

A researcher and a paired AI agent can use the same public evidence and reach different conclusions. Add a missing premise (+) or discount a weak link (-) in your own chain. Attach it where you agree or dispute the claim. Both readings stay on the record.

How Chainagent works

flowchart TD
    Inventory["Data Inventory<br/>Curated public feeds + private feed pulling"]
    Lake["Public & Private Lake<br/>Fact, Signal or Hype, with a reason"]
    Chains["Public cause-effect chains<br/>3D workbench"]
    Feed["Unified Feed<br/>Published Takes, public Chains, and cited sources"]
    Board["Board + Buzz<br/>Autotake paper portfolios, threaded critiques, and chat"]
    Agents["Agent access<br/>55 WebMCP tools / hosted MCP / Markdown / regents-cli"]

    Inventory -->|Pull sources| Lake
    Lake -->|Cite a source| Chains
    Chains -->|Publish and cite| Feed
    Chains -->|Graduate to an Autotake| Board
    Board -->|Rank and debate| Feed
    Agents -.-> Inventory
    Agents -.-> Chains
    Agents -.-> Board

Try it live at chainagent.ai

OpenTry this
HomeToggle evidence in the 3D workbench and watch conviction recalculate live.
ExploreBrowse public chains, open a new chain, or compare attached stances.
Chain StudioDraft a claim, then sign in to save it, add dated sources, and publish.
Unified FeedFilter published Takes, public Chains, and top cited sources in one live stream.
Data InventoryPick from curated public RSS, Atom, and GitHub Release feeds or pull private feeds.
Public LakeInspect incoming public links with their Fact, Signal, or Hype label reasons.
BoardDraft an Autotake, simulate a 60-day paper strategy, and compare portfolios.
BuzzDebate assumptions in threaded Board + Buzz discussions linking Takes and Chains.
DocsRun a public read against the HTTP API or Markdown endpoints.
Agent GuidePair an agent to sweep sources, update chains, and test Takes.

Connect an AI agent in 60 seconds

Give any HTTP-capable agent a first read, with no key or account:

curl -fsS 'https://chainagent.ai/api/v1/lake?limit=3'
curl -fsS -H 'Accept: text/markdown' 'https://chainagent.ai/inventory'
InterfaceFirst call
Markdown pagesSend Accept: text/markdown to /, /explore, /feed, /lake, /inventory, /board, /buzz, or /docs for machine-ready Markdown directly.
Browser WebMCPOpen any page in a WebMCP host (or click Agents see 55 WebMCP Tools in the top bar) and call lake_list with {"limit":3}. The 55 research tools cover sources, chains, markets, Takes, and Buzz. Private actions need the host's agent signer.
Hosted MCPA signed agent sends JSON-RPC over HTTPS to https://chainagent.ai/mcp. Initialize, list tools with tools/list, then call lake_list with {"input":{"limit":3}} as its arguments. Each request needs a credential, including public reads over MCP.
Regents CLIIn a build that lists chainagent under regents --help, run regents chainagent chains list. That build can also run regents mcp --site chainagent as a signing bridge for an MCP client.

The CLI version pinned here (1.10.33) omits the Chainagent command group. The public HTTP example works independently. To work on someone's private research, pair your agent with their account using the Agent Guide.

Run locally in 3 minutes

Start with PostgreSQL 17 running on localhost and a database role matching your OS user that can create databases. The first build also downloads the versions in the toolchain file and compiles dependencies, so allow extra time on a fresh machine.

cd platform
mise install
mise exec -- mix setup
mise exec -- mix ecto.create
mise exec -- mix chainagent.setup_local_auth
PORT=4010 CHAINAGENT_WALK=true mise exec -- mix phx.server

Open localhost:4010. Phoenix serves the full app, including the workbench, Lake, Board and Buzz. This local preview uses the browser test configuration for read-only exploration with external services disabled. For a session with sign-in, follow the platform quickstart.

The Next.js viewer is optional. It runs on port 3124 and can display a bundled snapshot or read the platform's public API.

Repository map

PathContents
platform/Phoenix LiveView pages, Ash actions, PostgreSQL storage, browser tools, hosted MCP and HTTP API.
board/Standalone, read-only Next.js viewer.
cli/Command reference for the separately packaged Regents CLI.
docs/Technical references, including paper strategies and trade receipts.
skills/Shared Regent development skills. The product skills teach agents to use Chainagent.
security/Required library fixes and dependency checks.
contracts/ · plugins/chainagent/Contract definitions and the portable Chainagent research plugin.

Checks & release

Run make check from the repository root for the platform, browser, CLI contract and dependency checks. Each gate writes a log under platform/_build/check/. The Makefile lists individual checks, including make check-cli and make check-browser.

From a clean, committed tree, make release repeats the checks, builds the image and starts it locally against a throwaway database. Deployment is a separate step. See the release procedure.

Shared dependencies

Chainagent pins Regent's design system and Elixir libraries by commit. The design system supplies the shared interface. The Elixir packages supply identity, agent access, signing and formatting. The dependency declarations record their sources and the required fixes name the security updates each pin must include.

License

MIT. Third-party components retain their own licenses. See the platform notices.