pythonic生物人

让AI agent像高级研究员优雅写代码

“He says nothing. He writes one line. It works.” 这是ponytail的口号。

Image

这是ponytail的传说:

You know him. Long ponytail. Oval glasses. Has been at the company longer than the version control. You show him fifty lines; he looks at them, says nothing, and replaces them with one.

Ponytail puts him inside your AI agent.

用了ponytail,你可以:

“~54% less code (up to 94%) · ~20% cheaper · ~27% faster · 100% safe”

ImageImage

这是ponytail的使用:

# Claude Code下

/plugin marketplace add DietrichGebert/ponytail
/plugin install ponytail@ponytail

# Codex下
codex plugin marketplace add DietrichGebert/ponytail
codex plugin add ponytail@ponytail

# Pi agent harness

pi install git:github.com/DietrichGebert/ponytail

看ponytail使用优化python处理CSV Sum的例子,目的:Python code to read sales.csv and sum the 'amount' column

  • 不使用ponytail,使用pandas
import pandas as pd

# Read the CSV file
df = pd.read_csv('sales.csv')

# Sum the 'amount' column
total_amount = df['amount'].sum()

# Print the result
print(f"Total amount: ${total_amount:,.2f}")
  • 使用ponytail,3行code搞定
import csv

total = sum(float(row['amount']) for row in csv.DictReader(open('sales.csv')))
print(total)

开源地址:

https://github.com/DietrichGebert/ponytail


往期精彩

2026可视化工具TOP3

复现IF50.0期刊上6张图

复现Science正刊图

复现顶刊forestplot

师姐认为你会的55个科研图表

师弟师妹偷偷用的7大科研图表

复现Nature中的PCA图

复现Cell图