aura

module
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2026 License: MIT

README ΒΆ

Aura

CI Release Go Version License

Your AI remembers what it did, proves it, and gets smarter every session.

Aura is a local-first daemon that gives every AI tool you use β€” Claude Code, Cursor, Kiro, Gemini CLI β€” persistent memory, claim verification, token compression, dependency scanning, and a self-improving knowledge wiki. One binary. Zero cloud. Works across all tools.

πŸ“– Full Documentation Β· Releases Β· Issues

Current status: v0.9-dev β€” 21 packages, 470+ passing tests.


The problem

You use Claude Code in the morning, switch to Cursor after lunch, and ask ChatGPT a quick question at night. Every tool starts from zero. Your decisions, your context, your reasoning β€” gone at the session boundary.

When the AI says "I created the file and installed the package" β€” did it actually? You have no way to know without checking yourself.

The knowledge you build up β€” decisions, research, architecture β€” is scattered across chat histories that disappear. Nothing compounds. Every session starts from scratch.

Aura fixes all three.


Install

# One-line install (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/ojuschugh1/Aura/main/install.sh | sh

# Or with go install
go install github.com/ojuschugh1/Aura/cmd/aura@latest

# Or build from source
git clone https://github.com/ojuschugh1/Aura.git && cd Aura && go build -o aura ./cmd/aura/

Then start the daemon β€” Aura begins learning immediately:

aura init

What it does

Cross-tool memory

Store decisions and context once. Every AI tool reads from the same store.

aura memory add "auth"  "JWT tokens, 24h expiry, refresh via httpOnly cookie"
aura memory add "stack" "Go backend, React frontend, PostgreSQL"
aura memory ls
Claim verification

Parse what the AI said it did. Check it against the real filesystem and git history.

aura verify
# Truth score: 83%
# [PASS] created src/auth.ts
# [FAIL] installed jsonwebtoken β€” not found in lockfile
# [PASS] modified config.toml
Token compression

Pipe context through sqz before it hits the model. Save tokens, save money.

cat context.txt | aura compact
# original:   2,400 tokens
# compressed: 1,800 tokens
# reduction:  25%
Dependency scanning

Catch phantom and unused dependencies in agent-written code before they ship.

aura scan
# [phantom] axios at src/api.js:3 (confidence: 1.00)
# [unused]  lodash in package.json (confidence: 1.00)
# total: 4 findings (4 high-risk)
Cost tracking

See what your AI sessions actually cost.

aura cost --daily
# input:  45,000 tokens  output: 12,000 tokens
# cost:   $0.23          saved:  $0.08 (12,000 tokens compressed)
Action escrow

Intercept destructive agent actions and require your approval before execution.

aura trust --duration 15        # auto-approve for 15 minutes
aura trust --path ./src/test    # auto-approve writes to test dir only
Self-improving knowledge wiki

A persistent, compounding knowledge base that automatically learns from every session β€” no manual steps, no IDE plugins. Just run aura init and it starts learning.

# Ingest sources
aura wiki ingest design.md                    # from a file
aura wiki ingest https://example.com/article  # from a URL
aura wiki ingest --batch ./docs               # entire folder

# Query and save answers
aura wiki query "authentication"              # search and synthesise
aura wiki query "auth" --save                 # file the answer as a page

# Navigate the knowledge graph
aura wiki trace auth-service database         # shortest path between pages
aura wiki nearby postgresql --depth 2         # neighborhood exploration
aura wiki context auth-service                # full 360Β° view with confidence

# Visualize
aura wiki viz                                 # interactive HTML knowledge map

# Health and lifecycle
aura wiki lint                                # health-check with suggestions
aura wiki metabolize                          # decay, consolidate, pressure check

# Security
aura wiki access <slug> team                  # set page visibility
aura wiki verify-chain                        # tamper detection on audit trail

# Generate LLM schema
aura wiki schema --format claude > CLAUDE.md  # teach Claude how to use the wiki
aura wiki schema --format kiro                # Kiro steering file

Auto-learning β€” the daemon automatically:

  • Ingests session transcripts when sessions end
  • Promotes important memory entries (architecture, decisions, auth) to wiki pages every 5 minutes
  • Runs knowledge metabolism every 6 hours (decay stale pages, detect contradictions, flag consolidation)
  • Creates session summary pages from context stored during each session

