Building an AI Portfolio Research Team with Local and Hosted Models

I started this project because researching candidates for my portfolio was taking too much of my time. The first job was narrow: help me find and assess candidates for the wheel options strategy. I wanted the research done, the assumptions explained, and the work brought back to me so I could make a decision.
That grew into a team of agents: a portfolio manager, investment specialists, research analysts, an Explorer, a checker and a continuity agent. Some runs use only a local model on my DGX Spark. Others split the work between local and hosted models.
The interesting part was how the system changed as I used it. Adding agents was easy. Making their responsibilities clear, seeing where time went, retaining useful context and deciding which model belonged in each role took much more thought.
This is the engineering story behind that system. It remains an experimental research consultant: it produces reports and does not place orders. The filmed demonstration uses a fictional portfolio.
Keep the personal integration separate from the reusable system
My everyday interface is Hermes. It already had the private integrations I needed, including read-only portfolio ingestion, scheduling and delivery. I wanted to add a specialist capability behind that interface without rebuilding the surrounding setup.
So I drew a boundary. On one side are my account access, preferences and delivery arrangements. On the other are the portfolio team's roles, prompts, tools, orchestration, evaluations and telemetry.
Hermes passes a question and dated context into the portfolio team. Personal integrations stay outside the reusable runtime.
The input crossing that boundary is a question plus the relevant portfolio context. The result comes back as research and a report. The runtime does not need my email configuration or the details of how a broker statement reached Hermes.
This separation also made the project easier to share. Someone else can provide their own host, data adapters and portfolio snapshot. Hermes is my interface, but the research capability should not depend on everybody using my interface.
For a similar project, I would draw this boundary before choosing the number of agents. It answers what the reusable component owns and what the surrounding application must supply.
Let the job determine how the team grows
The first team had a lead, analysts and a wheel expert. The lead coordinated work. Analysts researched candidates. The expert applied the domain knowledge needed to assess the results and could request more research.
That last loop mattered. If the expert can only choose from the first batch of research, the first batch quietly defines the whole decision space. Letting it ask a focused follow-up made the workflow more useful.
The next limitation was scope. A candidate can look attractive through an options-income lens while being a poor fit for the portfolio. I wanted business quality and value considered alongside diversification and exposure.
The team evolved into a council with wheel, Buffett-inspired and Dalio-inspired perspectives. These are prompted research roles inspired by investment approaches, with no affiliation or endorsement. The lead also became a portfolio manager with responsibility for integrating the work.
The manager owns the report. Specialists contribute different questions and assessments.
Consider a candidate with an attractive option premium. The wheel specialist may like its mechanics. The business-quality specialist may question whether I want to own the underlying company. The diversification specialist may point out that the portfolio already has too much exposure to the same risk.
Those are different questions. A useful report has to resolve their implications in the context of the whole portfolio. Simply joining three essays together would leave that work to me.
In the current design, the manager enters first, commissions research, consults specialists and owns the final report. The council is an extension point, but each new member needs a distinct reason to exist. More perspectives also mean more work to reconcile them.
Define an agent through knowledge and responsibility
At the implementation level, much of the difference between these agents is in their prompts and tools. When designing them, I found it more useful to ask four questions:
- What domain knowledge should this role have?
- What result is it responsible for producing?
- What tools does that responsibility require?
- What boundaries should constrain its work?
For the specialists, I assembled domain material covering concepts, common mistakes and examples. That relatively stable knowledge belongs in the role instructions. The current assignment, portfolio snapshot, returned research and feedback belong in the context of the particular task.
Experts delegate research. They do not have direct market tools; they can still have internal tools for reading, calculation and follow-up requests.
That distinction is intentional. Analysts search, fetch and inspect public information. Specialists use supplied research and ask analysts to investigate gaps. The manager coordinates the returned work. Giving every role every tool would blur these responsibilities.
I also preferred an objective with boundaries to a long prompt prescribing every step. An analyst should know what question to answer and what source material it needs, while having room to choose an investigation path.
The boundaries still matter: preserve dates and units, say when information is missing, avoid repeatedly researching the same issue without a reason, and report unresolved questions. Prompt wording is only one layer; tool contracts, budgets and runtime controls also need to support the intended behavior.
Give checking a different assignment
A fluent report can contain a weak assumption. I added a separate checker because I wanted a role focused on finding those weaknesses rather than continuing to build the recommendation.
The author receives a task that encourages synthesis. The checker receives the draft, relevant context and a different objective: inspect the claims, calculations and reasoning. It returns specific findings to the author, who revises the work.
The review loop returns actionable findings to the author rather than replacing the report with a generic approval.
For example, an author might describe a shortlist as diversified because it contains several companies. The checker can ask whether those companies share a major exposure. The useful finding identifies the assumption and explains why it changes the conclusion.
I also fed the checker patterns of errors it commonly missed, so that later reviews had more concrete things to look for. That made its feedback more useful and helped the quality of my reports. It does not make the checker an independent oracle. Even when author and checker use separate contexts and objectives, they can share blind spots, misunderstand the same source or make related mistakes. Using a different model can change the failure pattern, but does not establish correctness either.
The practical benefit is another opportunity to challenge the work. For quantities that drive a decision, I still want to inspect the sources and calculations. A completed run means the workflow finished; it does not certify the report's financial conclusions.
Build telemetry around questions you actually have
Once a run lasted hours, a final answer and a stream of logs were not enough. I needed to know which agent was active, which was waiting, what it had asked its tools, and whether parallel work was actually happening.
I built a small dashboard around the runtime's records. It shows the team, individual tasks, model activity, tool history and outputs. That made it possible to connect a slow run to a concrete part of the workflow.
This slide uses a reconstruction with synthetic sample data to illustrate the dashboard, not measured run performance.
“This took too long” then becomes a more useful question. Was an analyst waiting on a data source? Was a specialist asking for the same research again? Was the manager generating while the rest of the team sat idle? Would concurrency help, or would it just create more work waiting on the same dependency?
Two runs from the project show the scale, but they should be kept separate:
| Recorded run | Elapsed time | Input tokens | Output tokens | Total tokens |
|---|---|---|---|---|
| Historical all-local DGX Spark review | 5h 26m 12s | 10,440,542 | 783,823 | 11,224,365 |
| Filmed mixed OpenAI/local demonstration | 72m 9s | 5,034,857 | 224,936 | 5,259,793 |
The historical run recorded 228 model calls and 692 tool calls. The filmed demonstration recorded 24 agent invocations and 149 usage records. Those are different counters, and the runs used different workloads and model arrangements. They are not a controlled speed comparison.
These token totals are cumulative across calls. They include context supplied repeatedly; they are not millions of unique words of research. A larger total can reflect more work, redundant work or longer repeated context. It is not a quality score.
The dashboard's value was that it helped me inspect those possibilities. A purpose-built view of the records was enough to make the next development decision clearer.
Treat continuity as storage and retrieval
A daily research system should be able to continue yesterday's useful work. It should remember an unresolved question or explicit feedback without treating every previous statement as a permanent fact.
I implemented a continuity agent with tools to persist and retrieve information. It can store dated assessments, open questions and selected feedback in external files, then return relevant material to a later run.
Continuity preserves useful work outside the model's current context.
For a small knowledge base, Markdown files were a practical starting point. As the collection grows, finding relevant material becomes the harder problem. Indexing, structured metadata or retrieval methods can help, but the first design question is what is worth retaining.
An old assessment should retain its date and basis. A preference expressed by the owner should remain distinguishable from an agent's inference. A question that has since been resolved should not keep appearing as an open issue.
The manager also needs access to continuity during a run. A new research finding may make a previous discussion relevant after the initial context has already been assembled. Loading a summary once at the beginning would miss that opportunity.
This is application state management: decide what to save, preserve its meaning and retrieve it when needed. The model does not acquire durable memory merely because a conversation happened.
Choose models for the workload on the machine
I wanted to run the team locally because repeated, long research runs can accumulate substantial hosted usage. My local-model experiments were shaped by the DGX Spark and the amount of work I wanted to run concurrently.
Flash-Next was useful for my everyday Hermes workload, but left too little memory headroom for the concurrency and context lengths I wanted in this team. I then tried a dense Qwen 27B model in FP8. It fit, but the workflow was too slow for my purposes. The NVFP4 version was more workable on one Spark.
These are observations from my deployment journey, not a controlled ranking of model speed.
A model's weights are only part of the memory budget. Context caches, simultaneous requests and serving overhead also need room. A model that loads successfully may still leave too little capacity for the workflow around it.
The useful capacity question is how the complete workload behaves, including concurrent agents.
Quantization helped here. It represents values approximately using lower precision, with scaling and rounding appropriate to the format. It can reduce storage and data movement; it is not simply cutting off a chosen set of bits. Quality and speed depend on the format, model, hardware and serving implementation. NVIDIA's quantization documentation explains the underlying representation.
I also tried splitting roles across models. Analysts spend much of their time invoking tools and processing returned information, and can run concurrently. The manager and specialists have to reconcile research and make more demanding judgments. In my experiments, local NVFP4 analysts combined usefully with hosted models for those roles.
That is a workload choice. Parameter counts, whether a model is dense or a mixture of experts, and how fast it answers one prompt do not settle which configuration will produce the best end-to-end result. I want model routing to remain configurable so I can test it rather than bake the answer into the architecture.
Turn recurring mistakes into evaluation cases
Changing prompts and models is easy. Knowing whether the changes helped requires a stable comparison.
I used focused evaluation cases with fixed inputs and checks on the output. For agent evaluations, controlled tool responses help isolate the behavior under test. For numerical cases, structured output lets a script check the relevant fields directly.
A synthetic gross-funding calculation: 2 × 100 × $50 = $10,000. This checks arithmetic, not broker margin requirements.
The important feature of this example is that the answer is testable. A persuasive explanation cannot compensate for an incorrect numerical field. It also shows why the meaning of a field matters: gross funding and margin capacity are different questions.
Deterministic checks are useful for arithmetic, schemas and explicit rules. They cannot evaluate every aspect of a research report. A model judge can help assess broader qualities, but introduces its own variability and assumptions. Human inspection and end-to-end runs still reveal problems a narrow test misses.
I try to keep the input, tool fixtures and scoring rules stable while changing the component I want to compare. Otherwise, a better score may reflect a different test rather than an improved system.
Fine-tuning made the tradeoffs more visible
I also adapted a Qwen 27B checkpoint for the portfolio workflow and released it as PortfolioFinQwen-27B. The aim was to improve behavior on the kinds of financial reasoning and mechanical corrections the system needed.
Fine-tuning changes the model itself. With LoRA, the base weights are frozen while smaller, trainable low-rank updates are learned. Training optimizes how well the model predicts the target responses in the examples. This is separate from supplying domain knowledge in a prompt, and separate again from quantizing the model for deployment. The original LoRA paper describes that approach.
After adaptation, I evaluated the exported model. The result was mixed:
The same selected cases remain in each denominator. The mechanics development set informed adaptation and selection.
Strict passes on the 160 mechanics development cases rose from 55.0% to 60.0%. On 250 selected FinQA cases, accuracy fell from 56.4% to 52.8%. Exact answers on 250 selected TAT-QA cases rose from 76.0% to 77.2%, while TAT-QA F1 decreased slightly.
The development result is useful diagnostic information, but is training-informed. The public-task results use selected cases and the project's scoring setup, including adapted final-answer scoring for FinQA. Errors and unscored responses remain counted. The model card documents these conditions and the deployment configuration.
A better development score therefore gave me a reason to investigate the adapted model further. It did not establish that the fine-tune was generally better, or that a complete portfolio report would be correct. The final check has to include the surrounding prompts, tools, retrieval and orchestration.
What I would carry into the next system
The most useful design decisions came from a concrete problem in the workflow. Broader portfolio questions led to the council. Weak assumptions led to checking. Long, opaque runs led to telemetry. Repeated conversations led to continuity. Local resource constraints led to configurable models and quantization experiments.
If I started again, I would still begin with one useful task and a small team. I would make ownership of the final result explicit, inspect real runs early, and record failures so I could turn recurring problems into evaluation cases.
The reusable runtime is available in the multiagent-portfolio-management repository. It includes the research roles, prompts, tool contracts, continuity support, telemetry and evaluation material. You supply your own integrations and dated inputs.
The broader pattern I want to keep exploring is the personal agent as an interface to specialist capabilities. My existing interface can already launch a review and handle follow-up questions; the portfolio runtime supplies the specialist work behind it. I plan to go deeper into agent design, telemetry, continuity, local model serving, evaluations and fine-tuning in follow-up articles and videos. Those are the parts I want to make easier to understand and reuse.








