Frontmatter
| id | 8283 |
| title | [Neural Link] Feature: inspect_class tiered detail (compact mode) |
| state | Closed |
| labels | enhancementaiperformance |
| assignees | tobiu |
| createdAt | Jan 2, 2026, 1:35 AM |
| updatedAt | Jan 4, 2026, 1:12 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8283 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 4, 2026, 1:12 PM |
[Neural Link] Feature: inspect_class tiered detail (compact mode)
tobiu added parent issue #8169 on Jan 2, 2026, 1:36 AM
tobiu assigned to @tobiu on Jan 4, 2026, 10:45 AM

tobiu
Jan 4, 2026, 1:11 PM
Input from Gemini 2.5 pro:
✦ Implemented
inspect_classtiered detail support.Changes:
- Client-Side (
src/ai/client/RuntimeService.mjs):
- Added
detailparameter ('standard'|'compact') toinspectClass.- Implemented logic for
'compact'mode:
- Configs: Returns only configs defined or overridden in the target class (compares against superclass).
- Methods: Returns only methods defined on the target class prototype (no inheritance traversal).
- Server-Side (
ai/mcp/server/neural-link/services/RuntimeService.mjs):
- Updated proxy method to pass
detailparameter.- OpenAPI (
ai/mcp/server/neural-link/openapi.yaml):
- Added
detailparameter toInspectClassRequestschema.This significantly reduces token usage for class discovery tasks where full inheritance context is not required.
tobiu closed this issue on Jan 4, 2026, 1:12 PM
Enhance the
inspect_classtool to support adetailparameter for token-efficient querying.Problem: Currently,
inspect_classreturns the full class blueprint (inheritance, all configs, all methods), which can consume ~10K tokens. This is expensive for simple discovery tasks (e.g., "Does this class have atextconfig?").Solution: Add an optional
detailparameter:compact: Returns ONLY "Own" configs and methods (defined on this class).standard(Default): Returns full inheritance (current behavior).Implementation:
ctor.configwithsuperCtor.configto identify "Own" configs (new keys or changed values).proto.hasOwnPropertyto identify "Own" methods.RuntimeService.inspectClassandopenapi.yaml.