project-structure

Project-organization rules for a monorepo, which is one repository containing multiple related packages and components. It explains how the Python packages are managed together with UV workspace.

In plain words
What is it for?
Navigating the repository, adding or changing Python packages, managing shared dependencies, and using the project's test, formatting, typing, and documentation tools.
Why use it?
They help an agent find code in the right part of the repository and follow the shared dependency and tooling setup.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/jumpstarter-dev/jumpstarter/project-structure
Clone the repo
git clone --depth 1 https://github.com/jumpstarter-dev/jumpstarter

Made for: Cursor.

Per session 1,460 This file is loaded in full into every session.
When invoked 1,460 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01460 $0.01460
Opus 5 $0.00730 $0.00730
Sonnet 5 $0.00292 $0.00292
Haiku 4.5 $0.00146 $0.00146

Measured yesterday against content hash e2f22e322515, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-structure scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/project-structure.mdc · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Structure

This project follows a monorepo structure with a top-level pyproject.toml that manages all packages using UV workspace.

Top-Level Structure

jumpstarter/
├── python/                 # Python workspace root
│   ├── pyproject.toml      # Main workspace configuration
│   ├── packages/           # All Python packages
│   ├── examples/           # Example applications
├── docs/                   # Documentation (Sphinx)
│   └── source/
│       └── contributing/   # JEPs (rendered as part of docs)
│           └── jeps/       # Jumpstarter Enhancement Proposals
│   └── __templates__/      # Templates for creating new drivers
├── controller/             # Controller components
├── protocol/               # Protocol definitions
└── .cursor/                # Cursor AI rules

Workspace Configuration

The project uses UV workspace for dependency management:

  • Top-level python/pyproject.toml: Defines the workspace and includes all packages
  • Workspace members: All packages in python/packages/* and python/examples/* are included
  • Dependency groups: Shared development dependencies (docs, dev)
  • Tool configuration: Ruff, typos, coverage, pytest settings

Package Structure

Core Packages

  • jumpstarter/: Main library with client, config, and common functionality
  • jumpstarter-protocol/: gRPC protocol definitions (excluded from linting)
  • jumpstarter-kubernetes/: Kubernetes integration
  • jumpstarter-testing/: Testing utilities
  • jumpstarter-imagehash/: Image hashing utilities

CLI Packages

  • jumpstarter-cli/: Main CLI application
  • jumpstarter-cli-admin/: Administrative CLI commands
  • jumpstarter-cli-common/: Shared CLI utilities
  • jumpstarter-cli-driver/: Driver-specific CLI commands

Driver Packages

All driver packages follow the pattern jumpstarter-driver-<name>/:

  • jumpstarter-driver-network/: Network interface drivers (TCP, UDP, Unix, etc.)
  • jumpstarter-driver-power/: Power management drivers
  • jumpstarter-driver-*: Various hardware-specific drivers

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 168 lines · 1,460 tokens per session scan A e2f22e322515

Subscribe to this mod's changes

project-structure is a cursor rule published in the GitHub repository jumpstarter-dev/jumpstarter (214 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,460 tokens to every session, about $0.0073 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.