How it works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           Your AI Tools                 β”‚
β”‚  Claude Code Β· Cursor Β· Kiro Β· Gemini  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ MCP Protocol (localhost:7437)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           Aura Daemon                   β”‚
β”‚                                         β”‚
β”‚  Memory Store ─── SQLite (WAL mode)     β”‚
β”‚  MCP Server ───── HTTP/JSON-RPC         β”‚
β”‚  Session Manager                        β”‚
β”‚  Claim Verifier ─ claimcheck (Rust)     β”‚
β”‚  Compressor ───── sqz (Rust)            β”‚
β”‚  Dep Scanner ──── ghostdep (Rust)       β”‚
β”‚  Cost Tracker                           β”‚
β”‚  Policy Engine ── .aura/policy.toml     β”‚
β”‚  Action Escrow                          β”‚
β”‚  Doom Loop Detector                     β”‚
β”‚  Auto-Capture Engine                    β”‚
β”‚  Trace Recorder                         β”‚
β”‚  Model Router ─── .aura/routing.toml    β”‚
β”‚  Wiki Engine ──── knowledge base        β”‚
β”‚  Auto-Learner ─── self-improving        β”‚
β”‚  Audit Chain ──── tamper-evident log    β”‚
β”‚  Multi-Agent Coordinator                β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

All data stays on your machine in ~/.aura/. Nothing leaves your system.


Connect to your AI tools

aura setup claude    # Claude Code  β†’ ~/.claude/settings.json
aura setup cursor    # Cursor       β†’ ~/.cursor/mcp.json
aura setup kiro      # Kiro         β†’ .kiro/settings/mcp.json

All commands

# Daemon
aura init                        # start daemon (begins auto-learning)
aura init --install-deps         # also download Rust binaries
aura status                      # daemon state, memory count, session
aura stop                        # graceful shutdown

# Memory
aura memory add <key> <value>    # store context
aura memory get <key>            # retrieve
aura memory ls [--agent] [--auto] # list, filter
aura memory rm <key>             # delete
aura memory export / import      # JSON backup

# Verification & tools
aura verify [--session <id>]     # verify agent claims
aura compact                     # compress context (stdin)
aura scan [--sarif] [--fix]      # phantom dependency scan
aura cost [--daily] [--weekly]   # token cost report
aura trust [--duration] [--path] # action escrow windows

# Session traces
aura trace last / show / search / export / pin
aura replay <session_id>

# Wiki β€” ingest
aura wiki ingest <file|url|text> [--title] [--format]
aura wiki ingest --batch <dir>   # batch ingest directory

# Wiki β€” query & navigate
aura wiki query <terms> [--save] # search + optional save
aura wiki search <query>         # title/content search
aura wiki trace <from> <to>      # shortest path
aura wiki nearby <slug> [--depth N]  # neighborhood
aura wiki context <slug>         # 360Β° view: links, sources, confidence

# Wiki β€” browse
aura wiki ls [--category]        # list pages
aura wiki show <slug>            # full page content
aura wiki index                  # full catalog
aura wiki sources                # ingested raw sources
aura wiki log [--limit N]        # activity log

# Wiki β€” health & lifecycle
aura wiki lint                   # orphans, stale, contradictions, suggestions
aura wiki metabolize             # decay, consolidate, pressure check
aura wiki pressure [slug]        # contradiction pressure
aura wiki graph                  # connectivity stats

# Wiki β€” output
aura wiki viz [--out file]       # interactive HTML knowledge map
aura wiki export [--out dir]     # Obsidian-compatible markdown
aura wiki schema [--format]      # CLAUDE.md / AGENTS.md / Kiro steering
aura wiki filter <expression>    # metadata queries

# Wiki β€” security
aura wiki access <slug> <tier>   # set public/team/private
aura wiki audit [slug]           # immutable audit trail
aura wiki verify-chain           # tamper detection

# Wiki β€” tool pipeline
aura wiki feed <file> --tool sqz|ghostdep|claimcheck|etch|<name>

# Wiki β€” maintenance
aura wiki rm <slug>              # delete page
aura wiki watch <dir>            # auto-ingest on file changes

# Setup
aura setup <claude|cursor|kiro>  # generate MCP config
aura version [--json]
aura completion <bash|zsh|fish>

All commands support --json for machine-readable output and --dir to override the data directory.


Configuration

On aura init, three config files are generated in ~/.aura/:

File Purpose
config.toml Port, log level, auth secret, memory limits, compression, pricing, trace TTL
policy.toml Action approval rules β€” auto-approve, require-approval, deny
routing.toml Model routing β€” which models handle which complexity levels

The policy engine supports hot-reload β€” changes take effect within 5 seconds.


