Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ signatures survive). Stashes the whole original message.

```mermaid
flowchart LR
A["```go fenced block<br/>full func bodies"] --> B{tree-sitter parse<br/>lang known? body ≥ min_tokens?}
A["go fenced block<br/>full func bodies"] --> B{"tree-sitter parse<br/>lang known? body ≥ min_tokens?"}
B -->|no| A
B -->|yes| C["signatures + { … }<br/>+ <<cg:HASH>> marker"]
C --> D[(Store: original)]
Expand Down Expand Up @@ -269,7 +269,7 @@ wrapping `cmdfilter` component is an Offload (it stashes the original first).

```mermaid
flowchart LR
I[input] --> S1[1 strip_ansi] --> S2[2 replace[]] --> S3[3 match_output[] + unless]
I[input] --> S1[1 strip_ansi] --> S2["2 replace[]"] --> S3["3 match_output[] + unless"]
S3 --> S4[4 strip / keep lines] --> S5[5 truncate_lines_at] --> S6[6 head / tail]
S6 --> S7[7 max_lines] --> S8[8 on_empty] --> O[output + Lossiness]
```
Expand Down
4 changes: 2 additions & 2 deletions docs/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sequenceDiagram
apply->>apply: normalize → []ChatMessage + write-back slots
apply->>Pipe: Run(chat, ctx)
Pipe-->>apply: mutated messages
apply->>apply: per message: unchanged → keep bytes;<br/>changed & lossless round-trip → sjson splice
apply->>apply: per message: unchanged → keep bytes,<br/>changed & lossless round-trip → sjson splice
apply-->>Host: rewritten body (or original, fail open)
```

Expand Down Expand Up @@ -149,7 +149,7 @@ sequenceDiagram
Store-->>Host: original bytes
Host->>Up: append assistant tool-call + tool_result(original), re-invoke
Up-->>M: final answer with full content in hand
Note over Host,Up: capped at 3 rounds; if the model also calls another tool,<br/>the loop bails and returns the response as-is
Note over Host,Up: capped at 3 rounds if the model also calls another tool,<br/>the loop bails and returns the response as-is
```

An expired/evicted original resolves to an explicit placeholder rather than being omitted (the
Expand Down
Loading