Skip to content

Claude Code markdown - #1470

Merged
trueqbit merged 10 commits into
devfrom
claude-config
Aug 15, 2026
Merged

Claude Code markdown#1470
trueqbit merged 10 commits into
devfrom
claude-config

Conversation

@trueqbit

@trueqbit trueqbit commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator

I am successfully using Claude when working with the library, and Claude produced a rather good CLAUDE markdown file that provides guidance to Claude Code when working with code in this repository.

I thought I add it to the repo.

As of 2026-08-15 this PR also contains:

  • Updated documentation for contributors with respect to the internal vocabulary layer.
  • An AGENTS.md file.
  • After our most recent work I already tackled the task to split and move the former dev/storage_lookup.h under dev/schema/db_objects.h respectively dev/schema/algorithms/table_lookup.h.

Comment thread third_party/fix_comment_alignment.py
@fnc12

fnc12 commented Feb 6, 2026

Copy link
Copy Markdown
Owner

@trueqbit let's fix the conflicts and merge it

trueqbit and others added 5 commits August 15, 2026 12:37
Add docs/internals/ describing how the dev/ headers are layered and where a
new trait, predicate or algorithm belongs: the vocabulary traits/algorithms
and schema-level tiers, the five trait axes, open vs. closed and the two
independent reasons for a _fwd/impl split, the constraint that concepts place
on splitting, and the role of the node_definitions.h manifests.

Record decided-but-not-yet-done work separately from genuinely open questions:
traits still to be lifted out of their concrete node headers, the storage_* ->
schema_* renames for storage_traits.h and storage_lookup.h, and type_printer's
migration.

Note in structural_traits_fwd.h that quoting nodes are structural traits and
that a future quoting_traits_fwd.h would be a subdivision of that axis rather
than a new one.

Link the new documentation from docs/home.md.

Update CLAUDE.md to match the current tree: point at the new internal
documentation as the authority on header placement, summarize the placement
test, add a checklist for adding a DSL node (registering it in
node_definitions.h is a silent failure if skipped), list the directories that
were missing from the file map, note that include/sqlite_orm/sqlite_orm.h is
generated from dev/, and correct the stale line counts and branch section.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hg5oKpMASvsiw4ZCZiDNPr
The repository instructions were tied to one tool by filename and by their
opening line. Move them to AGENTS.md, the cross-tool convention, and reword
the preamble to address AI coding agents generally.

Keep CLAUDE.md as a pointer to AGENTS.md so Claude Code still finds the
instructions, and state there that guidance belongs in AGENTS.md rather than
in the pointer file.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hg5oKpMASvsiw4ZCZiDNPr
storage_lookup.h sat at the top level and mixed two things: generic facilities
for the tuple of database objects, and the algorithms that search that tuple
for a table. Split them and put each where it belongs.

The lookup algorithms move to schema/algorithms/table_lookup.h, alongside
sync_order.h. They search across the collection of database objects rather
than classifying a node already in hand, which is what the vocabulary layer
does. Rename storage_pick_table[_t] and storage_find_table[_t] accordingly to
schema_pick_table[_t] and schema_find_table[_t]: these operate on the schema,
the mapped database objects, not on the storage_t object.

The generic half (db_objects_tuple, is_db_objects, db_objects_for_expression)
is not an algorithm and moves to schema/db_objects.h. Include sites now pull
in whichever of the two headers they actually use.

Drop is_storage, and with it the forward declaration of storage_t that existed
only to serve it. It had no users other than the static test asserting on it.

Record at file level that lookup covers tables in the wide SQL sense - base
tables, views and virtual tables - and deliberately not indexes or triggers,
whose void object_type object_type_matches filters out.

Also drop an unused include from udf_existence_checker.h.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hg5oKpMASvsiw4ZCZiDNPr
@trueqbit
trueqbit requested a review from fnc12 August 15, 2026 12:24
@trueqbit
trueqbit merged commit 0245bba into dev Aug 15, 2026
17 checks passed
@trueqbit
trueqbit deleted the claude-config branch August 15, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants