<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Cửu thiên vũ đế review</title>
    <description>The latest articles on DEV Community by Cửu thiên vũ đế review (@cu_thinvreview_b2).</description>
    <link>https://dev.to/cu_thinvreview_b2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4013847%2F5ae923cb-4520-4d63-ad03-df21aa07693c.jpg</url>
      <title>DEV Community: Cửu thiên vũ đế review</title>
      <link>https://dev.to/cu_thinvreview_b2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cu_thinvreview_b2"/>
    <language>en</language>
    <item>
      <title>Immigration Lawyer Cost 2026 - Attorney Fee Estimates</title>
      <dc:creator>Cửu thiên vũ đế review</dc:creator>
      <pubDate>Tue, 21 Jul 2026 05:28:35 +0000</pubDate>
      <link>https://dev.to/cu_thinvreview_b2/immigration-lawyer-cost-2026-attorney-fee-estimates-12n4</link>
      <guid>https://dev.to/cu_thinvreview_b2/immigration-lawyer-cost-2026-attorney-fee-estimates-12n4</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Quick Answer An immigration lawyer in 2026 typically costs $500–$1,500 for a simple case like an I-130 petition or N-400 naturalization, $1,500–$5,000 for a green card Adjustment of Status or H1B petition, $3,000–$8,000 for a K-1 fiance visa plus green card package, and $5,000–$25,000+ for deportation defense. Most attorneys charge flat fees for standard cases, while complex matters like removal defense and appeals are billed hourly at $150–$450 per hour. Attorneys in major metros such as New York, Los Angeles, and Chicago charge 20–40% more than smaller markets, and a one-time consultation runs about $100–$300. Attorney fees are separate from — and in addition to — USCIS filing fees. $500–$1,500 — Simple case (I-130 or N-400) $1,500–$5,000 — Green card (AOS) or H1B $150–$450 — Typical hourly rate $5,000–$25,000+Deportation defense Immigration Attorney Fees at a Glance — 2026 $500–$1,500 — Simple petition (I-130) $1,500–$5,000 — Green card (AOS) $1,500–$5,000H1B petition $5,000–$25,000+Deportation defense Immigration attorney fees in 2026 range from a few hundred dollars for a simple petition review to tens of thousands for complex removal defense. Understanding what drives attorney costs — and when you genuinely need one — helps you allocate your immigration budget wisely. This guide gives you real fee ranges for every major case type, explains how immigration lawyers charge, and shows you how to find affordable help if cost is a barrier. Know Your USCIS Filing Fees First Attorney fees are separate from — and in addition to — USCIS filing fees. Use our free calculator to see exactly what you owe USCIS. Open USCIS Fee Calculator Immigration Attorney Fees by Case Type — 2026 — Most immigration attorneys charge flat fees for standard cases because the scope of work is predictable. The ranges below reflect typical fees from attorneys across the US — big-city attorneys (New York, Los Angeles, Chicago) tend to charge 20–40% more than attorneys in smaller markets. Case Type Typical Attorney Fee Complexity I-130 — Petition (family sponsor only) — $500–$1,500 — Low Full AOS Package (I-485 + I-765 + I-131) — $1,500–$4,000 — Moderate I-130 + Full AOS (petitioner + beneficiary) — $2,500–$6,000 — Moderate H1B Petition (new or transfer) — $1,500–$5,000 — Moderate K-1 — Fiance Visa + Green Card (full package) — $3,000–$8,000 — Moderate–High N-400 — Naturalization Application — $500–$1,500 — Low I-751 (Remove Conditions on Residence) — $800–$2,500 — Low–Moderate I-90 (Green Card Renewal) — $400–$900 — Low Consular Processing (abroad) — $1,500–$4,000 — Moderate I-140 — Petition (employment-based) — $2,000–$5,000 — Moderate–High PERM Labor Certification (EB-2/EB-3) — $3,000–$8,000 — High EB-1A (Extraordinary Ability) Self-Petition — $5,000–$15,000 — High EB-2 — National Interest Waiver (NIW) — $3,000–$8,000 — High I-601 / I-601A Inadmissibility Waiver — $2,000–$7,000 — High Asylum Application — $2,000–$10,000 — High Removal / Deportation Defense — $5,000–$25,000+Very High Board of Immigration Appeals (BIA) appeal — $3,000–$10,000+Very High Fee ranges reflect typical US rates in 2026. Geographic variation is significant — major metro areas typically charge 20-40% more. How Immigration Attorneys Charge Immigration attorneys use several billing structures depending on the case type. Understanding how you will be charged helps you compare quotes accurately and avoid surprises. Flat Fee (most common for standard cases) Most immigration cases use flat fees because the scope is well-defined. You pay one set amount regardless of how long the attorney spends. This is typical for I-130, I-485, I-765, I-131, N-400, H1B petitions, and I-751. Advantage: predictable cost. Watch out for: what is excluded — phone calls, RFE responses, and additional filings are sometimes billed extra. Hourly Rate ($150–$450/hour) Hourly billing is more common for complex, unpredictable cases — deportation defense, appeals, litigation, or cases requiring extensive evidence preparation. Average hourly rates in 2026: solo practitioner $150–$250/hour; mid-size firm $250–$350/hour; large firm or specialist $350–$450+/hour. Ask for a retainer deposit and monthly billing statements. Unbundled (Limited Scope) Representation Some attorneys offer limited-scope help — reviewing your forms for errors, answering specific questions, or coaching you through a process without taking full representation. This can cost $200–$800 for a form review. It is a good middle ground for straightforward cases where you want a safety check without paying full attorney fees. Typical Hourly Rates by State — 2026 — Immigration attorney hourly rates vary by local market: cost of living, demand, and how many specialists practice in the area. Flat-fee quotes for the same case type follow the same regional pattern. The ranges below reflect typical private-attorney rates in each state's main immigration-law metros in 2026. Use them to sanity-check a quote — a number well above the local range is worth a second opinion. State Main immigration-law metro Typical hourly rate (2026) New YorkNew York City — $300–$500/hour CaliforniaLos Angeles — $250–$450/hour MassachusettsBoston — $250–$425/hour New JerseyNewark — $225–$400/hour VirginiaNorthern Virginia — $225–$400/hour FloridaMiami — $200–$375/hour IllinoisChicago — $200–$375/hour WashingtonSeattle — $200–$375/hour GeorgiaAtlanta — $175–$325/hour TexasHouston — $175–$325/hour Ranges are typical private-attorney estimates for budgeting only and vary by firm size, case complexity, and city within each state. Many standard cases are billed as a flat fee rather than hourly. Always confirm the exact fee and what it includes during a consultation. When Do You Actually Need an Immigration Lawyer? The most expensive legal mistake is not hiring an attorney when you need one. The second most expensive is paying full attorney fees for a case that was straightforward enough to handle yourself. Here is a framework for deciding. Cases often manageable without an attorney: ✓Simple immediate-relative green card (spouse/parent of US citizen) with no complications&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;✓Straightforward N-400 naturalization (no criminal history, no prior immigration issues)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;✓Green card renewal (I-90) with no complications&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;✓I-751 removal of conditions for a continuing marriage with strong joint-filing evidence&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;✓EAD renewal (I-765) in an established category&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Cases where you need professional help:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;✗Any arrest, charge, or criminal conviction — even misdemeanors or traffic offenses&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published (with a free interactive calculator) at &lt;a href="https://mortgagecalculatortools.com/immigration-lawyer-cost.html" rel="noopener noreferrer"&gt;https://mortgagecalculatortools.com/immigration-lawyer-cost.html&lt;/a&gt;. Figures current as of July 2026; sources listed on the original page. Not legal or financial advice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>immigration</category>
      <category>usa</category>
      <category>legal</category>
    </item>
    <item>
      <title>H1B Visa Total Cost 2026 - Employer &amp; Employee Fees</title>
      <dc:creator>Cửu thiên vũ đế review</dc:creator>
      <pubDate>Tue, 14 Jul 2026 05:08:16 +0000</pubDate>
      <link>https://dev.to/cu_thinvreview_b2/h1b-visa-total-cost-2026-employer-employee-fees-2179</link>
      <guid>https://dev.to/cu_thinvreview_b2/h1b-visa-total-cost-2026-employer-employee-fees-2179</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Quick Answer A new H1B petition in 2026 costs $2,195 in mandatory USCIS fees for a small employer (1–25 employees) or $2,945 for a large employer (26+ employees) — covering the $730 — I-129 base filing fee, the ACWIA Training Fee ($750 small / $1,500 large), the $500 — Fraud Prevention &amp;amp; Detection Fee, and the $215 H1B registration fee. Adding optional premium processing ($2,805) raises the total to $5,000 (small) or $5,750 (large). With typical attorney fees of $1,500–$5,000, the realistic all-in cost per H1B worker is $4,500–$10,750. Under DOL regulations, the employer — not the employee — must pay all mandatory filing fees. $2,945 — Mandatory fees, large employer (26+) $2,195 — Mandatory fees, small employer (1–25) +$2,805 — Optional premium processing (I-907) $5,750 — Total with premium, large employer The H1B visa is the most widely used work visa in the United States for specialty occupation workers. Understanding who pays what — and the legal requirements around fee allocation — is essential for both employers and employees in 2026. Calculate Your H1B Cost Instantly Open H1B Cost Calculator → Complete H1B Fee Breakdown 2026 — FeeWho PaysSmall (1–25)Large (26+) I-129 — Base Filing FeeEmployer (required) — $730$730 ACWIA Training FeeEmployer (required) — $750$1,500 — Fraud Prevention &amp;amp; Detection FeeEmployer (required) — $500$500 H1B Registration FeeEmployer (new/cap-subject) — $215$215 — Subtotal (mandatory, new petition) — $2,195$2,945 — Premium Processing (I-907)Employer or employee+$2,805+$2,805 — Attorney FeesTypically employer — $1,500–$5,000$1,500–$5,000 — Total (with premium, no attorney) — $5,000$5,750 — Fees the Employee Can Legally Pay Employee MAY pay: Premium processing fee (I-907) if they benefit&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Personal immigration attorney fees (if they hire their own)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DS-160 visa stamp fee at consulate (~$185)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Travel costs for visa interview abroad&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Employee CANNOT pay:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;I-129 base filing fee ($730)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ACWIA Training Fee ($750 or $1,500)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Fraud Prevention &amp;amp; Detection Fee ($500)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;H1B Registration Fee ($215)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Need help with H1B petitions?
