An agentic trading system for personal use that can invest on behalf of the user in user-approved markets and tickers.
Build a full end-to-end trading workflow where an autonomous agent can:
- Understand user investment preferences and constraints.
- Restrict execution to an explicit allowlist of markets and tickers.
- Generate and execute investment decisions on the user's behalf.
- Keep an auditable decision and execution trail for every trade.
This repository is the starting point for implementing:
- Market scope control: only configured markets are tradable.
- Ticker scope control: only configured tickers are tradable.
- Agentic execution: autonomous decision + order execution loop.
- Personal-use safety rails: position limits, risk checks, and logging.
Recommended multi-agent layout:
- Orchestrator agent: coordinates agent workflow and produces final trade intents.
- Market specialist agent: analyzes allowed markets and macro/market-structure signals.
- Ticker specialist agent: analyzes allowed tickers and ranks opportunities.
- Business analyst agent: gathers business context (including website/news crawling with robots.txt compliance and rate limits) and produces structured qualitative signals.
- Risk agent: validates limits (position sizing, exposure, drawdown) and blocks non-compliant intents.
- Ordering agent: converts approved intents into broker orders and manages lifecycle events (submit/cancel/replace).
- Audit/logging agent: stores full decision traces and execution records.
Use least-privilege permissions per agent:
- Business analyst agent: Read on web/external data sources with zero external-write permissions; Write only to internal research artifacts.
- Market specialist agent: Read market data; Write market-scoring outputs.
- Ticker specialist agent: Read ticker fundamentals/price data; Write ticker rankings and signal outputs.
- Risk agent: Read portfolio, limits, and proposed orders; Write risk decisions (approve/reject/resize).
- Ordering agent: Read approved intents + account/execution state; Write broker order actions only.
- Orchestrator agent: Read/Write internal workflow state; no direct broker-write permissions.
- Audit/logging agent: Read all internal decision artifacts; Write immutable audit trails.
Product discovery starts through the structured User Feedback Issue Form and
is managed by the compiled GitHub Agentic Workflows in
.github/workflows/product-discovery.lock.yml and
.github/workflows/product-refinement.lock.yml.
- Create a User Feedback issue.
- The
user-feedbacklabel starts the workflow automatically. - The workflow coordinates the Product Owner, Business Analyst, and Tech Lead custom agents.
- The agents create a draft Product Request labeled
needs-human-review. - Humans add clarifications as comments on the Product Request, then post
/refineto have the agents revise the existing request from those comments. - Humans approve product scope, business rules, and technical feasibility before implementation planning starts.
Bug issues remain outside this automatic product-discovery path. Agent
definitions live in .github/agents/ and their reusable methods live in
.github/skills/. Product Requests are created only by the workflow; no public
Product Request form or blank Issue entry is available.
Implementation starts manually from an approved Product Request:
- In GitHub, assign an Issue carrying the
product-requestlabel to the engineering-orchestrator custom agent. - The orchestrator checks that product decisions are no longer blocking, coordinates the Tech Lead, Senior Software Engineer, QA Engineer, Software Security Engineer, and Platform Engineer, and creates one dedicated branch and draft pull request.
- The engineering team implements the request, adds and executes tests, assesses and mitigates security risks, and validates packaging and required Windows and Linux behavior.
- Reviewers request further work by mentioning
@copiloton the pull request. The same orchestrator continues on the existing branch, delegates the affected work, reruns the relevant validations, and updates the pull request. - Final validation, approval, marking the pull request ready, and merging remain manual human responsibilities.
The Product Request /refine command remains dedicated to product refinement.
Engineering refinement uses the native Copilot pull-request session and does
not require another Agentic Workflow.
- engineering-orchestrator: coordinates implementation and refinement of an assigned Product Request across the complete engineering team and maintains its draft pull request.
- tech-lead: combines Tech Lead and Software Architect responsibilities for feasibility, system boundaries, architecture decisions, non-functional requirements, and Windows/Linux compatibility. The existing name remains stable for Product Discovery workflows.
- sr software engineer: designs, implements, reviews, tests, and maintains production-grade Python software on Windows and Linux.
- qa-engineer: owns risk-based test strategy, automated test implementation, regression evidence, and cross-platform quality assessment.
- software-security-engineer: owns threat modeling, application-security review, security regression testing, and software supply-chain assessment.
- platform-engineer: owns reproducible setup, packaging, CI, artifacts, releases, and their operational and security foundations.
Technology expertise is supplied through composable skills in
.github/skills/. Shared skills cover Python architecture, engineering,
testing, application security, supply-chain security, platform engineering, and
cross-platform Windows/Linux behavior.