
When I started designing Tarosec, one of the main challenges was deciding how to organize its security capabilities.
I could have created a single SKILL.md file containing instructions for source code reviews, security investigations, threat simulations and reporting.
That would have been easy to implement initially. However, as the project grew, the skill would become difficult to maintain, evaluate and use consistently.
Instead, I designed Tarosec around a dispatcher, independent specialist skills and shared evidence contracts.
In this article, I want to explain the reasoning behind that architecture.
A skill is more than a prompt
A prompt describes what we want an AI agent to do.
A well-designed agent skill can also describe how the agent should approach a task, which inputs it needs, what boundaries it must respect and how it should produce its results.
In Tarosec, each specialist has its own instructions, references, schemas and supporting helpers.
A simplified representation of the repository looks like this:
tarosec/
├── skills/
│ ├── tarosec/
│ ├── tarosec-audit/
│ ├── tarosec-red/
│ ├── tarosec-blue/
│ ├── tarosec-purple/
│ ├── tarosec-simulate/
│ └── tarosec-report/
├── schemas/
├── references/
├── scripts/
├── examples/
├── evaluations/
├── tests/
└── docs/There is no background service that needs to be started.
The AI coding agent loads the relevant skill instructions and uses the available local tools to complete the requested assessment.
The dispatcher pattern
The main Tarosec skill acts as a dispatcher.
Its responsibility is to understand the requested security task and select an appropriate specialist.
Consider the following request:
$tarosec ./projectThe dispatcher identifies that the supplied input is a local project. Since there is no explicit mode, it selects Audit.
Now consider another request:
$tarosec blue ./logsThis request explicitly selects a defensive investigation workflow, so the dispatcher routes it to Tarosec Blue.

The dispatcher also checks whether the selected specialist is installed.
If it is unavailable, the agent should explain the missing capability instead of pretending that the specialist has completed its work.
This matters because AI agents can otherwise produce an answer that looks complete even when the required tools or instructions were unavailable.
For mixed requests, Tarosec starts with the least invasive workflow that can answer the question.
Independent specialist skills
The separation between skills follows a principle familiar to software engineers: separation of concerns.
An audit and a defensive investigation have different responsibilities.
Audit focuses on application behavior, configuration, dependencies and security controls.
Blue focuses on supplied observations, timelines, suspicious activity and alternative explanations.
Purple compares expected security observations against recorded results.
These workflows should not be treated as interchangeable.
Independent skills make it possible to maintain their instructions separately, create focused evaluation fixtures and install only the required capabilities.
They also reduce the amount of instruction context that an agent needs to load for a particular task.
The trade-off is that a modular design requires clear boundaries and compatible data contracts.
Without those contracts, every specialist could produce a different type of report that another specialist cannot reliably understand.
Evidence as a shared language
One of the most important design decisions in Tarosec is to separate findings from evidence.
A finding describes a security claim.
Evidence describes the artifact or observation that supports that claim.
For example, consider a possible authorization issue in an invoice service.
The finding may state that a user could access another customer's invoice.
The supporting evidence may include the route implementation, authorization middleware, repository query, relevant policy and existing test coverage.
However, the existence of a suspicious query does not automatically confirm the finding. The complete authorization path still needs to be reviewed.

Tarosec defines several record types to represent this information.
| Record | Purpose |
|---|---|
| Engagement | Describes authority, scope, exclusions and assessment boundaries |
| Evidence | Records artifact provenance, timestamps, identifiers and optional hashes |
| Finding | Describes a security claim, impact, confidence and remediation |
| Case | Connects related findings, evidence, assets and activities |
| Exercise | Defines expected observations and recorded security exercise outcomes |
| Report | Consolidates source records, evidence references and remaining gaps |
The records use versioned JSON schemas.
This provides a common format for exchanging information between specialists and reduces ambiguity when another workflow consumes the results.
Severity and confidence are different
A security finding can have a serious potential impact while still having weak supporting evidence.
For example, an authorization problem might expose sensitive financial information if it exists. That potential impact could justify a high severity.
However, if the available source code is incomplete, the confidence in the finding might remain low.
Combining severity and confidence into one value hides this important distinction.
Severity describes how serious the issue may be.
Confidence describes how strongly the available evidence supports the claim.
A good assessment should communicate both.
Deterministic helpers and AI reasoning
Large language models are useful for understanding code, explaining relationships and forming hypotheses.
However, they are not always the best choice for operations that require consistent rules.
Schema validation, record classification and checking structured fields are examples of operations that can often be implemented using deterministic code.
Tarosec uses local Python helpers for parts of these workflows.
The agent handles contextual analysis, while the helpers provide repeatable processing for supported structured records.
This division is intentional.
A deterministic validator can confirm that a record has the expected structure. It cannot independently prove that the security claim inside that record is correct.
An evidence hash can help verify that an artifact has not changed since it was recorded. It cannot prove that the original artifact was accurate or complete.
Understanding these limitations is part of designing reliable security tooling.
Keeping assessment work separate from the target
Security reviews should avoid unnecessary changes to the application being assessed.
By default, answer-only Tarosec assessments remain in the agent's conversation.
When file output is requested, Tarosec provides a workspace initializer that creates a separate run directory outside the assessed project.
For example:
python3 -B scripts/init_workspace.py ./project \
--skill tarosec-audit \
--output-dir /path/to/existing/reportsThis design helps separate assessment artifacts from application source code.
It also avoids introducing generated reports, evidence files or unrelated configuration changes into the target repository.
The trust boundary
Tarosec describes how an agent should behave, but instructions alone cannot enforce security.

An agent may have access to a shell, the filesystem, external APIs, MCP servers or a remote model provider.
The host application is responsible for controlling those permissions.
Another important concern is prompt injection.
A source file, README, log entry or supplied security report may contain text that looks like an instruction to the agent.
Tarosec treats these artifacts as evidence, not as trusted instructions.
For sensitive assessments, I would also recommend restricting network access, using least-privilege credentials and running tools inside an isolated environment.
A skill is a behavioral guidance layer. It is not a sandbox.
Designing for uncertainty and failure
A security workflow needs to represent incomplete work accurately.
A specialist may be missing. A log export may cover only part of the requested time window. A test may not exercise the relevant code path. A dependency advisory may be unavailable in an offline environment.
These situations should not automatically produce a positive or negative security conclusion.
Sometimes the correct result is simply:
There is not enough evidence to establish the outcome.
Tarosec's architecture is designed to preserve completed work while documenting missing evidence and pending stages.
That is more useful than forcing every assessment into a successful result.
Conclusion
The architecture behind Tarosec is relatively simple.
It combines a dispatcher, specialized workflows, shared record contracts and deterministic local helpers.
The main goal is not to maximize automation at any cost.
It is to make AI-assisted security work more structured, traceable and understandable.
A useful cybersecurity agent should be able to explain not only what it believes, but also why it believes it, which evidence supports the conclusion and what remains uncertain.
That is the direction I want to continue exploring with Tarosec.
Source code and architecture documentation:


