MCPcopy Index your code
hub / github.com/Debian/dcs

github.com/Debian/dcs @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,226 symbols 3,240 edges 120 files 272 documented · 22%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GitHub Actions CI

Please read http://codesearch.debian.net/research/bsc-thesis.pdf first!

cmd/ dcs-unpack - tool to unpack a debian source mirror dcs-index - tool to create an index from a debian source mirror compute-ranking - computes the ranking of each package/file dcs-web - the code search web application itself index-backend - simple server which provides (a shard) of the index to dcs-web source-backend - simple server which provides the debian source to dcs-web

debian/ The Debian packaging, which currently is very hacky due to Go packaging being hard in Debian currently. Patches welcome.

index/ Copied from code.google.com/p/codesearch. Parts were re-written in hand-optimized C code (posting list decoding).

regexp/ Copied from code.google.com/p/codesearch. Returns results in a data structure instead of printing them to stdout.

static/ Static assets + HTML files (FAQ etc.)

Extension points exported contracts — how you extend this code

IgnoreFunc (FuncType)
An IgnoreFunc returns a non-nil error describing the reason why the file should not be added to the index, or nil if it
internal/index/write.go
ErrFunc (FuncType)
An ErrFunc is called for each error adding a file to the index, allowing the caller to take action (e.g. delete the not
internal/index/write.go
SuccessFunc (FuncType)
A SuccessFunc is called for each file which was successfully added to the index.
internal/index/write.go

Core symbols most depended-on inside this repo

push
called by 69
index/write.go
Name
called by 66
index/read.go
Get
called by 64
stringpool/stringpool.go
String
called by 58
index/regexp.go
Error
called by 56
internal/openapiclient/client.go
Write
called by 54
internal/index/write.go
slice
called by 53
index/read.go
Compare
called by 50
dpkgversion/dpkgversion.go

Shape

Function 514
Method 514
Struct 150
TypeAlias 23
Interface 20
FuncType 3
Class 2

Languages

Go87%
TypeScript10%
C++3%

Modules by API surface

internal/proto/dcspb/dcs.pb.go82 symbols
internal/proto/sourcebackendpb/sourcebackend.pb.go80 symbols
static/jquery.min.js63 symbols
internal/proto/packageimporterpb/packageimporter.pb.go57 symbols
internal/index/regexp.go45 symbols
index/regexp.go45 symbols
internal/proto/packageimporterpb/packageimporter_grpc.pb.go42 symbols
internal/index/read.go42 symbols
index/write.go39 symbols
internal/proto/dcspb/dcs_grpc.pb.go36 symbols
index/read.go35 symbols
internal/proto/sourcebackendpb/sourcebackend_grpc.pb.go33 symbols

For agents

$ claude mcp add dcs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact