# nirajpathak3/ands-ai architecture

> Architecture diagram of the GitHub repository nirajpathak3/ands-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nirajpathak3/ands-ai
- Repository: https://github.com/nirajpathak3/ands-ai

## Overview

This repository is a collection of product codebases rather than one unified application. The clearest end-to-end workflow is the AI security findings runtime: an API request enters the agent service, passes through finding analysis and governance, then produces a ticketing or approval action. Forge OS products generate and review structured artifacts through agents and model gateways; the tree also includes a marketing-operations slice. README content was not provided, and several subsystems are unsampled, so uncertain links are omitted.

Main entry points: [`ai-secops-copilot/services/agent-runtime/app/pipeline.py`](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/pipeline.py) (Finding pipeline), [`ands-forge-os/src/forge_os/agents/llm_agent.py`](https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_os/agents/llm_agent.py) (Artifact agent), [`elsai-forge-os/src/forge_os/agents/llm_agent.py`](https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_os/agents/llm_agent.py) (Artifact agent), [`ands-forge-os/src/forge_kernel/agents/reviewer.py`](https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/agents/reviewer.py) (Artifact review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_secops["Security Copilot"]
  node_sec_api["Findings API"]
  node_finding_service["Findings service"]
  node_runtime_api["Runtime API<br/>[main.py]"]
  node_pipeline["Finding pipeline<br/>[pipeline.py]"]
  node_graph_nodes["Analysis stages<br/>[nodes.py]"]
  node_rag_corpus[("Security knowledge corpus<br/>[corpus.py]")]
  node_rag_retriever["Knowledge retrieval<br/>[retriever.py]"]
  node_remediation["Remediation<br/>[remediation.py]"]
  node_ticketing["Ticketing and approvals<br/>[ticketing.py]"]
  node_notifications["Notifications<br/>[notifications.py]"]
  node_configuration["Runtime configuration<br/>[config.py]"]
end

subgraph group_forge["Forge OS"]
  node_forge_agent["Artifact agent<br/>[llm_agent.py]"]
  node_forge_gateway["Model gateway<br/>[providers.py]"]
  node_forge_policy["Model policy<br/>[model_policy.py]"]
  node_forge_quality["Quality scoring<br/>[quality.py]"]
  node_forge_state[("Artifact state<br/>[state.py]")]
  node_forge_reviewer["Artifact review<br/>[reviewer.py]"]
end

subgraph group_elsai["Elsai Forge"]
  node_elsai_agent["Artifact agent<br/>[llm_agent.py]"]
  node_elsai_seeds["Role seed agents<br/>[seeds.py]"]
  node_elsai_tools["Artifact tools<br/>[tools.py]"]
  node_elsai_evidence["Evidence handling<br/>[evidence.py]"]
  node_elsai_quality["Quality scoring<br/>[quality.py]"]
  node_elsai_reliability["Reliability controls<br/>[reliability.py]"]
end

subgraph group_marketing["Marketing Ops"]
  node_marketing_api["Marketing API<br/>[main.py]"]
  node_campaign_ui["Campaign builder<br/>[page.tsx]"]
  node_publish_ui["Publish queue<br/>[page.tsx]"]
  node_media_ui["Media bucket<br/>[page.tsx]"]
  node_inbox_ui["Unified inbox<br/>[page.tsx]"]
end

node_analyst(("Security operator"))

node_analyst -->|"submits finding"| node_sec_api
node_sec_api -->|"delegates analysis"| node_finding_service
node_runtime_api -->|"runs pipeline"| node_pipeline
node_pipeline -->|"runs stages"| node_graph_nodes
node_pipeline -->|"supplies retriever"| node_rag_retriever
node_pipeline -->|"executes decision"| node_ticketing
node_rag_retriever -->|"retrieves documents"| node_rag_corpus
node_ticketing -->|"uses remediation"| node_remediation
node_forge_agent -->|"requests generation"| node_forge_gateway
node_forge_agent -->|"applies policy"| node_forge_policy
node_forge_agent -->|"checks substance"| node_forge_quality
node_forge_reviewer -->|"scores content"| node_forge_quality
node_forge_reviewer -->|"reviews artifact"| node_forge_state
node_elsai_agent -->|"builds seed"| node_elsai_seeds
node_elsai_agent -->|"runs tools"| node_elsai_tools
node_elsai_agent -->|"checks quality"| node_elsai_quality

click node_sec_api "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/gateway/src/findings/findings.controller.ts"
click node_finding_service "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/gateway/src/findings/findings.service.ts"
click node_runtime_api "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/main.py"
click node_pipeline "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/pipeline.py"
click node_graph_nodes "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/graph/nodes.py"
click node_rag_corpus "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/rag/corpus.py"
click node_rag_retriever "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/rag/retriever.py"
click node_remediation "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/remediation.py"
click node_ticketing "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/ticketing.py"
click node_notifications "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/notifications.py"
click node_configuration "https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/config.py"
click node_forge_agent "https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_os/agents/llm_agent.py"
click node_forge_gateway "https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/gateway/providers.py"
click node_forge_policy "https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/model_policy.py"
click node_forge_quality "https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/quality.py"
click node_forge_state "https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/state.py"
click node_forge_reviewer "https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/agents/reviewer.py"
click node_elsai_agent "https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_os/agents/llm_agent.py"
click node_elsai_seeds "https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_os/agents/seeds.py"
click node_elsai_tools "https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_os/agents/tools.py"
click node_elsai_evidence "https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_kernel/intelligence/evidence.py"
click node_elsai_quality "https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_kernel/quality.py"
click node_elsai_reliability "https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_kernel/reliability.py"
click node_marketing_api "https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/api/marketing_ops_slice/app/main.py"
click node_campaign_ui "https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/web/app/campaign-builder/page.tsx"
click node_publish_ui "https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/web/app/publish-queue/page.tsx"
click node_media_ui "https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/web/app/media-bucket/page.tsx"
click node_inbox_ui "https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/web/app/unified-inbox/page.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sec_api,node_finding_service,node_runtime_api,node_pipeline,node_graph_nodes,node_rag_corpus,node_rag_retriever,node_remediation,node_ticketing,node_notifications,node_configuration toneBlue
class node_forge_agent,node_forge_gateway,node_forge_policy,node_forge_quality,node_forge_state,node_forge_reviewer toneAmber
class node_elsai_agent,node_elsai_seeds,node_elsai_tools,node_elsai_evidence,node_elsai_quality,node_elsai_reliability toneMint
class node_marketing_api,node_campaign_ui,node_publish_ui,node_media_ui,node_inbox_ui toneRose
class node_analyst toneIndigo
```

## Components

### Security Copilot

- [Findings API](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/gateway/src/findings/findings.controller.ts): `ai-secops-copilot/services/gateway/src/findings/findings.controller.ts`
- [Findings service](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/gateway/src/findings/findings.service.ts): `ai-secops-copilot/services/gateway/src/findings/findings.service.ts`
- [Runtime API](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/main.py): `ai-secops-copilot/services/agent-runtime/app/main.py`
- [Finding pipeline](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/pipeline.py): `ai-secops-copilot/services/agent-runtime/app/pipeline.py`
- [Analysis stages](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/graph/nodes.py): `ai-secops-copilot/services/agent-runtime/app/graph/nodes.py`
- [Security knowledge corpus](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/rag/corpus.py): `ai-secops-copilot/services/agent-runtime/app/rag/corpus.py`
- [Knowledge retrieval](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/rag/retriever.py): `ai-secops-copilot/services/agent-runtime/app/rag/retriever.py`
- [Remediation](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/remediation.py): `ai-secops-copilot/services/agent-runtime/app/remediation.py`
- [Ticketing and approvals](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/ticketing.py): `ai-secops-copilot/services/agent-runtime/app/ticketing.py`
- [Notifications](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/notifications.py): `ai-secops-copilot/services/agent-runtime/app/notifications.py`
- [Runtime configuration](https://github.com/nirajpathak3/ands-ai/blob/master/ai-secops-copilot/services/agent-runtime/app/config.py): `ai-secops-copilot/services/agent-runtime/app/config.py`

### Forge OS

- [Artifact agent](https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_os/agents/llm_agent.py): `ands-forge-os/src/forge_os/agents/llm_agent.py`
- [Model gateway](https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/gateway/providers.py): `ands-forge-os/src/forge_kernel/gateway/providers.py`
- [Model policy](https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/model_policy.py): `ands-forge-os/src/forge_kernel/model_policy.py`
- [Quality scoring](https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/quality.py): `ands-forge-os/src/forge_kernel/quality.py`
- [Artifact state](https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/state.py): `ands-forge-os/src/forge_kernel/state.py`
- [Artifact review](https://github.com/nirajpathak3/ands-ai/blob/master/ands-forge-os/src/forge_kernel/agents/reviewer.py): `ands-forge-os/src/forge_kernel/agents/reviewer.py`

### Elsai Forge

- [Artifact agent](https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_os/agents/llm_agent.py): `elsai-forge-os/src/forge_os/agents/llm_agent.py`
- [Role seed agents](https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_os/agents/seeds.py): `elsai-forge-os/src/forge_os/agents/seeds.py`
- [Artifact tools](https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_os/agents/tools.py): `elsai-forge-os/src/forge_os/agents/tools.py`
- [Evidence handling](https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_kernel/intelligence/evidence.py): `elsai-forge-os/src/forge_kernel/intelligence/evidence.py`
- [Quality scoring](https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_kernel/quality.py): `elsai-forge-os/src/forge_kernel/quality.py`
- [Reliability controls](https://github.com/nirajpathak3/ands-ai/blob/master/elsai-forge-os/src/forge_kernel/reliability.py): `elsai-forge-os/src/forge_kernel/reliability.py`

### Marketing Ops

- [Marketing API](https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/api/marketing_ops_slice/app/main.py): `marketing-ops-slice/api/marketing_ops_slice/app/main.py`
- [Campaign builder](https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/web/app/campaign-builder/page.tsx): `marketing-ops-slice/web/app/campaign-builder/page.tsx`
- [Publish queue](https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/web/app/publish-queue/page.tsx): `marketing-ops-slice/web/app/publish-queue/page.tsx`
- [Media bucket](https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/web/app/media-bucket/page.tsx): `marketing-ops-slice/web/app/media-bucket/page.tsx`
- [Unified inbox](https://github.com/nirajpathak3/ands-ai/blob/master/marketing-ops-slice/web/app/unified-inbox/page.tsx): `marketing-ops-slice/web/app/unified-inbox/page.tsx`

### Other components

- **Security operator**

## Connections

- Security operator → Findings API: submits finding (evidence: `ai-secops-copilot/services/gateway/src/findings/findings.controller.ts`)
- Findings API → Findings service: delegates analysis (evidence: `ai-secops-copilot/services/gateway/src/findings/findings.controller.ts`)
- Runtime API → Finding pipeline: runs pipeline (evidence: `ai-secops-copilot/services/agent-runtime/app/main.py`)
- Finding pipeline → Analysis stages: runs stages (evidence: `ai-secops-copilot/services/agent-runtime/app/pipeline.py`)
- Finding pipeline → Knowledge retrieval: supplies retriever (evidence: `ai-secops-copilot/services/agent-runtime/app/pipeline.py`)
- Finding pipeline → Ticketing and approvals: executes decision (evidence: `ai-secops-copilot/services/agent-runtime/app/pipeline.py`)
- Knowledge retrieval → Security knowledge corpus: retrieves documents (evidence: `ai-secops-copilot/services/agent-runtime/app/rag/retriever.py`)
- Ticketing and approvals → Remediation: uses remediation (evidence: `ai-secops-copilot/services/agent-runtime/app/ticketing.py`)
- Artifact agent → Model gateway: requests generation (evidence: `ands-forge-os/src/forge_os/agents/llm_agent.py`)
- Artifact agent → Model policy: applies policy (evidence: `ands-forge-os/src/forge_os/agents/llm_agent.py`)
- Artifact agent → Quality scoring: checks substance (evidence: `ands-forge-os/src/forge_os/agents/llm_agent.py`)
- Artifact review → Quality scoring: scores content (evidence: `ands-forge-os/src/forge_kernel/agents/reviewer.py`)
- Artifact review → Artifact state: reviews artifact (evidence: `ands-forge-os/src/forge_kernel/agents/reviewer.py`)
- Artifact agent → Role seed agents: builds seed (evidence: `elsai-forge-os/src/forge_os/agents/llm_agent.py`)
- Artifact agent → Artifact tools: runs tools (evidence: `elsai-forge-os/src/forge_os/agents/llm_agent.py`)
- Artifact agent → Quality scoring: checks quality (evidence: `elsai-forge-os/src/forge_os/agents/llm_agent.py`)
