Spaces:
Running
Running
Refresh product page and source-linked Space metadata
Browse files- README.md +26 -1
- index.html +31 -3
README.md
CHANGED
|
@@ -4,8 +4,17 @@ emoji: ⚓
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: static
|
|
|
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
thumbnail: https://huggingface.co/spaces/willykeenan/contextlib/resolve/main/social-preview.png
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
# ContextLib
|
|
@@ -16,4 +25,20 @@ A read-only view of the sample ContextLib library: the invented **lighthouse-app
|
|
| 16 |
|
| 17 |
Open the project brief, search records, and follow supersession links. Nothing on this page is writable. The Markdown files remain the source of truth.
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
+
app_file: index.html
|
| 8 |
pinned: false
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
short_description: Project memory for AI coding agents, kept as Markdown files
|
| 11 |
thumbnail: https://huggingface.co/spaces/willykeenan/contextlib/resolve/main/social-preview.png
|
| 12 |
+
tags:
|
| 13 |
+
- agents
|
| 14 |
+
- mcp
|
| 15 |
+
- claude-code
|
| 16 |
+
- codex
|
| 17 |
+
- developer-tools
|
| 18 |
---
|
| 19 |
|
| 20 |
# ContextLib
|
|
|
|
| 25 |
|
| 26 |
Open the project brief, search records, and follow supersession links. Nothing on this page is writable. The Markdown files remain the source of truth.
|
| 27 |
|
| 28 |
+
## Use it
|
| 29 |
+
|
| 30 |
+
Install the `ctxlib` CLI and MCP server (Python 3.9+, standard library only):
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
pip install "git+https://github.com/willykeenan/agentbrain-contextlib"
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
Or add the published Docker image to Claude Code, with your library mounted at `/library`:
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
claude mcp add contextlib -- docker run -i --rm --user "$(id -u):$(id -g)" -v ~/ContextLib:/library ghcr.io/willykeenan/agentbrain-contextlib mcp --identity you
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
Listed on the official MCP Registry as `io.github.willykeenan/agentbrain-contextlib`. Codex and Cursor setup: https://github.com/willykeenan/agentbrain-contextlib
|
| 43 |
+
|
| 44 |
+
ContextLib is open source under Apache-2.0. Source: https://github.com/willykeenan/agentbrain-contextlib
|
index.html
CHANGED
|
@@ -82,6 +82,26 @@
|
|
| 82 |
.body p:last-child { margin-bottom: 0; }
|
| 83 |
.body ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
|
| 84 |
.chain { font-size: 0.88rem; margin-top: 0.7rem; color: var(--muted); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
.chain a { color: var(--accent); }
|
| 86 |
.empty { color: var(--muted); padding: 1rem 0; }
|
| 87 |
.error { color: var(--retired); padding: 1rem 0; }
|
|
@@ -95,8 +115,16 @@
|
|
| 95 |
<header>
|
| 96 |
<h1>ContextLib</h1>
|
| 97 |
<p class="lede" id="lede">Read-only sample library. Markdown files stay the source of truth.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
<label class="search-label" for="q">Search records</label>
|
| 99 |
-
<input id="q" type="search" placeholder="Title, body, id, tag, status" autocomplete="off">
|
| 100 |
</header>
|
| 101 |
<main>
|
| 102 |
<p id="status" class="meta-line">Loading library.json…</p>
|
|
@@ -104,8 +132,8 @@
|
|
| 104 |
<section id="records"></section>
|
| 105 |
</main>
|
| 106 |
<footer>
|
| 107 |
-
ContextLib is
|
| 108 |
-
Source
|
| 109 |
</footer>
|
| 110 |
<script>
|
| 111 |
(function () {
|
|
|
|
| 82 |
.body p:last-child { margin-bottom: 0; }
|
| 83 |
.body ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
|
| 84 |
.chain { font-size: 0.88rem; margin-top: 0.7rem; color: var(--muted); }
|
| 85 |
+
.use {
|
| 86 |
+
background: var(--card);
|
| 87 |
+
border: 1px solid var(--line);
|
| 88 |
+
border-radius: 0.7rem;
|
| 89 |
+
padding: 0.8rem 1rem;
|
| 90 |
+
margin: 0 0 1rem;
|
| 91 |
+
font-size: 0.92rem;
|
| 92 |
+
}
|
| 93 |
+
.use h2 { margin: 0 0 0.4rem; font-size: 1rem; }
|
| 94 |
+
.use p { margin: 0.5rem 0 0.3rem; color: var(--muted); }
|
| 95 |
+
.use pre {
|
| 96 |
+
margin: 0;
|
| 97 |
+
padding: 0.55rem 0.7rem;
|
| 98 |
+
overflow-x: auto;
|
| 99 |
+
background: var(--paper);
|
| 100 |
+
border: 1px solid var(--line);
|
| 101 |
+
border-radius: 0.5rem;
|
| 102 |
+
font: 0.8rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
| 103 |
+
}
|
| 104 |
+
.use a { color: var(--accent); }
|
| 105 |
.chain a { color: var(--accent); }
|
| 106 |
.empty { color: var(--muted); padding: 1rem 0; }
|
| 107 |
.error { color: var(--retired); padding: 1rem 0; }
|
|
|
|
| 115 |
<header>
|
| 116 |
<h1>ContextLib</h1>
|
| 117 |
<p class="lede" id="lede">Read-only sample library. Markdown files stay the source of truth.</p>
|
| 118 |
+
<section class="use" aria-labelledby="use-title">
|
| 119 |
+
<h2 id="use-title">Use it</h2>
|
| 120 |
+
<p>Install the <code>ctxlib</code> CLI and MCP server (Python 3.9+, standard library only):</p>
|
| 121 |
+
<pre><code>pip install "git+https://github.com/willykeenan/agentbrain-contextlib"</code></pre>
|
| 122 |
+
<p>Or add the published Docker image to Claude Code, with your library mounted at <code>/library</code>:</p>
|
| 123 |
+
<pre><code>claude mcp add contextlib -- docker run -i --rm --user "$(id -u):$(id -g)" -v ~/ContextLib:/library ghcr.io/willykeenan/agentbrain-contextlib mcp --identity you</code></pre>
|
| 124 |
+
<p>Codex and Cursor setup, the CLI and the <code>context_*</code> tools: <a href="https://github.com/willykeenan/agentbrain-contextlib" rel="noopener">github.com/willykeenan/agentbrain-contextlib</a>. Listed on the official MCP Registry as <code>io.github.willykeenan/agentbrain-contextlib</code>.</p>
|
| 125 |
+
</section>
|
| 126 |
<label class="search-label" for="q">Search records</label>
|
| 127 |
+
<input aria-label="Search library records" id="q" type="search" placeholder="Title, body, id, tag, status" autocomplete="off">
|
| 128 |
</header>
|
| 129 |
<main>
|
| 130 |
<p id="status" class="meta-line">Loading library.json…</p>
|
|
|
|
| 132 |
<section id="records"></section>
|
| 133 |
</main>
|
| 134 |
<footer>
|
| 135 |
+
ContextLib is open source under Apache-2.0. This page is read-only.
|
| 136 |
+
Source: <a href="https://github.com/willykeenan/agentbrain-contextlib" rel="noopener">github.com/willykeenan/agentbrain-contextlib</a>.
|
| 137 |
</footer>
|
| 138 |
<script>
|
| 139 |
(function () {
|