&lt;/h3&gt;

&lt;p&gt;H1B petitions require LCA compliance, precise documentation, and tight deadlines. Connect with an employment immigration specialist.&lt;/p&gt;

&lt;p&gt;We may earn a commission if you use these links, at no extra cost to you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is the H1B total cost in 2026?
&lt;/h3&gt;

&lt;p&gt;For a large employer without premium processing: $2,945. With premium processing: $5,750. Add attorney fees ($1,500–$5,000) and the realistic total per H1B worker is $4,500–$10,750.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is H1B premium processing worth it?
&lt;/h3&gt;

&lt;p&gt;For most cases, yes. Standard processing takes 3–6 months and can delay an employee's start date. Premium processing ($2,805) guarantees action within 15 business days. For a new hire needing an October 1 start, it is almost always worth it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Are H1B fees tax deductible?
&lt;/h3&gt;

&lt;p&gt;For employers, H1B filing fees are generally deductible as a business expense. For employees paying premium processing or personal attorney fees, deductibility depends on the specific situation — consult a CPA.&lt;/p&gt;

&lt;h3&gt;
  
  
  What if an employer requires the employee to pay?
&lt;/h3&gt;

&lt;p&gt;If an employer requires the H1B employee to pay the I-129 base fee, ACWIA fee, or fraud fee, the employer may be subject to DOL debarment and back-wage liability. Employees can file a complaint with the DOL Wage and Hour Division.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published (with a free interactive calculator) at &lt;a href="https://mortgagecalculatortools.com/h1b-visa-total-cost-2026.html" rel="noopener noreferrer"&gt;https://mortgagecalculatortools.com/h1b-visa-total-cost-2026.html&lt;/a&gt;. Figures current as of July 2026; sources listed on the original page. Not legal or financial advice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>immigration</category>
      <category>usa</category>
      <category>finance</category>
    </item>
    <item>
      <title>How Much Does a Green Card Cost in 2026? Full Breakdown</title>
      <dc:creator>Cửu thiên vũ đế review</dc:creator>
      <pubDate>Tue, 07 Jul 2026 06:17:13 +0000</pubDate>
      <link>https://dev.to/cu_thinvreview_b2/how-much-does-a-green-card-cost-in-2026-full-breakdown-naf</link>
      <guid>https://dev.to/cu_thinvreview_b2/how-much-does-a-green-card-cost-in-2026-full-breakdown-naf</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Quick Answer — 2026 — Green Card Costs $1,440 — I-485 fee (adult) $950 — I-485 (child under 14) $3,190+Total fees + medical (no atty) $4,700–$8,700 — Realistic with attorney Getting a green card in 2026 costs significantly more than most applicants expect. The USCIS I-485 filing fee is $1,440 for adults — but that is just one item in a longer list. When you add a work permit, travel document, medical exam, and attorney fees, the total for a single adult typically ranges from $4,700 to $8,700. Families with children spend considerably more. This guide breaks down every cost by pathway so you can budget accurately before you file. Calculate Your Exact Green Card Cost Choose your situation — adults, children, concurrent filings — and get an itemized total instantly. Open Green Card Fee Calculator → Not legal advice. Always verify fees at USCIS.gov/g-1055 before submitting payment. Pathway 1: Adjustment of Status (Already in the US) Form I-485 — for people already inside the United States eligible to apply without leaving Adjustment of Status (AOS) is the most common green card process for people living in the United States. You file Form I-485 along with a work permit (I-765) and travel document (I-131) at the same time. After USCIS approval, you receive your green card without leaving the country. Cost ItemRequired?Amount I-485 — Filing Fee (adult, age 14+)Required — $1,440 — I-485 — Filing Fee (child under 14, with parent)Required — $950 — I-765 — Employment Authorization (EAD) — InitialHighly recommended — $820 — I-131 — Advance Parole (travel document)If traveling abroad — $630 — Medical Exam (Form I-693, USCIS civil surgeon)Required — $200–$500 — Catch-up vaccinations (if not current)Varies — $0–$300 — Document translation (if not in English)If needed — $50–$300 — Immigration attorney feesOptional but recommended — $1,500–$5,000 — Total (single adult, no attorney) — $3,190–$3,990 — Total (single adult, with attorney) — $4,700–$8,990 — Concurrent filing note: When I-765 and I-131 are filed simultaneously with I-485 (concurrent filing), some categories owe $0 additional for those forms — the I-485 fee covers them. The fees above apply for standalone filing. Use the Green Card Fee Calculator to check your specific category. Pathway 2: Consular Processing (Applying From Abroad) Immigrant Visa — applied at a US consulate or embassy abroad when you are ineligible for AOS Consular Processing is required if you are outside the United States or ineligible for Adjustment of Status. You apply for an immigrant visa at a US consulate, attend an interview abroad, and enter the US as a lawful permanent resident. Consular Processing is typically less expensive than AOS because you do not need I-765 or I-131. Cost ItemRequired?Amount I-130 — Petition (family-based)Required — $675 — Immigrant Visa Application Fee (DS-260)Required — $325 USCIS Immigrant Fee (paid after entry to US)Required — $235 — Medical Exam (panel physician abroad)Required — $200–$500 — Document translationIf needed — $50–$300 — Travel to consulate for interviewVaries — $100–$500+ Immigration attorney feesOptional but recommended — $1,500–$4,000 — Total (no attorney, family-based) — $1,585–$2,535 — Total (with attorney, family-based) — $3,085–$6,535 — Consular Processing advantages:Lower government fees than AOS&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sometimes faster for certain preference categories&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Required for those ineligible for AOS&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Consular Processing disadvantages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Must remain abroad the entire process&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;No US work authorization while waiting&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Travel and living costs add up&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Green Card Cost by Immigration Category