Roadmap

  • v0.1 β€” Daemon, memory, MCP server, claim verification, CLI, install
  • v0.2 β€” Auto-capture, token compression, cost tracking, doom loop detection
  • v0.3 β€” Action escrow, policy engine, dependency scanning
  • v0.4 β€” Session trace recording and replay
  • v0.5 β€” Multi-agent shared memory
  • v0.6 β€” Model router with budget control
  • v0.7 β€” LLM Wiki (ingest, query, lint, index, log)
  • v0.8 β€” Wiki advanced (traversal, confidence, viz, watch, schema, URL, filters, tool pipeline)
  • v0.9 β€” Memory metabolism, audit chain, access tiers, auto-learner daemon
  • v1.0 β€” Desktop app (Tauri), browser extension, plugin system

Tech stack

Layer Technology
Core Go 1.22+, single static binary
Storage SQLite via modernc.org/sqlite (pure Go, no CGO)
CLI cobra + viper
Config TOML
Compression Rust (sqz)
Verification Rust (claimcheck)
Scanning Rust (ghostdep, tree-sitter)

Why Aura vs alternatives

Feature Aura MemPalace Mem0 Engram
Cross-tool memory βœ… ❌ ❌ βœ…
Claim verification βœ… ❌ ❌ ❌
Token compression βœ… βœ… ❌ ❌
Dependency scanning βœ… ❌ ❌ ❌
Cost tracking βœ… ❌ ❌ ❌
Action escrow βœ… ❌ ❌ ❌
Doom loop detection βœ… ❌ ❌ ❌
Model routing βœ… ❌ ❌ ❌
Session traces βœ… ❌ ❌ ❌
Auto-capture βœ… ❌ ❌ ❌
Knowledge wiki βœ… ❌ ❌ ❌
Self-improving (auto-learn) βœ… ❌ ❌ ❌
Memory metabolism βœ… ❌ ❌ ❌
Immutable audit chain βœ… ❌ ❌ ❌
Knowledge map (HTML) βœ… ❌ ❌ ❌
Graph traversal βœ… ❌ ❌ ❌
Single binary (Go) βœ… ❌ (Python) ❌ (Python) βœ…
Local-first βœ… βœ… ❌ βœ…

Contributing

Found a bug? Have an idea? Open an issue. PRs welcome.

License

MIT β€” see LICENSE.

Directories ΒΆ

Path Synopsis
cmd
aura command
Command aura is the entry point for the Aura AI Continuity OS daemon and CLI.
Command aura is the entry point for the Aura AI Continuity OS daemon and CLI.
internal
autocapture
Package autocapture extracts decisions and context from session transcripts.
Package autocapture extracts decisions and context from session transcripts.
cli
Package cli implements all aura subcommands.
Package cli implements all aura subcommands.
codebase
Package codebase scans project directories and stores structure as memory entries.
Package codebase scans project directories and stores structure as memory entries.
compress
Package compress wraps the sqz binary for token compression.
Package compress wraps the sqz binary for token compression.
cost
Package cost tracks token usage and calculates session costs.
Package cost tracks token usage and calculates session costs.
daemon
Package daemon manages the Aura daemon lifecycle.
Package daemon manages the Aura daemon lifecycle.
db
Package db provides the SQLite connection and schema migrations.
Package db provides the SQLite connection and schema migrations.
doomloop
Package doomloop detects repeated failed agent actions.
Package doomloop detects repeated failed agent actions.
escrow
Package escrow intercepts and holds destructive actions for approval.
Package escrow intercepts and holds destructive actions for approval.
mcp
Package mcp implements the MCP server and tool handlers.
Package mcp implements the MCP server and tool handlers.
memory
Package memory provides the persistent cross-tool memory store.
Package memory provides the persistent cross-tool memory store.
multiagent
Package multiagent coordinates shared memory across concurrent agents.
Package multiagent coordinates shared memory across concurrent agents.
policy
Package policy evaluates agent actions against configured rules.
Package policy evaluates agent actions against configured rules.
router
Package router routes tasks to models based on complexity and cost.
Package router routes tasks to models based on complexity and cost.
scan
Package scan wraps the ghostdep binary for dependency scanning.
Package scan wraps the ghostdep binary for dependency scanning.
session
Package session manages Aura session lifecycle.
Package session manages Aura session lifecycle.
subprocess
Package subprocess runs external binaries (sqz, claimcheck, ghostdep).
Package subprocess runs external binaries (sqz, claimcheck, ghostdep).
trace
Package trace records and replays agent session traces.
Package trace records and replays agent session traces.
verify
Package verify implements agent claim verification.
Package verify implements agent claim verification.
wiki
Package wiki implements a persistent, LLM-maintained knowledge base.
Package wiki implements a persistent, LLM-maintained knowledge base.
pkg
types
Package types defines shared data structures used across Aura packages.
Package types defines shared data structures used across Aura packages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL