Skip to content

Commit 6998ce6

Browse files
committed
added demo
1 parent 792dfe6 commit 6998ce6

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

images/diff-animation-natural.gif

4.42 MB
Loading

index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ <h2 id="abstract">Abstract</h2>
9292
<p>Maintainable and general software allows developers to build robust applications efficiently, yet achieving these qualities often requires refactoring specialized solutions into reusable components. This challenge becomes particularly relevant as code agents become increasingly accurate at solving isolated programming problems. We investigate code agents' capacity to refactor code in ways supporting growth and reusability. We present both a method and a benchmark for refactoring: Librarian, a sample-and-rerank method for generating reusable libraries, and Minicode, a benchmark where code agents must minimize and refactor multiple independent solutions into a joint library. Compared to state-of-the-art code agents, Librarian achieves strong results on both compression and correctness on Minicode, obtaining compression rates 1.6-2x better than coding agents while also improving correctness. We open-source our code, benchmark, and benchmark scripting.</p>
9393
</section>
9494

95+
<section>
96+
<h2 id="demo">Demo</h2>
97+
<figure id="demo-figure">
98+
<img src="images/diff-animation-natural.gif" alt="Demo animation showing Librarian's refactoring process">
99+
<figcaption>Librarian in action: watch as it identifies common patterns and refactors multiple code sources into shorter versions by creating a unified library with reusable components.</figcaption>
100+
</figure>
101+
</section>
102+
95103
<section>
96104
<h2 id="contributions">Key Contributions</h2>
97105
<div class="contributions-grid">

style.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,25 @@ body {
2828
padding: 2em 1em;
2929
}
3030

31+
/* Abstract section with darker background */
32+
section:has(#abstract) {
33+
background-color: var(--nord5);
34+
padding: 2em 1.5em;
35+
margin: 2em -1.5em;
36+
border-radius: 8px;
37+
border: 1px solid var(--nord4);
38+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
39+
}
40+
41+
/* Fallback for browsers that don't support :has() */
42+
#abstract {
43+
margin-top: 0;
44+
}
45+
46+
#abstract + p {
47+
margin-bottom: 0;
48+
}
49+
3150
/* Headers */
3251
h1, h2, h3, h4, h5, h6 {
3352
font-family: 'Noto Serif', Georgia, serif;
@@ -181,6 +200,34 @@ nav > ul > li {
181200
color: var(--nord3);
182201
}
183202

203+
/* Demo section */
204+
#demo-figure {
205+
margin: 2em 0;
206+
text-align: center;
207+
}
208+
209+
#demo-figure > img {
210+
width: 100%;
211+
max-width: 900px;
212+
margin: 0;
213+
border-radius: 8px;
214+
border: 3px solid var(--nord4);
215+
padding: 1em;
216+
box-sizing: border-box;
217+
background-color: var(--nord6);
218+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
219+
}
220+
221+
#demo-figure > figcaption {
222+
font-style: italic;
223+
font-size: 90%;
224+
color: var(--nord3);
225+
text-align: center;
226+
max-width: 700px;
227+
margin: 0 auto 1.5em auto;
228+
line-height: 1.5;
229+
}
230+
184231
/* Citation section */
185232
.section {
186233
padding: 3rem 1.5rem;

0 commit comments

Comments
 (0)