agentleFS
broomvabroomva/lago/skills/life-lago/SKILL.md

life-lago

Skill2 starsChanged 7 months agoMITView on GitHub

Agent-facing interface to the Lago knowledge substrate. Provides Karpathy-style wiki operations (ingest, search, read, write, lint, wake-up, query) on top of Lago's event-sourced, content-addressed filesystem.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When the Lago daemon isn't running, all operations fall back to direct filesystem access on markdown files.

    line 36
  2. Distinctive:

    All write operations emit canonical aios-protocol EventKind events:

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

life-lago -- Lago Knowledge Substrate Skill

Universal agent brain stem built on Lago's event-sourced persistence layer.

Operations

CommandDescriptionLago PrimitiveEvent Emitted
lago wiki initInitialize a wiki sessionCreate session + BlobStore + KnowledgeIndexSessionCreated
lago wiki ingest <path>Ingest source documentlago-knowledge ingest -> BlobStore.put -> index rebuildObservationAppended
lago wiki search <query>Hybrid search (BM25 + graph)KnowledgeIndex.search_hybrid()--
lago wiki read <slug>Read entity page with provenanceKnowledgeIndex.get_note()--
lago wiki write <slug>Create/update wiki pageBlobStore.put -> manifest update -> index rebuildMemoryProposed -> MemoryCommitted
lago wiki lintCheck health (contradictions, orphans, gaps)KnowledgeIndex.lint()StateEstimated
lago wiki wake-upAssemble L0+L1 context (~900 tokens)MemCube::assemble() + generate_index()--
lago wiki logShow recent knowledge operationsJournal.read() filtered to knowledge events--
lago wiki query <q>Search, synthesize, optionally file backsearch + optional MemoryCommittedMemoryCommitted (if filed)
lago wiki diffShow what changed since last sessiondiff_manifests()--

Three-Layer Model

LayerDirectoryLago BackingMutability
Raw Sourcesraw/BlobStore (SHA-256 + zstd, immutable)Never modified
Wikiwiki/KnowledgeIndex + MemCubesLLM-maintained via write
SchemaCLAUDE.md + .control/Policy gates + setpointsCo-evolved by user + LLM

Graceful Degradation

When the Lago daemon isn't running, all operations fall back to direct filesystem access on markdown files. The skill detects Lago availability by checking LAGO_URL or localhost:3001.

Access Model

  • Life/Arcan agents: Native Rust access via lago-knowledge crate
  • Any other agent (Claude Code, Codex, Cursor): This skill provides the same capabilities through CLI commands + markdown output

Event Protocol

All write operations emit canonical aios-protocol EventKind events:

  • ObservationAppended for new knowledge ingested
  • MemoryProposed -> MemoryCommitted for wiki page writes
  • PolicyEvaluated for Nous gate scoring decisions
  • StateEstimated for lint health assessments

Integration with Control Kernel

The knowledge substrate feeds the control loop:

  • Belief state includes wiki context from wake-up + relevant entity pages
  • Nous evaluators score knowledge operations (freshness, coherence, coverage, provenance)
  • EGRI can optimize scoring thresholds, search weights, and promotion criteria
  • Policy gates enforce knowledge governance (no entity without provenance, no promotion below Nous gate)

Configuration

Environment variables:

  • LAGO_URL -- Lago daemon URL (default: http://localhost:3001)
  • LAGO_DATA_DIR -- Data directory for standalone mode
  • LAGO_WIKI_DIR -- Wiki directory for filesystem fallback

Dependencies

Rust crates used:

  • lago-knowledge (BM25, graph, lint, index, ingest)
  • lago-core (MemCubes, events, cognitive types)
  • lago-store (BlobStore, manifest diff)
  • lago-journal (event persistence)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.