Skip to content

Instantly share code, notes, and snippets.

@fankaidev
fankaidev / LICENSE
Last active October 28, 2026 10:14
ModelTrace manual test for AI agents
MIT License
Copyright (c) 2026 xqy2006
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@fankaidev
fankaidev / codex-usage
Created August 21, 2026 11:40
Local Codex token usage accounting with date ranges and fork-replay deduplication
#!/usr/bin/env python3
"""Report local Codex token usage by date range and thread.
The rollout JSONL files can contain historical context replayed into a later
thread. A token event is counted only after a task has started; subagent
files additionally need a task id with the owning thread's id prefix. This
matches the local telemetry shape used by the Codex desktop app and avoids
counting replay-only subagent files as fresh work.
"""
@fankaidev
fankaidev / github-native-agent-runner-proposal.md
Created May 22, 2026 14:19
Grove: A Local-First GitHub Agent Runner proposal

Grove: A Local-First GitHub Agent Runner

Working name: Grove

Grove turns GitHub issues, comments, projects, and repos into a local-first agent workspace. It uses your local gh login and local agent CLIs, so teams can start without hosting a central server.

1. Why This Exists

Most coding agent platforms introduce a new server-side workspace, task database, permission system, repo mirror, and agent configuration layer.

@fankaidev
fankaidev / hello.md
Created August 21, 2025 05:10
A simple hello world gist created by Gemini

Hello World from Gemini

@fankaidev
fankaidev / agent-optimization-analysis.md
Created July 21, 2025 23:44
Gemini CLI Agent 流程优化分析报告 - 重点分析执行效果优化 (2025年6-7月)

Gemini CLI Agent 流程优化分析报告(2025年6-7月)

概述

本报告重点分析 Gemini CLI 在过去一个月(2025年6月21日至7月21日)对 Agent 执行流程和性能优化方面的改进。这些优化主要集中在工具执行、历史管理、错误处理和性能提升等关键领域。

1. 工具执行优化

1.1 工具输出智能摘要 (#3745)

日期: 2025-07-11
作者: anj-s

@fankaidev
fankaidev / repo-analysis-last-week.md
Created July 21, 2025 23:38
Gemini CLI 代码仓库最近一个月修改分析报告 (2025-06-21 至 2025-07-21)

Gemini CLI 代码仓库修改分析报告

概览

  • 分析时间范围: 2025-06-21 至 2025-07-21 (最近一个月)
  • 仓库: gemini-cli
  • 当前分支: main

最近一周活动总结

虽然最近一周(2025-07-14 至 2025-07-21)没有新的提交,但仓库在过去一个月内保持着活跃的开发状态。

@fankaidev
fankaidev / tasks.txt
Last active July 11, 2025 15:27
tasks
# 代码规范
[] 修复所有的 C901 错误
[] 为主要流程添加 e2e test
[] 优化 e2e test 框架,可以使用声明式来定义 test
# 架构设计
[] 检查 project_data 和 project_content 的设计
[] import linter 的检查扩充到 domain 之外
[] 修复所有的 C901 错误
[] 检查 project_data 和 project_content 的设计
#!/usr/bin/env python3
import sqlite3
import json
import datetime
from pathlib import Path
import sys
def get_chat_data_from_db(db_path) -> list[dict]:
"""Extract chat data from the SQLite database"""
// ==UserScript==
// @name Omnivore Everything
// @namespace Violentmonkey Scripts
// @version 0.8
// @description save all browsing history to Omnivore
// @author fankaidev
// @match *://*/*
// @exclude *://omnivore.app/*
// @exclude *://cubox.pro/*
// @exclude *://readwise.io/*