Skip to content

Getting Started

WanSatya Campus edited this page Jun 18, 2026 · 1 revision

From zero to repository understanding in less than a minute.


Prerequisites

Install Rune:

curl -fsSL https://raw.githubusercontent.com/rune-context/rune/main/install.sh | sh

Verify installation:

rune --version

Example:

Rune 0.1.0

Initialize a Repository

Inside your project:

rune init

Rune creates:

.rune/
├── spec.md
├── architecture.md
├── conventions.md
├── graph.json
├── files/
├── features/
├── ownership/
├── sessions/
└── cache/

Nothing outside .rune/ is modified.

Running rune init multiple times is safe.


Build Context

Generate repository understanding:

rune index

Rune analyzes:

  • files
  • imports
  • dependencies
  • functions
  • classes

and produces:

.rune/files/
.rune/features/
.rune/graph.json

Explore the Repository

Example:

rune context "Add Google OAuth"

Expected output:

{
  "related_files": [
    "auth.py",
    "user.py",
    "settings.py"
  ]
}

Agents can then load only the files they need.


Update Context

After modifying code:

rune update

Only changed files are refreshed.

No full reindex is required.


Validate Repository Health

Run:

rune doctor

Checks include:

  • stale summaries
  • broken graphs
  • missing files
  • inconsistent metadata

Example:

✓ graph.json is valid
✓ file summaries are up to date
✓ no missing dependencies

Typical Workflow

Initialize once:

rune init

Index repository:

rune index

Make changes:

Edit code

Refresh context:

rune update

Ask for relevant context:

rune context "Implement password reset"

Example

Suppose the repository contains:

app/
├── auth.py
├── user.py
├── email.py
└── jwt.py

User request:

Add password reset email.

Without Rune:

50 files
100,000 tokens

With Rune:

spec.md
auth summary
user summary
email summary
graph.json

Source code is loaded only when needed.


Generated Artifacts

spec.md

Repository identity and philosophy.


architecture.md

Technology stack.

Example:

Backend: FastAPI
Frontend: Next.js
Database: PostgreSQL

conventions.md

Coding rules.

Example:

Use repository pattern.
Never use raw SQL.

graph.json

Dependency relationships.

Example:

{
  "auth.py": [
    "user.py",
    "jwt.py"
  ]
}

files/

Per-file summaries.

Example:

Purpose:
Authentication service

Exports:
- login()
- logout()

Dependencies:
- user.py
- jwt.py

features/

High-level feature maps.

Example:

login.tsx
↓
auth.py
↓
user.py
↓
jwt.py

Language Plugins

Rune core is language-agnostic.

Future plugins include:

  • Python
  • TypeScript
  • Go
  • Rust
  • Java

Examples:

rune-python
rune-typescript
rune-go

Next Steps

Learn about:


Philosophy

Humans don't read every file.

Neither should AI.

Git stores history.

Rune stores understanding.

Rune Context

Git for repository understanding.


Introduction


Reference


Project


Ecosystem


Future RFCs

  • RCP-001 — Repository Format
  • RCP-002 — Plugin Protocol
  • RCP-003 — Graph Format
  • RCP-004 — File Summary Format
  • RCP-005 — Feature Map Format
  • RCP-006 — Ownership Metadata
  • RCP-007 — Session Memory
  • RCP-008 — Context Retrieval API
  • RCP-009 — Incremental Indexing
  • RCP-010 — Multi-Agent Coordination

Philosophy

Git stores history.

Rune stores understanding.

Clone this wiki locally