&lt;/h2&gt;

&lt;p&gt;Your immigration category determines which forms you file and which fees apply. Here are realistic all-in cost ranges for the most common green card pathways through Adjustment of Status.&lt;/p&gt;

&lt;h3&gt;
  
  
  Family-Based — Immediate Relative of US Citizen
&lt;/h3&gt;

&lt;p&gt;Spouse, unmarried child under 21, or parent of US citizen — no wait for visa number&lt;/p&gt;

&lt;h3&gt;
  
  
  Family-Based — Preference Category (Siblings, Adult Children)
&lt;/h3&gt;

&lt;p&gt;F3, F4 categories — can wait years for visa number&lt;/p&gt;

&lt;h3&gt;
  
  
  Employment-Based (EB-1, EB-2, EB-3)
&lt;/h3&gt;

&lt;p&gt;Employer-sponsored or self-petitioned&lt;/p&gt;

&lt;h3&gt;
  
  
  K-1 — Fiance Visa then Adjustment of Status
&lt;/h3&gt;

&lt;p&gt;Fiance enters on K-1, marries, then files I-485&lt;/p&gt;

&lt;h3&gt;
  
  
  Refugee / Asylee Adjustment
&lt;/h3&gt;

&lt;p&gt;Refugees and asylees adjusting to permanent resident&lt;/p&gt;

&lt;h2&gt;
  
  
  Immigration Medical Exam Cost (Form I-693)
