Architectos

io.github.cgseyhan由 GitHub 帳號 cgseyhan 發布v0.1.30更新於 Oct 24, 2026

ArchitectOS - AI-Native Repository Intelligence & Architecture Operating System.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

ArchitectOS 是一個本機 MCP 伺服器,讓 AI 助理以唯讀方式分析程式碼儲存庫:健康審查、耦合分析、變更影響、重構計畫與符號解析。

可以做什麼
審查儲存庫健康狀態並拆解問題,可設定分數門檻供 CI 使用。解釋根因耦合,並跨程式碼庫計算下游變更影響。產生逐步重構與遷移計畫。解析符號並以自然語言回答架構問題,降低模型臆造。偵測未使用的匯出與死程式碼,稽核 UI 元件的組合與邊界。保存持久的架構護欄規則供日後取用。
適用情境
適合助理在既有程式碼庫上工作、需要先理解架構、評估變更風險或擬定重構計畫時使用。也適合為 Claude Code、Cursor、Codex 等 AI 程式開發代理設定架構護欄。
執行需求
以本機程序透過 stdio 執行,使用 npx 從 npm 套件 architectos 啟動(需要 Node.js)。未宣告驗證、環境變數或請求標頭。分析本機上的程式碼儲存庫。
安裝前請注意
README 聲明它不會直接修改使用者程式碼,程式碼變更由代理或開發者執行,因此執行前應審閱產生的計畫。它在本機讀取儲存庫原始碼,其結論、評分與安全檢測結果屬啟發式判斷,需要人工核實。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Architectos,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

ArchitectOS

AI-Native Repository Intelligence & Governance Engine

ArchitectOS analyzes your repository, explains its architecture, calculates change impact, and enforces guardrails for AI Agents (Claude Code / Cursor / Codex).

[License: MIT] [NPM Version] [Dogfooded with ArchitectOS] [Node.js] [MCP Ready]


Strict Product Mandate: ArchitectOS never modifies user code directly; it exclusively analyzes, explains, calculates impact, and generates actionable refactoring plans. Code modifications are executed by AI Agents or human developers.


⚡ Quickstart & Core Commands

bash
# 1. Initialize and review repositorynpx architectos
# 2. High-level repository health, security & UI review (with optional CI threshold)architectos reviewarchitectos review --threshold 80
# 3. Component deep-dive (supports --why, --ui, --dead, --duplication, --taint)architectos analyze toolbar.tsxarchitectos analyze toolbar.tsx --whyarchitectos analyze --uiarchitectos analyze --deadarchitectos analyze --duplicationarchitectos analyze --taint auth.controller.ts
# 4. View historical score timeline and trendarchitectos history
# 5. Cross-graph downstream change impact & risk ratingarchitectos impact auth.ts
# 6. Structured refactoring migration planarchitectos plan toolbar.tsx
# 7. Symbol resolver & natural language architecture queryarchitectos resolve WorkspaceRepositoryarchitectos resolve "Where is tenant isolation enforced?"
# 8. Native MCP server gateway & live watcherarchitectos watcharchitectos mcp

🏛️ The ArchitectOS Pipeline

text
architectos review               # High-level health & problem breakdown (--threshold 80)      ↓architectos analyze <target>     # Deep-dive (--why, --ui, --dead, --duplication, --taint)      ↓architectos impact <target>      # Cross-graph downstream change risk      ↓architectos plan <target>        # Step-by-step refactoring migration plan      ↓architectos resolve <symbol>     # Hallucination shield & symbol resolver      ↓architectos history              # Historical score timeline & trend tracking      ↓AI Agent / Developer executes refactor

🎯 Engine Precision & Accuracy Features

  • 25 CWE-Mapped SAST Engine: High-precision rules covering SQLi, XSS, RCE, ReDoS, Prototype Pollution, NoSQLi, Open Redirect, Unsafe Deserialization, and Weak Cryptography.
  • Context-Aware Noise Filter: Automatically suppresses false positives inside test blocks (describe/it), JSDoc comments, dead conditional branches, and when known sanitizers (DOMPurify, escapeHtml) are detected.
  • Multi-File Taint Tracking Engine: Traces untrusted user inputs (HTTP req.body/searchParams) down to dangerous execution sinks across multi-file import graphs.
  • Code Duplication Scanner: Token-fingerprinted Jaccard similarity engine detecting copy-pasted code blocks across monorepo packages.
  • Framework Entrypoint Whitelist: Eliminates false positives for Next.js (GET, POST, generateMetadata, middleware), Remix, Vitest, and CLI entrypoints.
  • Tarjan SCC Cycle Detection: Mathematically sound circular dependency cycle detection for complex monorepos.
  • Public Scoring Transparency: Fully documented formulas and deduction rules in SCORING.md.

🧪 Real-World Benchmark Verification (v1.2.1 Engine Breakdown)

ArchitectOS is battle-tested and dogfooded across major open-source codebases with transparent sub-metric scoring:

RepositoryFilesOverallArchSecQualAIUIScan SpeedTop Focus Area
excalidraw/excalidraw520+88/1009284909480<18msCanvas Component Decomposition
calcom/cal.com1,400+84/1008088829080<45msBooking Service Layer Isolation
shadcn/ui120+96/1009895969596<8msUI Component Primitive Boundaries
cgseyhan/architectos51100/100100100100100N/A<19msNative Self-Hosted AST Governance

Note: Pure CLI / backend repositories (e.g. architectos) omit UI Architecture scoring.


🤖 Native MCP Server Integration

Add ArchitectOS to your Claude Code, Cursor, or Codex MCP configuration:

json
{  "mcpServers": {    "architectos": {      "command": "npx",      "args": ["-y", "architectos", "mcp"]    }  }}

Registered MCP Tools

  • architectos_review: Repository health & problem breakdown.
  • architectos_why: Root-cause coupling analysis.
  • architectos_impact: Polyglot change impact calculator.
  • architectos_plan: Step-by-step migration refactoring plan.
  • architectos_resolve: Symbol resolver & hallucination shield.
  • architectos_dead: Unused exports & zombie code detector.
  • architectos_ui: Framework-agnostic UI component composition & boundary audit.
  • architectos_remember: Store persistent architectural guardrail rules.

📄 License

MIT License © 2026 ArchitectOS Authors

來源:README.md,提交 34a1ba3

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.30最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。