007-documentation

Documentation for a system that tracks plans, agents, features, and files as a knowledge graph, with command-line, AI-tool, and Obsidian interfaces.

In plain words
What is it for?
Use it to understand the system’s design, its entity types, its command-line interface, and how it connects with Plan 0028 and Obsidian.
Why use it?
It explains how the parts fit together and gives developers a reference for the architecture, commands, and integrations.

Agent

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 agents/paulbreuler/limps/007-documentation
Clone the repo
git clone --depth 1 https://github.com/paulbreuler/limps
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,837 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.01837
Opus 5 $0.00000 $0.00919
Sonnet 5 $0.00000 $0.00367
Haiku 4.5 $0.00000 $0.00184

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

Security

Grade A, and why

007-documentation 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 2d ago.

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.

plans/0042-Knowledge Graph Foundation/agents/007-documentation.agent.md · 301 lines

How it starts

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

Agent 007: Documentation

Objective

Document the system-intelligent architecture, CLI reference, and integration with Plan 0028 (Obsidian).

Tasks

1. Architecture Overview (docs/knowledge-graph.md)

# Knowledge Graph Architecture

## Philosophy: System-Intelligent, Not AI-Intelligent

limps uses a knowledge graph to track relationships between plans, agents, features, and files.
The key principle: **the system is smart, not the AI**.

### What This Means

| AI-Dependent (Wrong) | System-Intelligent (Right) |
|---------------------|---------------------------|
| AI decides which tool to call | System routes deterministically |
| AI reasons about retrieval | Regex patterns select strategy |
| AI asks "are there conflicts?" | System surfaces conflicts proactively |
| LLM extracts entities | Regex + lightweight NLP extracts |

### Architecture

File changes → Auto-index → Conflict detection → Notify (no query needed)

User query → Deterministic router → Hybrid retrieval → AI formats output


### Interface Hierarchy

CLI (source of truth) ├── MCP (wrapper for AI that can't shell out) └── Obsidian Plugin (human UI, wraps CLI)


## Entity Types

- **plan**: A feature plan (e.g., `plan:0042`)
- **agent**: A task within a plan (e.g., `agent:0042#003`)
- **feature**: A feature within a plan (e.g., `feature:0042#1`)
- **file**: A source file (e.g., `file:src/auth.ts`)
- **tag**: A tag (e.g., `tag:knowledge-graph`)
- **concept**: An extracted concept (e.g., `concept:authentication`)

## Relationship Types

- **CONTAINS**: plan → agent, plan → feature
- **DEPENDS_ON**: agent → agent
- **MODIFIES**: agent → file
- **IMPLEMENTS**: agent → feature
- **SIMILAR_TO**: feature → feature (with confidence score)
- **BLOCKS**: derived inverse of DEPENDS_ON

## Conflict Detection

| Conflict | Severity | Description |
|----------|----------|-------------|
| File contention (2 WIP) | Critical | Two WIP agents modify same file |
| File contention (WIP + GAP) | Warning | WIP and GAP agents will modify same file |
| Feature overlap (>85%) | Warning | Features are very similar |
| Circular dependency | Critical | A → B → C → A |
| Stale WIP (>14 days) | Critical | Agent stuck in WIP |
| Stale WIP (>7 days) | Warning | Agent possibly stuck |

## Hybrid Retrieval

Queries are routed deterministically based on patterns:

| Pattern | Strategy | Example |
|---------|----------|---------|
| `plan \d+`, `agent #\d+` | Lexical first | "plan 0042" |
| `depends`, `blocks`, `modifies` | Graph first | "what blocks 003" |
| `how`, `why`, `explain` | Semantic first | "explain auth flow" |
| `status`, `progress` | Graph + Lexical | "status of plan 41" |

Results are fused using Reciprocal Rank Fusion (RRF).

Read the full file on GitHub · 301 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. 2d ago First seen · 301 lines · 0 tokens per session scan A d984d2601823

Subscribe to this mod's changes

007-documentation is an agent published in the GitHub repository paulbreuler/limps (10 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,837 tokens. 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-31.