Repository avatar
Other Tools
v0.3.0
active

straits-osint-exposure-desk

io.github.jalexanderrein/straits-osint-exposure-desk

Assess how a world event reaches every fund holding: PESTEL agents, exposure index, PDF report.

Documentation

straits.ai OSINT Exposure Desk

Analyst department in your pocket: see how a world event reaches every holding in a fund.

Live demo: https://straits-ai-financialdisruptionanalysis-osint.pplx.app

Type a scenario and agents trace it through each holding, citing the filing or dataset behind every step. A reviewer challenges the result, and the app keeps confirmed effects separate from possible ones. Anything the agents could not confirm stays marked as unresolved.

The demo replays a saved run on Goldman Sachs' Future Tech Leaders Equity ETF (GTEK), using the scenario "China strikes Taiwan; no Taiwan-made chips for five years".

Views

  • Run, Chain, Animate: the agent run, a causal-chain Sankey from event to holdings, and an animated globe replay.
  • Holdings, What-if, Brief: holding detail with effect calls and confidence, scenario toggles, and the three-part report.
  • Analyst: a Financial Analyst agent with accounting, treasury, trading and forecasting subagents (Altman Z, cash conversion cycle, Amihud illiquidity), with formula sources. Advisory only.
  • Treasury desk (#/treasury/scenario): stack several shocks in one scenario across up to 10 funds, with structured analytic techniques and confidence language.

Run locally

npm ci
npm run dev        # development server
npm run build      # static site in dist/public

dist/public is a static site with hash routing and can go on any static host. See PUBLISHING.md for the web, installable mobile web app and iOS (Capacitor) paths. The iOS project is in ios/, and .github/workflows/ios-testflight.yml builds it on a GitHub-hosted Mac.

Use it from Claude and other agents

The analysis engine ships in this repo as a Claude plugin and an MCP tool server, so Claude Code, Claude Desktop, Cursor and other MCP clients can call it.

Claude Code plugin

/plugin marketplace add jalexanderrein/straits-ai-osint-exposure-desk
/plugin install assess-fund-exposure@straits-ai

The plugin adds the assess-fund-exposure skill, the /assess-fund-exposure:assess <fund> <scenario> command and the exposure-desk MCP server. It needs Python 3.9+; PDF reports also need pip install reportlab pypdf.

Gemini CLI extension

gemini extensions install https://github.com/jalexanderrein/straits-ai-osint-exposure-desk

This adds the exposure-desk MCP server, the assess-fund-exposure skill and the /assess <fund> <scenario> command.

Any MCP client (Claude Desktop, Cursor and others)

Install from PyPI with uvx (no clone needed). Add this to the client's MCP config (for Claude Desktop, claude_desktop_config.json):

{
  "mcpServers": {
    "exposure-desk": {
      "command": "uvx",
      "args": ["straits-osint-exposure-desk==0.3.0"]
    }
  }
}

The server is also listed in the official MCP Registry as io.github.jalexanderrein/straits-osint-exposure-desk. Or clone the repo and point the client at the script:

{
  "mcpServers": {
    "exposure-desk": {
      "command": "python3",
      "args": ["/path/to/straits-ai-osint-exposure-desk/plugins/assess-fund-exposure/mcp/server.py"]
    }
  }
}

From a clone, the server has no dependencies beyond the Python standard library. Run python3 plugins/assess-fund-exposure/mcp/server.py --self-check to test it without a client.

ToolWhat it does
start_assessment(fund, scenario)Run context and the ordered 20-role PESTEL workflow
get_role_prompt(role)Approved instructions for one role (prompt pack v0.3)
check_responseCheck one role response against its JSON contract
validate_trace(final)Audit a whole run: handoffs, routing, recomputed formulas, review state
calculate_metricsExposure index and grade, breadth, exposed NAV, direction, ranked drivers
render_report(output_pdf)Three-part PDF: Executive Summary, Management Report, Technical Report
list_examplesThe bundled GTEK and QQQ runs with their validated results
get_fixture, self_testSynthetic replays and known-answer checks

The calling model does the research and the role calls; the server provides the prompts, contracts, deterministic calculator, validator and report renderer.

Command line

cd plugins/assess-fund-exposure/skills/assess-fund-exposure
python3 scripts/pestel.py self-test
python3 scripts/pestel.py calculate ../../../../examples/qqq-ai-chip-export-ban.trace.json

Data and disclaimer

The bundled data is a saved analysis from public filings, fund holdings and market data, with sources linked in the app. It is a research demonstration, not investment advice. Holdings and prices are as of the dates shown in the app.

License

MIT. See LICENSE.

PYPI
straits-osint-exposure-desk
Install Command
pip install straits-osint-exposure-desk