explaingit

monarchjuno/tradingcodex

Analysis updated 2026-05-18

35PythonAudience · developerComplexity · 4/5Setup · moderate

TLDR

A framework that gives OpenAI's Codex agent persistent memory and approval controls for investment research workflows.

Mindmap

mindmap
  root((TradingCodex))
    What it does
      Persistent investment research
      Multi agent role handoff
      Human approval gating
    Tech stack
      Python
      Django
      Codex agent layer
    Use cases
      Stock research workflow
      Portfolio dashboard
      Approval controlled orders
    Audience
      Developers
      Codex users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Coordinate specialist AI agents that research, value, and assess risk for a stock before compiling a report.

USE CASE 2

Review pending trade approvals and research history through a local web dashboard.

USE CASE 3

Keep investment research notes and portfolio state persistent across chat sessions.

What is it built with?

PythonDjango

How does it compare?

monarchjuno/tradingcodexbytedance-seed/cola-dlmchris0214/mikumikuphysics
Stars353535
LanguagePythonPythonPython
Setup difficultymoderatehardmoderate
Complexity4/54/53/5
Audiencedeveloperresearcherdesigner

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires the Codex agent environment and generates a Django-backed workspace, no live broker connections are included.

In plain English

TradingCodex is a framework for doing investment research and portfolio work through OpenAI's Codex coding agent. The core problem it addresses is that complex investment workflows done through chat tend to disappear when the conversation ends. This project gives Codex a durable backing system: research notes saved as files, a local database that tracks orders and approvals, a web dashboard for reviewing state, and a controlled boundary layer that gates any action that could actually move money. The system is organized around roles. A head manager agent receives a request like "analyze Apple with public equity research and portfolio review" and then divides that work among specialist agents covering research, valuation, risk, and portfolio fit. Each specialist produces a bounded artifact, a markdown document with sources and timestamps, which the next role reads rather than redoing the same work. This handoff model is designed to avoid the situation where every agent independently re-derives the same context. All the parts that touch state, such as tracking whether an order is pending approval or what the current portfolio looks like, run through a local Django web application. That application also exposes a browser dashboard at a local port where you can browse agents, research documents, order history, and policy settings without digging through chat transcripts. The same logic that the dashboard calls is what the command-line tools and the AI agent layer call, so there are no separate execution paths that might diverge. The project is explicit that it is not an autonomous trading bot. There are no live broker connections in the current release. Order submission goes through a paper or stub path, meaning the system records what an order would look like and requires a human approval step before anything real could happen. The execution boundary, implemented as a set of typed tools that agents can call, enforces role permissions and policy checks on every action. Installing it generates a new Codex workspace folder on your machine with all the config, role prompts, and wrapper scripts pre-populated. A doctor command checks that everything is wired correctly after setup. The README is detailed and aimed at developers comfortable with Python tools and the Codex agent environment.

Copy-paste prompts

Prompt 1
Set up TradingCodex and walk me through analyzing a stock with the specialist agent roles.
Prompt 2
Explain how TradingCodex's approval boundary prevents an agent from placing a real trade.
Prompt 3
Show me how the TradingCodex dashboard tracks research documents and order history.
Prompt 4
Help me extend TradingCodex with a new specialist agent role.

Frequently asked questions

What is tradingcodex?

A framework that gives OpenAI's Codex agent persistent memory and approval controls for investment research workflows.

What language is tradingcodex written in?

Mainly Python. The stack also includes Python, Django.

How hard is tradingcodex to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is tradingcodex for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.