-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commands
Small command surface. Simple things should stay simple.
Rune intentionally provides a small set of commands.
rune init
rune index
rune update
rune context
rune doctorFuture additions should be rare and carefully justified.
Initialize Rune inside a repository.
rune initCreates:
.rune/
├── spec.md
├── architecture.md
├── conventions.md
├── graph.json
├── files/
├── features/
├── ownership/
├── sessions/
└── cache/
- Safe to run multiple times.
- Never deletes user files.
- Idempotent.
- Local-only.
cd my-project
rune initOutput:
✓ Initialized .rune/
Build repository understanding.
rune indexAnalyzes:
- files
- imports
- classes
- functions
- dependencies
Generates:
.rune/files/
.rune/features/
.rune/graph.json
rune indexOutput:
✓ Indexed 312 files
✓ Generated graph.json
✓ Generated file summaries
✓ Generated feature summaries
Incrementally refresh repository context.
rune updateOnly modified files are reprocessed.
Avoid expensive full indexing.
rune updateOutput:
✓ Updated auth.py
✓ Updated user.py
✓ Refreshed graph
Retrieve minimal context for a task.
rune context "<task>"rune context "Add Google OAuth"Example output:
{
"related_files": [
"auth.py",
"user.py",
"settings.py"
]
}Instead of loading:
100 files
100k tokens
agents load:
spec.md
graph.json
summaries
and fetch source code only when necessary.
Validate repository health.
rune doctorChecks:
- missing summaries
- broken graph
- stale cache
- inconsistent metadata
✓ graph.json valid
✓ summaries up to date
✓ no missing dependencies
These commands are planned but not required for v0.1.
Upgrade Rune.
rune self-updateEquivalent to reinstalling via:
curl -fsSL https://raw.githubusercontent.com/rune-context/rune/main/install.sh | shDisplay dependency graph.
rune graphExample:
auth.py
├── user.py
└── jwt.py
Repository statistics.
rune statsExample:
Files indexed: 782
Features detected: 41
Summaries: 782
Remove cache.
rune cleanRemoves:
.rune/cache/
.rune/sessions/
without affecting:
.rune/files/
.rune/features/
rune --versionExample:
Rune 0.1.0
rune --helpor:
rune helpCommands should be:
- memorable
- discoverable
- composable
Avoid:
rune daemon
rune server
rune login
rune cloudRune should remain:
- local-first
- offline
- dependency-free
Git succeeded partly because most developers only need:
git init
git add
git commit
git pushRune should follow the same principle.
Most users should only need:
rune init
rune index
rune update
rune contextGit stores history.
Rune stores understanding.
.git/ explains what changed.
.rune/ explains what the codebase means.
Rune Context — Git for repository understanding.
Git for repository understanding.
- 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
Git stores history.
Rune stores understanding.