&lt;/h2&gt;

&lt;p&gt;The immigration medical exam is one of the most variable costs in your green card application. It must be performed by a USCIS-designated civil surgeon — not your regular doctor. Costs vary by location, provider, and vaccination history. The sealed exam results go directly to USCIS.&lt;/p&gt;

&lt;p&gt;$200–$350&lt;/p&gt;

&lt;p&gt;Exam only — vaccines fully up to date&lt;/p&gt;

&lt;p&gt;$350–$600&lt;/p&gt;

&lt;p&gt;Exam + a few missing vaccines&lt;/p&gt;

&lt;p&gt;$600–$900+&lt;/p&gt;

&lt;p&gt;Exam + multiple vaccines or TB follow-up&lt;/p&gt;

&lt;h3&gt;
  
  
  What the medical exam includes:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Physical exam (height, weight, vitals)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Vaccination review and catch-up shots&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TB skin test or blood test&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Syphilis blood test (age 15+)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Drug and alcohol assessment&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Mental health evaluation&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Review of communicable disease history&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Required vaccines: MMR, varicella, Tdap, flu, COVID-19, others&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Immigration Attorney Fees — When Do You Need One?
&lt;/h2&gt;

&lt;p&gt;You are not legally required to hire an attorney for your green card application, but immigration forms are complex and USCIS fees are non-refundable even if your application is denied. A $2,000 attorney fee can easily save more than it costs by preventing a $3,000 fee loss from a rejected application.&lt;/p&gt;

&lt;p&gt;You may NOT need an attorney if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Immediate relative of US citizen, no complications&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;No criminal history whatsoever&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Entered the US legally and maintained status&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;No prior visa denials or immigration violations&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Income clearly meets I-864 requirements&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You definitely need an attorney if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Any arrest or criminal conviction (including misdemeanors)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prior visa overstay or unlawful presence&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prior deportation, removal, or voluntary departure order&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prior USCIS application denial&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Complex family situations (divorce, prior marriages)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Employment-based or self-petitioned categories&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Green Card Costs for Families
&lt;/h2&gt;

&lt;p&gt;When a family applies together, costs multiply — but children under 14 get a reduced I-485 fee. Here are realistic totals for common family configurations filing Adjustment of Status concurrently.&lt;/p&gt;

&lt;h3&gt;
  
  
  Single Adult
&lt;/h3&gt;

&lt;p&gt;I-485 ($1,440) + I-765 ($820) + I-131 ($630) + medical ($200–500) = $3,090–$3,390; add attorney $1,500–$5,000&lt;/p&gt;

&lt;h3&gt;
  
  
  Married Couple (2 adults)
&lt;/h3&gt;

&lt;p&gt;Government fees x2 = $5,780; medical x2 ($400–$1,000); attorney $1,500–$8,000+&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published (with a free interactive calculator) at &lt;a href="https://mortgagecalculatortools.com/how-much-does-green-card-cost.html" rel="noopener noreferrer"&gt;https://mortgagecalculatortools.com/how-much-does-green-card-cost.html&lt;/a&gt;. Figures current as of July 2026; sources listed on the original page. Not legal or financial advice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>immigration</category>
      <category>usa</category>
      <category>finance</category>
    </item>
    <item>
      <title>How to give Claude or ChatGPT your entire codebase (the right way)</title>
      <dc:creator>Cửu thiên vũ đế review</dc:creator>
      <pubDate>Sat, 04 Jul 2026 02:29:24 +0000</pubDate>
      <link>https://dev.to/cu_thinvreview_b2/how-to-give-claude-or-chatgpt-your-entire-codebase-the-right-way-4nbm</link>
      <guid>https://dev.to/cu_thinvreview_b2/how-to-give-claude-or-chatgpt-your-entire-codebase-the-right-way-4nbm</guid>
      <description>&lt;p&gt;At some point every "let me just paste my code into the AI" session hits a wall. You want the model to reason about the &lt;em&gt;whole&lt;/em&gt; project — not one file — so you start copy-pasting directories. Three things go wrong, usually in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You paste a file with a live API key in it.&lt;/li&gt;
&lt;li&gt;You exceed the context window and get a truncation (or a silently partial answer).&lt;/li&gt;
&lt;li&gt;The model loses the plot because it can't see how the pieces fit.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here's a workflow that handles all three, whether you build the tooling yourself or use an off-the-shelf one.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Flatten the repo into one ordered bundle
&lt;/h2&gt;

&lt;p&gt;Models reason better over a single, well-ordered document than over 30 pasted snippets. Walk the repo, skip the noise (&lt;code&gt;node_modules&lt;/code&gt;, build output, images, lockfiles), and emit each file with a clear header. A file index at the top helps the model build a mental map before it reads any code.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Redact secrets &lt;em&gt;before&lt;/em&gt; the text leaves your machine
&lt;/h2&gt;

&lt;p&gt;This is the step people skip. Anything credential-shaped — &lt;code&gt;sk-...&lt;/code&gt;, &lt;code&gt;ghp_...&lt;/code&gt;, &lt;code&gt;AKIA...&lt;/code&gt;, &lt;code&gt;sk_live_...&lt;/code&gt;, &lt;code&gt;-----BEGIN PRIVATE KEY-----&lt;/code&gt; — should be masked automatically, not by remembering to check. A prompt log is a place secrets go to leak; treat the bundle like a public paste.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Budget against the model's context window
&lt;/h2&gt;

&lt;p&gt;Estimate the bundle's token count and compare it to your target model (Claude ~200K, GPT-5 ~400K, Gemini 2.5 Pro ~1M). If you're over, don't truncate blindly — drop the &lt;strong&gt;largest file bodies&lt;/strong&gt; but keep every file &lt;strong&gt;listed&lt;/strong&gt;, so the model still knows the project's full shape.&lt;/p&gt;

