About Fastcode
Fastcode is an MCP server published by HKUDS in the Developer Tools category: tokenWise: Self-Evolving Context with Up to 50% Token Savings. Conduid read 11 tools from its source: code_qa, delete_repo_metadata, delete_session, get_call_chain, get_file_summary, get_repo_structure and 5 more. No package is published for it, so it installs from a source checkout.
The repository has 2.3K stars and 270 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v1.0.1 (25 Feb 2026): What's Changed new feature: Add MCP support fix: add OpenAI max_tokens/max_completion_tokens compatibility layer Fix embedder to use Apple Silicon MPS when available. It is the only release Conduid has on record for this repository. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools.
Install
git clone https://github.com/HKUDS/TokenWiseTools (11)
code_qaAsk a question about one or more code repositories.| Parameter | Type | Description |
|---|---|---|
| multi_turn | boolean | Enable multi-turn conversation mode. When True, previous Q&A context from the same session_id is used. Default: True. |
| question * | string | The question to ask about the code. |
| repos * | array | List of repository sources. Each can be: - A GitHub/GitLab URL (e.g. "https://github.com/user/repo") - A local filesystem path (e.g. "/home/user/projects/myrepo") If the repo is already indexed, it won't be re-indexed. |
| session_id | string | Session identifier for multi-turn conversations. If not provided, a new session is created automatically. Pass the same session_id across calls to continue a conversation. |
delete_repo_metadataDelete indexed metadata for a repository while keeping source code.| Parameter | Type | Description |
|---|---|---|
| repo_name * | string | Repository name to clean metadata for. |
delete_sessionDelete a conversation session and all its history.| Parameter | Type | Description |
|---|---|---|
| session_id * | string | The session identifier to delete. |
get_call_chainTrace the call chain for a function or method.| Parameter | Type | Description |
|---|---|---|
| direction | string | "callers", "callees", or "both" (default: "both"). |
| max_hops | integer | Maximum depth of the call chain (default: 2, max: 5). |
| repos * | array | List of repository sources. |
| symbol_name * | string | Name of the function/method to trace. |
get_file_summaryGet the structure summary of a specific file (classes, functions, imports).| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Path to the file (e.g. "fastcode/main.py"). Flexible matching: endswith or contains. |
| repos * | array | List of repository sources to search in. |
get_repo_structureGet the high-level structure and summary of an indexed repository.| Parameter | Type | Description |
|---|---|---|
| repo_name * | string | Name of an indexed repository (see list_indexed_repos). |
get_session_historyGet the full conversation history for a session.| Parameter | Type | Description |
|---|---|---|
| session_id * | string | The session identifier to retrieve history for. |
list_indexed_reposList all repositories that have been indexed and are available for querying.list_sessionsList all existing conversation sessions.reindex_repoForce a full re-index of a repository.| Parameter | Type | Description |
|---|---|---|
| repo_source * | string | Repository URL or local filesystem path. |
search_symbolSearch for a symbol (function, class, method) by name across repositories.| Parameter | Type | Description |
|---|---|---|
| repos * | array | List of repository sources (URLs or local paths). |
| symbol_name * | string | Name of the symbol to search for (e.g. "FastCode", "query"). |
| symbol_type | string | Optional filter: "function", "class", "file", or "documentation". |
Security checks
Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- ✓No dynamic code executionScanned 84 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and HTTP with SSEmcp_server.py:759, mcp_server.py:757
- Starts other programs
- 4 callsnanobot/nanobot/agent/tools/shell.py:70, nanobot/nanobot/cli/commands.py:629, nanobot/nanobot/cli/commands.py:632
- Outbound network calls
- 15 callsnanobot/nanobot/agent/tools/fastcode.py:72, nanobot/nanobot/agent/tools/fastcode.py:100, nanobot/nanobot/agent/tools/fastcode.py:102
- Writes or deletes files
- 39 callsapi.py:378, api.py:379, api.py:395
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 84 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.4K words, fetched 5 days ago. The original in the repository is authoritative.
Read full README