Phase 4-A: Backend CLAUDE.md Memory Browser #50
Labels
No Label
admin
agent-api
api
api-client
audit
backend
boards
cost-accounting
database
design
forgejo
frontend
issues
metrics
mutation
navigation
optional
phase:1
phase:2
phase:3
phase:4
phase:5
phase:6
polish
priority:high
priority:low
priority:medium
service
sync
usage-accuracy
validation
webhooks
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/Pipeline#50
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source plan:
/home/kaspa/.claude/plans/with-our-backend-created-precious-owl.mdFeature context: Feature 4: CLAUDE.md Memory Browser
Scope
Phase 4-A — Backend
Summary
Add
GET /claude-code/projects/{encoded_project_dir}/memorythat walks the project's working directory forCLAUDE.mdfiles and returns their content.Problem
Users lose track of what instructions are in their CLAUDE.md files across projects. Pipeline knows each project's working directory from session data but does not expose the memory files.
Affected area
/claude-codeAffected files
backend/app/services/claude_code_reader.py— addget_project_memory_files()functionbackend/app/api/claude_code.py— add new routebackend/app/schemas/claude_code.py— addMemoryFileRead,ProjectMemoryResponseschemasAffected routes or endpoints
GET /api/v1/claude-code/projects/{project_dir}/memoryproject_diris URL-encoded project directory name (the~/.claude/projects/subdir name)Expected behavior
cwdfor the project from session datacwddirectory tree for files namedCLAUDE.md(case-insensitive), up to 3 levels deep{relative_path, content, size_bytes, last_modified}objects~/.claude/CLAUDE.mdif it exists and includes it as{relative_path: "~/.claude/CLAUDE.md", ...}cwdis unknown or no CLAUDE.md files existSteps to reproduce (acceptance criteria)
GET /api/v1/claude-code/projects/{any_project}/memory~/.claude/CLAUDE.mdif it exists4-A: Backendto Phase 4-A: Backend CLAUDE.md Memory Browser