&lt;h2&gt;
  
  
  Doing it in one command
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/trongtruong110-ux/ctxpack" rel="noopener noreferrer"&gt;ctxpack&lt;/a&gt; is a zero-dependency CLI that does all three:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# whole repo, budgeted for Claude, secrets masked, written to a file&lt;/span&gt;
npx github:trongtruong110-ux/ctxpack &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--model&lt;/span&gt; claude-fable-5 &lt;span class="nt"&gt;-o&lt;/span&gt; context.md

&lt;span class="c"&gt;# too big? fit it to a budget (keeps the file map, trims largest bodies)&lt;/span&gt;
npx github:trongtruong110-ux/ctxpack &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--fit&lt;/span&gt; 150000 &lt;span class="nt"&gt;-o&lt;/span&gt; context.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ctxpack: 214 files packed
  tokens: ~147,900  (74% of Claude 200,000 ctx)
  redacted: 3 secret(s)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then paste &lt;code&gt;context.md&lt;/code&gt; (or attach it) and ask your question against the full project.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three rules, portable to any tool
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One ordered bundle&lt;/strong&gt; beats scattered snippets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redact before you send&lt;/strong&gt; — assume the prompt is logged.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Budget per model, trim by size, keep the map.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ctxpack is MIT-licensed and free: &lt;a href="https://github.com/trongtruong110-ux/ctxpack" rel="noopener noreferrer"&gt;https://github.com/trongtruong110-ux/ctxpack&lt;/a&gt;. If you've got a workflow for feeding whole projects to an LLM, I'd like to hear it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>productivity</category>
      <category>tooling</category>
    </item>
    <item>
      <title>A $100K Salary Is Not the Same Money in CA, TX, NY, and FL (2026 Numbers)</title>
      <dc:creator>Cửu thiên vũ đế review</dc:creator>
      <pubDate>Fri, 03 Jul 2026 16:53:11 +0000</pubDate>
      <link>https://dev.to/cu_thinvreview_b2/a-100k-salary-is-not-the-same-money-in-ca-tx-ny-and-fl-2026-numbers-4hhb</link>
      <guid>https://dev.to/cu_thinvreview_b2/a-100k-salary-is-not-the-same-money-in-ca-tx-ny-and-fl-2026-numbers-4hhb</guid>
      <description>&lt;p&gt;Comparing job offers across states? The gross number on the offer letter is not what hits your bank account, and the spread between states is bigger than most people think. Here is what a single filer earning &lt;strong&gt;$100,000&lt;/strong&gt; keeps in 2026, assuming the standard deduction and no pre-tax 401(k)/HSA contributions:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;State&lt;/th&gt;
&lt;th&gt;Net per year&lt;/th&gt;
&lt;th&gt;Net per month&lt;/th&gt;
&lt;th&gt;Effective tax rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Texas&lt;/td&gt;
&lt;td&gt;~$79,180&lt;/td&gt;
&lt;td&gt;~$6,598&lt;/td&gt;
&lt;td&gt;~20.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Florida&lt;/td&gt;
&lt;td&gt;~$79,180&lt;/td&gt;
&lt;td&gt;~$6,598&lt;/td&gt;
&lt;td&gt;~20.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New York (outside NYC)&lt;/td&gt;
&lt;td&gt;~$74,228&lt;/td&gt;
&lt;td&gt;~$6,186&lt;/td&gt;
&lt;td&gt;~25.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;California&lt;/td&gt;
&lt;td&gt;~$72,670&lt;/td&gt;
&lt;td&gt;~$6,056&lt;/td&gt;
&lt;td&gt;~27.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New York City&lt;/td&gt;
&lt;td&gt;~$70,787&lt;/td&gt;
&lt;td&gt;~$5,899&lt;/td&gt;
&lt;td&gt;~29.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Same salary, &lt;strong&gt;~$8,400/year difference&lt;/strong&gt; between Austin and NYC — before rent even enters the conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the money goes
&lt;/h2&gt;

&lt;p&gt;Every state starts from the same two federal deductions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Federal income tax&lt;/strong&gt;: ~$13,170 on $100K for a single filer with the standard deduction (2026 brackets)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FICA&lt;/strong&gt;: $7,650 flat (6.2% Social Security + 1.45% Medicare)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then the state layer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Texas &amp;amp; Florida&lt;/strong&gt;: no state income tax. Done.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New York State&lt;/strong&gt;: state income tax on top; NYC residents also pay a &lt;strong&gt;city&lt;/strong&gt; income tax — that's the extra ~$3,400/year gap between NYC and the rest of the state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;California&lt;/strong&gt;: state income tax plus SDI (disability insurance) withholding.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The caveats that actually matter
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;401(k) contributions change everything.&lt;/strong&gt; Maxing a traditional 401(k) drops your taxable income and shrinks the state-tax penalty of high-tax states.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;These are single-filer numbers.&lt;/strong&gt; Married filing jointly shifts every bracket.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost of living is a separate axis.&lt;/strong&gt; $79K net in Austin and $71K net in NYC buy very different apartments — but that's a rent problem, not a tax problem.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Run your own numbers
&lt;/h2&gt;

