[FEAT] aimdb record list: show each record key

Open Beginner friendly
#455 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

The table is built in tools/aimdb-cli/src/output/table.rs around line 101. Start there and inspect how RecordMetadata.record_key is available to the record list, then check how MCP list_records returns it. Add the key as the first column while retaining the type name; done means aimdb record list shows both values for each record.

Written by the indexing model from the issue text.

Description

enhancement

Is your feature request related to a problem? Please describe.
aimdb record list has a Name column that shows the Rust type name, such as contracts::Policy, and no column for the record key. Commands such as aimdb record get take the key (motion.policy), so the list doesn't tell you what to pass to them. The table is built in table.rs.

The data is already available: RecordMetadata has record_key, and MCP list_records returns it.

Describe the solution you'd like
Add a Key column as the first column of the table, and keep the type name beside it.

Describe alternatives you've considered
Replacing Name with the key would keep the table narrower, but it would drop the type name. The Type ID column is the better one to drop if width is a problem.

Additional context
Seen on main at d9c7be0 against an instance whose keys differ from their type names.

Dominant language
Rust
Stars
101
Forks
20
Avg merge
2h 33m
Merged PRs (30d)
90

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aimdb-dev/aimdb

All issues in aimdb-dev/aimdb

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.