Repository navigation
docs: a Claude Code guide for a local server and its prompt prefix - #4931
Conversation
b5401bb to
a4853a2
Compare
a4853a2 to
0ecf42b
Compare
|
I walked through the quick start at CLAUDE_CODE_MAX_CONTEXT_TOKENS=65536 tensorfold launch claude --model local-model
Igor Lessio - AIFLOW LABS |
0ecf42b to
82fb946
Compare
|
Thanks, the launcher inherits the environment, so both |
|
Thanks, the first example now includes the context override. I trial-merged One wording correction in the attribution note. The example uses a loopback endpoint, so the sentence saying the whole request leaves the machine is misleading. “The configured endpoint receives the request with or without the attribution block” keeps the caching point and also applies to a remote gateway. Igor Lessio - AIFLOW LABS |
82fb946 to
3f91701
Compare
|
Thanks, that wording is better: the note now says "the configured endpoint receives the request with or without the attribution block", so it covers the loopback example too. Head |
|
The revised attribution note reads correctly for both the loopback quick start and a remote endpoint. That closes my last docs finding. I trial-merged Igor Lessio - AIFLOW LABS |
|
Thanks @javierbits. The explicit context setting in both launch examples and the endpoint privacy wording address the earlier requests. The server commands and flags match main. One small correction remains in
|
3f91701 to
6806a6b
Compare
|
Fixed: the paragraph now uses the Messages form |
|
Thanks @javierbits. The guide now uses the Messages object
|
6806a6b to
aaa3408
Compare
|
Thank you @javierbits. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
What this changes
Adds
docs/claude-code.md: it starts a server for Claude Code, points the client at it, explains which model id the client asks for and why the served id is the one to pass, sets the client's context window, and documents the attribution block with measured per-turn prompt-cache numbers.docs/api.md,README.mdandCHANGELOG.mdlink it.atc overlap --json: basemainat9961ca492, run 2026-11-24; 3 overlaps conflict, all inherited on main alone: Implement GLP control vectors with a fused Metal kernel for Qwen3.8-27B #1835, app: control vector picker and strength in Engine advanced #1951 and test(cuda): opt-in --jobs and --shard for kernel-contract #3093 onCHANGELOG.md(checked withgit merge-tree --write-tree --name-only origin/main pr<N>). None is in the new guide, and the other shared files merge cleanly.Checks on this head
6806a6b944432b51cc29c942dd16cf4b06f0da9dpython3 tools/zig/lean_check.py, on the base and on this head: 164 problems on base9961ca492and 164 on this head, no new findings.python3 tools/pr_check.py --base origin/main --pr 4931: 0 errors, 0 warnings. Tests run: the guide's flow was run end to end: one source-build server atef6bf1bea, the head when measured (zig build native -Dnvcc=...,zig build grammar -Dxgrammar=...), Claude Code v2.1.299 with--model local-model, three resumed turns per arm with and withoutCLAUDE_CODE_ATTRIBUTION_HEADER=0, and oneReadtool round. Every request answered (HTTP 200); the per-turn numbers are in the guide.git diff --checkis clean.App and mobile checks,No GPU,Zig format); 15 passed, 2 skipped nightly jobs.zig build test test-golden), because only Markdown changed; its last pass on main is unchanged by this head.Receipt
n/a: documentation only, nothing new can reach inference. The measured numbers in the guide come from a source build at this head,
nvidia/Qwen3.8-27B-NVFP4on one GB10, Ubuntu 24.04.5, driver 580.178.04, CUDA 13.0.88, Zig 0.17.0,--context 65536 --parallel 1; the client loggedcache_read_input_tokens24,576 on turns 2 and 3 in both arms.9961ca492, Zig 0.17.0, CUDA 13.0.88, one GB10,nvidia/Qwen3.8-27B-NVFP4at snapshot482ca0f3832238542f8f5295dde86b5f22711d80.docs/claude-code.md, thedocs/api.mdlink,README.mdandCHANGELOG.md; no code path. The measurements are one GB10 and one client version; the guide says which client versions need the setting.tools/bench_concurrent.py --alone --serialortoken_shaagainst"draft": false: n/a, documentation; the server's replies were unchanged by this head.tools/bench_openai.py: n/a, documentation.ttft_sfromtools/bench_cache.py --require-coldon a long prompt, or "n/a" with the reason when the change cannot reach prompt processing: n/a, documentation; the guide's per-turnresumedcounts are the measured cache effect.Checklist