&lt;p&gt;I maintain free, no-signup calculators with the 2026 brackets baked in — &lt;a href="https://mortgagecalculatortools.com/salary-after-tax-calculator.html" rel="noopener noreferrer"&gt;salary after tax by state&lt;/a&gt;, plus per-state breakdowns for &lt;a href="https://mortgagecalculatortools.com/take-home-pay-100k-california.html" rel="noopener noreferrer"&gt;California&lt;/a&gt;, &lt;a href="https://mortgagecalculatortools.com/take-home-pay-100k-texas.html" rel="noopener noreferrer"&gt;Texas&lt;/a&gt;, &lt;a href="https://mortgagecalculatortools.com/take-home-pay-100k-new-york.html" rel="noopener noreferrer"&gt;New York&lt;/a&gt;, and &lt;a href="https://mortgagecalculatortools.com/take-home-pay-100k-florida.html" rel="noopener noreferrer"&gt;Florida&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Not tax advice. 2026 figures assume standard deduction, single filer, no pre-tax deductions; sources and assumptions are listed on each linked page.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>salary</category>
      <category>finance</category>
      <category>usa</category>
    </item>
    <item>
      <title>USCIS Fee Increase 2026: What H-1B and Green Card Applicants Actually Pay Now</title>
      <dc:creator>Cửu thiên vũ đế review</dc:creator>
      <pubDate>Fri, 03 Jul 2026 16:52:35 +0000</pubDate>
      <link>https://dev.to/cu_thinvreview_b2/uscis-fee-increase-2026-what-h-1b-and-green-card-applicants-actually-pay-now-44hc</link>
      <guid>https://dev.to/cu_thinvreview_b2/uscis-fee-increase-2026-what-h-1b-and-green-card-applicants-actually-pay-now-44hc</guid>
      <description>&lt;p&gt;If you work in tech on a visa (or are sponsoring someone who does), the 2026 fee headlines are confusing: some fees went up on January 1, some didn't, and a few are frozen by federal courts. Here is the short, sourced version.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually changed on January 1, 2026
&lt;/h2&gt;

&lt;p&gt;Only the statutory fees created by H.R. 1 (the One Big Beautiful Bill Act, signed July 4, 2025) were adjusted — about +2.7% for inflation, rounded down to the nearest $10, per the Federal Register notice of November 21, 2025:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;H.R. 1 fee&lt;/th&gt;
&lt;th&gt;2025&lt;/th&gt;
&lt;th&gt;2026&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Initial EAD (work permit) add-on — asylum/parole/TPS&lt;/td&gt;
&lt;td&gt;$550&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$560&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EAD renewal add-on — parole/TPS&lt;/td&gt;
&lt;td&gt;$275&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$280&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TPS registration (I-821)&lt;/td&gt;
&lt;td&gt;$500&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$510&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parole fee&lt;/td&gt;
&lt;td&gt;$1,000&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$1,020&lt;/strong&gt; (paused for some groups)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Annual asylum fee&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$102&lt;/strong&gt; (stayed by court order)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What did NOT change
&lt;/h2&gt;

&lt;p&gt;Everything from the April 2024 fee rule stays the same in 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;I-485&lt;/strong&gt; (green card / adjustment of status, adult): &lt;strong&gt;$1,440&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I-130&lt;/strong&gt; (family petition): &lt;strong&gt;$675&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;N-400&lt;/strong&gt; (naturalization): &lt;strong&gt;$760&lt;/strong&gt; paper / &lt;strong&gt;$710&lt;/strong&gt; online&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I-765&lt;/strong&gt; (EAD standalone base): &lt;strong&gt;$520&lt;/strong&gt; paper / &lt;strong&gt;$470&lt;/strong&gt; online — $260 if filed with a pending I-485&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H-1B (I-129)&lt;/strong&gt; base: &lt;strong&gt;$730&lt;/strong&gt;, plus ACWIA training fee, fraud fee, and optional premium processing ($2,805)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The $250 Visa Integrity Fee
&lt;/h2&gt;

&lt;p&gt;Since October 1, 2025, most nonimmigrant visas — H-1B, L-1, O-1, F-1, B-1/B-2, K-1 — carry a &lt;strong&gt;$250 Visa Integrity Fee&lt;/strong&gt;, collected by the State Department when the visa is issued, on top of the regular MRV application fee. Visa Waiver Program (ESTA) travelers, most Canadians, and diplomatic categories are exempt. The law allows a refund after the visa expires if you complied with its terms, but no refund procedure has been published yet, so budget it as a cost.&lt;/p&gt;

&lt;p&gt;If you're getting an H-1B stamped abroad in 2026, that's the extra $250 nobody told you about.&lt;/p&gt;

&lt;h2&gt;
  
  
  Courts have paused some of this
&lt;/h2&gt;

&lt;p&gt;Litigation over H.R. 1 fees is active. The annual asylum fee is stayed, and USCIS paused collecting certain fees from Ms. L. v. ICE settlement class members starting February 5, 2026. What USCIS actually collects can change month to month — always check the official &lt;a href="https://www.uscis.gov/g-1055" rel="noopener noreferrer"&gt;G-1055 fee schedule&lt;/a&gt; before mailing a payment. A rejected filing over a wrong fee amount costs you months.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add it up for your own case
&lt;/h2&gt;

&lt;p&gt;I maintain a free, no-signup &lt;a href="https://mortgagecalculatortools.com/immigration-fee-calculator.html" rel="noopener noreferrer"&gt;USCIS fee calculator&lt;/a&gt; that stacks the base fee + H.R. 1 add-ons + optional fees per form, and a &lt;a href="https://mortgagecalculatortools.com/uscis-fee-increase-2026.html" rel="noopener noreferrer"&gt;full 2026 fee-increase breakdown&lt;/a&gt; with before/after tables.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Not legal advice. Figures current as of July 2026 per USCIS G-1055 and the Federal Register; several H.R. 1 fees are subject to active litigation — verify at USCIS.gov before paying.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>immigration</category>
      <category>usa</category>
      <category>finance</category>
    </item>
    <item>
      <title>Will your codebase fit in the context window? How to measure it (and trim to fit)</title>
      <dc:creator>Cửu thiên vũ đế review</dc:creator>
      <pubDate>Fri, 03 Jul 2026 16:38:48 +0000</pubDate>
      <link>https://dev.to/cu_thinvreview_b2/will-your-codebase-fit-in-the-context-window-how-to-measure-it-and-trim-to-fit-5bn8</link>
      <guid>https://dev.to/cu_thinvreview_b2/will-your-codebase-fit-in-the-context-window-how-to-measure-it-and-trim-to-fit-5bn8</guid>
      <description>&lt;p&gt;"Just paste the repo into the model" runs into a hard wall: the context window. Paste too much and you get a truncation error, or — worse — the model silently drops the earliest files and answers from a partial picture. The fix is to treat "will it fit?" as a number you compute &lt;em&gt;before&lt;/em&gt; you paste.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: estimate tokens without calling an API
