# kingsidharth/sample_cursorrules_docs architecture

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

- Interactive diagram: https://gitdiagram.com/kingsidharth/sample_cursorrules_docs
- Repository: https://github.com/kingsidharth/sample_cursorrules_docs

## Overview

The tree documents an agent-oriented chat product with threads, agent/tool-call behavior, notes, task management, integrations, and analytics. No README or source excerpts are available, so this is a map of documented product areas rather than verified runtime wiring; uncertain calls and data flows are omitted.

Main entry points: [`rules/0-agent-loop.mdc`](https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/rules/0-agent-loop.mdc) (Agent loop), [`docs/implementation/threads`](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/threads) (Threads), [`docs/implementation/threads/chat_turns.md`](https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/docs/implementation/threads/chat_turns.md) (Chat turns), [`docs/implementation/tool_call`](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/tool_call) (Tool calls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Conversation and agents"]
  node_threads["Threads"]
  node_turns["Chat turns<br/>[chat_turns.md]"]
  node_agent["Agent loop<br/>[0-agent-loop.mdc]"]
  node_tools["Tool calls"]
  node_audio["Audio mode"]
end

subgraph group_work["Tasks and knowledge"]
  node_microtasks["Microtasks"]
  node_notes["Notes"]
  node_notifications["Notifications"]
end

subgraph group_integrations["Integrations and insights"]
  node_gmail["Gmail sync"]
  node_slack["Slack sync"]
  node_calendar["Google Calendar"]
  node_analytics["Stats and costs"]
end

node_user(("User"))
node_llm{{"LLM providers"}}

node_user -->|"starts conversation"| node_threads
node_threads -->|"contains turns"| node_turns
node_turns -->|"processed by"| node_agent
node_agent -->|"invokes tools"| node_tools
node_agent -.->|"uses model"| node_llm

click node_threads "https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/threads"
click node_turns "https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/docs/implementation/threads/chat_turns.md"
click node_agent "https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/rules/0-agent-loop.mdc"
click node_tools "https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/tool_call"
click node_audio "https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/plans/audio-mode"
click node_microtasks "https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/microtasks"
click node_notes "https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/notes"
click node_notifications "https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/plans/notifications"
click node_gmail "https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/gmail"
click node_slack "https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/docs/plans/slack_sync_implementation_plan.md"
click node_calendar "https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/docs/plans/google-cal-implementation.md"
click node_analytics "https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/plans/pages"

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_threads,node_turns,node_agent,node_tools,node_audio,node_user toneBlue
class node_microtasks,node_notes,node_notifications toneAmber
class node_gmail,node_slack,node_calendar,node_analytics toneMint
class node_llm toneIndigo
```

## Components

### Conversation and agents

- [Threads](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/threads): `docs/implementation/threads`
- [Chat turns](https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/docs/implementation/threads/chat_turns.md): `docs/implementation/threads/chat_turns.md`
- [Agent loop](https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/rules/0-agent-loop.mdc): `rules/0-agent-loop.mdc`
- [Tool calls](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/tool_call): `docs/implementation/tool_call`
- [Audio mode](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/plans/audio-mode): `docs/plans/audio-mode`

### Tasks and knowledge

- [Microtasks](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/microtasks): `docs/implementation/microtasks`
- [Notes](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/notes): `docs/implementation/notes`
- [Notifications](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/plans/notifications): `docs/plans/notifications`

### Integrations and insights

- [Gmail sync](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/implementation/gmail): `docs/implementation/gmail`
- [Slack sync](https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/docs/plans/slack_sync_implementation_plan.md): `docs/plans/slack_sync_implementation_plan.md`
- [Google Calendar](https://github.com/kingsidharth/sample_cursorrules_docs/blob/main/docs/plans/google-cal-implementation.md): `docs/plans/google-cal-implementation.md`
- [Stats and costs](https://github.com/kingsidharth/sample_cursorrules_docs/tree/main/docs/plans/pages): `docs/plans/pages`

### Other components

- **User**
- **LLM providers**

## Connections

- User → Threads: starts conversation
- Threads → Chat turns: contains turns
- Chat turns → Agent loop: processed by
- Agent loop → Tool calls: invokes tools
- Agent loop → LLM providers: uses model
