Knowledge

Total notes {recent.stats.total} Written by Nomos {recent.stats.agent_authored} Learned this week {recent.stats.last_7d} Runbooks / investigations {(recent.stats.by_kind.runbook ?? 0)} / {(recent.stats.by_kind.investigation ?? 0)}
{ e.preventDefault(); search() }} class="flex gap-2">
{#if searched} {/if}
{#if searched}

{results.length} result{results.length === 1 ? '' : 's'} for "{query}"

{#each results as hit (hit.slug)}
{hit.title} {hit.type}
{#if hit.snippet} {@html DOMPurify.sanitize(hit.snippet, { ALLOWED_TAGS: ['b'], ALLOWED_ATTR: [] })} {/if} {#if hit.linked_entities?.length}
{#each hit.linked_entities as slug} {/each}
{/if}
{:else} {#if !loading}

No results found.

{/if} {/each}
{:else}

Recently learned

{#each recent.items as it (it.slug)}
{#if it.agent_authored}{:else}{/if}
{it.title} {it.kind} {#if it.agent_authored}learned by Nomos{/if}
{#if it.tags.length}
{#each it.tags as t}{t}{/each}
{/if}
{relTime(it.updated_at)}
{:else} {#if !loadingRecent}

{agentOnly ? 'Nomos hasn’t recorded any learnings yet — it will write them here as it solves problems.' : 'No knowledge yet.'}

{/if} {/each}
{/if}