&lt;/h2&gt;

&lt;p&gt;You don't need a network round-trip to get a usable estimate. For source code, a blend of two signals is within ~5–10% of real BPE tokenizers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Characters ÷ ~3.6&lt;/strong&gt; — code tokenizes denser than prose (more punctuation and identifiers).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count of word/symbol runs × ~1.15&lt;/strong&gt; — a second signal that corrects the char estimate on symbol-heavy files.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Average the two and you have a fast, offline token estimate. Good enough to answer "does it fit?"&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: check it against the model you're targeting
&lt;/h2&gt;

&lt;p&gt;Context windows vary a lot, so budget against the &lt;em&gt;specific&lt;/em&gt; model:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Context&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude (Fable 5 / Opus / Sonnet)&lt;/td&gt;
&lt;td&gt;200K&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-5&lt;/td&gt;
&lt;td&gt;400K&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-4.1&lt;/td&gt;
&lt;td&gt;1M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 2.5 Pro&lt;/td&gt;
&lt;td&gt;1M&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Report the bundle as a &lt;strong&gt;percentage of the target window&lt;/strong&gt; — "48K tokens = 24% of 200K" tells you at a glance whether you have room left for the actual conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: if it's over budget, trim by importance — not at random
&lt;/h2&gt;

&lt;p&gt;When a repo is too big, the naive move (truncate the end) throws away whoever files happen to be last. Better: &lt;strong&gt;omit the largest file bodies first, but keep every file listed.&lt;/strong&gt; The model still sees the full project map (so it knows &lt;code&gt;payments/refund.ts&lt;/code&gt; exists) even if that file's body didn't make the cut.&lt;/p&gt;

&lt;p&gt;With &lt;a href="https://github.com/trongtruong110-ux/ctxpack" rel="noopener noreferrer"&gt;ctxpack&lt;/a&gt; this is one flag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx github:trongtruong110-ux/ctxpack &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--fit&lt;/span&gt; 60000 &lt;span class="nt"&gt;-o&lt;/span&gt; context.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ctxpack: 220 files packed
  tokens: ~59,400
  trimmed: 34 file(s) omitted to fit 60,000 tokens
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every file is still named in the index; only the biggest bodies are dropped to hit the budget.&lt;/p&gt;

&lt;h2&gt;
  
  
  The habit
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Estimate before you paste&lt;/strong&gt; — "does it fit?" is answerable up front.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Budget per model&lt;/strong&gt; — a bundle that fits Gemini may blow Claude's window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trim by size, keep the map&lt;/strong&gt; — a partial bundle that still lists every file beats a truncated one that hides what's missing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ctxpack is MIT-licensed and free: &lt;a href="https://github.com/trongtruong110-ux/ctxpack" rel="noopener noreferrer"&gt;https://github.com/trongtruong110-ux/ctxpack&lt;/a&gt;. How do you currently decide what to include when a repo is too big for one prompt?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>tooling</category>
      <category>productivity</category>
    </item>
    <item>
      <title>A 2-minute pre-commit hook that stops you from committing API keys</title>
      <dc:creator>Cửu thiên vũ đế review</dc:creator>
      <pubDate>Fri, 03 Jul 2026 16:10:37 +0000</pubDate>
      <link>https://dev.to/cu_thinvreview_b2/a-2-minute-pre-commit-hook-that-stops-you-from-committing-api-keys-5ca1</link>
      <guid>https://dev.to/cu_thinvreview_b2/a-2-minute-pre-commit-hook-that-stops-you-from-committing-api-keys-5ca1</guid>
      <description>&lt;p&gt;Leaked credentials almost never happen because someone &lt;em&gt;decided&lt;/em&gt; to commit a key. They happen because a &lt;code&gt;.env&lt;/code&gt;, a config file, or a debug snippet slipped into a staged change and nobody noticed until a bot on the internet did.&lt;/p&gt;

&lt;p&gt;The fix is to make the mistake &lt;em&gt;impossible to commit&lt;/em&gt; — a gate that runs before every commit and fails loudly if anything credential-shaped is staged.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the problem
&lt;/h2&gt;

&lt;p&gt;Most leaked secrets have recognizable prefixes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Looks like&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;&lt;code&gt;sk-...&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;&lt;code&gt;sk-ant-...&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AKIA...&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub PAT&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ghp_...&lt;/code&gt; / &lt;code&gt;github_pat_...&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stripe&lt;/td&gt;
&lt;td&gt;&lt;code&gt;sk_live_...&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AIza...&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Private keys&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-----BEGIN ... PRIVATE KEY-----&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A scanner that knows these can catch the overwhelming majority of accidental leaks with almost no false positives.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 2-minute setup
&lt;/h2&gt;

&lt;p&gt;You don't need a heavyweight platform. A single command in a git hook does it. Here's one using &lt;a href="https://github.com/trongtruong110-ux/ctxpack" rel="noopener noreferrer"&gt;ctxpack&lt;/a&gt; (a zero-dependency CLI), but the pattern works with any scanner that exits non-zero on a hit:&lt;/p&gt;

&lt;p&gt;Create &lt;code&gt;.git/hooks/pre-commit&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/sh&lt;/span&gt;
npx github:trongtruong110-ux/ctxpack &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--check&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="s2"&gt;"test/**"&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="s2"&gt;"**/*.example"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Commit blocked: a possible secret was found above."&lt;/span&gt;
  &lt;span class="nb"&gt;exit &lt;/span&gt;1
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;chmod&lt;/span&gt; +x .git/hooks/pre-commit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now every commit is scanned. When something slips in, you get:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ctxpack --check: 1 potential secret(s) in 34 files:

  src/config.js:12  ANTHROPIC_KEY

✗ failing — remove or ignore these before committing.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note it reports the &lt;strong&gt;location and type&lt;/strong&gt;, never the secret value itself — so the finding is safe to show in CI logs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two details that make it stick
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ignore your fixtures.&lt;/strong&gt; Test suites are full of deliberately-fake keys. Use an ignore glob (&lt;code&gt;-i "test/**"&lt;/code&gt;) so the gate doesn't cry wolf — a scanner that fires on fixtures gets disabled within a week.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run it in CI too.&lt;/strong&gt; Local hooks can be skipped with &lt;code&gt;--no-verify&lt;/code&gt;. Add the same &lt;code&gt;--check&lt;/code&gt; line as a CI step so nothing merges with a live credential in it.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why bother if you have secret scanning on the host?
&lt;/h2&gt;

&lt;p&gt;GitHub and others scan &lt;em&gt;after&lt;/em&gt; the push — by then the secret is in history (and history is forever unless you rewrite it). A pre-commit gate stops it &lt;em&gt;before&lt;/em&gt; it exists in a commit at all. Defense in depth: keep the host scanner, but don't let it be your first line.&lt;/p&gt;




&lt;p&gt;ctxpack is MIT-licensed and free: &lt;a href="https://github.com/trongtruong110-ux/ctxpack" rel="noopener noreferrer"&gt;https://github.com/trongtruong110-ux/ctxpack&lt;/a&gt;. What's your current setup for catching secrets before they land — pre-commit, CI, host-side, or a mix?&lt;/p&gt;

</description>
      <category>git</category>
      <category>security</category>
      <category>devops</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Stop pasting your API keys into ChatGPT: a safer way to feed a codebase to an LLM</title>
      <dc:creator>Cửu thiên vũ đế review</dc:creator>
      <pubDate>Fri, 03 Jul 2026 16:05:13 +0000</pubDate>
      <link>https://dev.to/cu_thinvreview_b2/stop-pasting-your-api-keys-into-chatgpt-a-safer-way-to-feed-a-codebase-to-an-llm-3j35</link>
      <guid>https://dev.to/cu_thinvreview_b2/stop-pasting-your-api-keys-into-chatgpt-a-safer-way-to-feed-a-codebase-to-an-llm-3j35</guid>
      <description>&lt;p&gt;Every developer using Claude, ChatGPT, or Codex has done this: select a bunch of files, paste them into the chat, and ask a question. It works — until two things quietly bite you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure mode 1: you paste a secret
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;config.js&lt;/code&gt;, &lt;code&gt;.env.local&lt;/code&gt;, a test fixture — it only takes one file with &lt;code&gt;api_key = "sk-ant-..."&lt;/code&gt; in it, and now your key is sitting in a third-party prompt log. You won't get an error. You'll just have leaked a credential.&lt;/p&gt;

&lt;p&gt;The fix is boring but essential: &lt;strong&gt;scan for secrets before the text ever leaves your machine.&lt;/strong&gt; API keys have recognizable shapes — &lt;code&gt;sk-ant-&lt;/code&gt;, &lt;code&gt;sk-&lt;/code&gt;, &lt;code&gt;AKIA...&lt;/code&gt;, &lt;code&gt;ghp_...&lt;/code&gt;, &lt;code&gt;-----BEGIN PRIVATE KEY-----&lt;/code&gt;. A pre-flight pass can mask them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;js&lt;/span&gt; &lt;span class="err"&gt;→&lt;/span&gt; &lt;span class="nx"&gt;api_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;&amp;lt;redacted:ANTHROPIC_KEY&amp;gt;&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You still send the code; you just don't send the credential.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure mode 2: you blow the context window
&lt;/h2&gt;

&lt;p&gt;You paste 60k tokens into a 32k-context model and get a truncation, or worse, a silent drop of the earliest files. Most people find out by trial and error. But token count is knowable &lt;em&gt;before&lt;/em&gt; you paste — you just need a per-model estimate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;~48,210 tokens  (24.1% of Claude 200,000 ctx)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you know it fits, and you know how much room you have left for the conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Doing both in one command
&lt;/h2&gt;

&lt;p&gt;I got tired of eyeballing this, so I built &lt;a href="https://github.com/trongtruong110-ux/ctxpack" rel="noopener noreferrer"&gt;&lt;strong&gt;ctxpack&lt;/strong&gt;&lt;/a&gt; — a zero-dependency Node CLI that packs a repo into an LLM-ready bundle, redacts secrets by default, and budgets tokens for the model you're targeting.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx github:trongtruong110-ux/ctxpack &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--model&lt;/span&gt; claude-fable-5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ctxpack: 34 files packed
  tokens: ~48,210  (24.1% of Claude Fable 5 200,000 ctx)
  redacted: 2 secret(s)
  skipped: 5 binary file(s)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It honors your &lt;code&gt;.gitignore&lt;/code&gt;, skips binaries and build output, and can emit markdown, XML, or JSON. Presets cover Claude (Fable 5 / Opus / Sonnet), GPT-5/4.1, and Gemini 2.5 Pro.&lt;/p&gt;

&lt;h2&gt;
  
  
  The general lesson (even if you don't use the tool)
&lt;/h2&gt;

&lt;p&gt;Whatever you use to shuttle code into an LLM, add two habits:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Redact before you send.&lt;/strong&gt; Treat any codebase bundle like a pastebin post — assume it could be logged.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count tokens before you paste.&lt;/strong&gt; "Does it fit?" is a question you can answer up front instead of after a bad response.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ctxpack is MIT-licensed and free: &lt;a href="https://github.com/trongtruong110-ux/ctxpack" rel="noopener noreferrer"&gt;https://github.com/trongtruong110-ux/ctxpack&lt;/a&gt;. If you try it, I'd genuinely like to know which secret patterns or model presets are missing — open an issue.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;What do you currently use to pack a codebase into a prompt? Curious what workflows people have settled on.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>security</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
